Details
-
Bug
-
Status: Open
-
Blocker
-
Resolution: Unresolved
-
3.0.0
-
None
-
Security Level: public (Regular issues)
-
None
-
Windows 7 Professional x64 (Microsoft Windows [Version 6.1.7601]),
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)Using GERONIMO_HOME: C:\AS\geronimo-tomcat7-javaee6-3.0.0
Using GERONIMO_SERVER: C:\AS\geronimo-tomcat7-javaee6-3.0.0
Using GERONIMO_TMPDIR: C:\AS\geronimo-tomcat7-javaee6-3.0.0\var\temp
Using JRE_HOME: c:\Program Files\Java\jdk1.6.0_37\jre______ _
/ ___/__ _________ ____ ()___ ___ ____
/ / __ / _ \/ __/ __ \/ __ \/ // __ `_ \/ __ \
/ // // __/ / / // / / / / // / / / / / /_/ /
___/ _// ___// ///// // //___/Apache Geronimo (3.0.0)
Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or 'osgi:shutdown' to shutdown Geronimo.geronimo> Booting Geronimo Kernel (in Java 1.6.0_37)...
Starting Geronimo Application Server v3.0.0Windows 7 Professional x64 (Microsoft Windows [Version 6.1.7601] ), 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) Using GERONIMO_HOME: C:\AS\geronimo-tomcat7-javaee6-3.0.0 Using GERONIMO_SERVER: C:\AS\geronimo-tomcat7-javaee6-3.0.0 Using GERONIMO_TMPDIR: C:\AS\geronimo-tomcat7-javaee6-3.0.0\var\temp Using JRE_HOME: c:\Program Files\Java\jdk1.6.0_37\jre ______ _ / ___ / __ _________ ____ ( ) ___ ___ ____ / / __ / _ \/ __ / __ \/ __ \/ // __ ` _ \/ __ \ / / / // __/ / / / / / / / / // / / / / / /_/ / ___ / _ / / ___ / / / / // / / / / /_ __/ Apache Geronimo (3.0.0) Hit '<tab>' for a list of available commands and ' [cmd] --help' for help on a specific command. Hit '<ctrl-d>' or 'osgi:shutdown' to shutdown Geronimo. geronimo> Booting Geronimo Kernel (in Java 1.6.0_37)... Starting Geronimo Application Server v3.0.0
Description
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