Set your class path to include all resin jar files:

CLASSPATH=.;C:\resin30\resin-3.0.22\lib\resin.jar;C:\resin30\resin-3.0.22\lib\jsdk-24.jar;C:\resin30\resin-3.0.22\lib\j2ee-management-10.jar;......;C:\Program
 Files\Java\jre1.6.0_01\lib\ext\QTJava.zip

and then, the following command should do:

java com.caucho.jsp.JspCompiler -app-dir "/opt/www/foo" test/foo.jsp

Resin distribution does not include  setenv.cmd or setenv.sh file, which allows 
users conveniently set environment, though usages are rare.

________________________________________
From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Tim Manchester [EMAIL 
PROTECTED]
Sent: Friday, June 08, 2007 2:25 PM
To: resin-interest@caucho.com
Subject: [Resin-interest] Classpath problem

I'm trying to use the jsp compiler and I know I must be having classpath 
problems. When I attempt to execute the following command:
C:\resin30\resin-3.0.22\lib>java com.caucho.jsp.JspCompiler -app-dir 
"/opt/www/foo" test/foo.jsp

I get the following exception:
Exception in thread "main" java.lang.NoClassDefFoundError: 
com/caucho/jsp/JspCompiler

So I modified my command to this:
C:\resin30\resin-3.0.22\lib>java -jar resin.jar com.caucho.jsp.JspCompiler 
-app-dir "/opt/www/foo" test/foo.jsp
and got this exception instead:
Exception in thread "main" java.lang.NoClassDefFoundError: 
com/caucho/server/boot/ResinBoot

This is my classpath:
C:\resin30\resin-3.0.22\lib>set classpath
CLASSPATH=.;C:\resin30\resin-3.0.22\lib;C:\Program 
Files\Java\jre1.6.0_01\lib\ext\QTJava.zip

The root dir for resin is C:\resin30\resin-3.0.22\ and the lib directory 
contains the files:
C:\resin30\resin-3.0.22\lib>ls
activation.jar     j2ee-deploy-10.jar           jca-15.jar    jstl-11.jar       
 resin-jdk15.jar
aopalliance.jar  j2ee-management-10.jar  jms-11.jar   jta-101.jar       
resin.jar
ejb-20.jar          java                               jmx-12.jar   
portlet-10.jar   resinboot.jar
ejb-30.jar          javamail-14.jar                jsdk-24.jar  quercus.jar     
script-10.jar

So, what am I missing? resinboot.jar is here. resin.jar is here. Which jar file 
is ResinBoot in?

Regards,

Tim


_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to