Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running Servlets Using Tomcat

Status
Not open for further replies.

brinker

Programmer
May 31, 2001
48
CA
Hi all,

I am very new to the forum, but I have been programming in Java for years. I have the most weird problem running my own servlets in Tomcat. I believe that I have installed the Tomcat program correctly because there are no errors and I can run the example servlet applications provided. However, I cannot run my own servlet classes.

My own classes are placed in the c:\tomcat\webapps\proj1\WEB-INF\classes\ directory. It appears that Tomcat 4.1.27 cannot locate this project on its own even if I use the : localhost:8080/proj1/servlet/name.class syntax in a web browser. This approach is fine for the example files. I was wondering if anybody out there has had a similar problem and if so, I would be grateful if you tell me how to resolve it.

** I should mention that I have defined JAVA_HOME, CATALINA_HOME, and CLASSPATH.

thanks

Narjit
 
You know what, I had the exact same problem !!! Its daft - been using Tomcat for a few years now. I couldn't get it to work for toffee !!!

In the end, I downloaded JWSDP from Sun ( ), which is basically Tomcat, with some bundled XML APIs like JAXP,JAXM, SAAJ etc. This worked fine. If I remeber correctly, version 1.1 comes with Tomcat 4.1x and version 1.2 comes with Tomcat 5 ...

Let us know if you ever solved the errors ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top