You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Luke Noel-Storr <lu...@liningpaper.com> on 2003/02/25 13:57:53 UTC

Cocoon and Jetty

Hi,

Sorry if this has already been covered a million times, however I've 
been searching high and low and cannot find any help.

Anyway, I've been lurking on these mailing lists and it seems that a 
lot of people think that Jetty is the way to go.  So, as I'm ill at 
home today I thought I'd finally give cocoon a go and though I'd try 
and get it working on Jetty.

I have Cocoon 2.0.4, Jetty 4.2.8, Java 1.3.1 all on OSX 10.2.4

OK, I tried just popping the cocoon.war file in $JETTY_HOME/webapps and 
got the error:

Exception in thread "main" 
javax.xml.transform.TransformerFactoryConfigurationError: 
java.lang.ClassNotFoundException: 
org.apache.xalan.processor.TransformerFactoryImpl


I tried exploding the war file and putting it in the same directory and 
got the same error.

I then tried copying the jar files from the Cocoon WEB_INF/lib folder 
to the Jetty ext folder.  This time I got further, but when I tried to 
browse to localhost:8080/cocoon I got the following error displayed in 
my browser:

type: fatal

message: SAX2 driver class org.apache.xerces.parsers.SAXParser does not 
implement XMLReader

description: java.lang.ClassCastException: 
org.apache.xerces.parsers.StandardParserConfiguration

sender: org.apache.cocoon.servlet.CocoonServlet

source: Cocoon servlet


I start Jetty with the command:

jetty.sh run


What am I doing wrong?

What do I need to do to get cocoon up and running under Jetty?

Are there any guides?


I managed to get it working under Tomcat just by dropping the war file 
in the webapps folder.  I would however prefer to use Jetty.


Thanks in advance for any help,

Luke.
-----


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: Cocoon and Jetty

Posted by Jeremy Quinn <je...@media.demon.co.uk>.
On Tuesday, February 25, 2003, at 03:39 PM, Luke Noel-Storr wrote:

> OK I fixed it myself.
>
> I started again with Jetty and this time copied just the xalan jar in 
> from Cocoon to ext.  The then copied xerces and xml jars across from 
> Tomcat, deleted tmp files and tried again.
>
> This time it worked.
>
> Now, to try doing something with cocoon.

another technique, as of today's CVS HEAD, is to run Cocoon in the copy 
of Jetty that comes built-in.

cd [your path to]xml-cocoon2
./cocoon servlet

starts Cocoon on port 8888


regards Jeremy


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: Cocoon and Jetty

Posted by Luke Noel-Storr <lu...@liningpaper.com>.
OK I fixed it myself.

I started again with Jetty and this time copied just the xalan jar in 
from Cocoon to ext.  The then copied xerces and xml jars across from 
Tomcat, deleted tmp files and tried again.

This time it worked.

Now, to try doing something with cocoon.


Cheers anyway,

Luke.
-----

On Tuesday, Feb 25, 2003, at 12:57 Europe/London, Luke Noel-Storr wrote:

> Hi,
>
> Sorry if this has already been covered a million times, however I've 
> been searching high and low and cannot find any help.
>
> Anyway, I've been lurking on these mailing lists and it seems that a 
> lot of people think that Jetty is the way to go.  So, as I'm ill at 
> home today I thought I'd finally give cocoon a go and though I'd try 
> and get it working on Jetty.
>
> I have Cocoon 2.0.4, Jetty 4.2.8, Java 1.3.1 all on OSX 10.2.4
>
> OK, I tried just popping the cocoon.war file in $JETTY_HOME/webapps 
> and got the error:
>
> Exception in thread "main" 
> javax.xml.transform.TransformerFactoryConfigurationError: 
> java.lang.ClassNotFoundException: 
> org.apache.xalan.processor.TransformerFactoryImpl
>
>
> I tried exploding the war file and putting it in the same directory 
> and got the same error.
>
> I then tried copying the jar files from the Cocoon WEB_INF/lib folder 
> to the Jetty ext folder.  This time I got further, but when I tried to 
> browse to localhost:8080/cocoon I got the following error displayed in 
> my browser:
>
> type: fatal
>
> message: SAX2 driver class org.apache.xerces.parsers.SAXParser does 
> not implement XMLReader
>
> description: java.lang.ClassCastException: 
> org.apache.xerces.parsers.StandardParserConfiguration
>
> sender: org.apache.cocoon.servlet.CocoonServlet
>
> source: Cocoon servlet
>
>
> I start Jetty with the command:
>
> jetty.sh run
>
>
> What am I doing wrong?
>
> What do I need to do to get cocoon up and running under Jetty?
>
> Are there any guides?
>
>
> I managed to get it working under Tomcat just by dropping the war file 
> in the webapps folder.  I would however prefer to use Jetty.
>
>
> Thanks in advance for any help,
>
> Luke.
> -----
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org