943,550 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Marked Solved
  • Views: 1631
  • Java RSS
Jan 22nd, 2008
0

installing tomcat server

Expand Post »
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?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
pradeep.singh28 is offline Offline
10 posts
since Jan 2008
Jan 22nd, 2008
1

Re: installing tomcat server

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.
Reputation Points: 56
Solved Threads: 11
Junior Poster
PoovenM is offline Offline
146 posts
since Aug 2006
Jan 22nd, 2008
1

Re: installing tomcat server

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".
Featured Poster
Reputation Points: 2614
Solved Threads: 687
Posting Expert
VernonDozier is offline Offline
5,371 posts
since Jan 2008
Jan 22nd, 2008
0

Re: installing tomcat server

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.
Reputation Points: 56
Solved Threads: 11
Junior Poster
PoovenM is offline Offline
146 posts
since Aug 2006
Jan 22nd, 2008
0

Re: installing tomcat server

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.
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 871
Code tags enforcer
peter_budo is offline Offline
6,653 posts
since Dec 2004
Jan 22nd, 2008
1

Re: installing tomcat server

also ensure your firewall is set to allow connections on port 8080
Reputation Points: 256
Solved Threads: 72
Nearly a Posting Virtuoso
majestic0110 is offline Offline
1,306 posts
since Oct 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Help with removeElement() in vectors
Next Thread in Java Forum Timeline: c# method from java





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC