Announcement Announcement Module
Collapse
No announcement yet.
Please help me with the exception? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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>

    Comment


    • #3
      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,

      Comment

      Working...
      X