On Fri, 5 Apr 2002, Randy Smith wrote:

> Hi gang,
>
> I'm trying to install Cocoon v2.0.2 with Tomcat v4.0.3 on Mac OSX v10.1.3
> and I'm having some problems. I'm sure the main problem is that I'm new at
> all this but I had to start somewhere so I leapt in.
>
> I have Tomcat installed and working and I was told by someone on the
> [EMAIL PROTECTED] list that all I had to do was put the cocoon.war
> file in the tomcat/webapps directory, restart tomcat and that was it. Seemed
> too easy and it naturally it didn't work for me. I was wondering if I still
> had to follow some of the steps listed at
> http://xml.apache.org/cocoon/installing/index.html? Such as replacing the
> xalan-XXX.jar, xercesImpl-XXX.jar and xml-apis.jar files in the Tomcat
> installed files with the ones from the Cocoon package and also editing the
> cocoon/src/webapp/WEB-INF/web.xml file?

Actually, Randy, you can safely ignore a good chunk of that:) The
documentation was written with Tomcat 3.2 in mind. Tomcat 4+ doesn't have
the same problems, so you don't have to use the same fixes. These days I
can usually just take the cocoon.war file from cocoon-xxx-bin.tar.gz, plop
it into the webapps directory, and start Tomcat. (However there do seem to
be issues with Tomcat 4.0.3, so I can't say about that.)

>
> The Cocoon package I started with was "cocoon-2.0.2-bin.tar.gz"
>
> Also I'm wondering exactly where the Cocoon directory should go or does the
> cocoon.war file cover it all. I've installed Tomcat in ...
>
> /usr/local/jakarta-tomcat-4.0.3
> /usr/local/jakarta-tomcat-4.0.3/webapps/cocoon.war
>

Yep, that's the place for cocoon:)


> Maybe I should put the cocoon directory in ...
>
> /usr/local/jakarta-tomcat-4.0.3/cocoon/
>

Nope, cocoon's a webapp, so it gets placed in the webapps directory.

> As you can probably tell I'm new to Unix and its environment and I was
> hoping I could get XML transforming without having to do all the clean
> builds etc.
>
> Many thanks in advance,
> Randy
>

The only time you'll need to deal with the sourcecode is if (a) you're
using something that isn't working in 2.0.2 and you need to go to CVS or
(b) if you're using something that isn't compiled into the .WAR and you
want to throw it in there. For example, there's a MailAction class that is
only compiled if javax.mail is in the classpath.. to use that, I had to
recompile the WAR. I wish you the best of luck with C2!

Liam Morley

>
>
>
> ---------------------------------------------------------------------
> 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: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>


---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to