METRO2.0 JAX-WS weblogic12c . START UP fail

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

METRO2.0 JAX-WS weblogic12c . START UP fail

Tom123Tom
This post has NOT been accepted by the mailing list yet.
HI,to use METRO2.0 AND jax-ws under weblogic12c, start up error:
<BEA-160223> <The resource-env-ref 'com.PaymentSerProvider/wsContext' declared in the standard descriptor or annotation has no JNDI name mapped to it. The resource-env-ref must be mapped to a JNDI name using the resource-env-description element of the weblogic proprietary descriptor or corresponding annotation.> 



PaymentSerProvider code :
@ServiceMode(value = javax.xml.ws.Service.Mode.MESSAGE)
@WebServiceProvider(serviceName = "PaymentSer", portName = "PaymentSerSOAP")
public class PaymentSerProvider implements Provider<SOAPMessage> {

        @Resource
        WebServiceContext wsContext;
        /*
         * (non-Javadoc)
         *
         * @see javax.xml.ws.Provider#invoke(java.lang.Object)
         */
        public SOAPMessage invoke(SOAPMessage source) {


info: WSSERVLET14: JAX-WS servlet initialize
<2013-12-4 > <Warning> <HTTP> <BEA-101372> <There was a failure in application ServletContext@1488997419[app:wb module:/ path:null spec-version:3.0] when attempting to inject dependencies into com.PaymentSerProvider. Dependencies will not be injected into this class.
com.bea.core.repackaged.springframework.beans.factory.BeanCreationException: Dependency injection failure: can't find the bean definition about class interface javax.xml.ws.WebServiceContext; nested exception is com.bea.core.repackaged.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [javax.xml.ws.WebServiceContext] is defined: No beans of type javax.xml.ws.WebServiceContext; owner=com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@77f5f74a: display name [com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@77f5f74a]; startup date [Wed Dec 04 17:37:48 CST 2013]; parent: com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@14beb6
        at com.oracle.pitchfork.inject.Jsr250Metadata.applyInjections(Jsr250Metadata.java:234)
        at com.oracle.pitchfork.inject.Jsr250Metadata.inject(Jsr250Metadata.java:219)
        at weblogic.servlet.internal.WebComponentContributor.inject(WebComponentContributor.java:289)
        at weblogic.servlet.internal.WebComponentContributor.getNewInstance(WebComponentContributor.java:239)
        at weblogic.servlet.internal.WebComponentContributor.getNewInstance(WebComponentContributor.java:229)
        Truncated. see log file for complete stacktrace
Caused By: com.bea.core.repackaged.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [javax.xml.ws.WebServiceContext] is defined: No beans of type javax.xml.ws.WebServiceContext; owner=com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@77f5f74a: display name [com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@77f5f74a]; startup date [Wed Dec 04 17:37:48 CST 2013]; parent: com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@14beb6
        at com.oracle.pitchfork.inject.Jsr250Metadata.getUniqueInstanceOfType(Jsr250Metadata.java:351)
        at com.oracle.pitchfork.inject.Jsr250Metadata.resolveByType(Jsr250Metadata.java:345)
        at com.oracle.pitchfork.inject.Jsr250Metadata.resolve(Jsr250Metadata.java:275)
        at com.oracle.pitchfork.inject.Jsr250Metadata.applyInjections(Jsr250Metadata.java:228)
        at com.oracle.pitchfork.inject.Jsr250Metadata.inject(Jsr250Metadata.java:219)
        Truncated. see log file for complete stacktrace

<2013-12-4 > <Error> <HTTP> <BEA-101126> <[ServletContext@1488997419[app:wb module:/ path:null spec-version:3.0]] Error casting servlet: "com.PaymentSerProvider" to javax.servlet.Servlet
java.lang.ClassCastException: com.PaymentSerProvider cannot be cast to javax.servlet.Servlet
        at weblogic.servlet.internal.WebComponentContributor.createServletInstance(WebComponentContributor.java:258)
        at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.newServletInstanceIfNecessary(StubSecurityHelper.java:320)
        at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:273)
        at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:250)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        Truncated. see log file for complete stacktrace
>
<2013-12-4 > <Error> <HTTP> <BEA-101216> <Servlet: "com.PaymentSerProvider" failed to preload on startup in Web application: "/".
javax.servlet.ServletException: Servlet class: 'com.PaymentSerProvider' does not implement javax.servlet.Servlet
        at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:292)
        at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:250)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
        Truncated. see log file for complete stacktrace
Loading...