I am trying to install and get working a tomcat app on a server I don't administer. The sysadmin doesn't know tomcat. I uploaded the files but tomcat doesn't recognize anything I do.
I've added a context for my app to the server.xml file, I've created the appropriate directories in the webapps folder, and tomcat was restarted. However, tomcat can't seem to pull up anything i my directory, or any other directory ( including ROOT ). I get 'resource unavailable' messages with no error in the log.
When I go to 'remotehost;8080/manager/html/list' and try to log in to restart my web application or see if it is even listed, it refuses me. ( I've set up a clear text name/password in the tomcat-users.xml file ). I've tried accessing the manager locally using lynx and gotten the same response.
When I try this, there is an error in the catalina.log file:
Oct 22, 2004 4:33:04 PM org.apache.coyote.tomcat5.CoyoteAdapter service SEVERE: An exception or error occurred in the container during the request processing java.lang.NullPointerException at org.apache.catalina.realm.RealmBase.findSecurityConstraints(RealmBase.java:475) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184) 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:567) 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:567) ...
I've looked throughout the conf files but can't see anything wrong.
Does anyone have any idea of any configuration or installation problems that might be hampering me? Thanks!
( Because I can't even bring up the ROOT/index.jsp page, I don't know what version I'm working with. I was simply assured it was tomcat 5.x )
-------<br /> Aodhan H - Ad Astra Per Aspera<br /> -------
As Bill has pointed out, did you manage to access the root page http://localhost:8080 before adding the context to server.xml? You can go to C:\tomcat-XXX\webapps\ROOT\RELEASE-NOTES.txt to check which version you're using. Which OS are you running?
Author and all-around good cowpoke
Joined: Mar 22, 2000
Well, the first thing to do is to see if Tomcat is even running. You said you:
I get 'resource unavailable' messages with no error in the log.
Is that the ever-so-helpful MSIE browser message or are you actually getting the unavailable message from Tomcat? MSIE has this nasty "Friendly HTTP error messages" setting that will conceal useful error messages. Be sure it is turned off in "Internet Options->Advanced" Bill
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com