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.
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.
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.
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.
</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.
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
Joined: Nov 12, 2000
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.
Joined: Nov 12, 2000
hwy guys pls help me i am extremely need of that. Thanks in advance.
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.