tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arnaud Vandyck <Arnaud.Vand...@ulg.ac.be>
Subject Prob Mapping Servlet (NullPointerException...)
Date Tue, 09 May 2000 11:26:26 GMT
Hi every one,

I tried to map a servlet directory and followed the
explanations of 
http://www.ccl.net/cca/software/UNIX/apache/tomcatfaq.shtml

but I think I missed something:
I added in tomcat.conf:

ApJServMount /avdtests /root
<Location /avdtests/WEB-INF/ >
  AllowOverride None
  deny from all
</Location>
<Directory /web/myroot/avantests >
  AllowOverride None
  deny from all
</Directory>

I added in server.xml
<Context path="/avdtests" docBase="/web/myroot/avantests" debug="0"
         reloadable="true" />

and finally I added in web.xml nothing:
<!DOCTYPE...>
<web-app>
</web-app>

I have these files:
/web/myroot/avantests/WEB-INF/web.xml
/web/myroot/avantests/WEB-INF/classes/coucou.class

everything has been done as in the document.

But I have an Error500 from Tomcat (I'm sure because it looks
different than the one from Apache).

The full error message in logs/tomcat.log is:
<pre>
java.lang.NullPointerException: 
        at
org.apache.tomcat.request.SimpleMapper.getPathMatch(SimpleMapper.java:344)
        at
org.apache.tomcat.request.SimpleMapper.findContainer(SimpleMapper.java:229)
        at
org.apache.tomcat.request.SimpleMapper.requestMap(SimpleMapper.java:174)
        at
org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:548)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:506)
        at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:147)
        at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:334)
        at java.lang.Thread.run(Thread.java:475)
</pre>

An idea?
Where did I miss something?

Thanks

-- 
 ____     Arnaud_Vandyck
||""||    STE-Formations
||__||    ULg - Belgique
[ -=.]`)  32-4/366.90.55
====== 0  ICQ:  48119561

Mime
View raw message