Error deploying CXF webservice for servlet x java.lang.ClassNotFoundException

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

Error deploying CXF webservice for servlet x java.lang.ClassNotFoundException

Saroj Das
Hi,
   After CXF webservice  implementation.I have  changed my web.xml.

<servlet>
        <display-name>CXF Servlet</display-name>
        <servlet-name>CXFServlet</servlet-name>
       
<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
      <servlet-mapping>
        <servlet-name>CXFServlet</servlet-name>
         <url-pattern>/</url-pattern>
    </servlet-mapping>

and bean.xml file
<import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
       
                <jaxws:endpoint id="cardservice"
                              implementor="com.xxx.XXXAuthorizationWS"
address="/xxx-service" >
                </jaxws:endpoint>

During deployement time.I am getting below issue
Error deploying CXF webservice for servlet com.xx.XXAuthorizationWS
java.lang.ClassNotFoundException: com.xx.XXAuthorizationWS
        at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1702)
        at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547)
        at
org.apache.tomee.catalina.LazyStopWebappClassLoader.loadClass(LazyStopWebappClassLoader.java:109)
        at
org.apache.openejb.server.webservices.WsService.afterApplicationCreated(WsService.java:383)
        at
org.apache.tomee.webservices.TomeeJaxWsService.afterApplicationCreated(TomeeJaxWsService.java:54)
        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.openejb.observer.ObserverManager$Observer.invoke(ObserverManager.java:149)
        at
org.apache.openejb.observer.ObserverManager.fireEvent(ObserverManager.java:69)
        at
org.apache.openejb.loader.SystemInstance.fireEvent(SystemInstance.java:108)
        at
org.apache.tomee.catalina.TomcatWebAppBuilder.afterStart(TomcatWebAppBuilder.java:1600)
        at
org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:113)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
        at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:168)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)

Already I have checked Tomee/webapps/WEB-INF/classes/XXAuthorizationWS.class
available.
Can you suggest how I will resolve the issue.




--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html