I've got 3.2.2 to work and I've integrated it with Apache. I can run the 
example applications as either http://server:8080/ or http://server/ and 
they work.

Some consultants have developed some java applications that I need to 
install on this server. They don't seem to have followed the "standards" 
however. There are no web.xml files for the applications, for example. 
Instead the application files are just stored in subdirectories of 
webapps, except for shared components which are in subdirectories of 
tomcat_home/classes.

The applications work when I run them as http://server/appname/ but I 
need to get them to run as http://appname.domain.dom/. When I set up the 
virtual hosts for these applicaitons however, I run into problems. I get 
the error message:


  Error: 500


    Location: /index.jsp

*Internal Servlet Error:*

java.lang.NullPointerException
        at org.apache.tomcat.util.FileUtil.isAbsolute(FileUtil.java:289)
        at org.apache.tomcat.core.Context.getAbsolutePath(Context.java:257)
        at org.apache.tomcat.core.Context.getRealPath(Context.java:794)
        at 
org.apache.tomcat.facade.ServletContextFacade.getRealPath(ServletContextFacade.java:136)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:490)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
        at org.apache.tomcat.core.Handler.service(Handler.java:287)
        at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
        at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
        at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
        at 
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
        at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
        at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
        at java.lang.Thread.run(Thread.java:484)

Any idea on what is going wrong?

Reply via email to