Looks like maybe some directory permissions changed or some system
changed not allowing access to what Jasper needs

Mike Sabroff
Web Services Developer
[EMAIL PROTECTED]
920-568-8379 

-----Original Message-----
From: David Rickard [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 18, 2005 12:03 PM
To: users@tomcat.apache.org
Subject: JSP Compilation, Jasper class loading, and log4j issues

System: Solaris SunOS 5.9
Apache: 2.0.52
Tomcat: 4.1.29
Mod JK: 1.2.6
JDK: 1.4.2.02

We have used the above Apache-Tomcat installation for 1-2 years.  Within

the last few days, Tomcat has started failing to compile JSPs.  When a
JSP 
is modified (even simply touched), Tomcat throws the following error
message:

         org.apache.jasper.JasperException: Unable to compile class for
JSP
         An error occurred at line: -1 in the jsp file: null
         Generated servlet error:
             [javac] Compiling 1 source file

Tomcat is otherwise behaving normally: unmodified pages load and behave 
normally.

catalina.out is peppered with ClassNotFoundException messages for
various 
jasper classes (org.apache.jasper.runtime.HttpJspBase, 
org.apache.jasper.runtime.TagHandlerPool, 
org.apache.jasper.servlet.JspServlet).

The first sign of trouble came over the weekend, when the log-roller
cron 
(logadm) started returning the following error messages:

         log4j:WARN No appenders could be found for logger 
(org.apache.commons.digester.Digester.sax).
         log4j:WARN Please initialize the log4j system properly.

We do not use log4j in any applications on this server (is it used 
internally by Tomcat?).

I would suspect corruption of the jasper JARs, except there is no sign 
they've been touched recently; these are the contents of the common/lib 
directory:
-rw-r--r--   1 root     other      45386 Nov 21  2003 activation.jar
-rw-r--r--   1 root     other     736810 Nov 21  2003 ant.jar
-rw-r--r--   1 root     other     165119 Nov 21  2003
commons-collections.jar
-rw-r--r--   1 root     other     100776 Nov 21  2003
commons-dbcp-1.1.jar
-rw-r--r--   1 root     other      22327 Nov 21  2003
commons-logging-api.jar
-rw-r--r--   1 root     other      39523 Nov 21  2003
commons-pool-1.1.jar
-rw-r--r--   1 root     other     183104 Nov 21  2003
jasper-compiler.jar
-rw-r--r--   1 root     other      72933 Nov 21  2003 jasper-runtime.jar
-rw-r--r--   1 root     other       6727 Nov 21  2003 jdbc2_0-stdext.jar
-rw-r--r--   1 root     other      98496 Nov 21  2003 jndi.jar
-rw-r--r--   1 root     other       8674 Nov 21  2003 jta.jar
-rw-r--r--   1 root     other     280984 Nov 21  2003 mail.jar
-rw-r--r--   1 root     other      28520 Nov 21  2003 naming-common.jar
-rw-r--r--   1 root     other      18245 Nov 21  2003 naming-factory.jar
-rw-r--r--   1 root     other      38836 Nov 21  2003
naming-resources.jar
-rw-r--r--   1 root     other      79265 Nov 21  2003 servlet.jar

I've compared this directory with other (functioning normally) Tomcat 
installations here, and no JARs are missing.

Any ideas what might be causing this, and how to fix it (short of 
reinstalling Tomcat)?



--

David Rickard
Software Engineer

TechBooks/GTS
Your Single Source Solution!
Los Angeles CA * York, PA * Boston,MA * New Delhi, India
Visit us on the World Wide Web 
<http://www.techbooks.com>http://www.techbooks.com

[EMAIL PROTECTED]
5650 Jillson St., Los Angeles, CA 90040
(323) 888-8889 x331
(323) 888-1849 (Fax)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to