jQuery in Action, 2nd edition*
The moose likes Servlets and the fly likes tomcat installation problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "tomcat installation problem" Watch "tomcat installation problem" New topic
Author

tomcat installation problem

shabbir zakir
Ranch Hand

Joined: Nov 12, 2000
Posts: 183
HI!
I START MY TOMCAT SERVER THROGH THE DOS PROMPT.BUT WHEN I SATRT THE FIRST PAGE IT GIVES ME ERROR PAGE NOT FOUND.
Ihave set Tomact_HOMe=C:\tomacat.I have also set Java_home=D:\jdk1.2.2.
Still it is coming.What should i do. thanks in advance.
DC Dalton
Ranch Hand

Joined: May 28, 2001
Posts: 287
Sounds like me last week!! By the first page I assume you mean the tomcat examples index page? the url should be http://localhost:8080/examples/servlets/ This will bring up the servlets examples page. For jsp examples the url is the same except change the /servlets/ to /jsp/ Hope that helps.
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

shabbir:
could you be a little more specific, please.
any exceptions, error messages anything else
would help.
regds.
- satya
ps: identifying the source of the problem is 50% of
the solution.

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
karl koch
Ranch Hand

Joined: May 25, 2001
Posts: 388
hi,

what do you mean by "first page" ?
is it http://localhost:8080 ?? this should be a welcome page with the tomcat logo.
(8080 is default port number configured in server.xml in tomcat_home/conf)
if you get a error when accessing this page, then i doubt your server is running. do you use the tomcat.bat file delivered with tomcat ?
is it opening a new dos-window for tomcat ?
i had the same problem and had to assign more memory to the dos-prompt.

greets,
karl
Mohamed Yousuff
Ranch Hand

Joined: Jun 23, 2001
Posts: 73

I assume that your tomcat server has started properly and there is no problem with starting it. After you start the server, check for text like 'PoolTcpConnector: Starting HttpConnectionHandler on ...'. Generally this will be near the last line after you start the server. If you find it appearing then note the port and type the address http://machinename ort/ in the browser. If it still does not show up anything, go to the path TOMCAT_HOME/webapps/ROOT/. Here TOMCAT_HOME is the folder where you installed Tomcat. If you do not find webapps or 'ROOT' folder then you must create it. Then create a file index.html in the path TOMCAT_HOME/webapps/ROOT/. Now you can be sure to expect the page coming up.
There is another case when you do not find the text 'PoolTcpConnector: Starting HttpConnectionHandler on ...' after the server has started. In this case, open the file TOMCAT_HOME/conf/server.xml. Then add the following
<Connector className="org.apache.tomcat.service.PoolTcpConnector">
<Parameter name="handler"
value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
<Parameter name="port"
value="80"/>
</Connector>

between the ContextManager tags. The skeleton is like this as shown below.

<Server>
.
.
.
<ContextManager ...>

<Connector className="org.apache.tomcat.service.PoolTcpConnector">
<Parameter name="handler"
value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
<Parameter name="port"
value="80"/>
</Connector>

</ContextManager>
</Server>
After this you should ensure that you have an index.html file in the path $TOMCAT_HOME/webapps/ROOT/. This will solve your problem

Originally posted by shabbir zakir:
HI!
I START MY TOMCAT SERVER THROGH THE DOS PROMPT.BUT WHEN I SATRT THE FIRST PAGE IT GIVES ME ERROR PAGE NOT FOUND.
Ihave set Tomact_HOMe=C:\tomacat.I have also set Java_home=D:\jdk1.2.2.
Still it is coming.What should i do. thanks in advance.


------------------
angelo celeste
Ranch Hand

Joined: Mar 21, 2001
Posts: 73
Hi shabbir:
If these are your settings, they must correspond with the settings within the config file.
You say "Tomact_HOMe=C:\tomacat.I have also set Java_home=D:\jdk1.2.2"
As far as I know, these settings should be TOMCAT_HOME=C:\tomcat and JAVA_HOME=D:\jdk1.2.2 (coresponding to your actual paths of course).
If the config file is looking for TOMCAT_HOME and you have Tomcat_HOme you will get an error. Same with JAVA_HOME!
Hope this helps.
-Angelo
shabbir zakir
Ranch Hand

Joined: Nov 12, 2000
Posts: 183
hi
Thanks for ur response.But now when i start the server it produces the line 'PoolTcpConnector: Starting HttpConnectionHandler on ...'
But i cannnot open the home pageie it http://localhost:8080 and the same case in http://localhost:8080/examples/servlets/. it gives me the error page not found
pls help me.thanks in advance.
shabbir zakir
Ranch Hand

Joined: Nov 12, 2000
Posts: 183
hwy guys pls help me i am extremely need of that. Thanks in advance.
June
Greenhorn

Joined: Aug 16, 2001
Posts: 24
Shabbir,
I've installed Tomcat successfully using the instructions on this website: http://archive.coreservlets.com/Using-Tomcat.html.
Give it a shot!

------------------
JQ


JQ
Kevin Yip
Ranch Hand

Joined: Oct 17, 2000
Posts: 110
Is it possible that another service has used up the 8080 port?
Have you installed other HTTP server that starting up automatically in the same machine, like Oracle HTTP Server? If yes, try to stop it first.
Jim Panagiotopoulos
Greenhorn

Joined: Aug 05, 2001
Posts: 11
Originally posted by June Quin:
Shabbir,
I've installed Tomcat successfully using the instructions on this website: http://archive.coreservlets.com/Using-Tomcat.html.
Give it a shot!

Jim Panagiotopoulos
Greenhorn

Joined: Aug 05, 2001
Posts: 11
Originally posted by Jim Panagiotopoulos:

June,
Thanks for posting that website. It really helped me out!

Jim Panagiotopoulos
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tomcat installation problem