Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Servlets and the fly likes Tomcat Setup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Tomcat Setup" Watch "Tomcat Setup" New topic
Author

Tomcat Setup

prakash pai
Greenhorn

Joined: Apr 06, 2007
Posts: 10
I have installed Tomcat 3.1 and followed the instruction as suggested by jakarta.apache.org.
I am trying to start tomcat using 'startup' script after setting all environment variables. But it looks like that the server is not getting started since i am not able to get anything if i type http://localhost:8080/ on browser.
How do u know whether the script ran successfully and server is running. In my case it opens a new dos window and close it immedialtely. I cannot see what is happening in new window.
Could somebody help me in configuring tomcat.
Thanks in advance
jin shin
Greenhorn

Joined: Oct 28, 2002
Posts: 7
Be sure you have the CLASSPATH properly setup. Then you can check whether your browser bypass the proxy server. Try to follow this step..
From IE5...
1. Click Tools menu then select Internet options
2. Click on the Connection tab
3. Click on the Lan Settings
4. Click on the check box that says "Bypass Proxy server for local address" (you should check this box)
5. Start your tomcat server
6. Start IE5
7. type http://localhost/examples
That's it! Hope it Helps!
R Mutum
Greenhorn

Joined: Sep 07, 2000
Posts: 4
pk:
If the DOS window closes, it means the server is not running. The console (DOS window) should stay open.
Originally posted by pk:
How do u know whether the script ran successfully and server is running. In my case it opens a new dos window and close it immedialtely. I cannot see what is happening in new window.

Generally, it happens if the classpaths are not OK and TOMCAT & JAVA HOME variables are not setup properly. If you have installed the server in C:\tomcat, see c:\tomcat\doc\uguide\tomcat_ug.html. Then, you can move on to setting the context paths in server.xml. Consult Chapter 10 of JSP API doc for setting up applications. You can download the API doc from java.sun.com.
Good luck!
RM


[This message has been edited by R Mutum (edited September 07, 2000).]
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

pk:
what was told abv is 100 % true. I have experienced the
same thing you said. A dos window starts up and dies
instantaneously. What I did was, as soon as it starts,
try to hit <CTRL>S and you may see an error like the one
below: (to come out hit <CTRL>C
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/web/shell/
In my case, the CLASSPATH was wrong as mentioned abv.
I was using JSDK2.1 and I set it to JDSK2.1
Do you see the problem ?
Ofcourse I shamelessly agree that it took me abt four
hrs to figure it out.
And ofcourse now I am trying to use tomcat and have a
problem of my own...could someone help me with my posting...
Regds.
- satya

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Tomcat Setup