You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Aleksandr Shneyderman <al...@law.columbia.edu> on 2002/08/12 23:37:09 UTC

Hello all

I have browsed the archives and seems that there are a lot of questions
about the following error but there is really no answers that would be
a good solution in my situation:

We have an application that we were developing for a long time now and
it fairly extensive. Couple of days ago we decided to move from tc3 to
tc4 except that tc4 complains that it can not compile the jsp that tc3
was able to:

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Tomcat's Error

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

An error occurred between lines: 1 and 151 in the jsp file:
/glsApp/glsAddress.jsp

Generated servlet error:
/cms/freeware/jakarta-tomcat-4.0.4/work/Standalone/localhost/admissions/glsA
pp/glsAddress$jsp.java:157: Class org.apache.jsp.glsAddress not found.
                	 glsAddress addrClass = new glsAddress();
                	 ^


An error occurred between lines: 1 and 151 in the jsp file:
/glsApp/glsAddress.jsp

Generated servlet error:
/cms/freeware/jakarta-tomcat-4.0.4/work/Standalone/localhost/admissions/glsA
pp/glsAddress$jsp.java:157: Class org.apache.jsp.glsAddress not found.
                	 glsAddress addrClass = new glsAddress();

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

It seems that tc3 had a different way of constructing the java code for a
JSP.
It used to put the servlets it generaetd in the packages with the names that
were
based on the subdirectory of the jsp file

So for example /glsApp/glsAddress.jsp would be in package glsApp but now
it is in org.apache.jsp. Why is it happening and how would I go about fixing
it. As I stated above the app is huge and going thru each jsp and checking
for this kind of error is just not feasible.

Does anyone know how would I fix this, without going to each file and making
sure that import statement is there?

Thanks in advance and have a good night,
Alex.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>