|
| Weblogic 10.3TP, JAX-WS and Spring integration |
 |
Thu, 6 Dec 2007 00:53:16 -0800 |
Hi all
We are using JAX-WS and Spring (2.0.6) and our target platform will be Weblogic
10.3. We would like to benefit from Spring injection in our web service classes.
However I cannot get it to work. I follow the instructions described here: [url
https://jax-ws-commons.dev.java.net/spring]https://jax-ws-commons.dev.java.net/s
pring[/url] and I use version 1.7 of jaxws-spring
When deploying the sample project I get the following error:
[pre]
2007-12-06 09:28:42,238 ERROR [org.springframework.web.context.ContextLoader] -
Context initialization failed
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name
'com.sun.xml.ws.transport.http.servlet.SpringBinding' defined in ServletContext
resource [/WEB-INF/applicationContext.xml]:
Cannot create inner bean '(inner bean)' of type
[org.jvnet.jax_ws_commons.spring.SpringService] while setting bean property
'service';
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name '(inner bean)': FactoryBean threw exception on
object creation;
nested exception is java.lang.ClassCastException:
org.jvnet.jax_ws_commons.spring.SpringService$ContainerWrapper cannot be cast to
weblogic.wsee.jaxws.WLSContainer
Caused by:
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name '(inner bean)': FactoryBean threw exception on object creation;
nested exception is java.lang.ClassCastException:
org.jvnet.jax_ws_commons.spring.SpringService$ContainerWrapper cannot be cast to
weblogic.wsee.jaxws.WLSContainer
Caused by:
java.lang.ClassCastException:
org.jvnet.jax_ws_commons.spring.SpringService$ContainerWrapper cannot be cast to
weblogic.wsee.jaxws.WLSContainer
at
weblogic.wsee.jaxws.framework.policy.WSDLGeneratorExtension.start(WSDLGeneratorE
xtension.java:113)
at
com.sun.xml.ws.wsdl.writer.WSDLGeneratorExtensionFacade.start(WSDLGeneratorExten
sionFacade.java:67)
at
com.sun.xml.ws.wsdl.writer.WSDLGenerator.generateDocument(WSDLGenerator.java:353
)
at
com.sun.xml.ws.wsdl.writer.WSDLGenerator.doGeneration(WSDLGenerator.java:276)
at
com.sun.xml.ws.server.EndpointFactory.generateWSDL(EndpointFactory.java:427)
at
com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:196)
at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:467)
at
org.jvnet.jax_ws_commons.spring.SpringService.getObject(SpringService.java:333)
at
org.jvnet.jax_ws_commons.spring.SpringService.getObject(SpringService.java:45)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getObjectFromFacto
ryBean(AbstractBeanFactory.java:1236)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanIn
stance(AbstractBeanFactory.java:1207)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInn
erBean(BeanDefinitionValueResolver.java:219)
...
[/pre]
It sounds like JAX-WS - Spring integration is not supported in Weblogic 10.3TP.
Has anyone been able to get the sample project working?
Does anyone know if the final version of Weblogic 10.3 will have JAX-WS Spring
injection support?
Thanks
|
| Post Reply
|
|
|
|
|
|
|
|
|
|