Results 1 to 3 of 3

Thread: Please help me with the exception?

  1. #1
    Join Date
    Oct 2004
    Posts
    5

    Default Please help me with the exception?

    2004-10-18 10:31:38,828 INFO [org.springframework.beans.factory.xml.XmlBeanDefin itionReader] - <Loading XML bean definitions from resource [/WEB-INF/webPS-servlet.xml] of ServletContext>
    2004-10-18 10:31:38,828 WARN [org.springframework.beans.factory.xml.XmlBeanDefin itionReader] - <Ignored XML validation warning: URI was not reported to parser for entity [document]>
    org.xml.sax.SAXParseException: URI was not reported to parser for entity [document]

  2. #2
    Join Date
    Oct 2004
    Posts
    5

    Default my appcontext is here!but I can not solve it again

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
    "http://www.springframework.org/dtd/spring-beans.dtd">

    <beans>

    <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.Pr opertyPlaceholderConfigurer">
    <property name="location"><value>/WEB-INF/classes/db.properties</value></property>
    </bean>

    <!-- Message source for this context, loaded from localized "message_xx" files -->
    <bean id="messageSource" class="org.springframework.context.support.Resourc eBundleMessageSource">
    <property name="basenames">
    <list>
    <value>messageTiles</value>
    <value>messageFtl</value>
    </list>
    </property>
    </bean>

    <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverM anagerDataSource">
    <property name="driverClassName"><value>${db.driverClassName }</value></property>
    <property name="url"><value>jdbc:${db}://${db.host}/${db.url}</value></property>
    <property name="username"><value>${db.user}</value></property>
    <property name="password"><value>${db.password}</value></property>
    </bean>


    <bean id="sessionFactory" class="org.springframework.orm.hibernate.LocalSess ionFactoryBean">
    <property name="dataSource"><ref local="dataSource"/></property>
    <property name="mappingResources">
    <list>
    <value>TestUser.hbm.xml</value>
    </list>
    </property>
    <property name="hibernateProperties">
    <props>
    <prop key="hibernate.dialect">${hibernate.dialect}</prop>
    </props>
    </property>
    </bean>

    <bean id="transactionManager" class="org.springframework.orm.hibernate.Hibernate TransactionManager">
    <property name="sessionFactory"><ref local="sessionFactory"/></property>
    </bean>

    <!-- BEGIN dao bean -->
    <bean id="userTarget" class="web.webmodule.info.dao.UserDaoImpl">
    <property name="sessionFactory"><ref local="sessionFactory"/></property>
    <property name="baseDao"><ref local="BaseTarget"/></property>
    </bean>

    <bean id="base" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager"><ref local="transactionManager"/></property>
    <property name="target"><ref local="BaseTarget"/></property>
    <property name="transactionAttributes">
    <props>
    <prop key="get*">PROPAGATION_REQUIRED,readOnly</prop>
    <prop key="find*">PROPAGATION_REQUIRED,readOnly</prop>
    <prop key="load*">PROPAGATION_REQUIRED,readOnly</prop>
    <prop key="store*">PROPAGATION_REQUIRED</prop>
    <prop key="update*">PROPAGATION_REQUIRED</prop>
    <prop key="delete*">PROPAGATION_REQUIRED</prop>
    </props>
    </property>
    </bean>
    <bean id="BaseTarget" class="web.webmodule.framework.dao.BaseDaoImpl">
    <property name="sessionFactory"><ref local="sessionFactory"/></property>
    </bean>
    <!-- END dao bean -->
    </beans>

  3. #3
    Join Date
    Aug 2004
    Location
    London, UK
    Posts
    339

    Default

    your original post shows the exception occurring loading the webPS-servlet.xml file - are you sure that's the file you posted? It looks more like an application context file.

    Regards,
    Darren Davison.
    Public Key: 0xE855B3EA

Similar Threads

  1. Replies: 3
    Last Post: Oct 5th, 2005, 08:39 AM
  2. Context initialization failed
    By kanonmicke in forum Container
    Replies: 7
    Last Post: Sep 29th, 2005, 12:35 AM
  3. Odd behaviour when injecting TransactionTemplate
    By damon311 in forum Container
    Replies: 3
    Last Post: Jul 23rd, 2005, 11:21 AM
  4. Replies: 0
    Last Post: Jul 11th, 2005, 05:49 PM
  5. Replies: 3
    Last Post: Nov 8th, 2004, 07:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •