Tomcat -- is this configuration ok?

R

R. Vince

I am running Tomcat 5.5 on a WinXP machine and it runs flawlessly. I have
the invoker servlet turned on via conf/web.xml with:

<servlet>
<servlet-name>invoker</servlet-name>
<servlet-class>
org.apache.catalina.servlets.InvokerServlet
</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>

(I know, I know...you shouldn't use invoker in real applicaitons, only for
development!), so for the actual servlet I am running I do not have anything
particular I have places in WEB-INF/web.xml.

Thats the setup but, I recently put a timer into the main servlet I am
running. Whereas before I used to simply have
WEB-INF/classes/myservlet.class I know have
WEB-INF/classes/myservlet$1.class.

My question therefore is, given the configuration I described (with invoker
servlet) can I expect this to run properly, or must I put myservlet.class
and myservlet$1.class into a jar, and put that into WEB-INF/lib (and if so,
would the invoker servlet still invoke it automatically?).

TIA, R. Vince
 
?

=?ISO-8859-1?Q?Arne_Vajh=F8j?=

R. Vince said:
I am running Tomcat 5.5 on a WinXP machine and it runs flawlessly. I have
the invoker servlet turned on via conf/web.xml with:
Thats the setup but, I recently put a timer into the main servlet I am
running. Whereas before I used to simply have
WEB-INF/classes/myservlet.class I know have
WEB-INF/classes/myservlet$1.class.

My question therefore is, given the configuration I described (with invoker
servlet) can I expect this to run properly, or must I put myservlet.class
and myservlet$1.class into a jar, and put that into WEB-INF/lib (and if so,
would the invoker servlet still invoke it automatically?).

Are you asking whether the addition of myservlet$1.class requires
something in web.xml ?

It does not.

Whether you have .class file sin classes or a .jar file in lib
does not require any changes to web.xml either.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top