How are you loading the servlet at startup? I thought that you can only define the order the servlet is called in. In any case, the init method is the right place to do the lookup logic.
-- bk >> -----Original Message----- >> From: Tom Amiro [mailto:[EMAIL PROTECTED]] >> Sent: Friday, March 01, 2002 8:11 AM >> To: [EMAIL PROTECTED] >> Cc: craig mcclanahan >> Subject: load-on-startup and finding external classes with Tomcat 4.x >> >> >> Hi, >> >> Situation: A Xalan servlet whose init method creates a template >> for a stylesheet that references an external java class and does >> the transformation in a doGet method. >> >> Problem: With Tomcat 4.x, if you configure the web.xml to load the >> servlet at >> startup, when it runs, the external java class cannot be >> found. However, >> if you do not load on startup, when the server is first hit, >> the init >> method is invoked and the external java class is found and the >> transformation >> works. >> >> -- >> Tom Amiro -- SQA Engineer >> Sun XML Technology Development >> voice: 781-442-0589 Fax: 781-442-1437 >> eMail: [email protected] >>
