You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ayaskant swain <ay...@yahoo.com> on 2005/03/19 20:13:10 UTC

Tomcat not running(4.0.6/5.0.19)-urgent

Dear Sir/Madam,
                        I have been using tomcat 4.x/5.0.x version for web developmen (JSP/Servlets)but i am finding difficulties in starting the server itself many times.I have set the JAVA_HOME environmental variable to the directory where i have installed the j2sdk1.4.2. e.g. E:\j2sdk1.4.2. and under that folder all other subfolders like bin, jre are there.When i am trying to start the tomcat server by double clicking on the startup.bat inside bin folder the tomcat console comes only for 3-4 seconds and then disappears.I  also tried to solve it by changing the port no 8080 which is inside server.xml file to any other port (e.g. 9020,8090 etc.),but still it's not working.
 
           Also sometimes even though the server starts and runs fine and i am able to see the index.html page(featuring the cat) i get a 404 error of resource not found while trying to access my own webapplication which i create inside the webapps folder.though it is there 
already.For an example i create a folder named my_apps/WEB-INF/classes inside 
webapps but i get a 404 error (resource not found) when i type http://localhost:8080/my_apps
 
These two problems are really making me annoyed.I am fade of these problems.Please tell me the solution to these problems.
 
Ayaskant 
 

		
---------------------------------
Do you Yahoo!?
 Yahoo! Small Business - Try our new resources site! 

Re: Tomcat not running(4.0.6/5.0.19)-urgent

Posted by Torrey Rice <ri...@sitepen.com>.
It's tough to say what your problem is without more information. Did you 
check Tomcat's logs to see what the error is when starting up? Have you 
tried running tomcat from the console instead of from a batch file so 
that you can see the output of the server when it erors and quits?

Give those a try and let us know what the output is and maybe some one 
can help.

Regards

ayaskant swain wrote:

>Dear Sir/Madam,
>                        I have been using tomcat 4.x/5.0.x version for web developmen (JSP/Servlets)but i am finding difficulties in starting the server itself many times.I have set the JAVA_HOME environmental variable to the directory where i have installed the j2sdk1.4.2. e.g. E:\j2sdk1.4.2. and under that folder all other subfolders like bin, jre are there.When i am trying to start the tomcat server by double clicking on the startup.bat inside bin folder the tomcat console comes only for 3-4 seconds and then disappears.I  also tried to solve it by changing the port no 8080 which is inside server.xml file to any other port (e.g. 9020,8090 etc.),but still it's not working.
> 
>           Also sometimes even though the server starts and runs fine and i am able to see the index.html page(featuring the cat) i get a 404 error of resource not found while trying to access my own webapplication which i create inside the webapps folder.though it is there 
>already.For an example i create a folder named my_apps/WEB-INF/classes inside 
>webapps but i get a 404 error (resource not found) when i type http://localhost:8080/my_apps
> 
>These two problems are really making me annoyed.I am fade of these problems.Please tell me the solution to these problems.
> 
>Ayaskant 
> 
>
>		
>---------------------------------
>Do you Yahoo!?
> Yahoo! Small Business - Try our new resources site! 
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Tomcat not running(4.0.6/5.0.19)-urgent

Posted by Mark Leone <mi...@cox.net>.
Try putting an html or jsp file in your my_apps folder. I'm not sure 
what Tomcat does when you navigate to the web app with nothing other 
than WEB-INF in the web app's folder. When I navigate to one of my web 
apps the way you're trying, I get a directory listing of the files and 
folders I have there, but I notice that that WEB-INF is not included in 
that listing, even though it is present. So a better test of your web 
app would be to try to hit an html or jsp page.

As someone else pointed out, the log files should give you a good clue 
as to why Tomcat isn't starting up sometimes.

-Mark

ayaskant swain wrote:

>Dear Sir/Madam,
>                        I have been using tomcat 4.x/5.0.x version for web developmen (JSP/Servlets)but i am finding difficulties in starting the server itself many times.I have set the JAVA_HOME environmental variable to the directory where i have installed the j2sdk1.4.2. e.g. E:\j2sdk1.4.2. and under that folder all other subfolders like bin, jre are there.When i am trying to start the tomcat server by double clicking on the startup.bat inside bin folder the tomcat console comes only for 3-4 seconds and then disappears.I  also tried to solve it by changing the port no 8080 which is inside server.xml file to any other port (e.g. 9020,8090 etc.),but still it's not working.
> 
>           Also sometimes even though the server starts and runs fine and i am able to see the index.html page(featuring the cat) i get a 404 error of resource not found while trying to access my own webapplication which i create inside the webapps folder.though it is there 
>already.For an example i create a folder named my_apps/WEB-INF/classes inside 
>webapps but i get a 404 error (resource not found) when i type http://localhost:8080/my_apps
> 
>These two problems are really making me annoyed.I am fade of these problems.Please tell me the solution to these problems.
> 
>Ayaskant 
> 
>
>		
>---------------------------------
>Do you Yahoo!?
> Yahoo! Small Business - Try our new resources site! 
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org