Erak Vegen

Greenhorn
+ Follow
since Mar 08, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Erak Vegen

Ahhh very nice! Thanks a lot

I'll keep on trying and report my findings
17 years ago
Ok I found a solution (at least it seems like): I use https://jax-ws.dev.java.net/jax-ws-20-fcs/

I do not exactly know how the JAX-WS RI 2.0 project is related to the JaxWS or Java6 or whatever ... Sun is very very confusing about this. All that OpenSource / Community / java.net / Glassfish ... I don't know what is the latest project and what is outdated

The steps are quite simple though:
  • Download and unpack the jax-ws
  • Copy all *.jar from the lib dir into $CATALINA_HOME/shared/lib
  • Create a directoy for the service under $CATALINA_HOME/webapps
  • Copy the class structure from the web service into WEB-INF/classes in that directory
  • Create a sun-jaxws.xml in WEB-INF
  • Create web.xml in WEB-INF
  • Start tomcat. Done


  • The web.xml should look something like this:



    So the tipps above are not that far away

    My sun-jaxws.xml looks like this:



    After starting tomcat you can access the service under



    Done
    17 years ago
    I found an article in the following Enterprise Java Technologies TECHNICAL TIPS Newsletter. This Tech Tip describes what you need to do to change a JAX-WS-based web service developed using Java WSDP 2.0 and deployed on the J2EE 1.4 platform so that it can be ported to the Java EE5 platform. I tried to deploy the webservice as described in the article to Java EE5 - but this doesn't work since Tomcat AFAIK isn't a Java EE5 compliant enterprise server.

    However the text gives a hint that the J2EE 1.4 deployment method will work for tomcat:

    JAX-WS technology was initially made available in the Java Web Services Developer Pack (Java WSDP) Version 2.0. This allowed early adopters to develop JAX-WS-based web services and deploy them on J2EE 1.4 implementations such as the J2EE 1.4 SDK (which includes the Sun Java System Application Server 8.2 Platform Edition) or Apache Tomcat.



    So far I haven't managed to get the example running but I will keep trying
    17 years ago
    I have found another source which explains the web.xml for such a war archive:


    The following shows a web.xml file for a simple HelloWorld service. It specifies JAX-WS RI specific listener, servlet classes. These classes are com.sun.ws.transport.http.servlet.JAXRPCContextListener, and com.sun.xml.ws.transport.http.servlet.JAXRPCServlet is servlet



    Only I can't find the mentioned classes neither in the Java 6 distribution nor in the jwsdp-2.0. However I found some classes in other packages that seem at least similar: com.sun.xml.rpc.server.http.JAXRPCServlet and com.sun.xml.ws.transport.http.servlet.WSServlet (and also corresponding listeners etc.).

    So currently I'm trying to figure out what these classes do ... since there is no source code available this might be a bit tricky
    17 years ago
    In th user's guide it says:

    The WAR file created can now be published on a JAX-WS 2.0 SI enabled servlet container such as the Sun Java System Application Server Platform Edition 8.1



    The war contains a sun-jaxws.xml descriptor that points the server to the webservice. Tomcat can do nothing with that, so I think I have to enable tomcat to be a "JAX-WS 2.0 SI enabled servlet container"? But how?

    Or is there maybe another way to publish a Java6 webservice to tomcat (apart from using axis)?
    17 years ago
    Thanks for the welcome

    Indeed I am talking about the Java 6 included JAXWS (whatever version that is) and my hope actually is that I have everything I need - only I do not know how to use it

    I have written a class with annotations, used the wsgen tool shipped with my Java 6 SDK to generate WSDL and XSD files and then used the javax.xml.ws.Endpoint class to test the service. Everything works fine.

    Now I am looking for a way to publish this web service via Tomcat ...

    Thanks
    TD
    17 years ago
    Hi folks,

    is it possible to deploy a webservice generated with Java 6 JAXWS under Tomcat? I can't find any information about this topic, besides a very old blog entry stating that I should checkout some jar from the glassfish nightly build - which doesn't seem like a very production stable option.

    Any hints to documentation or a simple outline of the procedure would be welcome.

    Thanks
    TD
    17 years ago