views:

745

answers:

2

Hi I get this error in windows xp, when try to access http://localhost:8080. I do not see any errors in resin before hand. Also the JAVA_HOME in windows is set.

500 Servlet Exception

Resin can't load com.sun.tools.javac.Main. Usually this means that the JDK tools.jar is missing from the classpath, possibly because of using a JRE instead of the JDK. You can either add tools.jar to the classpath or change the compiler to an external one with or jikes.

java.lang.ClassNotFoundException: com.sun.tools.javac.Main in NonScanDynamicClassLoader[JarLoader[[]]]

Thanks

P P

A: 

Usually this means that the JDK tools.jar is missing from the classpath, possibly because of using a JRE instead of the JDK.

Ok, so is your JAVA_HOME pointing to a JRE or a JDK?

matt b
it is pointing to the JDK
and are you sure that resin looks at JAVA_HOME?
matt b
thats what the installation guide said
so I switched over to resin 3.19 from 4.0 and modified a java complier tag to be javac and put an env variable for RESIN_HOME and it worked, version 4.0 is strange that it does not have resin.conf in it.
A: 

I've copied tools.jar into resin's lib folder and all has solved

supergiovine