1 Reply Latest reply on Oct 12, 2004 3:14 PM by ptomsic

    help deploying a web-service?

    ptomsic

      using jboss 3.2.0/tomcat 4.1.24:
      I've put the "jboss-net.sar" into JBOSS_HOME/server/all/deploy
      When I goto: http://machine:8080/jboss-net I do get the "Welcome to Apache Axis" screen.

      Now, my application, I'm trying to put an EAR file into JBOSS_HOME/server/all/deploy/jboss-net.sar
      When I place the EAR file into that directory, jboss detects the new file, but I get a ton of warnings that look like:
      WARN [org.jboss.deployment.MainDeployer] The manifest entry in file:/usr/local/jboss-3.2.0_tomcat-4.1.24/server/all/tmp/deploy/server/all/deploy/jboss-net.sar/myapp.ear/106.myapp.ear-contents/myapp.wsr-contents/WEB-INF/lib/commons-logging.jar references URL file:/usr/local/jboss-3.2.0_tomcat-4.1.24/server/all/tmp/deploy/server/all/deploy/jboss-net.sar/myapp.ear/106.myapp.ear-contents/myapp.wsr-contents/WEB-INF/lib/log4j.jar which could not be opened, entry ignored

      This continues for just about every JAR file that I have wrapped into the WSR file.
      Anyway, when I try to go to
      http://machine:8080/jboss-net/services/MyService?wsdl
      I get a huge stacktrace with a root cause of:

      2004-10-11 13:39:42,306 ERROR [org.jboss.web.HOST=localhost] ----- Root Cause -----
      java.lang.LinkageError: loader constraints violated when linking javax/xml/soap/SOAPMessage class
       at org.apache.axis.transport.http.AxisServlet.createMessageContext(AxisServlet.java:848)
       at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:261)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
       at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:335)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
      (snipped)
      


      What am I doing wrong?
      The file structure of my EAR/WSR/WAR file is listed below and under that are the contents of my application.xml, web-service.xml

      Any help greatly appreciated.


      Here's the contents of my EAR:
      META-INF/
       MANIFEST.MF
       application.xml
      myapp.war
      myapp.wsr
      
      inside the WAR file:
      META-INF/
       MANIFEST.MF
      WEB-INF/
       jboss-web.xml
       web.xml
      
      and the WSR:
      META-INF/
       MANIFEST.MF
       web-service.xml
      WEB-INF/
       classes/com/....etc
       lib/*.jar
       web.xml
      
      



      ------- web-service.xml -------
      <deployment xmlns="http://xml.apache.org/axis/wsdd/"
       xmlns:xsi="http://www.w3c.org/2000/10/XMLSchema-instance"
       xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
       <!-- $Id$ -->
       <handler name="tracker" type="java:com.company.services.server.LogHandler">
       <parameter name="filename" value="services.log"/>
       </handler>
       <service name="MyService" provider="java:RPC" use="encoded">
       <requestFlow><handler type="tracker"/></requestFlow>
       <parameter name="wsdlTargetNamespace" value="urn:MyService"/>
       <parameter name="className" value="com.company.services.server.MyService"/>
       <parameter name="allowedMethods" value="*"/>
       <parameter name="scope" value="Request"/>
       </service>
      </deployment>
      
      

      ------- / web-service.xml -----

      -------- application.xml --------
      <?xml version="1.0" encoding="ISO-8859-1"?>
      <application>
       <display-name>jboss-axis WebService</display-name>
       <module>
       <web>
       <web-uri>myapp.war</web-uri>
       <context-root>/</context-root>
       </web>
       </module>
       <module>
       <java>myapp.wsr</java>
       </module>
      </application>
      

      -------- / application.xml -------

      thanks, Paul