Announcement Announcement Module
Collapse
No announcement yet.
xpath and spring2.5.5 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • xpath and spring2.5.5

    hi all,
    i'm trying to use xpath in my ws-servlet to do the mapping using an xpath expression but when i deploy the ws into tomcat i have this error.
    Code:
    org.springframework.beans.factory.UnsatisfiedDependencyException
    is there any complete example to start with?
    thanks

  • #2
    hi again,
    i corrected my spring-ws-servlet.xml but when running i have this error.

    Code:
    org.springframework.context.ApplicationContextException: Could not find endpoint for key [STDOFFER]
    	org.springframework.ws.server.endpoint.mapping.AbstractMapBasedEndpointMapping.registerEndpoint(AbstractMapBasedEndpointMapping.java:145)
    	org.springframework.ws.server.endpoint.mapping.AbstractMapBasedEndpointMapping.initApplicationContext(AbstractMapBasedEndpointMapping.java:171)
    	org.springframework.context.support.ApplicationObjectSupport.setApplicationContext(ApplicationObjectSupport.java:73)
    	org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:72)
    	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:302)
    	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1168)
    	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)
    	org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)
    	org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)
    	org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)
    	org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
    	org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:291)
    	org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
    	org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:332)
    	org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:266)
    	org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:236)
    	org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:126)
    	javax.servlet.GenericServlet.init(GenericServlet.java:212)
    	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
    	org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    	org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    	java.lang.Thread.run(Thread.java:619)
    my spring-ws-servlet.xml is
    Code:
    <bean id="xpathPayloadMapping"
    		class="org.springframework.ws.server.endpoint.mapping.XPathPayloadEndpointMapping">
    		<property name="namespaces">
    			<props>
    				<prop key="http://www.exemple.com/ws/service"></prop>
    			</props>
    		</property>
    		<property name="expression" value="//expre/string(@id)" />
    
    		<property name="mappings">	
    			<props>
    				<prop key="alpha" >
    				class_1Endpoint
    				</prop>
    				<prop key="beta" >
    				class_2Endpoint
    				</prop>
    			</props>				
    		</property>
    		
    	</bean>
    
    	<bean id="class_1" 
    			class="com.exemple.service.endpoint.class_1Endpoint">
    	</bean>
    	<bean id="class_2"
    			class="com.exemple.service.endpoint.class_2Endpoint">
    	</bean>

    Comment

    Working...
    X