Java - problema spring arrancando tomcat

   
Vista:

problema spring arrancando tomcat

Publicado por julian (7 intervenciones) el 12/02/2013 09:18:19
Buenos días,

tengo un problema al arrancar el tomcat me da el siguiente error:

[main] ERROR org.springframework.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ISLManager' defined in class path resource [META-INF/spring/applicationContext-ISL.xml]: Cannot resolve reference to bean 'islSpringIntegrationWS' while setting bean property 'registeredServices' with key [TypedStringValue: value [webservice], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'islSpringIntegrationWS' defined in class path resource [META-INF/spring/applicationContext-ISL.xml]: Cannot resolve reference to bean 'islWsBuilderFactory' while setting bean property 'messageFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'islWsBuilderFactory' defined in class path resource [META-INF/spring/applicationContext-ISL.xml]: Cannot resolve reference to bean 'wsConnectionsHandler' while setting bean property 'wsConnectionsHandler'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'wsConnectionsHandler' defined in class path resource [META-INF/spring/applicationContext-ISL.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [spring.integration.isl.bean.integration.ws.WsConnectionsHandler]: Constructor threw exception; nested exception is java.util.MissingResourceException: Can't find bundle for base name webService, locale en_US
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedMap(BeanDefinitionValueResolver.java:383)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:161)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1308)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1067)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:562)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:872)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

en el fichero apliccationContex_ISl.xml, tengo lo siguiente:


<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:sec="http://www.springframework.org/schema/security"
xmlns:util="http://www.springframework.org/schema/util" xmlns:task="http://www.springframework.org/schema/task"
xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context"
xmlns:jee="http://www.springframework.org/schema/jee" xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:int="http://www.springframework.org/schema/integration"
xmlns:ws="http://www.springframework.org/schema/integration/ws"
xmlns:stream="http://www.springframework.org/schema/integration/stream"
xsi:schemaLocation="http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd http://www.springframework.org/schema/integration/ws http://www.springframework.org/schema/integration/ws/spring-integration-ws.xsd http://www.springframework.org/schema/integration/stream http://www.springframework.org/schema/integration/stream/spring-integration-stream.xsd">

<!-- Configuracion de SPRING y endPoints asociados -->
<bean class="integration.services.layer.ISLEntryPoint" id="ISLManager" name="ISLManager" >
<property name="registeredServices">
<map>
<entry key="webservice" value-ref="islSpringIntegrationWS" />
</map>
</property>
</bean>

<!-- Configuracion del canal para Web Services -->
<int:channel id="wsChannel" />
<bean id="wsConnectionsHandler" class="spring.integration.isl.bean.integration.ws.WsConnectionsHandler" />
<int:gateway id="islWsGateway"
service-interface="spring.integration.isl.bean.integration.MessageProcessingBean"
default-request-channel="wsChannel" />
<bean id="islWsBuilderFactory" class="spring.integration.isl.bean.integration.ws.PropertyBasedWSMessageBuilderFactory">
<property name="wsConnectionsHandler" ref="wsConnectionsHandler" />
<property name="realFactory">
<bean class="spring.integration.isl.bean.integration.xml.XMLMessageBuilderFactory" >
<property name="xmlMapFactory">
<bean class="spring.integration.isl.bean.integration.ws.PropertyBasedWSMapBuilderFactory">
<property name="wsConnectionsHandler" ref="wsConnectionsHandler" />
</bean>
</property>
</bean>
</property>
</bean>
<bean id="islWsWrapperFactory" class="spring.integration.isl.bean.integration.WrapperExtractorFactory">
<property name="realFactory">
<bean class="spring.integration.isl.bean.integration.xml.XMLMessageExtractorFactory" />
</property>
</bean>
<bean id="islWsBeanProxy" class="spring.integration.isl.bean.integration.MessageProcessingProxy">
<property name="bean" ref="islWsGateway" />
</bean>
<bean id="islSpringIntegrationWS" class="spring.integration.isl.bean.ISLBeanServiceFactory">
<property name="processingBean" ref="islWsBeanProxy" />
<property name="messageFactory" ref="islWsBuilderFactory" />
<property name="returnFactory" ref="islWsWrapperFactory" />
<property name="keyMapper">
<bean class="spring.integration.isl.bean.utils.FieldStructKeyMapper" />
</property>
</bean>

<!-- Destinatarios de los Web Services (al menos uno por url destino) -->
<bean id="wsDestinationProviderITSMBUSCAINCIDENCIA" factory-bean="wsConnectionsHandler" factory-method="getDestinationProvider">
<constructor-arg type="java.lang.String" value="ITSMBUSCAINCIDENCIA" />
</bean>
<bean id="wsRequestCallbackITSMBUSCAINCIDENCIA" factory-bean="wsConnectionsHandler" factory-method="getMessageCallback">
<constructor-arg type="java.lang.String" value="ITSMBUSCAINCIDENCIA" />
</bean>
<ws:outbound-gateway request-channel="wsChannel"
destination-provider="wsDestinationProviderITSMBUSCAINCIDENCIA"
ignore-empty-responses="false"
request-callback="wsRequestCallbackITSMBUSCAINCIDENCIA"/>

</beans>

Por favor alguien me puede echar una mano.

Gracias.

Un saludo.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

problema spring arrancando tomcat

Publicado por Carlos (16 intervenciones) el 12/02/2013 13:51:13
Parece que no encuentra los beans....Yo apuntaria a que no es capaz de localizar las dependencias del proyecto. Si usas maven revisa la configuracion de las dependencias y las versiones (normalmente si esta bien, un "mvn clena install" lo suele solucionar).

Tambien echaria un ojo al classpath y que los proyectos dependientes exporten los jars que contienen esas clases.

Si tienes un proyecto llamado "core" que tiene las dependencias de spring e implementaciones de esats clases, y lo usas en otro proyecto, asegurate de que core.jar lleva consigo tanto las dependencias de spring como estas clases.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar