aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet compiling problem in tomcat" Watch "Servlet compiling problem in tomcat" New topic
Author

Servlet compiling problem in tomcat

shekher awasthi
Greenhorn

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

Joined: Jan 10, 2002
Posts: 60046
    
  65

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
shekher awasthi
Greenhorn

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


http://www.coreservlets.com/Apache-Tomcat-Tutorial/Tomcat-5.0-and-4.0.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet compiling problem in tomcat
 
Similar Threads
HelloServlet can not compile
Compilation problem in servlets
please help! classpath not working
package javax.servlet does not exist
Compiling servlet [was: HTTP Status 404 - Servlet Login is not available]