You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Susanne Munker <su...@vodafone.de> on 2003/08/10 15:11:00 UTC

"unable to compile class for JSP" Upgrade 4.0 to 4.1

Hello,

I´m a newbie here and please excuse my english....


I have a problem with one application, that works fine under 4.0.6,

but with the 4.1 version of Tomcat I get the following error msg


-----------------------------------------------------------------------

HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented
it from fulfilling this request.

exception
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] Since fork is true, ignoring compiler setting.
    [javac] Compiling 1 source file
    [javac] Since fork is true, ignoring compiler setting.
    [javac]
/usr/local/jakarta-tomcat-4.1.24/work/Standalone/localhost/vorfahrt-test/WEB-INF/jsp/InternetAuskunftSuche01_jsp.java:7: package de.akdb.ok.vorfahrt does not exist
    [javac] import de.akdb.ok.vorfahrt.*;
    [javac] ^
    [javac] 1 error
~
---------------------------------------------------------

My Tomcat Installation (4.1.24) works fine with all examples. Perhaps
someone knows about the problem...



thank you and kindly regards
Susanne Munker






---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: "unable to compile class for JSP" Upgrade 4.0 to 4.1

Posted by John Turner <to...@johnturner.com>.
Hi -

This might help:

http://jakarta.apache.org/tomcat/faq/misc.html#compile

and

http://jakarta.apache.org/tomcat/faq/classnotfound.html (especially all 
of the threads relating to packageless classes)

John

Susanne Munker wrote:

> Hello,
> 
> I´m a newbie here and please excuse my english....
> 
> 
> I have a problem with one application, that works fine under 4.0.6,
> 
> but with the 4.1 version of Tomcat I get the following error msg
> 
> 
> -----------------------------------------------------------------------
> 
> HTTP Status 500 -
> type Exception report
> message
> description The server encountered an internal error () that prevented
> it from fulfilling this request.
> 
> exception
> 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] Since fork is true, ignoring compiler setting.
>     [javac] Compiling 1 source file
>     [javac] Since fork is true, ignoring compiler setting.
>     [javac]
> /usr/local/jakarta-tomcat-4.1.24/work/Standalone/localhost/vorfahrt-test/WEB-INF/jsp/InternetAuskunftSuche01_jsp.java:7: package de.akdb.ok.vorfahrt does not exist
>     [javac] import de.akdb.ok.vorfahrt.*;
>     [javac] ^
>     [javac] 1 error
> ~
> ---------------------------------------------------------
> 
> My Tomcat Installation (4.1.24) works fine with all examples. Perhaps
> someone knows about the problem...
> 
> 
> 
> thank you and kindly regards
> Susanne Munker
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: "unable to compile class for JSP" Upgrade 4.0 to 4.1

Posted by John Turner <to...@johnturner.com>.
Hi -

This might help:

http://jakarta.apache.org/tomcat/faq/misc.html#compile

and

http://jakarta.apache.org/tomcat/faq/classnotfound.html (especially all 
of the threads relating to packageless classes)

John

Susanne Munker wrote:

> Hello,
> 
> I´m a newbie here and please excuse my english....
> 
> 
> I have a problem with one application, that works fine under 4.0.6,
> 
> but with the 4.1 version of Tomcat I get the following error msg
> 
> 
> -----------------------------------------------------------------------
> 
> HTTP Status 500 -
> type Exception report
> message
> description The server encountered an internal error () that prevented
> it from fulfilling this request.
> 
> exception
> 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] Since fork is true, ignoring compiler setting.
>     [javac] Compiling 1 source file
>     [javac] Since fork is true, ignoring compiler setting.
>     [javac]
> /usr/local/jakarta-tomcat-4.1.24/work/Standalone/localhost/vorfahrt-test/WEB-INF/jsp/InternetAuskunftSuche01_jsp.java:7: package de.akdb.ok.vorfahrt does not exist
>     [javac] import de.akdb.ok.vorfahrt.*;
>     [javac] ^
>     [javac] 1 error
> ~
> ---------------------------------------------------------
> 
> My Tomcat Installation (4.1.24) works fine with all examples. Perhaps
> someone knows about the problem...
> 
> 
> 
> thank you and kindly regards
> Susanne Munker
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 



Re: "unable to compile class for JSP" Upgrade 4.0 to 4.1

Posted by "Jes�s Antonio S�nchez A." <sa...@yahoo.com>.
Well, jsp files are not meant to be inside a WEB-INF directory. Try putting those outside
of it. You may use some dir structure like this:
 
root_dir/
    jsp/
    WEB-INF/
        lib/
        tags/
        classes/

Try putting your jsp files in the jsp dir. Hope it works. :)

Susanne Munker <su...@vodafone.de> wrote:
no, I don�t use Ant, but I found some new facts about my problem


- there are some .jsp files under webapps/vorfahrt-test/WEB-INF/jsp and
the first line in this .jsp files is



If I delete this line it works, I think the jar File is not on the right
place (the jar files are directly under
webapps/vorfahrt-test/WEB-INF/lib)

But why it works under 4.0.6???



susanne


> ATTACHMENT part 2 message/rfc822 
Date: Sun, 10 Aug 2003 08:59:43 -0700 (PDT)
From: "Jes�s Antonio S�nchez A." 
Subject: Re: "unable to compile class for JSP" Upgrade 4.0 to 4.1
To: Tomcat Users List 

Are you using ant for your project? I think 
the reload task of apache using ant is not working
the way it should. 


--- Susanne Munker wrote:
> Hello,
> 
> I�m a newbie here and please excuse my english....
> 
> 
> I have a problem with one application, that works
> fine under 4.0.6,
> 
> but with the 4.1 version of Tomcat I get the
> following error msg
> 
> 
>
-----------------------------------------------------------------------
> 
> HTTP Status 500 -
> type Exception report
> message
> description The server encountered an internal error
> () that prevented
> it from fulfilling this request.
> 
> exception
> 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] Since fork is true, ignoring compiler
> setting.
> [javac] Compiling 1 source file
> [javac] Since fork is true, ignoring compiler
> setting.
> [javac]
>
/usr/local/jakarta-tomcat-4.1.24/work/Standalone/localhost/vorfahrt-test/WEB-INF/jsp/InternetAuskunftSuche01_jsp.java:7:
> package de.akdb.ok.vorfahrt does not exist
> [javac] import de.akdb.ok.vorfahrt.*;
> [javac] ^
> [javac] 1 error
> ~
>
---------------------------------------------------------
> 
> My Tomcat Installation (4.1.24) works fine with all
> examples. Perhaps
> someone knows about the problem...
> 
> 
> 
> thank you and kindly regards
> Susanne Munker
> 
> 
> 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> 

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Re: "unable to compile class for JSP" Upgrade 4.0 to 4.1

Posted by Susanne Munker <su...@vodafone.de>.
no, I don´t use Ant, but I found some new facts about my problem


- there are some .jsp files under webapps/vorfahrt-test/WEB-INF/jsp and
the first line in this .jsp files is

<%@ page language="java" import="de.akdb.ok.vorfahrt.*, java.util.*" %>

If I delete this line it works, I think the jar File is not on the right
place (the jar files are directly under
webapps/vorfahrt-test/WEB-INF/lib)

But why it works under 4.0.6???

 

susanne

Re: "unable to compile class for JSP" Upgrade 4.0 to 4.1

Posted by "Jes�s Antonio S�nchez A." <sa...@yahoo.com>.
Are you using ant for your project? I think 
the reload task of apache using ant is not working
the way it should. 


--- Susanne Munker <su...@vodafone.de> wrote:
> Hello,
> 
> I�m a newbie here and please excuse my english....
> 
> 
> I have a problem with one application, that works
> fine under 4.0.6,
> 
> but with the 4.1 version of Tomcat I get the
> following error msg
> 
> 
>
-----------------------------------------------------------------------
> 
> HTTP Status 500 -
> type Exception report
> message
> description The server encountered an internal error
> () that prevented
> it from fulfilling this request.
> 
> exception
> 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] Since fork is true, ignoring compiler
> setting.
>     [javac] Compiling 1 source file
>     [javac] Since fork is true, ignoring compiler
> setting.
>     [javac]
>
/usr/local/jakarta-tomcat-4.1.24/work/Standalone/localhost/vorfahrt-test/WEB-INF/jsp/InternetAuskunftSuche01_jsp.java:7:
> package de.akdb.ok.vorfahrt does not exist
>     [javac] import de.akdb.ok.vorfahrt.*;
>     [javac] ^
>     [javac] 1 error
> ~
>
---------------------------------------------------------
> 
> My Tomcat Installation (4.1.24) works fine with all
> examples. Perhaps
> someone knows about the problem...
> 
> 
> 
> thank you and kindly regards
> Susanne Munker
> 
> 
> 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> 

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: "unable to compile class for JSP" Upgrade 4.0 to 4.1

Posted by "Jes�s Antonio S�nchez A." <sa...@yahoo.com>.
Are you using ant for your project? I think 
the reload task of apache using ant is not working
the way it should. 


--- Susanne Munker <su...@vodafone.de> wrote:
> Hello,
> 
> I�m a newbie here and please excuse my english....
> 
> 
> I have a problem with one application, that works
> fine under 4.0.6,
> 
> but with the 4.1 version of Tomcat I get the
> following error msg
> 
> 
>
-----------------------------------------------------------------------
> 
> HTTP Status 500 -
> type Exception report
> message
> description The server encountered an internal error
> () that prevented
> it from fulfilling this request.
> 
> exception
> 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] Since fork is true, ignoring compiler
> setting.
>     [javac] Compiling 1 source file
>     [javac] Since fork is true, ignoring compiler
> setting.
>     [javac]
>
/usr/local/jakarta-tomcat-4.1.24/work/Standalone/localhost/vorfahrt-test/WEB-INF/jsp/InternetAuskunftSuche01_jsp.java:7:
> package de.akdb.ok.vorfahrt does not exist
>     [javac] import de.akdb.ok.vorfahrt.*;
>     [javac] ^
>     [javac] 1 error
> ~
>
---------------------------------------------------------
> 
> My Tomcat Installation (4.1.24) works fine with all
> examples. Perhaps
> someone knows about the problem...
> 
> 
> 
> thank you and kindly regards
> Susanne Munker
> 
> 
> 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> 

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com