cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Reynolds <li...@va.com.au>
Subject Re: Cocoon with Tomcat-3.3rc2 - where to put jars????
Date Sun, 14 Oct 2001 18:07:49 GMT
Hi Brian

Have confidence in your side door!!!

I did as you suggested and now it works!!! That is I altered all 
those resource:// lines to be file:// lines into the 
cocoon.properties file (as below) and then it started working, 
awesome.

So this is Cocoon 1.8.2 with Tomcat 3.3rc2.

Note though, that I've been utterly unable to get Tomcat 3.3rc2 
talking to Apache 1.3.20 via mod_jk.so - if I use the Tomcat 3.2.3 
version of the mod_jk.so then connections to /cocoon/*.xml just 
timeout, and if I use the mod_jk.so I compiled from the 3.3rc2 
sources, I get the following error on startup of apache, and it bombs:

su-2.05# apachectl start
Syntax error on line 237 of /usr/local/etc/apache/httpd.conf:
Cannot load /usr/local/libexec/apache/mod_jk.so into server: 
/usr/local/libexec/apache/mod_jk.so: Undefined symbol 
"jk_set_log_format"
/usr/local/sbin/apachectl start: httpd could not be started

If anyone has any ideas what to do here, I'm all ears. I've had to go 
back to 3.2.3 for now :-(

Im using FreeBSD 4.4, and Blackdown Linux JDK 1.2.2

Thanks

Jesse



from cocoon.properties:

# Set the libraries associated with the given namespace.
# Use the syntax:
#   processor.xsp.logicsheet.<namespace-tag>.<language> = URL to file
# where "URL to file" is usually starting with file:// if you locate
# your custom library in your file system.
processor.xsp.logicsheet.context.java  = 
file:///usr/local/cocoon-1.8.2/src/org/apache/cocoon/processor/xsp/library/java/context.xsl
#processor.xsp.logicsheet.cookie.java   = 
file:///usr/local/cocoon-1.8.2/src/org/apache/cocoon/processor/xsp/library/java/cookie.xsl
processor.xsp.logicsheet.global.java   = 
file:///usr/local/cocoon-1.8.2/src/org/apache/cocoon/processor/xsp/library/java/global.xsl
processor.xsp.logicsheet.request.java  = 
file:///usr/local/cocoon-1.8.2/src/org/apache/cocoon/processor/xsp/library/java/request.xsl
processor.xsp.logicsheet.response.java = 
file:///usr/local/cocoon-1.8.2/src/org/apache/cocoon/processor/xsp/library/java/response.xsl
processor.xsp.logicsheet.session.java  = 
file:///usr/local/cocoon-1.8.2/src/org/apache/cocoon/processor/xsp/library/java/session.xsl
processor.xsp.logicsheet.util.java     = 
file:///usr/local/cocoon-1.8.2/src/org/apache/cocoon/processor/xsp/library/java/util.xsl
processor.xsp.logicsheet.sql.java      = 
file:///usr/local/cocoon-1.8.2/src/org/apache/cocoon/processor/xsp/library/sql/sql.xsl
processor.xsp.logicsheet.esql.java      = 
file:///usr/local/cocoon-1.8.2/src/org/apache/cocoon/processor/xsp/library/sql/esql.xsl
processor.xsp.logicsheet.fp.java       = 
file:///usr/local/cocoon-1.8.2/src/org/apache/cocoon/processor/xsp/library/fp/fp.xsl




At 2:26 -0400 14/10/01, Brian Blakeley wrote:
>Good Luck Jesse!
>
>Hassle really is not the word for it!  The real problem comes when trying to
>remember how I got it working when I need to add something.
>
>Brian
>
>PS: once it was all working the way I mentioned - I could not get my own xml
>and xsl files to work in /webapps/ROOT as something I read said would work.
>I got more success when I put the files in a directory under
>/webapps/cocoon.
>
>Although, it seems to work,  I have a bad feel that I have enter the system
>from a side door and will have it all crash around me soon.
>
>Have fun!
>
>
>----- Original Message -----
>From: "Jesse Reynolds" <lizst@va.com.au>
>To: <cocoon-users@xml.apache.org>
>Sent: Sunday, October 14, 2001 12:32 AM
>Subject: Re: Cocoon with Tomcat-3.3rc2 - where to put jars????
>
>
>>  Hi Brian
>>
>>  Gosh, that sounds like a bit of a hassle, there are lots of them!
>>
>>  It sounds like it could work though, as the error I am now getting
>>  (see below), after putting all the .jar's including cocoon.jar into
>>  $TOMCAT_HOME/lib/apps/* is that it has an error when trying to open
>>  cookie.xsl, but the funny thing is that if you unzip cocoon.jar you
>>  can see cookie.xsl in the same place as it's looking, ie:
>>
>>  resource://org/apache/cocoon/processor/xsp/library/java/cookie.xsl
>  >
>>  So perhaps Tomcat 3.3 has a problem finding .xsl and .xml files in
>>  the .jar file??? If downgrading from tomcat 3.3rc2 to 3.3rc1 doesn't
>>  fix it, I may try your suggestion of editing all those lines in
>>  cocoon.properties.
>>
>>  Cheers
>>
>>  Jesse
>>
>>
>>  Publishing Engine could not be initialized.
>>
>>  java.lang.RuntimeException: Error loading logicsheet at
>>  resource://org/apache/cocoon/processor/xsp/library/java/cookie.xsl
>>  due to java.lang.Exception: Resource not found or retrieving error.
>>  at
>>  org.apache.cocoon.processor.xsp.XSPProcessor.init(XSPProcessor.java,
>>  Compiled Code)
>>  at org.apache.cocoon.framework.Manager.create(Manager.java,
>>  Compiled Code)
>>  at org.apache.cocoon.framework.Router.init(Router.java, Compiled Code)
>>  at org.apache.cocoon.framework.Manager.create(Manager.java,
>>  Compiled Code)
>>  at org.apache.cocoon.Engine.<init>(Engine.java, Compiled Code)
>>  at org.apache.cocoon.Engine.getInstance(Engine.java, Compiled Code)
>>  at org.apache.cocoon.Cocoon.init(Cocoon.java, Compiled Code)
>>  at org.apache.tomcat.facade.ServletHandler.doInit(Unknown Source)
>>  at org.apache.tomcat.facade.ServletHandler.init(Unknown Source)
>>  at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
>>  at
>>  org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
>>  at org.apache.tomcat.core.ContextManager.service(Unknown Source)
>>  at
>  >
>org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown
>  > Source)
>  > at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
>  > at
>  > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
>>  Source)
>>  at java.lang.Thread.run(Thread.java, Compiled Code)
>>
>>
>>  At 20:52 -0400 13/10/01, Brian Blakeley wrote:
>>  >The changes for Tomcat 3.3 rc1 were something to work out!
>>  >
>>  >I think what I did to get past where it sounds like you are was to locate
>>  >the various resource files at the end of cocoon.properties and amended
>>  >cocoon.properties to point to the various files ( i.e. util.xsl, etc.).
>>  >
>>  >I found the files in $COCOON_HOME/build/src/ ....
>>  >
>>  >Once I did that ( with cocoon.jar in the
>>  >$TOMCAT_HOME/webapps/cocoon/WEB-INF/lib with the others) I could get
>>  >Cocoon.xml and the samples to operate.
>>  >
>>  >Hope this helps.
>>  >
>>  >Brian
>>  >
>>  >
>>  >
>>  >----- Original Message -----
>>  >From: "Jesse Reynolds" <lizst@va.com.au>
>>  >To: <cocoon-users@xml.apache.org>
>>  >Sent: Saturday, October 13, 2001 5:53 AM
>>  >Subject: Re: Cocoon with Tomcat-3.3rc2 - where to put jars????
>>  >
>>  >
>>  >>  At 13:01 +1100 20/3/01, jeff@socialchange.net.au wrote:
>>  >>  >On Mon, Mar 19, 2001 at 01:22:08PM -0500, Rajkumar, Joseph wrote:
>>  >>  >>  Hi Folks
>>  >>  >>
>>  >>  >>       Has anybody got cocoon to work with Tomcat-3.3?
>>  >>  >>  I have it working well with Tomcat-3.2.1, but the layout of
>>  >>  >>  $TOMCAT_HOME/lib has changed. I tried to put the
>>  >>  >>  jars from $COCOON_HOME/lib and it does not seem to work.
>>  >>  >
>>  >>  >It doesn't work if you put the jars in $TOMCAT_HOME/lib/*. You need
>>  >>  >to put them
>>  >>  >in your webapp's WEB-INF/lib directory.
>>  >>
>>  >>  Hmmm. I'm trying this with C1.8.2 and Tomcat 3.3rc2, and it just
>>  >>  doesn't seem to work. I have put all of C1/lib/* and
>>  >>  C1/bin/cocoon.jar into tomcat3.3/webapps/cocoon/WEB-INF/lib/* ... is
>>  >>  this the right place to put the jars?
>>  >>
>>  >>  The error I get is:
>>  >>
>>  >>  Publishing Engine could not be initialized.
>>  >>
>>  >>
>>  >>  java.lang.RuntimeException: Exception when creating "
>>  >>  org.apache.cocoon.processor.xsp.XSPProcessor" :
>>  >>  java.lang.NoSuchMethodError: See
>>  >>  http://xml.apache.org/cocoon/faqs.html#faq-normalize
>>  >>  at org.apache.cocoon.framework.Manager.create(Manager.java,
>>  >  > Compiled Code)
>>  >>  at org.apache.cocoon.framework.Router.init(Router.java, Compiled Code)
>>  >>  at org.apache.cocoon.framework.Manager.create(Manager.java,
>>  >>  Compiled Code)
>>  >>  at org.apache.cocoon.Engine.<init>(Engine.java, Compiled Code)
>>  >>  at org.apache.cocoon.Engine.getInstance(Engine.java, Compiled Code)
>>  >>  at org.apache.cocoon.Cocoon.init(Cocoon.java, Compiled Code)
>  > >>  at org.apache.tomcat.facade.ServletHandler.doInit(Unknown Source)
>>  >>  at org.apache.tomcat.facade.ServletHandler.init(Unknown Source)
>>  >>  at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
>>  >>  at
>>  >>  org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
>>  >>  at org.apache.tomcat.core.ContextManager.service(Unknown Source)
>>  >>  at
>>  >>
>>
>>org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknow
>n
>>  >>  Source)
>>  >  > at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
>>  >  > at
>>  >  > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
>>  >  > Source)
>>  >  > at java.lang.Thread.run(Thread.java, Compiled Code)
>>  >>
>>  >>
>>  >>  I've tried going to
>>  >>  http://xml.apache.org/cocoon/faqs.html#faq-normalize but it doesn't
>>  >>  seem to relate to anything in the faq.
>>  >>
>>  >>  Note I've not removed or renamed any of xml.jar or parser.jar in
>>  >>  Tomcat 3.3's lib directories, because they're not there anymore,
>>  >>  perhaps they've been renamed something else???
>>  >>
>>  >>  Cheers
>>  >>
>>  >>  Jesse
>>  >>
>>  >>
>>  >>  --
>>  >>
>>  >>         Jesse Reynolds - Virtual Artists Pty Ltd - http://www.va.com.au
>>  >>                                                    jesse (at) va.com.au
>>  >>
>>  >>  ---------------------------------------------------------------------
>>  >>  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>
>>  >>
>>  >
>>  >
>>  >---------------------------------------------------------------------
>>  >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>
>>
>>
>>  --
>>
>>         Jesse Reynolds - Virtual Artists Pty Ltd - http://www.va.com.au
>>                                                    jesse (at) va.com.au
>>
>>  ---------------------------------------------------------------------
>>  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>
>>
>
>
>---------------------------------------------------------------------
>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>


-- 

       Jesse Reynolds - Virtual Artists Pty Ltd - http://www.va.com.au
                                                  jesse (at) va.com.au

---------------------------------------------------------------------
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