Topic
2 replies Latest Post - ‏2012-02-22T08:27:27Z by R12F_Sabir_Ali
SystemAdmin
SystemAdmin
2233 Posts
ACCEPTED ANSWER

Pinned topic Deploying a JAX-WS web service (using Sun Metro JAX-WS) on WAS CE 2.1

‏2008-08-16T18:19:18Z |
Hopefully this might help someone else. It was originally posted at the WAS forum, not the WAS CE forum. However it is resolved. Required use of a Geronimo deployment plan - geronimo-web.xml

http://www-128.ibm.com/developerworks/forums/thread.jspa?threadID=219975&tstart=0
Updated on 2012-02-22T08:27:27Z at 2012-02-22T08:27:27Z by R12F_Sabir_Ali
  • Ashish_Jain
    Ashish_Jain
    274 Posts
    ACCEPTED ANSWER

    Re: Deploying a JAX-WS web service (using Sun Metro JAX-WS) on WAS CE 2.1

    ‏2008-08-26T08:14:16Z  in response to SystemAdmin
    Thank you for making this post.
    • R12F_Sabir_Ali
      R12F_Sabir_Ali
      3 Posts
      ACCEPTED ANSWER

      Re: Deploying a JAX-WS web service (using Sun Metro JAX-WS) on WAS CE 2.1

      ‏2012-02-22T08:27:27Z  in response to Ashish_Jain
      hi dear, here is my plan file /WEB-INF/geronimo-web.xml and looks like this:

      <?xml version="1.0" encoding="UTF-8"?>
      <web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1">
      <environment>
      <moduleId>
      <groupId>com.ilog.rules.sample</groupId>
      <artifactId>miniloan-war</artifactId>

      </moduleId>
      <dependencies>
      <dependency>
      <groupId>com.ilog.rules</groupId>
      <artifactId>xu</artifactId>
      </dependency>
      <dependency>
      <groupId>console.dbpool</groupId>
      <artifactId>jdbc_resdatasource</artifactId>
      </dependency>
      <dependency>
      <groupId>org.apache.myfaces.core</groupId>
      <artifactId>myfaces-api</artifactId>
      <version>1.2.6</version>
      <type>jar</type>
      </dependency>
      <dependency>
      <groupId>org.apache.myfaces.core</groupId>
      <artifactId>myfaces-impl</artifactId>
      <version>1.2.6</version>
      <type>jar</type>
      </dependency>

      </dependencies>
      </environment>
      <context-root>/service</context-root>
      <resource-ref>
      <ref-name>eis/XUConnectionFactory</ref-name>
      <resource-link>eis/XUConnectionFactory
      </resource-link>
      </resource-ref>
      <resource-ref>
      <ref-name>jdbc/resdatasource</ref-name>
      <resource-link>jdbc/resdatasource</resource-link>
      </resource-ref>
      </web-app>
      after hide the axis'2, my plan file is
      <?xml version="1.0" encoding="UTF-8"?>
      <web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1">
      <dep:environment xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
      <dep:moduleId>
      <dep:groupId>com.ilog.rules.sample</dep:groupId>
      <dep:artifactId>service-war</dep:artifactId>

      </dep:moduleId>
      <dep:hidden-classes>
      <dep:filter>org.apache.axis2</dep:filter>
      <dep:filter>com.sun.xml</dep:filter>
      <dep:filter>javax.xml.bind</dep:filter>
      <dep:filter>javax.xml.ws</dep:filter>
      </dep:hidden-classes>
      <dependencies>
      <dependency>
      <groupId>com.ilog.rules</groupId>
      <artifactId>xu</artifactId>
      </dependency>
      <dependency>
      <groupId>console.dbpool</groupId>
      <artifactId>jdbc_resdatasource</artifactId>
      </dependency>
      <dependency>
      <groupId>org.apache.myfaces.core</groupId>
      <artifactId>myfaces-api</artifactId>
      <version>1.2.6</version>
      <type>jar</type>
      </dependency>
      <dependency>
      <groupId>org.apache.myfaces.core</groupId>
      <artifactId>myfaces-impl</artifactId>
      <version>1.2.6</version>
      <type>jar</type>
      </dependency>

      </dependencies>
      </dep:environment>

      <context-root>/service</context-root>
      <resource-ref>
      <ref-name>eis/XUConnectionFactory</ref-name>
      <resource-link>eis/XUConnectionFactory
      </resource-link>
      </resource-ref>
      <resource-ref>
      <ref-name>jdbc/resdatasource</ref-name>
      <resource-link>jdbc/resdatasource</resource-link>
      </resource-ref>
      </web-app>

      and when i deploye my miniloan application through ANT, following trace at sample server
      java 2012-02-22 13:15:16,693 INFO DirectoryHotDeployer Deploying servi
      ce.war
      java 2012-02-22 13:15:17,324 ERROR DirectoryHotDeployer Unable to deplo
      y: xml problem for web app .
      java org.apache.geronimo.common.DeploymentException: xml problem for web
      app .
      java at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.get
      TomcatWebApp(TomcatModuleBuilder.java:318)
      java at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.cre
      ateModule(TomcatModuleBuilder.java:207)
      java at org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder
      .createModule(AbstractWebModuleBuilder.java:179)
      java at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.cr
      eateModule(SwitchingModuleBuilder.java:94)
      java at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeplo
      ymentPlan(EARConfigBuilder.java:305)
      java at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:
      227)
      java at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:
      134)
      java at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      java at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
      sorImpl.java:39)
      java at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
      hodAccessorImpl.java:37)
      java at java.lang.reflect.Method.invoke(Method.java:599)
      java at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.inv
      oke(ReflectionMethodInvoker.java:34)
      java at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBean
      Operation.java:124)
      java at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanI
      nstance.java:867)
      java at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKern
      el.java:239)
      java at org.apache.geronimo.deployment.plugin.local.AbstractDeployCom
      mand.doDeploy(AbstractDeployCommand.java:116)
      java at org.apache.geronimo.deployment.plugin.local.DistributeCommand
      .run(DistributeCommand.java:61)
      java at java.lang.Thread.run(Thread.java:735)
      java Caused by: org.apache.xmlbeans.XmlException: Invalid deployment desc
      riptor: errors:

      java error: cvc-complex-type.2.4a: Expected elements 'non-overridable-cla
      sses@http://geronimo.apache.org/xml/ns/deployment-1.2 inverse-classloading@http:
      //geronimo.apache.org/xml/ns/deployment-1.2 suppress-default-environment@http://
      geronimo.apache.org/xml/ns/deployment-1.2' instead of 'dependencies@http://geron
      imo.apache.org/xml/ns/deployment-1.2' here in element environment@http://geronim
      o.apache.org/xml/ns/deployment-1.2

      java Descriptor:
      java <xml-fragment xmlns:tom="http://geronimo.apache.org/xml/ns/j2ee/web/
      tomcat-2.0.1" xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.2">
      java <dep:environment xmlns:dep="http://geronimo.apache.org/xml/ns/depl
      oyment-1.2">
      java <dep:moduleId>
      java <dep:groupId>com.ilog.rules.sample</dep:groupId>
      java <dep:artifactId>service-war</dep:artifactId>
      java </dep:moduleId>
      java <dep:hidden-classes>
      java <dep:filter>org.apache.axis2</dep:filter>
      java <dep:filter>com.sun.xml</dep:filter>
      java <dep:filter>javax.xml.bind</dep:filter>
      java <dep:filter>javax.xml.ws</dep:filter>
      java </dep:hidden-classes>
      java <dep:dependencies>
      java <dep:dependency>
      java <dep:groupId>com.ilog.rules</dep:groupId>
      java <dep:artifactId>xu</dep:artifactId>
      java </dep:dependency>
      java <dep:dependency>
      java <dep:groupId>console.dbpool</dep:groupId>
      java <dep:artifactId>jdbc_resdatasource</dep:artifactId>
      java </dep:dependency>
      java <dep:dependency>
      java <dep:groupId>org.apache.myfaces.core</dep:groupId>
      java <dep:artifactId>myfaces-api</dep:artifactId>
      java <dep:version>1.2.6</dep:version>
      java <dep:type>jar</dep:type>
      java </dep:dependency>
      java <dep:dependency>
      java <dep:groupId>org.apache.myfaces.core</dep:groupId>
      java <dep:artifactId>myfaces-impl</dep:artifactId>
      java <dep:version>1.2.6</dep:version>
      java <dep:type>jar</dep:type>
      java </dep:dependency>
      java </dep:dependencies>
      java </dep:environment>
      java <!--environment>
      java <moduleId>
      java <groupId>com.ilog.rules.sample</groupId>
      java <artifactId>service-war</artifactId>
      java </moduleId>
      java <dependencies>
      java <dependency>
      java <groupId>com.ilog.rules</groupId>
      java <artifactId>xu</artifactId>
      java </dependency>
      java <dependency>
      java <groupId>console.dbpool</groupId>
      java <artifactId>jdbc_resdatasource</artifact
      Id>
      java </dependency>
      java <dependency>
      java <groupId>org.apache.myfaces.core</groupI
      d>
      java <artifactId>myfaces-api</artifactId>
      java <version>1.2.6</version>
      java <type>jar</type>
      java </dependency>
      java <dependency>
      java <groupId>org.apache.myfaces.core</groupI
      d>
      java <artifactId>myfaces-impl</artifactId>
      java <version>1.2.6</version>
      java <type>jar</type>
      java </dependency>
      java
      java </dependencies>
      java </environment-->
      java <tom:context-root>/service</tom:context-root>
      java <nam:resource-ref>
      java <nam:ref-name>eis/XUConnectionFactory</nam:ref-name>
      java <nam:resource-link>eis/XUConnectionFactory</nam:resource-link>
      java </nam:resource-ref>
      java <nam:resource-ref>
      java <nam:ref-name>jdbc/resdatasource</nam:ref-name>
      java <nam:resource-link>jdbc/resdatasource</nam:resource-link>
      java </nam:resource-ref>
      java </xml-fragment>

      java at org.apache.geronimo.deployment.xmlbeans.XmlBeansUtil.validate
      DD(XmlBeansUtil.java:187)
      java at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.get
      TomcatWebApp(TomcatModuleBuilder.java:312)
      java ... 17 more

      java 2012-02-22 13:15:17,334 INFO DirectoryHotDeployer Deleting the Fi
      le: C:\Program Files\IBM\WebSphereILOGJRules7112\shared\tools\AppServerCommunity
      Edition\deploy\service.war