tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Santosh Asbe <santosh.a...@gmail.com>
Subject Re: JSP Compilation, Jasper class loading, and log4j issues
Date Wed, 19 Oct 2005 04:48:44 GMT
Hi ,
 I have also faced similar problem in Apache - tomcat setup on RHEL 3.0.
Wehenever i deploy a JSP and restarted the tomcat and made a call to that
JSP, samee error used to come.
initially then we used to delete the complied JSP in the work folder and
make an explicit call to the JSP. But then we had large number of JSPs. So
in this user group i found a links for pre compilation of JSP.
 http://www.rgagnon.com/javadetails/java-0414.html
 Now whenever i deploy JSPs , i specifically call this JSP and compile all
JSPs. The code in this link might rrequirer some tweaking as per your
requiremnt.
 Santosh

 On 10/18/05, Mike Sabroff <Mike.Sabroff@cygnusb2b.com> wrote:
>
> Looks like maybe some directory permissions changed or some system
> changed not allowing access to what Jasper needs
>
> Mike Sabroff
> Web Services Developer
> mike.sabroff@cygnusb2b.com
> 920-568-8379
>
> -----Original Message-----
> From: David Rickard [mailto:David.Rickard@techbooks.com]
> 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 <http://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
>
> david.rickard@techbooks.com
> 5650 Jillson St., Los Angeles, CA 90040
> (323) 888-8889 x331
> (323) 888-1849 (Fax)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message