Apache Server configuration support - Tomcat 5 Wierdness

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > October 2005 > Tomcat 5 Wierdness





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Tomcat 5 Wierdness
The Lurker

2005-10-24, 4:44 pm

I've just installed Tomcat 5 on a SuSE 9.3 box. Admin and sample apps
seem to run O.K., but when I deploy a (previously-working) app I get

org.apache.jasper.JasperException: Unable to compile class for JSP

errors thrown, as if it can't find the app's WEB-INF/classes
directory. Needless to say, the directory is there and the necessary
classes are present in it.

Did I mention that this app is currently working properly on a old
Tomcat 3 server on a Red Hat 7.3 box? Oh, yeah, I did...

I'm sure I missed something along the way, but I am at a loss to say
what. I've RTFM'd until I'm cross-eyed, but I need to buy a clue.

Anyone with a suggestion that moves me out of my current impasse will
earn my eternal gratitude.

Andrew

2005-10-24, 4:44 pm

errr... could you possibly have the same problem I just solved for me?
(I posted a few minutes ago on alt.apache.configuration, subject
"./configure fails")

Perhaps one of the components involved (read or write) is in a
directory with "bad" selinux context?

andrew

The Lurker

2005-10-24, 4:44 pm

On Wed, 12 Oct 2005 13:24:57 GMT, The Lurker <noone@nowhere.com>
wrotC:

>I've just installed Tomcat 5 on a SuSE 9.3 box. Admin and sample apps
>seem to run O.K., but when I deploy a (previously-working) app I get
>
>org.apache.jasper.JasperException: Unable to compile class for JSP
>
>errors thrown, as if it can't find the app's WEB-INF/classes
>directory. Needless to say, the directory is there and the necessary
>classes are present in it.
>
>Did I mention that this app is currently working properly on a old
>Tomcat 3 server on a Red Hat 7.3 box? Oh, yeah, I did...
>
>I'm sure I missed something along the way, but I am at a loss to say
>what. I've RTFM'd until I'm cross-eyed, but I need to buy a clue.
>
>Anyone with a suggestion that moves me out of my current impasse will
>earn my eternal gratitude.


The problem seems to be that, sometime after Tomcat 3.x and before
Tomcat 5.x, it lost the ability to find raw classes in the
WEB-INF/classes directory. If I add my class to a package in its java
source:

package beans;

and import it later in the .JSP:

import "beans.*"

it is found in the WEB-INF/classes/beans directory and the applet
loads properly. Grrrrrr!!!

Anyway, thanks to all who had their thinking caps on. (You know who
you are.)

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com