Here's the .bat file I use to start tomcat3.2/Cocoon1.8.3 on my WindowsME system. I use the same basic setup on Linux too, with appropriate changes in filenames.  If you just try to cut and paste this, notice that I've put some things in a \lib\183\.. directory that you'll need to modify for your local setup.
 
I use Saxon XSLT out of choice, but it also works with Xalan 1.2 if you prefer.
 
Your mileage may vary, but this works fine for me.
 
Paul
 
++++++++++
set TOMCAT_HOME=c:\apache\tc32
set JAVA_HOME=c:\java\122
set PATH=%JAVA_HOME%\bin;C:\WINDOWS;C:\WINDOWS\COMMAND
 
set CLASSPATH=.
set CLASSPATH=%TOMCAT_HOME%\classes
 
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\xerces_1_3.jar
 
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\servlet_2_2.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\183\turbine-pool.jar
 
rem Using xalan, must use 1.2
rem set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\xalan_1_2_D02.jar
rem USING SAXON (6.2.1)
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\saxon.jar
 
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\183\bsf.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\183\bsfengines.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\183\fop_0_15_0.jar

set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\183\cocoon.jar

set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar

java -Dtomcat.home="%TOMCAT_HOME%" org.apache.tomcat.startup.Tomcat %2 %3 %4 %5 %6 %7 %8 %9
++++++++++
-----Original Message-----
From: Benjamin Cramer [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 7:59 AM
To: '[EMAIL PROTECTED]'
Subject: RE: hi

tomK,
 
    Thanks for the suggestions. I have confirmed that the Turbine-pool.jar contains the TurbineResourceService.class. I copied the jars in the %TOMCAT_HOME%/lib to a new /lib folder under cocoon/WEB-INF directory as you suggested. Unfortunately, there has been no change after restarting Tomcat.
 
    I was hoping to get Cocoon1.8 off the ground. If you think it would better serve my time, I would be willing to put Cocoon2 in place. However, I hadn't thought about it. Seemed that 1.8 would have been more successful. I would like to get going in Cocoon ASAP.
 
Ben
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 9:46 AM
To: [EMAIL PROTECTED]
Subject: RE: hi

I'm a bit on a wild goose chase here, because I don't use Cocoon1.8...
 
Does this turbine-pool.jar contain a file TurbineResourceService.class? (I can't find a reference to this jar file on the turbine site).
 
If not, download the TDK from the Turbine website, and take the turbine-2.2-dev.jar (or a similar one, if you use a different version). This contains TurbineResourceService.class (I just checked).
 
If you're absolutely certain this class is in one of the .jars of your lib, try copying all contents of %TOMCAT_HOME%/lib to %TOMCAT_HOME%/webapps/cocoon/WEB-INF/lib (every tomcat version seems to use a different lib dir for your webapps, and copying your jars in all possible lib dirs doesn't seem to hurt most of the time :) )
 
 
tomK
-----Original Message-----
From: Benjamin Cramer [mailto:[EMAIL PROTECTED]]
Sent: maandag 16 juli 2001 16:15
To: '[EMAIL PROTECTED]'
Subject: RE: hi

tomK,
 
    I have Turbine-pool as part of my %TOMCAT_HOME%/lib. My /lib directory has the following in it:
    ant.jar
    ant_1_1.jar
    bsf.jar
    bsfengines.jar
    cocoon.jar
    fesi.jar
    fop_0_15_0.jar
    jasper.jar
    jaxp.jar
    sax-bugfix.jar
    servlet.jar
    servlet_2_2.jar
    stylebook-1.0-b2.jar
    test
    turbine-pool.jar
    w3c.jar
    webserver.jar
    xalan_1_2_D02.jar
    xerces.jar
    xt.jar
    zparser.jar
    zxml.jar
    I believe that I have all the necessary components and renamed those that conflict. Cocoon is running because it generated the error. Any help is much appreciated.
 
Ben
 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 8:58 AM
To: [EMAIL PROTECTED]
Subject: RE: hi

Did you try adding the Turbine classes to your lib? If so, what happened then?
 
hth,
tomK
-----Original Message-----
From: Benjamin Cramer [mailto:[EMAIL PROTECTED]]
Sent: maandag 16 juli 2001 15:55
To: '[EMAIL PROTECTED]'
Subject: RE: hi

Raghu,
 
    This list is of little use to either of us. I have posted the exact same question (twice) without any response, and in searching the archives found another unanswered question posing the same problem.
 
    The problem is that you have too many folks like Minakshi that waste everyone's time and mail-server with assinine responses. My suggestion to Minakshi: If you don't know the answer stay off the list-serv.
 
    Raghu, if you do arrive at an answer, please post it. I will do the same.
 
Thanks,
 
Ben Cramer
-----Original Message-----
From: Minakshi k [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 12, 2001 1:18 PM
To: [EMAIL PROTECTED]
Subject: Re: hi


Please mention "cocoon" in subject instead of personal subject like "hi"

>From: "raghu" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: hi
>Date: Thu, 12 Jul 2001 18:46:31 +0530
>
>Hi,
>I have Tomcat 3.2.2 , jetspeed 1.3a1, apache 1.3.11 and mod_jk.so as a link between tomcat and apache.
> I have installed cocoon 1.8.2, . I am able to see the Adding context /cocoon line when starting tomcat.
>But when i go to http://localhost:8080/cocoon/Cocoon.xml, i get the following error.
>What may be the error? Is it because of conflicting jar files? Do i need to have turbine-pool.jar file?
>Is it conflicting with jetspeed Turbine resource properties?
>i have renamed xml and parser to zxml and zparser.
>Please help.
> PUBLISHING ENGINE COULD NOT BE INITIALISED
>java.lang.RuntimeException: Error creating org.apache.cocoon.processor.xsp.XSPProcessor: make sure the needed classes can be found in the classpath (org/apache/turbine/services/resources/TurbineResourceService)
> at org.apache.cocoon.framework.Manager.create(Manager.java:122)
> at org.apache.cocoon.framework.Router.init(Router.java:80)
> at org.apache.cocoon.framework.Manager.create(Manager.java:109)
> at org.apache.cocoon.Engine.(Engine.java:179)
> at org.apache.cocoon.Engine.getInstance(Engine.java:232)
> at org.apache.cocoon.Cocoon.init(Cocoon.java:157)
> at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
> at org.apache.tomcat.core.Handler.init(Handler.java:215)
> at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
> at org.apache.tomcat.core.Handler.service(Handler.java:254)
> at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
> at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
> at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
> at java.lang.Thread.run(Thread.java:484)
>
>
> Warning: this page has been dynamically generated.
>
>Copyright (c) 1999-2001 The Apache XML Project.
>All rights reserved.
>


Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

--------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: <[EMAIL PROTECTED]>For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to