geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rastislav Cesnek (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GERONIMO-6437) @WebService POJO in WAR cannot load SEI from EAR/lib - deployment ClassNotFoundException
Date Wed, 13 Feb 2013 12:06:13 GMT
Rastislav Cesnek created GERONIMO-6437:
------------------------------------------

             Summary: @WebService POJO in WAR cannot load SEI from EAR/lib - deployment ClassNotFoundException
                 Key: GERONIMO-6437
                 URL: https://issues.apache.org/jira/browse/GERONIMO-6437
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: deployment
    Affects Versions: 3.0.0
         Environment: Windows 7 64x,
Oracle Java
java version "1.6.0_37"
Java(TM) SE Runtime Environment (build 1.6.0_37-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01, mixed mode)

            Reporter: Rastislav Cesnek
            Priority: Blocker


An anotated @WebService POJO located in WAR cannot load its SEI class located in EAR/lib folder
during deployment.
Depending on whether the WebService class implements the SEI interface or only names it in
the @WebService annotation, the exception is:

The application was not deployed.
com/test/ServiceInterface
java.lang.NoClassDefFoundError: com/test/ServiceInterface
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:615)

or (full from console):

The application was not deployed.
javax.xml.ws.WebServiceException: Failed to load SEI class: com.test.ServiceInterface
org.apache.geronimo.common.DeploymentException: javax.xml.ws.WebServiceException: Failed to
load SEI class: com.test.ServiceInterface
 at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:281)
 at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:140)
 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.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
 at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:131)
 at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:883)
 at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:245)
 at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116)
 at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:61)
 at java.lang.Thread.run(Thread.java:662)
Caused by: javax.xml.ws.WebServiceException: Failed to load SEI class: com.test.ServiceInterface
 at org.apache.geronimo.jaxws.handler.AnnotationHandlerChainFinder.findHandlerChainAnnotation(AnnotationHandlerChainFinder.java:121)
 at org.apache.geronimo.jaxws.handler.AnnotationHandlerChainFinder.buildHandlerChainFromClass(AnnotationHandlerChainFinder.java:53)
 at org.apache.geronimo.jaxws.handler.AnnotationHandlerChainFinder.buildHandlerChainFromClass(AnnotationHandlerChainFinder.java:98)
 at org.apache.geronimo.jaxws.builder.AdvancedWARWebServiceFinder.discoverPOJOWebServices(AdvancedWARWebServiceFinder.java:120)
 at org.apache.geronimo.jaxws.builder.AdvancedWARWebServiceFinder.discoverWebServices(AdvancedWARWebServiceFinder.java:44)
 at org.apache.geronimo.jaxws.builder.AdvancedWARWebServiceFinder.discoverWebServices(AdvancedWARWebServiceFinder.java:37)
 at org.apache.geronimo.jaxws.builder.WARWebServiceFinder.discoverWebServices(WARWebServiceFinder.java:51)
 at org.apache.geronimo.jaxws.builder.WARWebServiceFinder.discoverWebServices(WARWebServiceFinder.java:28)
 at org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.discoverWebServices(JAXWSServiceBuilder.java:245)
 at org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.findWebServices(JAXWSServiceBuilder.java:103)
 at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.postInitContext(TomcatModuleBuilder.java:454)
 at org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.initContext(AbstractWebModuleBuilder.java:437)
 at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.initContext(SwitchingModuleBuilder.java:168)
 at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:686)
 at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:256)
 ... 12 more
Caused by: java.lang.ClassNotFoundException: com.test.ServiceInterface in classloader null
 at org.apache.xbean.classloader.MultiParentClassLoader.doLoadClass(MultiParentClassLoader.java:228)
 at org.apache.xbean.classloader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:172)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
 at org.apache.geronimo.jaxws.handler.AnnotationHandlerChainFinder.findHandlerChainAnnotation(AnnotationHandlerChainFinder.java:119)
 ... 26 more


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message