This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
i.e. path of servlet-api.jar file in classpath. This file is present in tomcat\common\lib\ directory.
Regards, Vilas Lawande
prajal Mehta
Ranch Hand
Joined: Dec 03, 2007
Posts: 66
posted
0
Thanks.
but I have already set my classpath to C:\Program Files\apache tomcat\apache-tomcat-5.5.25\common\lib
But still I get the compiler error that package javax.servlet.* is not found. Please help me.
I have another question- I installed TOMCAT properly, set environment variable JAVA_HOME and TOMCAT_HOME as required , started the Tomcat but when I point my browser to http://localhost:8080/ to see the Tomcat welcome page, I get error - The page cannot be found
what to do? [ January 30, 2008: Message edited by: prajal Mehta ]
Vilas Lawande
Ranch Hand
Joined: Nov 07, 2006
Posts: 127
posted
0
hi, It means tomcat is not installed properly.
1.First uninstall tomcat. 2.Set JAVA_HOME to path of jdk only. 3.Install tomcat version 4.Set CATALINA_HOME to path of tomcat only 5.Run tomcat through statup.bat 6.set classpath. 7.proceed
prajal Mehta
Ranch Hand
Joined: Dec 03, 2007
Posts: 66
posted
0
Originally posted by Vilas Lawande: hi, It means tomcat is not installed properly.
1.First uninstall tomcat. 2.Set JAVA_HOME to path of jdk only. 3.Install tomcat version 4.Set CATALINA_HOME to path of tomcat only 5.Run tomcat through statup.bat 6.set classpath. 7.proceed
thanks Vilas,
I had set TOMCAT_HOME to path of tomcat (as given in HF book). Do I need to set CATALINA_HOME path??
Please go through my above post. Sorry , but I have edited it again.
Vilas Lawande
Ranch Hand
Joined: Nov 07, 2006
Posts: 127
posted
0
You have to set CATALINA_HOME. not tomcat_home. This must be mistake in HFSJ.If your post is correct. Regards, Vilas Lawande. [ January 30, 2008: Message edited by: Vilas Lawande ]
prajal Mehta
Ranch Hand
Joined: Dec 03, 2007
Posts: 66
posted
0
Originally posted by Vilas Lawande: You have to set CATALINA_HOME. not tomcat_home. This must be mistake in HFSJ.If your post is correct. Regards, Vilas Lawande.
[ January 30, 2008: Message edited by: Vilas Lawande ]
Still no luck-- now I have following settigns--
1. I have set the Environment variable CATALINA_HOME to C:\Program Files\apache tomcat\apache-tomcat-5.5.25
2. I have set the JAVA_HOME variable to C:\Program Files\Java\jdk1.5.0_04
3. I have set the classpath to C:\Program Files\apache tomcat\apache-tomcat-5.5.25\common\lib\servlet-api.jar
Now when start the tomcat and point the browser to http://localhost:8080/ I get "The page cannot be found " error. And also the compiler error (package not found ) for import javax.servlets.*
please help I am clueless
Vilas Lawande
Ranch Hand
Joined: Nov 07, 2006
Posts: 127
posted
0
You have not followed sequence as I mentioned. I think you have follow all steps mention by me in previous post. Or you have to change setup of tomcat.
for classpath: set like this:
veriable name: classpath veriable value:%classpath%;.;C:\Tomcat5.0\common\lib\servlet-api.jar; It must work fine. [ January 30, 2008: Message edited by: Vilas Lawande ]
but I have already set my classpath to C:\Program Files\apache tomcat\apache-tomcat-5.5.25\common\lib
You didn't read the link I've posted above.
prajal Mehta
Ranch Hand
Joined: Dec 03, 2007
Posts: 66
posted
0
Christophe , yes I did read that link
I must have messed up the installation of Tomcat previously. 1.Now I reinstalled the Tomcat 2. I set up the JAVA_HOME , CATALINA_HOME to required locations. 3. I started the Tomcat. 4. I set the CLASSPATH variable to --> %CLASSPATH%;C:\Program Files\apache tomcat\apache-tomcat-5.5.25\common\lib\servlet-api.jar
Everyone has assumed that you are not using Eclipse because: 1) For studies it is recommended to not use an IDE... at least to start out 2) You never said you were using it.
If http://localhost:8080/ is not working, then Tomcat simply isn't working or you're trying to run an instance of it from within Eclipse. I'm pretty sure that the default applications that come with Tomcat do not run if you are running Tomcat from within Eclipse.
A good workman is known by his tools.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.