wood burning stoves*
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 Android Security Essentials Live Lessons this week in the Android 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

deploying a Java1.4 app in Tomcat 5.5.25

Jan Boeyens

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:

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
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

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

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

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

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:

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

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
Similar Threads
Testing Web Services
Web service endpoint is hosed when deploying to tomcat using a war file
Unable to access WSDL
Problems in the Web Services Explorer
How do I register my web service?