File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Getting 404 error on startup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Getting 404 error on startup" Watch "Getting 404 error on startup" New topic
Author

Getting 404 error on startup

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi All,

I installed bundled software having NetBeans IDE 5.5, JBoss Server and Tomcat Server 5.5.17. My Tomcat is listening at the port 8090. No other server is listening to that port except Tomcat. Now my problem here is , I started tomcat from NetBeans IDE, and in the browse URL location I entered "http://localhost:8090/ , this is giving me 404 error. I remember it working fine few days before. But suddently this problem started . Also I observed following log in NetBeans IDE

Using CATALINA_BASE: C:\Users\db2admin\.netbeans\5.5\apache-tomcat-5.5.17_base
Using CATALINA_HOME: C:\Program Files\netbeans-5.5\enterprise3\apache-tomcat-5.5.17
Using CATALINA_TMPDIR: C:\Users\db2admin\.netbeans\5.5\apache-tomcat-5.5.17_base\temp
Using JRE_HOME: C:\Sun\SDK\jdk
Jun 29, 2007 7:47:06 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Sun\SDK\jdk\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNCTION;C:\PROGRA~1\IBM\SQLLIB\SAMPLES\REPL;C:\Program Files\QuickTime\QTSystem\;C:\Sun\SDK\bin;;C:\Users\db2admin\AppData\Local\Temp\java_ee_sdk-5_02-windows.exe2\package;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNCTION;C:\PROGRA~1\IBM\SQLLIB\SAMPLES\REPL;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNCTION;C:\PROGRA~1\IBM\SQLLIB\SAMPLES\REPL;C:\SUN\SDK\BIN;C:\SUN\SDK\JDK\BIN;;C:\SUN\SDK\BIN;C:\SUN\SDK\JDK\BIN;
Jun 29, 2007 7:47:06 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8090
Jun 29, 2007 7:47:06 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 582 ms
Jun 29, 2007 7:47:06 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 29, 2007 7:47:06 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
Jun 29, 2007 7:47:06 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jun 29, 2007 7:47:07 AM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8090
Jun 29, 2007 7:47:07 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jun 29, 2007 7:47:07 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/23 config=null
Jun 29, 2007 7:47:07 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Jun 29, 2007 7:47:07 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1471 ms

From the Infor about Server Startup, shall I assume that server hasn't started yet. If so, what is work a round for this? Please help me in fixing this problem. Thanks in advance.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14150
    
  18

Your Tomcat server has started normally according to those messages, so that isn't the problem.

Do you have a web application deployed? Did something change in the deployment configuration?


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi Jesper,

I didn't touch any of the files after installing tomcat. This message is getting displayed after starting Tomcat and giving http://localhost:8090/ in the browser. I'm not sure what went wrong here.
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Also,

When I tried to shut down the Tomcat, it messaged me "Failed shutdown of Apache Portable Runtime". Is there anything wrong with my server.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14150
    
  18

As far as I know, Apache Portable Runtime is an optional native library that you can install for better scalability and performance (I've never used it myself). Tomcat also works without it, so it shouldn't be a problem if you don't have it installed.
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi Jasper,

Thanks for the information. However I may not need it now, as my tomcat is working fine. There could be some installation problems.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting 404 error on startup