Geronimo
  1. Geronimo
  2. GERONIMO-6304

WSDL generation failed when deploy a web service application if jdk path contains space

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0-beta-1
    • Fix Version/s: 3.0.0, 4.0.0
    • Component/s: deployment, OpenEJB
    • Security Level: public (Regular issues)
    • Labels:
      None
    • Environment:

      windows
      IBM jdk sr10

    • Patch Info:
      Patch Available

      Description

      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.Try to access the url: http://localhost:8080/WebServiceExample/Echo?WSDL,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)

      1. GERONIMO-6304.patch
        0.9 kB
        Tina Li
      2. testWebService.jar
        2 kB
        Tina Li

        Activity

        Hide
        Tina Li added a comment -

        Hi Forrest,
        The two scenarios have been tested and all work well.

        Thank you!

        Show
        Tina Li added a comment - Hi Forrest, The two scenarios have been tested and all work well. Thank you!
        Hide
        Forrest Xia added a comment -

        Tina, thank you for this patch, have you done any testing with this patch?

        1. In case the jdk path includes space chars
        2. In case the jdk path does not include space chars

        Show
        Forrest Xia added a comment - Tina, thank you for this patch, have you done any testing with this patch? 1. In case the jdk path includes space chars 2. In case the jdk path does not include space chars
        Hide
        Tina Li added a comment -

        Patch attached.Someone can help review and commit it?
        Thanks in advance!

        Show
        Tina Li added a comment - Patch attached.Someone can help review and commit it? Thanks in advance!
        Hide
        Tina Li added a comment -

        Attached the application

        Show
        Tina Li added a comment - Attached the application

          People

          • Assignee:
            Tina Li
            Reporter:
            Tina Li
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development