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] [Updated] (GERONIMO-6437) @WebService POJO in WAR cannot load SEI from EAR/lib - deployment ClassNotFoundException
Date Wed, 13 Feb 2013 12:34:12 GMT

     [ https://issues.apache.org/jira/browse/GERONIMO-6437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rastislav Cesnek updated GERONIMO-6437:
---------------------------------------

    Environment: 
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.0

  was:
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)


    
> @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 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
>            Reporter: Rastislav Cesnek
>            Priority: Blocker
>         Attachments: geronimo.zip
>
>
> 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