You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jerry Thomas <je...@hotmail.com> on 2000/04/07 16:22:12 UTC

XSP - cannot run examples

I cannot run the XSP samples. I do have the tools.jar in my CLASSPATH.

running:
Windows NT 4.0
JDK 1.2.2
Cocoon 1.7


Cocoon 1.7

Error found handling the request.

      java.lang.NoClassDefFoundError: sun/tools/javac/Main
              at 
org.apache.cocoon.processor.xsp.language.java.XSPJavaProcessor.compile(XSPJavaProcessor.java, 
Compiled Code)
              at 
org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java, 
Compiled Code)
              at org.apache.cocoon.Engine.handle(Engine.java, Compiled Code)
              at org.apache.cocoon.Cocoon.service(Cocoon.java:145)
              at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
              at 
org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)
              at 
org.apache.jserv.JServConnection.run(JServConnection.java:188)
              at java.lang.Thread.run(Thread.java:479)
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


Re: XSP - cannot run examples

Posted by Sebastien Koechlin I-VISION <sk...@n-soft.com>.
Jerry Thomas a écrit :
> 
> I cannot run the XSP samples. I do have the tools.jar in my CLASSPATH.
> 
> running:
> Windows NT 4.0
> JDK 1.2.2
> Cocoon 1.7
> 
> Cocoon 1.7
> 
> Error found handling the request.
> 
>       java.lang.NoClassDefFoundError: sun/tools/javac/Main

Sorry but this error means that this class have not been found in
your classpath, I am not a Cocoon expert, but you don't give us
any help.

Can you check the following :

(1). Find the tools.jar file, open it with winzip or run pkunzip -l or
jar -t on it and check that you have a file named
	sun/tools/javac/Main.class
if not, you have a wrong file.

(2). As it looks like you are using ApacheJServ, enable
the status handler with something like
	<Location /jserv/>
		SetHandler jserv-status
		order allow,deny
		allow from all
	</Location>
in your jserv.conf.

Then load http://your.server/jserv/,
follow the 'Mapped servlet engines' you use
follow 'Current Status'
does tools.jar can be found in 'Class Path' with
it's full FileSystem Path ?

(For me it's /usr/lib/jdk1.2.2/lib/tools.jar
but you have to MS-adapt this).

(3). No idea...

-- 
Seb