You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Egidijus Drobavicius <eg...@vb.lt> on 2001/05/10 15:49:09 UTC
Does tomcat undestant static classes?
I use one class as a collection of data items, such as
public static final String tmpDir="/u/somedir"
When I use this under W2000, it works. Under UNIX (SCO 506) i get
java.lang.IllegalStateException: Can't happen - classname is null, who added this ?
at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java, Compiled Code)
at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java, Compiled Code)
at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled Code)
at org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.java, Compiled Code)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java, Compiled Code)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java, Compiled Code)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)
Could anyone explain what is this?
Thanks a lot
Egidijus Drobavicius
AB Vilniaus Bankas
http://www.vb.lt
tel. + 370 2 682706
Server.xml
Posted by Anthony Scott <as...@interaccess.com>.
I have a problem with Tomcat reading application outside of /webapp. I
have setup my webserver to mount my client box to read public_html
directory. Apache work fine for http://www.rose.com/~sco/ but my
attempt to config server.xml to read the client directory has failed. I
added the following to my server.xml file
<Context path="/Jack"
docBase="/home/sco/Jack"
crossContext="false"
debug="9"
reloadable="true"
>
</Context>
I get the following when I restart Tomcat
.............................................................................
"2001-05-10 08:47:34 - ContextManager: calc work dir /opt/Tomcat/work
2001-05-10 08:47:35 - Ctx( /examples ): Add user tomcat tomcat tomcat
2001-05-10 08:47:35 - Ctx( /examples ): Add user role1 tomcat role1
2001-05-10 08:47:35 - Ctx( /examples ): Add user both tomcat
tomcat,role1
2001-05-10 08:47:35 - Ctx( /examples ): Loading -2147483646 jsp
2001-05-10 08:47:35 - Ctx( /Jack ): XmlReader - init /Jack
/home/sco/Jack
2001-05-10 08:47:35 - Ctx( /Jack ): Reading
/home/sco/Jack/WEB-INF/web.xml
2001-05-10 08:47:35 - Ctx( /Jack): Loading -2147483646 jsp
2001-05-10 08:47:37 - PoolTcpConnector: Starting Ajp12ConnectionHandler
on 8007"
However http://www.rose.com/Jack/ ... doesn't work and Tomcat doesn't
produce an error but Apache has the following error in the logs.
[Thu May 10 00:00:45 2001] [error] [client X.X.X.X] File does not exist:
/home
/httpd/html/Jack/
Network Setup
Apache 1.3.7
Tomcat 3.2
Webserver: www.rose.com
Client : www.sco.com
Can anyone tell me what I'm doing wrong?
Tony
Re: Does tomcat undestant static classes?
Posted by Arnaud Dostes - NTI <ad...@nti-sa.com>.
Yeah I get that one too, i think it's a pretty funny message, don't you ?
I get it when updating a servlet or jsp and hiting refresh in my browser
I work around it by restarting tomcat but if someone could explain why it happens, it'd be nice
Cheers, AD
----- Original Message -----
From: Egidijus Drobavicius
To: tomcat-user@jakarta.apache.org
Sent: Thursday, May 10, 2001 3:49 PM
Subject: Does tomcat undestant static classes?
I use one class as a collection of data items, such as
public static final String tmpDir="/u/somedir"
When I use this under W2000, it works. Under UNIX (SCO 506) i get
java.lang.IllegalStateException: Can't happen - classname is null, who added this ?
at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java, Compiled Code)
at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java, Compiled Code)
at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled Code)
at org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.java, Compiled Code)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java, Compiled Code)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java, Compiled Code)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)
Could anyone explain what is this?
Thanks a lot
Egidijus Drobavicius
AB Vilniaus Bankas
http://www.vb.lt
tel. + 370 2 682706
Re: Does tomcat undestant static classes?
Posted by "Noel E. Lecaros" <sp...@mozcom.com>.
Check your file and directory permissions. Do you have execute access to all
the subdirs and read access to the files?
Egidijus Drobavicius wrote:
> I use one class as a collection of data items, such aspublic static final
> String tmpDir="/u/somedir"When I use this under W2000, it works. Under UNIX
> (SCO 506) i get java.lang.IllegalStateException: Can't happen - classname is
> null, who added this ?
> at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java,
> Compiled Code)
> at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java, Compiled
> Code)
> at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code)
> at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled
> Code)
> at org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.java,
> Compiled Code)
> at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
> Compiled Code)
> at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled
> Code)
> at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java,
> Compiled Code)
> at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
> Compiled Code)
> at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
> Compiled Code)
> at java.lang.Thread.run(Thread.java, Compiled Code) Could anyone explain what
> is this? Thanks a lot Egidijus Drobavicius
> AB Vilniaus Bankas
> http://www.vb.lt
> tel. + 370 2 682706