Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2007

Tip: Looking for answers? Try searching our database.

Tomcat -- is this configuration ok?

Thread view: 
R. Vince - 15 May 2007 13:41 GMT
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
Arne Vajhøj - 19 May 2007 21:27 GMT
> 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
[quoted text clipped - 5 lines]
> 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.