You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Stefano Mazzocchi <st...@apache.org> on 2003/04/09 11:57:54 UTC

Re: cvs commit: cocoon-2.1/src/java/org/apache/cocoon/environment/http HttpEnvironment.java

on 4/9/03 11:52 AM stefano@apache.org wrote:

> stefano     2003/04/09 02:52:50
> 
>   Modified:    src/java/org/apache/cocoon/environment/http
>                         HttpEnvironment.java
>   Log:
>   readded the original servlet objects to the object model.
>   
>   Revision  Changes    Path
>   1.3       +8 -1      cocoon-2.1/src/java/org/apache/cocoon/environment/http/HttpEnvironment.java
>   
>   Index: HttpEnvironment.java
>   ===================================================================
>   RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/environment/http/HttpEnvironment.java,v
>   retrieving revision 1.2
>   retrieving revision 1.3
>   diff -u -r1.2 -r1.3
>   --- HttpEnvironment.java	4 Apr 2003 13:19:07 -0000	1.2
>   +++ HttpEnvironment.java	9 Apr 2003 09:52:50 -0000	1.3
>   @@ -120,6 +120,13 @@
>            this.objectModel.put(ObjectModelHelper.REQUEST_OBJECT, this.request);
>            this.objectModel.put(ObjectModelHelper.RESPONSE_OBJECT, this.response);
>            this.objectModel.put(ObjectModelHelper.CONTEXT_OBJECT, this.webcontext);
>   +        
>   +        // This is a kind of a hack for the components that need
>   +        // the real servlet objects to pass them along to other
>   +        // libraries.
>   +        this.objectModel.put(HTTP_REQUEST_OBJECT, req);
>   +        this.objectModel.put(HTTP_RESPONSE_OBJECT, res);
>   +        this.objectModel.put(HTTP_SERVLET_CONTEXT, servletContext);

Very sorry for this, it has been unintentional. I tried to remove it on
my local copy then found out that needed much more instructural changes
but somehow I forgot to add it back.

My apologies, this has not been intentional.

-- 
Stefano.



Re: Jetty question

Posted by Daniel Fagerstrom <da...@nada.kth.se>.
Take a look in "cocoon.sh" in Cocoon-2.1. IIUC you give the argument:

-Djava.endorsed.dirs=$COCOON_HOME/lib/endorsed

to java when you start Jetty.

/Daniel Fagerstrom

Matthew Langham wrote:

>>Looks a lot like one of those JDK1.4 related failures...
>>
>>Don't know if Jetty has the equivalent to Tomcat/common/endorsed, but
>>what if you put Cocoon's xalan jar in jre/lib/endorsed ?
>>
>>    
>>
>
>Unfortunately we've tried that :-). I don't know about Jetty having an
>endorsed directory like Tomcat (one of the reasons for me asking).
>
>Thanks
>
>Matthew
>
>  
>



RE: Jetty question

Posted by Matthew Langham <ml...@s-und-n.de>.
> Looks a lot like one of those JDK1.4 related failures...
>
> Don't know if Jetty has the equivalent to Tomcat/common/endorsed, but
> what if you put Cocoon's xalan jar in jre/lib/endorsed ?
>

Unfortunately we've tried that :-). I don't know about Jetty having an
endorsed directory like Tomcat (one of the reasons for me asking).

Thanks

Matthew


Re: Jetty question

Posted by Sylvain Wallez <sy...@anyware-tech.com>.
Matthew Langham wrote:

>We haven't really used Jetty much - so bear with me while I fish through the
>fog of customer installations :-)
>
>Is there a "gotcha" when it comes to getting Cocoon to run with Jetty? We
>are getting some ClassCastExceptions from stuff like this:
>
>  
>
>javax.xml.transform.TransformerException: java.lang.ClassCastException
>	at org.apache.xalan.templates.ElemValueOf.execute(ElemValueOf.java:338)
>	at
>

Looks a lot like one of those JDK1.4 related failures...

Don't know if Jetty has the equivalent to Tomcat/common/endorsed, but 
what if you put Cocoon's xalan jar in jre/lib/endorsed ?

Sylvain

-- 
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }



Jetty question

Posted by Matthew Langham <ml...@s-und-n.de>.
We haven't really used Jetty much - so bear with me while I fish through the
fog of customer installations :-)

Is there a "gotcha" when it comes to getting Cocoon to run with Jetty? We
are getting some ClassCastExceptions from stuff like this:

>>
javax.xml.transform.TransformerException: java.lang.ClassCastException
	at org.apache.xalan.templates.ElemValueOf.execute(ElemValueOf.java:338)
	at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2324)
	at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer
Impl.java:2147)
	at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1203)
	at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3357)
	at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.ClassCastException
	at
org.apache.xpath.axes.FilterExprIteratorSimple.executeFilterExpr(FilterExprI
teratorSimple.java:104)
	at
org.apache.xpath.axes.FilterExprWalker.setRoot(FilterExprWalker.java:168)
	at org.apache.xpath.axes.WalkingIterator.setRoot(WalkingIterator.java:138)
	at
org.apache.xpath.axes.LocPathIterator.executeCharsToContentHandler(LocPathIt
erator.java:284)
	at org.apache.xalan.templates.ElemValueOf.execute(ElemValueOf.java:319)
<<

Does Cocoon require a specific version of Jetty? More importantly is there a
xalan/Jetty/Cocoon dependency we need to be aware of?

Thanks

Matthew

--
Open Source Group       Cocoon { Consulting, Training, Projects }
=================================================================
Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-30  mlangham@s-und-n.de - http://www.s-und-n.de
-----------------------------------------------------------------
Cocoon book:
  http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20
Weblogs:
  http://radio.weblogs.com/0103021/
  http://www.oreillynet.com/weblogs/author/1014
=================================================================