[Fwd: Virtual host in Tomcat 3.2.1 thros NullPointer]

2001-04-23 Thread Neil Aggarwal

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


Hello:

I am trying to set-up Tomcat 3.2.1 as a standalone servlet container
for virtual hosts.

I downloaded the tomcat 3.2.1 binary distribution, dearchived it,
and then made these modifications to server.xml:

1. Changed the HttpContentHandler to port 80 so that it
would repond to normal web requests.
2. In the ContextManager section, I added these lines:
Host name=xxx.xxx.xxx.xxx 
Context path=
debug=1
docbase=webapps/host1 /
/Host

After starting tomcat, I tried to visit http://xxx.xxx.xxx.xxx
and I got this error message:
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 ideas what is causing this?

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]

2001-04-23 Thread Danny Angus

Context path=
should be
Context path=/
for hits to the path root



 -Original Message-
 From: Neil Aggarwal [mailto:[EMAIL PROTECTED]]
 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



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

2001-04-23 Thread Neil Aggarwal

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:[EMAIL PROTECTED]]
  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