You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Linda Smith <li...@yahoo.com> on 2004/04/05 17:06:47 UTC
non-java files inside jar
I get a ServletException caused by:
java.lang.ExceptionInInitializerError when sending a
request from a jsp to a servlet.
the odd thing about it is, when I checked the logs, I
saw it couldn't find one of the files in a specific
jar archive:
Caused by: java.lang.RuntimeException: Could not find
log configuration file com/sri/oaa2/oaa_log_config.xml
at com.sri.oaa2.lib.LibOaa.<clinit>(LibOaa.java:336)
it is an .xml type file. the archive is copied
correctly to /WEB-INF/lib, and the .xml file is indeed
in the jar archive(double checked). actually, the
class causing the error runs fine outside tomcat.
notes: using tomcat 5.0.19, j2sdk1.4.2_02
same error occurs both in windows (xp) and linux
(redhat)
thanks for your time
__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway
http://promotions.yahoo.com/design_giveaway/
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: non-java files inside jar
Posted by "Filip Hanik (lists)" <de...@hanik.com>.
how are you trying to get the XML file?
make sure you use the correct class loader approach
FIlip
-----Original Message-----
From: Linda Smith [mailto:lindalinda20042003@yahoo.com]
Sent: Monday, April 05, 2004 10:07 AM
To: tomcat-user@jakarta.apache.org
Subject: non-java files inside jar
I get a ServletException caused by:
java.lang.ExceptionInInitializerError when sending a
request from a jsp to a servlet.
the odd thing about it is, when I checked the logs, I
saw it couldn't find one of the files in a specific
jar archive:
Caused by: java.lang.RuntimeException: Could not find
log configuration file com/sri/oaa2/oaa_log_config.xml
at com.sri.oaa2.lib.LibOaa.<clinit>(LibOaa.java:336)
it is an .xml type file. the archive is copied
correctly to /WEB-INF/lib, and the .xml file is indeed
in the jar archive(double checked). actually, the
class causing the error runs fine outside tomcat.
notes: using tomcat 5.0.19, j2sdk1.4.2_02
same error occurs both in windows (xp) and linux
(redhat)
thanks for your time
__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway
http://promotions.yahoo.com/design_giveaway/
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.614 / Virus Database: 393 - Release Date: 3/5/2004
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.614 / Virus Database: 393 - Release Date: 3/5/2004
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org