0 Replies Latest reply on May 10, 2010 8:54 PM by 843833

    Metro WS work on tomcat but doens't deploy on glassfish

    843833
      HI folk,
      i have a webapp war that has various apple and a webservice made with metro tecnology. I have created by hand the web.xml and sun-jaxws.xml as follow:

      web.xml:
      <listener>
                <listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListener</listener-class>
           </listener>
           <servlet>
                <servlet-name>WSApiCallInterface</servlet-name>
                <servlet-class>com.sun.xml.ws.transport.http.servlet.WSServlet</servlet-class>
                <load-on-startup>1</load-on-startup>
           </servlet>
           <servlet-mapping>
                <servlet-name>WSApiCallInterface</servlet-name>
                <url-pattern>/WSApiCallInterface/*</url-pattern>
           </servlet-mapping>

      sun-jaxws.xml:
      <?xml version="1.0" encoding="UTF-8"?>
      <endpoints xmlns="http://java.sun.com/xml/ns/jax-ws/ri/runtime"
           version="2.0">
           <endpoint name="WSApiCallInterface" implementation="org.ref.server.slfservletadaptor.WSApiCallInterface"
                url-pattern="/WSApiCallInterface/*" />
      </endpoints>

      the WSApiCallInterface is:
      @HttpSessionScope
      @WebService
      public class WSApiCallInterface {
           @Resource
           WebServiceContext                    wsCtxt;

           /*
           * @Resource private WebServiceContext wsContext;
           */

           @WebMethod(action="executeApi")
           public @WebResult(name = "refApiSerializedOutput")
           String executeApi(@WebParam(name = "refApiGroupName") String apiGroupName, @WebParam(name = "refApiName") String apiName, @WebParam(name = "refApiParamsXmlSerialized") String apiSerializedParameter) {
      ....
      ....
      ..
      ..
                return serializedResult;
           }

      When i deploy the war on tomcat it work very wel(after i install metro on tomcat, but when i try to deploy on glassfish(without WS it work) i have the next error:

      INFO: SMGT0007: Self Management Rules service is enabled
      INFO: Application server startup complete.

      INFO: deployed with moduleid = WebApp
      SEVERE: WEB0123: WebModule [WebApp] failed to deploy and has been disabled
      java.lang.IllegalArgumentException: [oracle.jdbc.pool.OracleDataSource] is not an allowed property value type
           at com.sun.enterprise.deployment.ResourceReferenceDescriptor.checkType(ResourceReferenceDescriptor.java:492)
           ......
           at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
           at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116)


      INFO: WSSERVLET12: JAX-WS context listener initializing
      SEVERE: WSSERVLET11: failed to parse runtime descriptor: java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.ws.util.xml.XmlUtil
      java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.ws.util.xml.XmlUtil
           at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.createEntityResolver(DeploymentDescriptorParser.java:402)
           at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:253)
           .....
           at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
           at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
           at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116)

      SEVERE: WebModule[WebApp]PWC1275: Exception sending context initialized event to listener instance of class com.sun.xml.ws.transport.http.servlet.WSServletContextListener
      com.sun.xml.ws.transport.http.servlet.WSServletException: WSSERVLET11: failed to parse runtime descriptor: java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.ws.util.xml.XmlUtil
           at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:118)
           ....
           at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:108)
           ... 72 more

      SEVERE: PWC1306: Startup of context /GODiVA failed due to previous errors
      INFO: WSSERVLET13: JAX-WS context listener destroyed

      INFO: classLoader = WebappClassLoader
      delegate: true
      repositories:
      /WEB-INF/classes/
      ----------> Parent Classloader:
      EJBClassLoader :
      urlSet = []
      doneCalled = false
      Parent -> java.net.URLClassLoader@6eef4599

      INFO: SharedSecrets.getJavaNetAccess()=java.net.URLClassLoader$7@3c066c23

      thank you in advanced