Re: $JAVA_HOME/lib/tools.jar?

"Grzegorz B. Prokopski" <[email protected]> Thu, 31 Mar 2005 17:30:02 -0500
Newsgroups gmane.comp.java.vm.sablevm.general
Organization Debian http://www.debian.org - The Free Operating System
Message-ID <[email protected]>
On Thu, 2005-31-03 at 16:11 -0500, mel kravitz wrote:
> Hi,
> one last question i have an application where several servlet pages 
> fault with:
> 
> *exception*
> 
> org.apache.jasper.JasperException: Unable to compile class for JSP
> 
> No Java compiler was found to compile the generated source for the JSP. 
> This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK 
> to the common/lib directory of the Tomcat server, followed by a Tomcat restart. 
> If using an alternate Java compiler, please check its installation and access path.
> 
> where is tools.jar? it is present in suns j2sdk.../lib/

At the moment there's no tools.jar in SableVM.  This should be fixed by
the end of April.  Usually the only reason an app needs tools.jar is
to call the Sun's compiler.  This is also why you're getting the above
exception.

In such case you always have to tell such a program not to use the Sun's
compiler interface in tools.jar, but to use an external compiler (jikes)
instead.

You said you modified the web.xml but apparently jasper still looks for
Sun's compiler, instead of using jikes.  Maybe you could try out the
second instruction:

http://www.telenovela-world.com/~spade/linux/howto/MMBase-Inst-HOWTO/x276.html

by adding "-Dbuild.compiler.emacs=true -DjavaEncoding=ISO-8859-1" to
your CATALINA_OPTS as well?

HTH

				Grzegorz B. Prokopski

PS: Nothing private in this email, so I am Cc:ing sablevm-user,
especially that there's plenty of people who will run into identical
problems.

Actually, when you're done, would you be able to go to

	http://sablevm.org/wiki/Tomcat

and write something in a shape of a step-by-step instruction about
how to get Tomcat working with SableVM?  Later you could also point
debian-alpha guys to that (I'll be uploading a new SableVM debs shortly,
so that it wasn't necessary to recompile with 'direct' on alpha).
-- 
Grzegorz B. Prokopski           <[email protected]>
SableVM - Free, LGPL'ed Java VM  http://sablevm.org
Why SableVM ?!?                  http://sablevm.org/wiki/Features
Debian GNU/Linux - the Free OS   http://www.debian.org