Hi,

On a production application (Tomcat 4.1.18/JDK-1.4.1_01) we have an
intermittant error which leaves Tomcat in a state where it does not serve
our homepage (bouncing Tomcat fixes the problem). The Tomcat log contains
the following error below. It looks to me like there is a problem accessing
a Tomcat log file but I am just guessing. The error appears in the
4teus_log.txt - as defined:

<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true"
autoDeploy="true">      
        <Valve className="org.apache.catalina.valves.AccessLogValve"
        directory="logs"  prefix="4teus_access_log." suffix=".txt"
        pattern="common"/>                       
        <Logger className="org.apache.catalina.logger.FileLogger"
        directory="logs"  prefix="4teus_log." suffix=".txt"
        timestamp="true"/>      
                        <!-- Tomcat Root Context -->
                        <Context path="" docBase="" debug="0"/>         
</Host>

Has anybody seen this before or can point me in the right direction to solve
this.

many thanks

Dan


ERROR:

2003-03-23 12:10:52 StandardWrapperValve[default]: Servlet.service() for
servlet default threw exception
java.lang.NullPointerException
        at java.io.File.<init>(File.java:263)
        at
org.apache.naming.resources.FileDirContext.file(FileDirContext.java:880)
        at
org.apache.naming.resources.FileDirContext.getAttributes(FileDirContext.java
:487)
        at
org.apache.naming.resources.BaseDirContext.getAttributes(BaseDirContext.java
:797)
        at
org.apache.naming.resources.ProxyDirContext.cacheLoad(ProxyDirContext.java:1
473)
        at
org.apache.naming.resources.ProxyDirContext.cacheLookup(ProxyDirContext.java
:1394)
        at
org.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.java:300)
        at
org.apache.catalina.servlets.DefaultServlet$ResourceInfo.set(DefaultServlet.
java:2267)
        at
org.apache.catalina.servlets.DefaultServlet$ResourceInfo.<init>(DefaultServl
et.java:2219)
        at
org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.jav
a:921)
        at
org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:506)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
        at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
        at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
        at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)
        at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)
        at java.lang.Thread.run(Thread.java:536)



SERVER.XML:

<Server port="8005" shutdown="SHUTDOWN" debug="0">

        <!-- Uncomment these entries to enable JMX MBeans support -->
        <Listener
className="org.apache.catalina.mbeans.ServerLifecycleListener" debug="0"/>
        <Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
debug="0"/>

        <!-- Global JNDI resources -->
        <GlobalNamingResources>
        <!-- Test entry for demonstration purposes -->
        <Environment name="simpleValue" type="java.lang.Integer"
value="30"/>

        <!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users -->
        <Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"></Resource>
        <ResourceParams name="UserDatabase">
 
<parameter><name>factory</name><value>org.apache.catalina.users.MemoryUserDa
tabaseFactory</value></parameter>
 
<parameter><name>pathname</name><value>conf/tomcat-users.xml</value></parame
ter>
        </ResourceParams>
        </GlobalNamingResources>

        <Service name="Tomcat-Standalone">

        <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
                                        port="80" minProcessors="5"
maxProcessors="75"
               enableLookups="true" redirectPort="443"
               acceptCount="100" debug="0" connectionTimeout="20000"
               useURIValidationHack="false" disableUploadTimeout="true" />
               
        <!-- Define a SSL Coyote HTTP/1.1 Connector on port 443 -->
        <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
               port="443" minProcessors="5" maxProcessors="75"
               enableLookups="true" acceptCount="100" debug="0"
scheme="https" secure="true"
               useURIValidationHack="false" disableUploadTimeout="true">
                        <Factory
className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
                                        clientAuth="false" protocol="TLS"
keystoreFile="conf\keystore" keystorePass="ax794b"/>
        </Connector>

        <Engine name="Standalone" defaultHost="localhost" debug="0">
        <!-- Global logger unless overridden at lower levels -->
        <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="catalina_log." suffix=".txt"
              timestamp="true"/>
        <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
              debug="0" resourceName="UserDatabase"/>
              <!-- Define the default virtual host -->
              <Host name="localhost" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="true">                    
                                <Valve
className="org.apache.catalina.valves.AccessLogValve"
                         directory="logs"  prefix="4teus_access_log."
suffix=".txt"
                         pattern="common"/>
                         
                        <Logger
className="org.apache.catalina.logger.FileLogger"
                         directory="logs"  prefix="4teus_log." suffix=".txt"
                                                timestamp="true"/>

                        <!-- Tomcat Root Context -->
                        <Context path="" docBase="" debug="0"/>         
                        </Host>
                </Engine>

        </Service>

</Server>
> Daniel Haynes
> 
> E: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to