You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Angel Cabello <ac...@masterd.es> on 2000/05/17 12:39:03 UTC

Problem with Kaffe

My developer machine is a RedHat 6.0, I can use Tomcat without problems,
but my production envirotment is RedHat 5.2, I have a lot of thigs in
that machine and I want to avoid upgrating this machine. I can't install
any JVM but Kaffe 1.0.5 in that machine, is a hell machine.

It seems to works right, but when I try to run a jsp, I get that message

[root@intranet bin]# Unhandled error! You might want to consider having
an error page to report such errors more gracefully
java.lang.NoClassDefFoundError: sun/tools/javac/Main
 at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128)

 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:238)
 at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
 at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:149)

 at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:161)

 at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)

 at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)

 at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)

 at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)

 at java.lang.Thread.run(Thread.java:314)


Can anyone tell me what's up?

It can be usefull information.


[root@intranet bin]# java -version
Kaffe Virtual Machine
Copyright (c) 1996-1999
Transvirtual Technologies, Inc.  All rights reserved
Engine: Just-in-time v3   Version: 1.0.5   Java Version: 1.1
[root@intranet bin]# javac -version
KOPI Java Compiler Version: 1.3C


Thanks

Angel Cabello

Saludos desde EspaƱa.


Re: Problem with Kaffe

Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
Angel Cabello wrote:

> My developer machine is a RedHat 6.0, I can use Tomcat without problems,
> but my production envirotment is RedHat 5.2, I have a lot of thigs in
> that machine and I want to avoid upgrating this machine. I can't install
> any JVM but Kaffe 1.0.5 in that machine, is a hell machine.
>
> It seems to works right, but when I try to run a jsp, I get that message
>
> [root@intranet bin]# Unhandled error! You might want to consider having
> an error page to report such errors more gracefully
> java.lang.NoClassDefFoundError: sun/tools/javac/Main
>  at
> org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128)
>

JSP pages are translated into Java servlets, which must then be compiled (by a Java compiler) before they
can be used.

By default, JSP page compilation in Tomcat tries to use the compiler from the JDK -- which is apparently
not present in the Kaffe virtual machine.  There are comments in the configuration files about how to use
Jikes as the JSP page compiler instead, if that is possible in your environment.

Craig McClanahan