> The documentation states that Jetspeed uses a Cocoon with "modified code". I
> have noticed that after installing Jetspeed, my Cocoon delivered pages will
> not come up. Can Cocoon1.7 and Jetspeed coexist on the same machine? Do I
> need a second instance of Tomcat running?
I just setup Cocoon and Jetspeed. Here's what you do, assuming you are
running Tomcat (I'm running 3.1B1). You are limited to running with
Cocoon 1.6.1, as my attempts to run Cocoon 1.7 with Jetspeed caused
Jetspeed to throw exceptions.
Before you start reading this, realize the reason why I've done it this
way is to get complete separation of Cocoon and Jetspeed; myself and other
developers can use the same build to develop against both 'platforms.' My
next step is to run Jetspeed in its own Tomcat instance and Cocoon in its
own Tomcat instance. Let me know if you want to see this, or just look at:
http://www.metronet.com/~wjm/tomcat/FromFeb11/msg00628.html
First, get Jetspeed working.... this is the hard part ;-) Jetspeed
currently has the Cocoon 1.6.1 jar as part of the package. Hence, you will
not need to add any new jar files except:
stylebook-1.0-b2.jar
fop_0_12_1.jar
To the Tomcat CLASSPATH (this of course is done by simply dropping these
jars into the tomcat/lib directory.)
Then create a new context in tomcat/conf/server.xml:
<Context path="/Cocoon" docBase="/sites/default/applications/cocoon"
defaultSessionTimeOut="30" isWARExpanded="true"
isWARValidated="false" isInvokerEnabled="true"
isWorkDirPersistent="false"/>
Unpack the cocoon distribution to the referenced cocoon directory if you
like.
Make a dir called cocoon/WEB-INF
Make a file called cocoon/WEB-INF/web.xml which contains:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
<web-app>
<servlet>
<servlet-name>org.apache.cocoon.Cocoon</servlet-name>
<servlet-class>org.apache.cocoon.Cocoon</servlet-class>
<init-param>
<param-name>properties</param-name>
<param-value>
/sites/default/applications/cocoon/conf/cocoon.properties
</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>org.apache.cocoon.Cocoon</servlet-name>
<url-pattern>*.xml</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
</web-app>
Find your copy of cocoon.properties that you have for Jetspeed and copy it
to cocoon/conf
Now, you may need to add this line into the cocoon/conf/cocoon.properties
file:
store.memory = 100000
if you get an exception
If you're running this with Apache, you will need to add this to the
tomcat.conf web server/jserv module config file:
Alias /Cocoon /sites/default/applications/cocoon
<Directory "/sites/default/applications/cocoon">
Options Indexes FollowSymLinks
</Directory>
ApJServMount /Cocoon/servlet /Cocoon
<Location /Cocoon/>
AddHandler cocoon xml
</Location>
<Location /Cocoon/WEB-INF/ >
AllowOverride None
deny from all
</Location>
Action cocoon /Cocoon/servlet/org.apache.cocoon.Cocoon
Finally, restart Apache and Tomcat, and go to http://server/Cocoon and
you should be sorted!
Again, the reason for doing it this way is to get a complete separation of
the Cocoon and Jetspeed. This makes life easier for you and your other
developers who are working on the same build.
cheers
Pratik
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]