This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Web Services and the fly likes deploying a Java1.4 app in Tomcat 5.5.25 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "deploying a Java1.4 app in Tomcat 5.5.25" Watch "deploying a Java1.4 app in Tomcat 5.5.25" New topic
Author

deploying a Java1.4 app in Tomcat 5.5.25

Jan Boeyens
Greenhorn

Joined: Oct 25, 2011
Posts: 9
I Have written a simple webservice using Netbeans 6.7 (JDK 1.6) and Java 1.4

I can view the wsdl file with this url http://localhost:8080/service/register?wsdl

However when I deploy it to our server it gives me a 404 file not found error.
This url: http://server_name/service/register?wsdl fails

But this page does load:
http://server_name/service

Are there specific files that need to be loaded into the Tomcat common lib maybe ?

Any help /suggestions will be most welcome.
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
You need to install Metro into Tomcat. This page contains the download link and instructions: http://metro.java.net/2.1.1/
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
Jan Boeyens
Greenhorn

Joined: Oct 25, 2011
Posts: 9
Thanks I'll give that a try. However, in Netbeans I am running GlassFish2.1, and I am not using the JAX ver2 spec (which I suspect is what Metro is). The application is based on Java jdk 1.4 (with the older Jax Libraries), I have tried copying those JAR files to the Tomcat common/lib folder but it has no effect.
Jan Boeyens
Greenhorn

Joined: Oct 25, 2011
Posts: 9
In my Netbeans environment I see I have the following installed:

Visual Web JSF Backwards Compatibility Kit
The Visual Web JSF Backwards Compatibility Kit provides supplemental libraries that are required by the Visual Web designer to support projects that are based on J2SE 1.4 or J2EE 1.4. These libraries are not open source and are therefore distributed as a separate NetBeans plugin.
This kit will install the following libraries:
The JavaServer Faces 1.1 Reference Implementation (RI)
The Rowset Reference Implementation (RI)
the JAX-RPC libraries from JWSDP 1.6
JAX-RPC Web Services
Provides development support for JAX-RPC Web Services.

Any idea which libraries need to be in Tomcat to get this config working ?
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
JAX-WS is based on annotations, I doubt that you'll get that to run, or run well, in a Java 1.4 JVM.

If it does run, check that WSDL generation isn't turned off (which it often is in production settings).
Jan Boeyens
Greenhorn

Joined: Oct 25, 2011
Posts: 9
Hi Tim,

Thanks for the - I am trying it using J2ee5 with Jdk 1.6 now. (Netbeans 6.7)

After deploying I try this:
http://localhost:8080/register/regsService?WSDLregs?Wsdl

It works 100% - but on the server it returns this error:

HTTP Status 404 - /register//regsService
type Status report
message /register//regsService
description The requested resource (/register//regsService) is not available.
Apache Tomcat/5.5.25

Has this maybe got something to do with the WSDL generation being tuned off ? If so how/where do I turn it on ?
Jan Boeyens
Greenhorn

Joined: Oct 25, 2011
Posts: 9
I have resolved this issue - by compiling the web service with Netbeans5.5 and running the webservice in an older version of Tomcat (5.25).

I suspect that Netbeans 6.7 has serious problems with its webservices implementation. Because besides the problems getting the service compiled (as described), I can't even get a stable instance of the published service running in Netbeans 6.7 for testing purposes. (Its not the fault of the service - in C# I am able to access and use the published service without any problems)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: deploying a Java1.4 app in Tomcat 5.5.25