aspose file tools*
The moose likes Tomcat and the fly likes web app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "web app" Watch "web app" New topic
Author

web app

karthik mama
Ranch Hand

Joined: Aug 27, 2007
Posts: 34
hi,
after opening the url http://localhost:8080 and while clicking the tomcat manager the error i am getting is
HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.


exception

java.lang.NullPointerException
org.apache.catalina.manager.HTMLManagerServlet.list(HTMLManagerServlet.java:423)
org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:161)
javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

A 500 response code means "Something went wrong on the server".
To get some idea as to what went wrong, you would need to look in the logs under TOMCAT_INSTALL/logs.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
karthik mama
Ranch Hand

Joined: Aug 27, 2007
Posts: 34
what to do with those log files please be a little clearer.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

You need to read them.
karthik mama
Ranch Hand

Joined: Aug 27, 2007
Posts: 34
This is what is there please help me out...............


2007-08-27 16:31:38 ContextListener: contextInitialized()
2007-08-27 16:31:38 SessionListener: contextInitialized()
2007-08-27 16:31:38 ContextListener: contextInitialized()
2007-08-27 16:31:38 SessionListener: contextInitialized()
2007-08-27 16:31:55 HTMLManager: init: Associated with Deployer 'localhost'
2007-08-27 16:31:55 HTMLManager: init: Global resources are available
2007-08-27 16:31:55 HTMLManager: list: Listing contexts for virtual host 'localhost'
2007-08-27 16:31:55 StandardWrapperValve[HTMLManager]: Servlet.service() for servlet HTMLManager threw exception
java.lang.NullPointerException
at org.apache.catalina.manager.HTMLManagerServlet.list(HTMLManagerServlet.java:423)
at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:161)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:594)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:195)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:209)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
at java.lang.Thread.run(Thread.java:536)
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

The problem is often on the top line of the stack trace.
If, the top line points to a class that you didn't write, try working your way down the stack trace to the first line containing something that you did write.

Also, look for "Root Cause".

In this case, we can see that you have a Null Pointer Exception in the list method of HTMLManagerServlet:
org.apache.catalina.manager.HTMLManagerServlet.list(HTMLManagerServlet.java:423)

Something you did not write.
I'm guessing that there is a problem in one of the application's deployment descriptor (web.xml) or, if you edited server.xml to add an application, there is a problem with it.

I can only guess without seeing all of your log files.
If there is a real lot there, try, stopping Tomcat, backing up all the existing log files (remove them from the logs directory) and start it back up.
This way, it will be a lot easier to find the specific problem without wading through weeks or months of logs.



java.lang.NullPointerException
org.apache.catalina.manager.HTMLManagerServlet.list(HTMLManagerServlet.java:423)
org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:161)
javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
karthik mama
Ranch Hand

Joined: Aug 27, 2007
Posts: 34
thank you
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12803
    
    5
You should also post the exact version of Tomcat you are using as well as the Java version. I tried looking at the source code for HTMLManagerServlet at line 423 (Tomcat 5.5.17) but you must be working with a different version.

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: web app