Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 5th, 2007, 05:11 PM
Registered User
Join Date: Jan 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Servlet problem in Tomcat problem

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%\Sy stem32\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??


with regards
Old February 8th, 2007, 05:54 AM
Registered User
Join Date: Feb 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Actually the problem is not with Apache s/w.The problem is with the java s/w.let it be confirmed that the class path of the java is set or not.
u specified every thing but u didn't specify the error message what it is realy saying while compiling.
make it sure that normal java programs are compiling well.
give the path C:\Java\jdk1.5.0_10\bin in the CLASSPATH field also.
i thing catalina home is not required in environment variables.
give classpath and path in user variables and system variables also.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tomcat and Servlet Beginner raghda Apache Tomcat 2 May 17th, 2007 06:32 AM
servlet Problem discuss Servlets 3 February 6th, 2007 02:06 PM
Problem with Servlet from Tomcat to Apache holdmykidney Servlets 0 April 28th, 2005 07:38 AM
servlet with tomcat problem... thiNkspAce Apache Tomcat 2 October 23rd, 2004 05:38 AM
problem of running servlet in Tomcat 4.1.24 fxthomas JSP Basics 1 July 14th, 2003 01:37 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.