You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Gary Pollreis <ga...@elkriversystems.com> on 2003/01/07 00:48:11 UTC

Unable to compile class for JSP

I have just installed Tomcat 4.1.18 under Windows 2000 (using Java JDK
1.4.0).  When I try to run the examples I get
"org.apache.jasper.JasperException: Unable to compile class for JSP" .
I have validated that my JAVA_HOME and CATALINA_HOME environment variables
are correct.
Any/all help would be appreciated.  Thanks in advance.

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


RE: Unable to compile class for JSP

Posted by Kevin Jones <ke...@develop.com>.
I've used 4.1.x and 4.0.x with JDK1.4 and JDK 1.4.1 and never had this
problem. 

One thing you might want to check on windows is which JRE you are using.
Sun install Java in two places, c:\j2sdk1.4.1 and c:\winnt\java (or
something similar). By default the JRE is set in the registry to be
c:\winnt\java and java.exe is copied to c:\winnt\system32. So unless you
either choose not to install the JRE, or you delete java.exe from
c:\winnt\system32 when you run java, the JRE picked up is the one
installed into c:\winnt and this one doesn't have a tools.jar.

Delete java.exe from c:\winnt\system32, set java_home to c:\j2sdk1.4.1
and add c:\j2sdk1.4.1\bin to your path, then try it again

Kevin Jones
Developmentor
www.develop.com

> -----Original Message-----
> From: news [mailto:news@main.gmane.org] On Behalf Of Costin Manolache
> Sent: 07 January 2003 00:53
> To: tomcat-dev@jakarta.apache.org
> Subject: Re: Unable to compile class for JSP
> 
> 
> Jeanfrancois Arcand wrote:
> 
> > Hum...I don't have any problems under win2k using Sun JDK 
> 1.4.1 (and I
> > don't remember seeing that problem with 1.4). Have you try 
> with 1.4.1? I
> > will downgrade and see....
> 
> No, I'm just happy that I found the trick to make it work.
> ( I only tested tomcat4.1 with JDK1.4.0-b92 on w2k and xp )
> 
> Costin
> 
> > 
> > -- Jeanfrancois
> > 
> > Costin Manolache wrote:
> > 
> >>Just had the same problem - it seems JDK1.4 on windows has 
> an interesting
> >>behavior - it will not load javac from tools.jar unless it 
> is included in
> >>endorsed.
> >>
> >>I'm not a big windows user - if someone could confirm, we 
> need to change
> >>the scripts. I see this behavior with (at least) 1.4.0-b92.
> >>
> >>Costin
> >>
> >>
> >>Gary Pollreis wrote:
> >>
> >>  
> >>
> >>>will do - thanks for the heads up.
> >>>
> >>>-----Original Message-----
> >>>From: Matt Parker [mailto:mpark@voyanttech.com]
> >>>Sent: Monday, January 06, 2003 5:57 PM
> >>>To: Tomcat Developers List
> >>>Subject: Re: Unable to compile class for JSP
> >>>
> >>>
> >>>you should post this to the tomcat-users list. this list 
> is for issues
> >>>related to development on the tomcat product.
> >>>
> >>>
> >>>On Mon, 2003-01-06 at 16:48, Gary Pollreis wrote:
> >>>    
> >>>
> >>>>I have just installed Tomcat 4.1.18 under Windows 2000 
> (using Java JDK
> >>>>1.4.0).  When I try to run the examples I get
> >>>>"org.apache.jasper.JasperException: Unable to compile 
> class for JSP" .
> >>>>I have validated that my JAVA_HOME and CATALINA_HOME environment
> >>>>variables are correct.
> >>>>Any/all help would be appreciated.  Thanks in advance.
> >>>>
> >>>>--
> >>>>To unsubscribe, e-mail:
> >>>>      
> >>>>
> >>><ma...@jakarta.apache.org>
> >>>    
> >>>
> >>>>For additional commands, e-mail:
> >>>>      
> >>>>
> >>><ma...@jakarta.apache.org>
> >>>    
> >>>
> >>>--
> >>>To unsubscribe, e-mail:
> >>><ma...@jakarta.apache.org> For additional
> >>>commands, e-mail: <ma...@jakarta.apache.org>
> >>>    
> >>>
> >>
> >>
> >>
> >>
> >>--
> >>To unsubscribe, e-mail:  
> >><ma...@jakarta.apache.org> For additional
> >>commands, e-mail: <ma...@jakarta.apache.org>
> >>
> >>
> >>  
> >>
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-dev-> unsubscribe@jakarta.apache.org>
> For 
> additional commands, 
> e-mail: <ma...@jakarta.apache.org>
> 


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


Re: Unable to compile class for JSP

Posted by Costin Manolache <cm...@yahoo.com>.
Jeanfrancois Arcand wrote:

> Hum...I don't have any problems under win2k using Sun JDK 1.4.1 (and I
> don't remember seeing that problem with 1.4). Have you try with 1.4.1? I
> will downgrade and see....

No, I'm just happy that I found the trick to make it work.
( I only tested tomcat4.1 with JDK1.4.0-b92 on w2k and xp )

Costin

> 
> -- Jeanfrancois
> 
> Costin Manolache wrote:
> 
>>Just had the same problem - it seems JDK1.4 on windows has an interesting
>>behavior - it will not load javac from tools.jar unless it is included in
>>endorsed.
>>
>>I'm not a big windows user - if someone could confirm, we need to change
>>the scripts. I see this behavior with (at least) 1.4.0-b92.
>>
>>Costin
>>
>>
>>Gary Pollreis wrote:
>>
>>  
>>
>>>will do - thanks for the heads up.
>>>
>>>-----Original Message-----
>>>From: Matt Parker [mailto:mpark@voyanttech.com]
>>>Sent: Monday, January 06, 2003 5:57 PM
>>>To: Tomcat Developers List
>>>Subject: Re: Unable to compile class for JSP
>>>
>>>
>>>you should post this to the tomcat-users list. this list is for issues
>>>related to development on the tomcat product.
>>>
>>>
>>>On Mon, 2003-01-06 at 16:48, Gary Pollreis wrote:
>>>    
>>>
>>>>I have just installed Tomcat 4.1.18 under Windows 2000 (using Java JDK
>>>>1.4.0).  When I try to run the examples I get
>>>>"org.apache.jasper.JasperException: Unable to compile class for JSP" .
>>>>I have validated that my JAVA_HOME and CATALINA_HOME environment
>>>>variables are correct.
>>>>Any/all help would be appreciated.  Thanks in advance.
>>>>
>>>>--
>>>>To unsubscribe, e-mail:
>>>>      
>>>>
>>><ma...@jakarta.apache.org>
>>>    
>>>
>>>>For additional commands, e-mail:
>>>>      
>>>>
>>><ma...@jakarta.apache.org>
>>>    
>>>
>>>--
>>>To unsubscribe, e-mail:
>>><ma...@jakarta.apache.org> For additional
>>>commands, e-mail: <ma...@jakarta.apache.org>
>>>    
>>>
>>
>>
>>
>>
>>--
>>To unsubscribe, e-mail:  
>><ma...@jakarta.apache.org> For additional
>>commands, e-mail: <ma...@jakarta.apache.org>
>>
>>
>>  
>>




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


Re: Unable to compile class for JSP

Posted by Jeanfrancois Arcand <jf...@apache.org>.
Hum...I don't have any problems under win2k using Sun JDK 1.4.1 (and I 
don't remember seeing that problem with 1.4). Have you try with 1.4.1? I 
will downgrade and see....

-- Jeanfrancois

Costin Manolache wrote:

>Just had the same problem - it seems JDK1.4 on windows has an interesting
>behavior - it will not load javac from tools.jar unless it is included in
>endorsed.
>
>I'm not a big windows user - if someone could confirm, we need to change the
>scripts. I see this behavior with (at least) 1.4.0-b92.
>
>Costin
>
>
>Gary Pollreis wrote:
>
>  
>
>>will do - thanks for the heads up.
>>
>>-----Original Message-----
>>From: Matt Parker [mailto:mpark@voyanttech.com]
>>Sent: Monday, January 06, 2003 5:57 PM
>>To: Tomcat Developers List
>>Subject: Re: Unable to compile class for JSP
>>
>>
>>you should post this to the tomcat-users list. this list is for issues
>>related to development on the tomcat product.
>>
>>
>>On Mon, 2003-01-06 at 16:48, Gary Pollreis wrote:
>>    
>>
>>>I have just installed Tomcat 4.1.18 under Windows 2000 (using Java JDK
>>>1.4.0).  When I try to run the examples I get
>>>"org.apache.jasper.JasperException: Unable to compile class for JSP" .
>>>I have validated that my JAVA_HOME and CATALINA_HOME environment
>>>variables are correct.
>>>Any/all help would be appreciated.  Thanks in advance.
>>>
>>>--
>>>To unsubscribe, e-mail:
>>>      
>>>
>><ma...@jakarta.apache.org>
>>    
>>
>>>For additional commands, e-mail:
>>>      
>>>
>><ma...@jakarta.apache.org>
>>    
>>
>>--
>>To unsubscribe, e-mail:  
>><ma...@jakarta.apache.org> For additional
>>commands, e-mail: <ma...@jakarta.apache.org>
>>    
>>
>
>
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>  
>

RE: Unable to compile class for JSP

Posted by Costin Manolache <cm...@yahoo.com>.
Just had the same problem - it seems JDK1.4 on windows has an interesting
behavior - it will not load javac from tools.jar unless it is included in
endorsed.

I'm not a big windows user - if someone could confirm, we need to change the
scripts. I see this behavior with (at least) 1.4.0-b92.

Costin


Gary Pollreis wrote:

> will do - thanks for the heads up.
> 
> -----Original Message-----
> From: Matt Parker [mailto:mpark@voyanttech.com]
> Sent: Monday, January 06, 2003 5:57 PM
> To: Tomcat Developers List
> Subject: Re: Unable to compile class for JSP
> 
> 
> you should post this to the tomcat-users list. this list is for issues
> related to development on the tomcat product.
> 
> 
> On Mon, 2003-01-06 at 16:48, Gary Pollreis wrote:
>> I have just installed Tomcat 4.1.18 under Windows 2000 (using Java JDK
>> 1.4.0).  When I try to run the examples I get
>> "org.apache.jasper.JasperException: Unable to compile class for JSP" .
>> I have validated that my JAVA_HOME and CATALINA_HOME environment
>> variables are correct.
>> Any/all help would be appreciated.  Thanks in advance.
>>
>> --
>> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
>> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>>
> 
> 
> --
> To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org> For additional
> commands, e-mail: <ma...@jakarta.apache.org>




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


RE: Unable to compile class for JSP

Posted by Matt Parker <mp...@voyanttech.com>.
Happy New Year :)

On Mon, 2003-01-06 at 17:00, Gary Pollreis wrote:
> will do - thanks for the heads up.
> 
> -----Original Message-----
> From: Matt Parker [mailto:mpark@voyanttech.com]
> Sent: Monday, January 06, 2003 5:57 PM
> To: Tomcat Developers List
> Subject: Re: Unable to compile class for JSP
> 
> 
> you should post this to the tomcat-users list. this list is for issues
> related to development on the tomcat product.
> 
> 
> On Mon, 2003-01-06 at 16:48, Gary Pollreis wrote:
> > I have just installed Tomcat 4.1.18 under Windows 2000 (using Java JDK
> > 1.4.0).  When I try to run the examples I get
> > "org.apache.jasper.JasperException: Unable to compile class for JSP" .
> > I have validated that my JAVA_HOME and CATALINA_HOME environment variables
> > are correct.
> > Any/all help would be appreciated.  Thanks in advance.
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 


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


RE: Unable to compile class for JSP

Posted by Gary Pollreis <ga...@elkriversystems.com>.
will do - thanks for the heads up.

-----Original Message-----
From: Matt Parker [mailto:mpark@voyanttech.com]
Sent: Monday, January 06, 2003 5:57 PM
To: Tomcat Developers List
Subject: Re: Unable to compile class for JSP


you should post this to the tomcat-users list. this list is for issues
related to development on the tomcat product.


On Mon, 2003-01-06 at 16:48, Gary Pollreis wrote:
> I have just installed Tomcat 4.1.18 under Windows 2000 (using Java JDK
> 1.4.0).  When I try to run the examples I get
> "org.apache.jasper.JasperException: Unable to compile class for JSP" .
> I have validated that my JAVA_HOME and CATALINA_HOME environment variables
> are correct.
> Any/all help would be appreciated.  Thanks in advance.
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>


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



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


Re: Unable to compile class for JSP

Posted by Matt Parker <mp...@voyanttech.com>.
you should post this to the tomcat-users list. this list is for issues
related to development on the tomcat product.


On Mon, 2003-01-06 at 16:48, Gary Pollreis wrote:
> I have just installed Tomcat 4.1.18 under Windows 2000 (using Java JDK
> 1.4.0).  When I try to run the examples I get
> "org.apache.jasper.JasperException: Unable to compile class for JSP" .
> I have validated that my JAVA_HOME and CATALINA_HOME environment variables
> are correct.
> Any/all help would be appreciated.  Thanks in advance.
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 


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