cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frans Thamura <fth4m...@yahoo.com>
Subject Re: got Cocoon working; all demos work except first two XSP demos
Date Mon, 09 Apr 2001 00:02:04 GMT
modify the tomcat.sh

add you xerces.jar, xalan.jar, and cocoon.jar in the
beginning of the line of CP line.

You make sure you have the out put line like this
Using classpath: 
/usr/local/tomcat/lib/xerces.jar..

not..

> Using classpath: 
>
/usr/local/tomcat/bin/../lib/ant.jar:/usr/local/tomca




--- Cono D'Elia <conod@home.com> wrote:
> Hello,
> 
> Please excuse the length of this message. I recently
> installed Cocoon 
> v1.82. I got everything to work. Although all of the
> other demos were 
> working I couldn't get the "First XSP Page" demo
> from the Dynamic content 
> section to work. BTW, I'm using Tomcat 3.2.1 and Jdk
> 1.2.2. I was able to 
> fix the problem, but I don't understand what is
> wrong with the previous 
> setup and why the new one makes a difference. Any
> help would be deeply 
> appreciated.
> 
> In a nutshell to get it to work I had to move the
> following jar files:
> 
> Only in .: cocoon.jar
> Only in .: fop_0_15_0.jar
> Only in .: tools.jar
> Only in .: turbine-pool.jar
> Only in .: w3c.jar
> Only in .: xalan_1_2_D02.jar
> Only in .: xerces_1_2.jar
> 
> to my jdk/....jre/ext/ directory.
> 
> Why did this make it work? What is so special about
> moving a jar file into 
> the ext directory? How can I get XSP working without
> moving the above 
> cocoon jar files?
> 
> I was getting:
> 
> java.lang.NoClassDefFoundError:
> org/apache/cocoon/processor/xsp/XSPPage
> 
> Even though I removed all the xml.jar files and
> renamed parser.jar to 
> zzzparser.xml and cocoon was in the tomcat lib dir
> 
> Here is a break down of my environment:
> 
> OLD Config:
> 
> This is what my CLASSPATH for tomcat was:
> 
> Using classpath: 
>
/usr/local/tomcat/bin/../lib/ant.jar:/usr/local/tomcat/bin/../l
>
ib/ant_1_1.jar:/usr/local/tomcat/bin/../lib/bin:/usr/local/tomcat/bin/../lib/bsf
>
.jar:/usr/local/tomcat/bin/../lib/bsfengines.jar:/usr/local/tomcat/bin/../lib/co
>
coon.jar:/usr/local/tomcat/bin/../lib/fesi.jar:/usr/local/tomcat/bin/../lib/fop_
>
0_15_0.jar:/usr/local/tomcat/bin/../lib/jasper.jar:/usr/local/tomcat/bin/../lib/
>
jaxp.jar:/usr/local/tomcat/bin/../lib/repository:/usr/local/tomcat/bin/../lib/sa
>
x-bugfix.jar:/usr/local/tomcat/bin/../lib/servlet.jar:/usr/local/tomcat/bin/../l
>
ib/servlet_2_2.jar:/usr/local/tomcat/bin/../lib/stylebook-1.0-b2.jar:/usr/local/
>
tomcat/bin/../lib/test:/usr/local/tomcat/bin/../lib/turbine-pool.jar:/usr/local/
>
tomcat/bin/../lib/w3c.jar:/usr/local/tomcat/bin/../lib/webserver.jar:/usr/local/
>
tomcat/bin/../lib/xalan_1_2_D02.jar:/usr/local/tomcat/bin/../lib/xerces_1_2.jar:
>
/usr/local/tomcat/bin/../lib/xt.jar:/usr/local/tomcat/bin/../lib/zzzparser.jar:/
>
usr/local/jdk1.2.2/lib/tools.jar:.:/usr/local/jdk1.2.2/lib/tools.jar:/usr/local/
>
jConnect-5_2/classes/jconn2.jar:/usr/local/tomcat/webapps/jsp/WEB-INF/classes:/u
> sr/local/jutils-2_0/jisql/jisql.jar
> 
> This was my tomcat\lib dir:
> 
> ant.jar cocoon.jar repository test xerces_1_2.jar
> ant_1_1.jar fesi.jar sax-bugfix.jar turbine-pool.jar
> xt.jar
> bin fop_0_15_0.jar servlet.jar w3c.jar zzzparser.jar
> bsf.jar jasper.jar servlet_2_2.jar webserver.jar
> bsfengines.jar jaxp.jar stylebook-1.0-b2.jar
> xalan_1_2_D02.jar
> 
> This was my jdk\....ext dir
> 
> activation.jar iiimp.jar mail.jar pop3.jar.old
> servlet.jar
> ext.tar jconn2.jar mail.jar.old repository
> 
> 
> What does WORK:
> 
> Using classpath: 
>
/usr/local/tomcat/bin/../lib/ant.jar:/usr/local/tomcat/bin/../lib/ant_1_1.jar:/usr/local/tomcat/bin/../lib/bin:/usr/local/tomcat/bin/../lib/bsf.jar:/usr/local/tomcat/bin/../lib/bsfengines.jar:/usr/local/tomcat/bin/../lib/fesi.jar:/usr/local/tomcat/bin/../lib/jasper.jar:/usr/local/tomcat/bin/../lib/jaxp.jar:/usr/local/tomcat/bin/../lib/repository:/usr/local/tomcat/bin/../lib/sax-bugfix.jar:/usr/local/tomcat/bin/../lib/servlet.jar:/usr/local/tomcat/bin/../lib/servlet_2_2.jar:/usr/local/tomcat/bin/../lib/stylebook-1.0-b2.jar:/usr/local/tomcat/bin/../lib/test:/usr/local/tomcat/bin/../lib/webserver.jar:/usr/local/tomcat/bin/../lib/xt.jar:/usr/local/tomcat/bin/../lib/zzzparser.jar:/usr/local/jdk1.2.2/lib/tools.jar:/usr/local/tomcat/lib/xerces.jar:.:/usr/local/jdk1.2.2/lib/tools.jar:/usr/local/jConnect-5_2/classes/jconn2.jar:/usr/local/tomcat/webapps/jsp/WEB-INF/classes:/usr/local/jutils-2_0/jisql/jisql.jar
> 
> 
> This is my tomcat\lib dir:
> 
> ant.jar bsf.jar jasper.jar sax-bugfix.jar
> stylebook-1.0-b2.jar xt.jar
> ant_1_1.jar bsfengines.jar jaxp.jar servlet.jar test
> zzzparser.jar
> bin fesi.jar repository servlet_2_2.jar
> webserver.jar
> 
> This is my jdk\....ext dir
> 
> activation.jar fop_0_15_0.jar mail.jar repository
> turbine-pool.jar 
> xerces_1_2.jar
> cocoon.jar iiimp.jar mail.jar.old servlet.jar
> w3c.jar
> ext.tar jconn2.jar pop3.jar.old tools.jar
> xalan_1_2_D02.jar
> 
> 
> Thanks
> 
> Cono
> 
> 
>
---------------------------------------------------------------------
> Please check that your question has not already been
> answered in the
> FAQ before posting.
> <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail:
> <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:
> <cocoon-users-help@xml.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message