You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Neil Aggarwal <ne...@JAMMConsulting.com> on 2001/04/23 18:16:35 UTC

[Fwd: Virtual host in Tomcat 3.2.1 thros NullPointer]

Hello:

Has anyone seen this problem????

Thanks,
	Neil.

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases

Re: [Fwd: Virtual host in Tomcat 3.2.1 thros NullPointer]

Posted by Neil Aggarwal <ne...@JAMMConsulting.com>.
Danny:

I change my server.xml to:
        <Host name="xxx.xxx.xxx.xxx" >
            <Context path="/"
                debug="1"
                docbase="webapps/host1" />
        </Host>

And I still get this error:
Error: 500

Location: /

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:791)
        at
org.apache.tomcat.request.StaticInterceptor.requestMap(StaticInterceptor.java:191)
        at
org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:820)
        at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:771)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
        at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
        at java.lang.Thread.run(Thread.java:498)

Any other ideas?

Thanks,
	Neil.

Danny Angus wrote:
> 
> <Context path=""
> should be
> <Context path="/"
> for hits to the path root
> 
> > -----Original Message-----
> > From: Neil Aggarwal [mailto:neil@JAMMConsulting.com]
> > Sent: Monday, April 23, 2001 5:17 PM
> > To: tomcat users list
> > Subject: [Fwd: Virtual host in Tomcat 3.2.1 thros NullPointer]
> >
> >
> > Hello:
> >
> > Has anyone seen this problem????
> >
> > Thanks,
> >       Neil.
> >
> > --
> > Neil Aggarwal
> > JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
> > Custom Internet Development -- Java, JSP, servlets, databases

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases

RE: [Fwd: Virtual host in Tomcat 3.2.1 thros NullPointer]

Posted by Danny Angus <da...@thought.co.uk>.
<Context path=""
should be
<Context path="/"
for hits to the path root



> -----Original Message-----
> From: Neil Aggarwal [mailto:neil@JAMMConsulting.com]
> Sent: Monday, April 23, 2001 5:17 PM
> To: tomcat users list
> Subject: [Fwd: Virtual host in Tomcat 3.2.1 thros NullPointer]
> 
> 
> Hello:
> 
> Has anyone seen this problem????
> 
> Thanks,
> 	Neil.
> 
> --
> Neil Aggarwal
> JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
> Custom Internet Development -- Java, JSP, servlets, databases