Ola pessoal estou tendo problemas ao levantar o Spring, ja olhei meus arquivos de conf e pra mim esta tudo certo, mas toda vez que conf um novo projeto com Spring tenho alguma surpresa, segue abaixo minha conf , caso alguem possa me ajudar:
applicationContext-resorce.xml
<?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="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
<property name="url" value="jdbc:oracle:thin:@XXXXXXXX:1521:BD"/>
<property name="username" value="*******"/>
<property name="password" value="******"/>
</bean>
</beans>
applicationContext-hibernate.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<!-- Hibernate SessionFactory -->
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource" ref="dataSource"/>
<property name="mappingResources">
<list>
<value>hbm/apoioProtocolo.hbm.xml</value>
<value>hbm/assunto.hbm.xml</value>
<value>hbm/documentoEntregue.hbm.xml</value>
<value>hbm/dominioTipo.hbm.xml</value>
<value>hbm/protocolo.hbm.xml</value>
<value>hbm/tipo.hbm.xml</value>
<value>hbm/publicacao.hbm.xml</value>
<value>hbm/tramite.hbm.xml</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</prop>
<prop key="hibernate.show_sql">true</prop>
</props>
</property>
</bean>
<!-- Transaction manager for a single Hibernate SessionFactory (alternative to JTA) -->
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory" ref="sessionFactory"/>
</bean>
<bean id="genericDao" class="br.gov.mds.sicnas.persistencia.dao.GenericDAO">
<property name="sessionFactory" ref="sessionFactory"/>
</bean>
</beans>
applicationContext-service.xml
<?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="txProxyTemplate" abstract="true"
class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
<property name="transactionManager" ref="transactionManager"/>
<property name="transactionAttributes">
<props>
<prop key="save*">PROPAGATION_REQUIRED</prop>
<prop key="remove*">PROPAGATION_REQUIRED</prop>
<prop key="*">PROPAGATION_REQUIRED,readOnly</prop>
</props>
</property>
</bean>
</beans>
todos os xml estao no web.xml
<listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<!-- Context Configuration locations for Spring XML files -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext-resorce.xml
/WEB-INF/applicationContext-hibernate.xml
/WEB-INF/applicationContext-service.xml
/WEB-INF/ioc/apoioProtocolo.xml
/WEB-INF/ioc/protocolo.xml
/WEB-INF/ioc/tabelaApoio.xml
</param-value>
</context-param>
arror:
14/11/2006 09:33:01 org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
14/11/2006 09:33:01 org.apache.catalina.core.StandardContext start
SEVERE: Context [/sicnas] startup failed due to previous errors
14/11/2006 09:33:02 org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped already. Could not load java.net.URLConnection. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1238)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
alguem pode ajudar ??