This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Servlets and the fly likes Servlet compiling problem in tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet compiling problem in tomcat" Watch "Servlet compiling problem in tomcat" New topic

Servlet compiling problem in tomcat

shekher awasthi

Joined: Jan 05, 2007
Posts: 2
Hi All,

The below mentioned problem require little bit patience and concentration......but I really need your help. Please proceed.....

I have installed Tomcat, JDK and JRE as follows:

C:\Program Files\Apache Software Foundation\Tomcat 5.5

and set the various system variables (in Environment variables dialog box in winXP)as follows:

CLASSPATH :C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\servlet-api.jar;C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\jsp-api.jar

PATH : %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\MSSQL7\BINN;C:\Java\jdk1.5.0_10\bin;C:\Program Files\Apache Software Foundation\Tomcat 5.5;C:\Program Files\Apache Software Foundation\Tomcat 5.5

CATALINA_HOME : C:\Program Files\Apache Software Foundation\Tomcat 5.5

JAVA_HOME : C:\Java\jdk1.5.0_10

And within Apache Tomcat Properties dialog box the settings are as follows:

JVM PATH : C:\Java\jre1.5.0_10\bin\client\jvm.dll
Java Classpath: C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\bootstrap.jar

Now, I want to compile a servlet but it is not getting compiled, currently we are saving the servlet in: C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\servlets-examples\WEB-INF\classes

Jsp files are running fine but servlets are not.Actually this is the real problem.
Even the built in servlet examples of tomcat are not working(compiling) if i delete their class files.

Can anybody help me on this issue??

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63544

What are you using to complie the servlets? Tomcat isn't going to do it for you.

[Asking smart questions] [About Bear] [Books by Bear]
shekher awasthi

Joined: Jan 05, 2007
Posts: 2
i accidently posted it twice nyway thks for letting me to know this
ashok ganesan
Ranch Hand

Joined: Jan 02, 2007
Posts: 50
hi the following link will give you instructions of how to config your TomCat server and running programs i have followed those instructions and got my programming working try it
It is sorta covered in the JavaRanch Style Guide.
subject: Servlet compiling problem in tomcat
It's not a secret anymore!