tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Fountain" <tfount...@benefitconcepts.com>
Subject RE: Class loading issue
Date Fri, 26 Oct 2007 13:46:01 GMT
Sorry, I should not that the error generated was something about
"DocumentBuilderFactoryImpl is not being loaded properly".  This is a
class that is accessed as a part of this product.

Thanks,
Tony

-----Original Message-----
From: Tony Fountain [mailto:tfountain@benefitconcepts.com] 
Sent: Friday, October 26, 2007 9:43 AM
To: Tomcat Users List
Subject: Class loading issue

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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


________________________________________________________________________
This Email has been scanned for all viruses by PAETEC Email Scanning
Services, utilizing MessageLabs proprietary SkyScan infrastructure. For
more information on a proactive anti-virus service working around the
clock, around the globe, visit http://www.paetec.com.
________________________________________________________________________

________________________________________________________________________
This Email has been scanned for all viruses by PAETEC Email Scanning
Services, utilizing MessageLabs proprietary SkyScan infrastructure. For
more information on a proactive anti-virus service working around the
clock, around the globe, visit http://www.paetec.com.
________________________________________________________________________

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


Mime
View raw message