It seems like JDK tools.jar not visible to Tomcat classlaoder you can get rid of these issues by coping tools.jar into a lib directory of the Tomcat server. But I think we need to find a proper solution for this issue instead of workarounds.
Thanks ! On Mon, Mar 26, 2012 at 10:08 PM, Stadelmann Josef <josef.stadelm...@axa-winterthur.ch> wrote: > Hi developer of java_first_jaxws > > When I have the default axis2.xml java_first_jaxws example built, the jar > deploys correct !!! (as shown in the second output toward the end of the > e-mail-) > > but then I can't get a wsdl for > http://C036357:8080/axis2/service/HelloWorld?wsdl, only an error message. > > (This was already mentione at least one times long time ago by others, but > no reactions since from developers) > > when I set "<parameter name="useGeneratedWSDLinJAXWS">true</parameter>" I > get the error below when I start my Tomcat on Vista > > which jar file is missing to a axis2-1.6.1 installation if I get " > java.lang.NoClassDefFoundError: com/sun/xml/ws/api/server/Container" > > My java used is jdk1.6.0_30, > > Are there some jars used by axis2 already used at a different version by > Tomcat? . . . gues sommmmewhere I have seen a e-mail like that but can't > remember me where. > > with > > "<parameter name="useGeneratedWSDLinJAXWS">true</parameter>" that is the > result when Tomcat starts. > > INFO: Deploying web application archive axis2-1.6.1.war > > [INFO] Clustering has been disabled > > [INFO] Deploying module: addressing-1.6.1 - file:/C:/Program Files/Apache > Software Foundation/Apache Tomcat > 6.0.26/webapps/axis2-1.6.1/WEB-INF/modules/addressing-1.6.1.mar > > [INFO] Deploying module: jaxws-1.6.1 - file:/C:/Program Files/Apache > Software Foundation/Apache Tomcat > 6.0.26/webapps/axis2-1.6.1/WEB-INF/modules/axis2-jaxws-mar-1.6.1.mar > > [INFO] Deploying module: metadataExchange-1.6.1 - file:/C:/Program > Files/Apache Software Foundation/Apache Tomcat > 6.0.26/webapps/axis2-1.6.1/WEB-INF/modules/mex-1.6.1.mar > > [INFO] Deploying module: mtompolicy-1.6.1 - file:/C:/Program Files/Apache > Software Foundation/Apache Tomcat > 6.0.26/webapps/axis2-1.6.1/WEB-INF/modules/mtompolicy-1.6.1.mar > > [INFO] Deploying module: ping-1.6.1 - file:/C:/Program Files/Apache Software > Foundation/Apache Tomcat > 6.0.26/webapps/axis2-1.6.1/WEB-INF/modules/ping-1.6.1.mar > > [INFO] Deploying module: script-1.6.1 - file:/C:/Program Files/Apache > Software Foundation/Apache Tomcat > 6.0.26/webapps/axis2-1.6.1/WEB-INF/modules/scripting-1.6.1.mar > > [INFO] Deploying module: soapmonitor-1.6.1 - file:/C:/Program Files/Apache > Software Foundation/Apache Tomcat > 6.0.26/webapps/axis2-1.6.1/WEB-INF/modules/soapmonitor-1.6.1.mar > > [INFO] Deploying Web service: version-1.6.1.aar - file:/C:/Program > Files/Apache Software Foundation/Apache Tomcat > 6.0.26/webapps/axis2-1.6.1/WEB-INF/services/version-1.6.1.aar > > [INFO] Deploying artifact : C:\Program Files\Apache Software > Foundation\Apache Tomcat > 6.0.26\webapps\axis2-1.6.1\WEB-INF\servicejars\java_first_jaxws-1.6.1.jar > > [ERROR] Error occurred generating WSDL file for Web service implementation > class {demo.hw.server.HelloWorldImpl} > > java.lang.NoClassDefFoundError: com/sun/xml/ws/api/server/Container > > at java.lang.Class.getDeclaredMethods0(Native Method) > > at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) > > at java.lang.Class.getMethod0(Class.java:2670) > > at java.lang.Class.getMethod(Class.java:1603) > > at > org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.generateWsdl(JAXWSRIWSDLGenerator.java:179) > > at > org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.initialize(JAXWSRIWSDLGenerator.java:390) > > at > org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.getWSDL(JAXWSRIWSDLGenerator.java:383) > > at > org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.buildAxisServiceFromGeneratedWSDL(EndpointDescriptionImpl.java:1054) > > at > org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.setupAxisServiceFromDBL(EndpointDescriptionImpl.java:879) > > at > org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.<init>(EndpointDescriptionImpl.java:406) > > at > org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.<init>(ServiceDescriptionImpl.java:401) > > at > org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.<init>(ServiceDescriptionImpl.java:297) > > at > org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescriptionFromDBCMap(DescriptionFactoryImpl.java:255) > > at > org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescriptionFromDBCMap(DescriptionFactoryImpl.java:327) > > at > org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescription(DescriptionFactoryImpl.java:216) > > at > org.apache.axis2.jaxws.description.DescriptionFactory.createAxisService(DescriptionFactory.java:564) > > at > org.apache.axis2.jaxws.framework.JAXWSDeployer.createAxisService(JAXWSDeployer.java:257) > > at > org.apache.axis2.jaxws.framework.JAXWSDeployer.deployClasses(JAXWSDeployer.java:208) > > at > org.apache.axis2.jaxws.framework.JAXWSDeployer.deploy(JAXWSDeployer.java:162) > > at > org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136) > > at > org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:813) > > at > org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144) > > at > org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:370) > > at > org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254) > > at > org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:142) > > at > org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:283) > > at > org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95) > > at > org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:584) > > at > org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:454) > > at > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173) > > at > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993) > > at > org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187) > > at > org.apache.catalina.core.StandardContext.start(StandardContext.java:4496) > > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) > > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) > > at > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546) > > at > org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905) > > at > org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740) > > at > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500) > > at > org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) > > at > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) > > at > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) > > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) > > at > org.apache.catalina.core.StandardHost.start(StandardHost.java:785) > > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) > > at > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) > > at > org.apache.catalina.core.StandardService.start(StandardService.java:519) > > at > org.apache.catalina.core.StandardServer.start(StandardServer.java:710) > > at org.apache.catalina.startup.Catalina.start(Catalina.java:581) > > 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.catalina.startup.Bootstrap.start(Bootstrap.java:289) > > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) > > Caused by: java.lang.ClassNotFoundException: > com.sun.xml.ws.api.server.Container > > at > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1516) > > at > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361) > > ... 55 more > > [INFO] Exception creating Axis Service : java.lang.NoClassDefFoundError: > com/sun/xml/ws/api/server/Container > > javax.xml.ws.WebServiceException: Error occurred generating WSDL file for > Web service implementation class {demo.hw.server.HelloWorldImpl} > > at > org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.generateWsdl(JAXWSRIWSDLGenerator.java:198) > > at > org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.initialize(JAXWSRIWSDLGenerator.java:390) > > at > org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.getWSDL(JAXWSRIWSDLGenerator.java:383) > > at > org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.buildAxisServiceFromGeneratedWSDL(EndpointDescriptionImpl.java:1054) > > at > org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.setupAxisServiceFromDBL(EndpointDescriptionImpl.java:879) > > at > org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.<init>(EndpointDescriptionImpl.java:406) > > at > org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.<init>(ServiceDescriptionImpl.java:401) > > at > org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.<init>(ServiceDescriptionImpl.java:297) > > at > org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescriptionFromDBCMap(DescriptionFactoryImpl.java:255) > > at > org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescriptionFromDBCMap(DescriptionFactoryImpl.java:327) > > at > org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescription(DescriptionFactoryImpl.java:216) > > at > org.apache.axis2.jaxws.description.DescriptionFactory.createAxisService(DescriptionFactory.java:564) > > at > org.apache.axis2.jaxws.framework.JAXWSDeployer.createAxisService(JAXWSDeployer.java:257) > > at > org.apache.axis2.jaxws.framework.JAXWSDeployer.deployClasses(JAXWSDeployer.java:208) > > at > org.apache.axis2.jaxws.framework.JAXWSDeployer.deploy(JAXWSDeployer.java:162) > > at > org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136) > > at > org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:813) > > at > org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144) > > at > org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:370) > > at > org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254) > > at > org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:142) > > at > org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:283) > > at > org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95) > > at > org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:584) > > at > org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:454) > > at > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173) > > at > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993) > > at > org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187) > > at > org.apache.catalina.core.StandardContext.start(StandardContext.java:4496) > > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) > > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) > > at > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546) > > at > org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905) > > at > org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740) > > at > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500) > > at > org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) > > at > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) > > at > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) > > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) > > at > org.apache.catalina.core.StandardHost.start(StandardHost.java:785) > > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) > > at > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) > > at > org.apache.catalina.core.StandardService.start(StandardService.java:519) > > at > org.apache.catalina.core.StandardServer.start(StandardServer.java:710) > > at org.apache.catalina.startup.Catalina.start(Catalina.java:581) > > 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.catalina.startup.Bootstrap.start(Bootstrap.java:289) > > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) > > Caused by: java.lang.NoClassDefFoundError: > com/sun/xml/ws/api/server/Container > > at java.lang.Class.getDeclaredMethods0(Native Method) > > at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) > > at java.lang.Class.getMethod0(Class.java:2670) > > at java.lang.Class.getMethod(Class.java:1603) > > at > org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.generateWsdl(JAXWSRIWSDLGenerator.java:179) > > ... 50 more > > Caused by: java.lang.ClassNotFoundException: > com.sun.xml.ws.api.server.Container > > at > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1516) > > at > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361) > > ... 55 more > > [ERROR] Error: > > No @WebService annotated service implementations found in the jar: > file:/C:/Program Files/Apache Software Foundation/Apache Tomcat > 6.0.26/webapps/axis2-1.6.1/WEB-INF/servicejars/java_first_jaxws-1.6.1.jar. > Service deployment failed. > > 26.03.2012 18:08:42 org.apache.catalina.startup.HostConfig deployWAR > > INFO: Deploying web application archive axis2.war > > > > But when said parameter is false I get a perfect deployment. But just so far > perfect as I still can't get a a wsdl info when asked by …. ?wsdl > > [INFO] Deploying Web service: version-1.6.1.aar - file:/C:/Program > Files/Apache Software Foundation/Apache Tomcat > 6.0.26/webapps/axis2-1.6.1/WEB-INF/services/version-1.6.1.aar > > [INFO] Deploying artifact : C:\Program Files\Apache Software > Foundation\Apache Tomcat > 6.0.26\webapps\axis2-1.6.1\WEB-INF\servicejars\java_first_jaxws-1.6.1.jar > > 26.03.2012 18:20:28 org.apache.catalina.startup.HostConfig deployWAR > > INFO: Deploying web application archive axis2.war > > [INFO] Deploying JAXWS annotated class demo.hw.server.HelloWorldImpl as a > service - HelloWorld > > log4j: Parsing for [root] with value=[INFO, CONSOLE, TC_CHAINSAW]. > > Sorry, but I was digging into axis2 code for hours, and so far, I can't > figure out, what makes it fail, but I have to spend more time if no clever > answer is found soon from developers. > > Josef -- Sagara Gunathunga Blog - http://ssagara.blogspot.com Web - http://people.apache.org/~sagara/ LinkedIn - http://www.linkedin.com/in/ssagara --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org For additional commands, e-mail: java-user-h...@axis.apache.org