Windows 2003 Server
Apache Tomcat 5.5.23 (running as Windows service)
JVM 1.5.0_12b-04 (Sun)
 
In an attempt to have a specific web app load when Apache starts, I
added the following element to the \WEB-INF\web.xml file for the
appropriate servlet - <load-on-startup>1</load-on-startup>.  This works,
but when the webapp loads, one of the classes it requires generates an
error the first time the webapp is accessed via the browser.  The class
is contained in a JAR that resides in the \WEB-INF\lib folder.  This
webapp is not written by us, rather it's a product we purchased.  At the
suggestion of the vendor I moved the JAR file to the \Tomcat\common\lib
folder and everything now works just fine.  I've reviewed the
documentation on class loading in Tomcat 5.5 but this still makes no
sense to me in terms of why this happens and why moving it fixed it.
According to this documentation, the \WEB-INF\lib solution should work
just fine.  Any thoughts?  Note that if I do not attempt to load on
startup then everything works fine (just takes several seconds for the
webapp to load upon the initial access).
 
Thanks,
Tony

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to