installing tomcat server

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Jan 2008
Posts: 10
Reputation: pradeep.singh28 is an unknown quantity at this point 
Solved Threads: 0
pradeep.singh28 pradeep.singh28 is offline Offline
Newbie Poster

installing tomcat server

 
0
  #1
Jan 22nd, 2008
hi friends,
I am pradeep , i have a PC having configuration as: P-3, 1.2 GHz,256 MB RAM .
when i am installing tomcat 5 ,it is starting properly but when I run any JSP page from the browser the message comes as "Server not found" . I have set environment variables JAVA -HOME and CLASSPATH .java version is JDK 1.5.
Can you please help what should i do to run tomcat properly on my PC?
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 137
Reputation: PoovenM is on a distinguished road 
Solved Threads: 11
PoovenM PoovenM is offline Offline
Junior Poster

Re: installing tomcat server

 
1
  #2
Jan 22nd, 2008
Well the first step is to identify that indeed Apache Tomcat is up and running. If you go to localhost:8080 it should display a Tomcat page. If that doesn't work then the Tomcat service is not running. It can usually be started using the /bin/startup.bat or /bin/startup.sh file. What OS are you running?

Tomcat will by default assume that the Java bin folder is specified via the JAVA_HOME environment variable. This can be set depending on your OS.

If I'm not mistaken Tomcat requires JavaEE (Enterprize Edition) which makes sense but I can't confirm that.

Perhaps try out the Web Development> JSP forum?
Last edited by PoovenM; Jan 22nd, 2008 at 4:21 am.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 3,832
Reputation: VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute 
Solved Threads: 501
Featured Poster
VernonDozier VernonDozier is offline Offline
Senior Poster

Re: installing tomcat server

 
1
  #3
Jan 22nd, 2008
Tomcat is also very finicky about shutting down and starting up. When something is not working the first thing I try is to shut it down then start it back up. It seems to refresh a lot of things, particularly if you recompile a java program. The last poster is correct. Check to make sure you get something when you type in:

http://localhost:8080

into your browser. That's assuming Tomcat is using port 8080, which is default. Make sure you type that into a browser rather than double click in Firefox or IE. You want the word "http" on the left, not "file".
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 137
Reputation: PoovenM is on a distinguished road 
Solved Threads: 11
PoovenM PoovenM is offline Offline
Junior Poster

Re: installing tomcat server

 
0
  #4
Jan 22nd, 2008
One would have to restart Tomcat whenever a Java file (usually a servlet) is recompiled. This is because Tomcat uses a cache. Changes to JSP files do not require a restart. I recommend that you use Eclipse to manage your Web Project as it will automatically restart Tomcat whenever it is necessary. Tomcat must not already be running if you plan to do this.
Please be aware that Tomcat will not load your Web Project if the web.xml file is invalid.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,223
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 489
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: installing tomcat server

 
0
  #5
Jan 22nd, 2008
There are some guide lines that I found interesting
http://mpcon.org (ignore the part related to to Apache2 and PHP and just check the steps for Java and Tomcat instalation)
http://webdev.sis.pitt.edu
for Tomcat 6 this is good resource http://www.coreservlets.com

If you still not get Tomcat running please post the errors or detailed description of the problem.
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,296
Reputation: majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about 
Solved Threads: 67
majestic0110's Avatar
majestic0110 majestic0110 is offline Offline
Nearly a Posting Virtuoso

Re: installing tomcat server

 
1
  #6
Jan 22nd, 2008
also ensure your firewall is set to allow connections on port 8080
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC