You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Andrey Myatlyuk <an...@oneworldinc.com> on 2001/03/07 00:36:47 UTC

Servlet is not reloadable. Why?

Hello!

I have Tomcat Server 3.2.1 running on NT server.

When I replace my existing classfiles(even one) in web-inf/classes directory
with new ones, I get exception:

Error: 500
Location: /flutrack/default.htm
Internal Servlet Error:

java.lang.IllegalStateException: Can't happen - classname is null, who added this ?
        at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:261)
        at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289)
        at org.apache.tomcat.core.Handler.service(Handler.java:254)
        at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
        at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
        at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
        at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
        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:484)

Of course, when I shut down and then restart tomcat, everything works
OK.

I read documentation about this topic and learned, that by default
"reloadable" is false.

So I added my context to the server.xml file(as stated in the
documentation).

===cut===
         ...
         <Context path="/examples"
                 docBase="webapps/examples" 
                 crossContext="false"
                 debug="0" 
                 reloadable="true" > 
        </Context>

        <Context path="/flutrack" 
                 docBase="webapps/flutrack" 
                 crossContext="false"
                 debug="0" 
                 reloadable="true" > 
        </Context>
         ...
===cut===

uriworkermap.properties the same too...

===cut===
....

# Mount the examples context to the ajp12 worker
/examples/*=ajp12

# Mount flutrack context
/flutrack/*=ajp12
....
===cut===

What's wrong with my configuration?

Examples context works great.

-- 
Best regards,
 Andrey                            mailto:andrey@oneworldinc.com