WSDL generation failed when deploy a web service application if jdk path contains space ---------------------------------------------------------------------------------------
Key: GERONIMO-6304 URL: https://issues.apache.org/jira/browse/GERONIMO-6304 Project: Geronimo Issue Type: Bug Security Level: public (Regular issues) Components: deployment, OpenEJB Affects Versions: 3.0-beta-1 Environment: windows IBM jdk sr10 Reporter: Tina Li Priority: Minor 1. create a simple web service project like this: package org.apache.test; import javax.ejb.Stateless; import javax.jws.WebService; import javax.jws.WebResult; import javax.jws.WebParam; import javax.jws.WebMethod; import javax.jws.soap.SOAPBinding; @WebService(serviceName="WebServiceExample", name="Echo") @SOAPBinding(style = SOAPBinding.Style.DOCUMENT) @Stateless public class EchoBean { @WebMethod(operationName="EchoMessage") @WebResult(name = "EchoResult") public String echo(@WebParam(name = "Message") String message){ return message; } } 2.Using the jdk home with space 3.Deploy this project through gep or export this project as a jar file then deploy it to the server 4.Then pops up error: 2012-03-20 14:12:55,404 WARN [AdminObjectRefBuilder] Failed to build reference to resource env reference [java:comp/BeanManager] defined in plan file. The corresponding entry in Geronimo deployment descriptor is missing. Process output: {}Exception in thread "main" java.lang.NoClassDefFoundError: Files\IBM\Java60\jre\lib\endorsed Caused by: java.lang.ClassNotFoundException: Files\IBM\Java60\jre\lib\endorsed at java.net.URLClassLoader.findClass(URLClassLoader.java:434) at java.lang.ClassLoader.loadClass(ClassLoader.java:660) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358) at java.lang.ClassLoader.loadClass(ClassLoader.java:626) Could not find the main class: Files\IBM\Java60\jre\lib\endorsed. Program will exit. 2012-03-20 14:12:57,477 ERROR [EjbModuleBuilder] JAXWSEJBModuleBuilderExtension.addGBeans() failed: WSDL generation failed org.apache.geronimo.common.DeploymentException: WSDL generation failed at org.apache.geronimo.jaxws.sun.tools.WsdlGenerator.generateWsdl(WsdlGenerator.java:176) at org.apache.geronimo.jaxws.sun.tools.SunWsdlGenerator.generateWsdl(SunWsdlGenerator.java:34) at org.apache.geronimo.axis2.builder.Axis2Builder.initialize(Axis2Builder.java:153) at org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.configureEJB(JAXWSServiceBuilder.java:378) at org.apache.geronimo.jaxws.ejb.builder.JAXWSEJBModuleBuilderExtension.addGBeans(JAXWSEJBModuleBuilderExtension.java:249) at org.apache.geronimo.openejb.deployment.EjbModuleBuilder.doAddGBeans(EjbModuleBuilder.java:1247) at org.apache.geronimo.openejb.deployment.EjbModuleBuilder.addGBeans(EjbModuleBuilder.java:1151) at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.addGBeans(TomcatModuleBuilder.java:700) at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans(SwitchingModuleBuilder.java:174) at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:763) at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:255) at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:140) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:611) 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.kernel.KernelGBean.invoke(KernelGBean.java:344) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:611) 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.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBridge.java:172) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:848) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:773) at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1438) at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:83) at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1276) at java.security.AccessController.doPrivileged(AccessController.java:284) at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1378) at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:799) at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:611) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322) at sun.rmi.transport.Transport$1.run(Transport.java:171) at java.security.AccessController.doPrivileged(AccessController.java:284) at sun.rmi.transport.Transport.serviceCall(Transport.java:167) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:547) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:802) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:661) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919) at java.lang.Thread.run(Thread.java:736) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira