Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet compiling problem in tomcat

 
shekher awasthi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
C:\Java\jdk1.5.0_10
C:\Java\jre1.5.0_10

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

Thanks,
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are you using to complie the servlets? Tomcat isn't going to do it for you.
 
shekher awasthi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i accidently posted it twice nyway thks for letting me to know this
 
ashok ganesan
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


http://www.coreservlets.com/Apache-Tomcat-Tutorial/Tomcat-5.0-and-4.0.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic