You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by David Rothman <dr...@allinstant.com> on 2001/02/27 20:28:05 UTC

Cocoon installed on Jetty

Has anyone developed simple steps to install Cocoon on Jetty?

Have looked through faqs and mailing lists, without full luck...
Any Steps leading to being able to see /samples would be preferred.

So far I have modified Jetty.xml to include:

  <Call name="addContext">
     <Arg>/</Arg>
     <Set name="ClassPath">

/jboss_jetty/cocoon-1.8.2/lib/xerces1_2.jar;/jboss_jetty/cocoon-1.8.2/bin/co
coon.jar;/jboss_jetty/cocoon-1.8.2/lib/fop_0_15_0.jar;/jboss_jetty/cocoon-1.
8.2/lib/turbine-pool.jar;/jboss_jetty/cocoon-1.8.2/lib/xalan_1_2_D02.jar
     </Set>
     <Call name="getServletHandler">
     </Call>

     <Call name="addServlet">
     	<Arg>XML</Arg>
     	<Arg>*.xml</Arg>
     	<Arg>org.apache.cocoon.Cocoon</Arg>
     	<Put name="properties">prop/cocoon.properties</Put>
     </Call>
  </Call>


  <Call name="addWebApplication">
        <Arg>/cocoon/*</Arg>
        <Arg><SystemProperty name="jetty.home"
default="."/>/webapps/cocoon/</Arg>
        <Arg><SystemProperty name="jetty.home"
default="."/>/etc/webdefault.xml/</Arg>
  </Call>

in jetty/webapps/, i created a cocoon directory, which has the samples
directory.

So far no luck.  When I run most xml pages, the browser displays, '
type="text/html" '
Any help would be greatly appreciated.

Thanks in advance,

dave

ps. i'm using both w2k and linux rh6.2, jdk 1.3,
and jboss_jetty ( jboss 2.1-pre - jetty 3.0.2 - cocoon 1.8.2)


RE: Cocoon installed on Jetty

Posted by David Rothman <dr...@allinstant.com>.
The below problem has been solved, but now I'm getting,

	Publishing Engine could not be initialized.

	java.lang.RuntimeException: Error loading logicsheet at
	resource://org/apache/cocoon/processor/xsp/library/java/util.xsl

	due to java.lang.Exception: Resource not found or retrieving error.

	at org.apache.cocoon.processor.xsp.XSPProcessor.init(XSPProcessor.java:302)

This error seems weird because the cocoon.jar has t obe in the classpath
for it to get to this point

Does anyone know how to fix this, so it can find util.xsl?


Berin Loritsch mentioned:
>Put the servlet jars in the system classpath.  This is an issue with
>IBM WebSphere as well.

When I try to put Cocoon ahead of everything except for xerces in the
classpath
it causes Jetty to blow up and not serve anf pages static or dynamic.


Any ideas?

  ----- Original Message -----
  From: Christian Parpart
  To: Cocoon-Users
  Sent: Saturday, December 23, 2000 2:23 AM
  Subject: Error loading logicsheet at resource://....util.xsl


  Hi

  I got the message:
    java.lang.RuntimeException: Error loading logicsheet at
resource://org/apache/cocoon/processor/xsp/library/java/util.xsl due to
java.lang.Exception: Resource not found or retrieving error.
    at
org.apache.cocoon.processor.xsp.XSPProcessor.init(XSPProcessor.java:291)
    at org.apache.cocoon.framework.Manager.create(Manager.java:109)
    at org.apache.cocoon.framework.Router.init(Router.java:80)
  How can I fix that?






-----Original Message-----
From: David Rothman [mailto:drothman@allinstant.com]
Sent: Tuesday, February 27, 2001 11:28 AM
To: cocoon-users@xml.apache.org
Subject: Cocoon installed on Jetty


Has anyone developed simple steps to install Cocoon on Jetty?

Have looked through faqs and mailing lists, without full luck...
Any Steps leading to being able to see /samples would be preferred.

So far I have modified Jetty.xml to include:

  <Call name="addContext">
     <Arg>/</Arg>
     <Set name="ClassPath">

/jboss_jetty/cocoon-1.8.2/lib/xerces1_2.jar;/jboss_jetty/cocoon-1.8.2/bin/co
coon.jar;/jboss_jetty/cocoon-1.8.2/lib/fop_0_15_0.jar;/jboss_jetty/cocoon-1.
8.2/lib/turbine-pool.jar;/jboss_jetty/cocoon-1.8.2/lib/xalan_1_2_D02.jar
     </Set>
     <Call name="getServletHandler">
     </Call>

     <Call name="addServlet">
     	<Arg>XML</Arg>
     	<Arg>*.xml</Arg>
     	<Arg>org.apache.cocoon.Cocoon</Arg>
     	<Put name="properties">prop/cocoon.properties</Put>
     </Call>
  </Call>


  <Call name="addWebApplication">
        <Arg>/cocoon/*</Arg>
        <Arg><SystemProperty name="jetty.home"
default="."/>/webapps/cocoon/</Arg>
        <Arg><SystemProperty name="jetty.home"
default="."/>/etc/webdefault.xml/</Arg>
  </Call>

in jetty/webapps/, i created a cocoon directory, which has the samples
directory.

So far no luck.  When I run most xml pages, the browser displays, '
type="text/html" '
Any help would be greatly appreciated.

Thanks in advance,

dave

ps. i'm using both w2k and linux rh6.2, jdk 1.3,
and jboss_jetty ( jboss 2.1-pre - jetty 3.0.2 - cocoon 1.8.2)


---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>