Hi,
I'm trying to setup tomcat to use a separate context home and webapp
directory but I run into 2 problems:
[1] Error: 500 Internal Servlet Error: java.lang.NullPointerException
when trying to access files in the context
[2] XmlMapper: Can't find method addTaglib in Ctx errors because of
<env-entry> in my web.xml file
Here's the output:
Setting environment for Hotwire 2.0:
Java 1.3
Apache 1.3.14
Tomcat 3.1
Ant 1.2
WebLogic 5.1 (SP 6)
Searching for build.xml ...
Buildfile: /home/cyril/p4/hotwire/2.0/build/build.xml
tomcat:
Copying 1 files to /home/cyril/p4/hotwire/2.0/deploy/dev/tomcat/conf
Copying 1 files to /home/cyril/p4/hotwire/2.0/webapp/WEB-INF
Setting home to /home/cyril/p4/hotwire/2.0/deploy/dev/tomcat
Starting tomcat. Check logs/tomcat.log for error messages
No webapps/ directory
/home/cyril/p4/hotwire/2.0/deploy/dev/tomcat/webapps
XmlMapper: Can't find method addTaglib in
Ctx(,/home/cyril/p4/hotwire/2.0/webapp) CLASS class
org.apache.tomcat.core.Context
XmlMapper: Can't find method addTaglib in
Ctx(,/home/cyril/p4/hotwire/2.0/webapp) CLASS class
org.apache.tomcat.core.Context
XmlMapper: Can't find method addTaglib in
Ctx(,/home/cyril/p4/hotwire/2.0/webapp) CLASS class
org.apache.tomcat.core.Context
XmlMapper: Can't find method addTaglib in
Ctx(,/home/cyril/p4/hotwire/2.0/webapp) CLASS class
org.apache.tomcat.core.Context
The URL requested displays:
Error: 500
Location: /jsp/index.jsp
Internal Servlet Error:
java.lang.NullPointerException
at
org.apache.tomcat.request.SimpleMapper.getPathMatch(SimpleMapper.java:352)
at
org.apache.tomcat.request.SimpleMapper.findContainer(SimpleMapper.java:239)
at
org.apache.tomcat.request.SimpleMapper.requestMap(SimpleMapper.java:188)
at
org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:594)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:552)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Thread.java:484)
My server.xml and web.xml conf file are attached.
Any help would be appreciated! :)
Thanks,
--
Cyril Bouteille - Senior J2EE Software Engineer
Hotwire - San Francisco, California
http://www.hotwire.com
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
<!-- Configuration of Web Application for Servlet Container 2.2 -->
<!-- Cyril Bouteille - 11/7/2000 -->
<web-app>
<!-- distributable/ -->
<session-config>
<!-- session timeout in minutes -->
<session-timeout>30</session-timeout>
</session-config>
<mime-mapping>
<extension>txt</extension>
<mime-type>text/plain</mime-type>
</mime-mapping>
<mime-mapping>
<extension>html</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
<mime-mapping>
<extension>gif</extension>
<mime-type>image/gif</mime-type>
</mime-mapping>
<mime-mapping>
<extension>jpg</extension>
<mime-type>image/jpeg</mime-type>
</mime-mapping>
<mime-mapping>
<extension>pdf</extension>
<mime-type>application/pdf</mime-type>
</mime-mapping>
<welcome-file-list>
<welcome-file>
index.jsp
</welcome-file>
<welcome-file>
index.html
</welcome-file>
</welcome-file-list>
<error-page>
<error-code>404</error-code>
<location>404.html</location>
</error-page>
<env-entry>
<env-entry-name>jndi.context.factory</env-entry-name>
<!-- set class name of JNDI context factory on the application server -->
<env-entry-value>weblogic.jndi.WLInitialContextFactory</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
<env-entry>
<env-entry-name>jndi.provider.url</env-entry-name>
<!-- set list of application server URL for JNDI context requests -->
<env-entry-value>t3://localhost:7001</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
</web-app>
<?xml version="1.0" encoding="ISO-8859-1"?>
<Server>
<!-- Debug low-level events in XmlMapper startup -->
<xmlmapper:debug level="0" />
<!-- verbosityLevel values can be:
FATAL
ERROR
WARNING
INFORMATION
DEBUG
-->
<Logger name="tc_log"
path="logs/tomcat.log"
customOutput="yes" />
<Logger name="servlet_log"
path="logs/servlet.log"
customOutput="yes" />
<Logger name="JASPER_LOG"
path="logs/jasper.log"
verbosityLevel="INFORMATION" />
<ContextManager debug="0"
workDir="/tmp/tomcat"
home="/home/cyril/p4/hotwire/2.0/deploy/dev/tomcat">
<!-- ContextInterceptor className="org.apache.tomcat.context.LogEvents" / -->
<ContextInterceptor className="org.apache.tomcat.context.AutoSetup" />
<ContextInterceptor className="org.apache.tomcat.context.DefaultCMSetter" />
<ContextInterceptor className="org.apache.tomcat.context.WorkDirInterceptor" />
<ContextInterceptor className="org.apache.tomcat.context.WebXmlReader" />
<ContextInterceptor className="org.apache.tomcat.context.LoadOnStartupInterceptor"
/>
<!-- Request processing -->
<RequestInterceptor className="org.apache.tomcat.request.SimpleMapper" debug="0" />
<RequestInterceptor className="org.apache.tomcat.request.SessionInterceptor" />
<RequestInterceptor className="org.apache.tomcat.request.SecurityCheck" />
<RequestInterceptor className="org.apache.tomcat.request.FixHeaders" />
<Connector className="org.apache.tomcat.service.SimpleTcpConnector">
<Parameter name="handler"
value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
<Parameter name="port" value="8001"/>
</Connector>
<Connector className="org.apache.tomcat.service.SimpleTcpConnector">
<Parameter name="handler"
value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/>
<Parameter name="port" value="8002"/>
</Connector>
<Context path="" docBase="/home/cyril/p4/hotwire/2.0/webapp" debug="0"
reloadable="true" >
</Context>
</ContextManager>
</Server>
Context log: path="" Adding context path=""
docBase="/home/cyril/p4/hotwire/2.0/webapp"
Starting tomcat install="/home/cyril/p4/apache/tomcat/3.1"
home="/home/cyril/p4/hotwire/2.0/deploy/dev/tomcat"
classPath="/home/cyril/p4/java/sunos-sparc/1.3/jre/lib/rt.jar:/home/cyril/p4/apache/ant/1.2/lib/jaxp.jar:/home/cyril/p4/apache/ant/1.2/lib/parser.jar:/home/cyril/p4/apache/ant/1.2/lib/ant.jar:/home/cyril/p4/apache/ant/1.2/lib/optional.jar:/home/cyril/p4/apache/tomcat/3.1/lib/jasper.jar:/home/cyril/p4/apache/tomcat/3.1/lib/servlet.jar:/home/cyril/p4/apache/tomcat/3.1/lib/webserver.jar:/home/cyril/p4/weblogic/5.1/lib/weblogic510sp6.jar:/home/cyril/p4/weblogic/5.1/classes:/home/cyril/p4/weblogic/5.1/license:/home/cyril/p4/weblogic/5.1/lib/weblogicaux.jar:/home/cyril/p4/hotwire/1.0/classes/lib/TOPLinkWLX.jar:/home/cyril/p4/hotwire/1.0/classes/lib/TOPLink.jar:/home/cyril/p4/hotwire/1.0/classes/lib/TOPLinkX.jar:/home/cyril/p4/hotwire/1.0/classes/lib/TOPLinkWLX.jar:/home/cyril/p4/hotwire/1.0/classes/lib/Tools.jar:/home/cyril/p4/jce/1.2.1/lib/jce1_2_1.jar:/home/cyril/p4/jce/1.2.1/lib/sunjce_provider.jar:/home/cyril/p4/hotwire/2.0/classes/lib/eland.jar:/home/cyril/p4/hotwire/2.0/classes/lib/cybersource3300.jar:/home/cyril/p4/hotwire/2.0/classes/lib/jce1_2-do.jar:/home/cyril/p4/hotwire/2.0/classes/lib/jnet.jar:/home/cyril/p4/hotwire/2.0/classes/lib/jcert.jar:/home/cyril/p4/hotwire/2.0/classes/lib/jsse.jar:/home/cyril/p4/hotwire/2.0/classes/lib/org.jar:/home/cyril/p4/hotwire/2.0/classes/lib/mail.jar:/home/cyril/p4/hotwire/2.0/classes/lib/oracle-thin.zip:/home/cyril/p4/hotwire/2.0/classes"
Context log: path="" File not found
/home/cyril/p4/hotwire/2.0/deploy/dev/tomcat/conf/tomcat-users.xml
Starting endpoint port="8001"
handler="org.apache.tomcat.service.http.HttpConnectionHandler"
Starting endpoint port="8002"
handler="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"
Context log: path="" <b>Internal Servlet Error:</b><br>
<pre>
java.lang.NullPointerException
at org.apache.tomcat.request.SimpleMapper.getPathMatch(SimpleMapper.java:352)
at org.apache.tomcat.request.SimpleMapper.findContainer(SimpleMapper.java:239)
at org.apache.tomcat.request.SimpleMapper.requestMap(SimpleMapper.java:188)
at
org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:594)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:552)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Thread.java:484)
</pre>
Context log: path="" <b>Internal Servlet Error:</b><br>
<pre>
java.lang.NullPointerException
at org.apache.tomcat.request.SimpleMapper.getPathMatch(SimpleMapper.java:352)
at org.apache.tomcat.request.SimpleMapper.findContainer(SimpleMapper.java:239)
at org.apache.tomcat.request.SimpleMapper.requestMap(SimpleMapper.java:188)
at
org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:594)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:552)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Thread.java:484)
</pre>
S/MIME Cryptographic Signature