[ 
https://issues.apache.org/jira/browse/FOR-955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12623971#action_12623971
 ] 

Thorsten Scherler commented on FOR-955:
---------------------------------------

We need to review all usage of SourceResolver since we cannot cast anymore from 
cocoon to avalons resolver.

e.g.

Index: 
whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/util/SourceUtil.java
===================================================================
--- 
whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/util/SourceUtil.java
 (revision 687287)
+++ 
whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/util/SourceUtil.java
 (working copy)
@@ -22,9 +22,9 @@
 
 import org.apache.avalon.framework.service.ServiceException;
 import org.apache.avalon.framework.service.ServiceManager;
-import org.apache.cocoon.environment.SourceResolver;
 import org.apache.excalibur.source.Source;
 import org.apache.excalibur.source.SourceNotFoundException;
+import org.apache.excalibur.source.SourceResolver;
 import org.apache.forrest.dispatcher.lenya.xml.DocumentHelper;
 import org.w3c.dom.Document;
 import org.xml.sax.SAXException; 

> notes for experiment using Cocoon 2.1 branch in Forrest
> -------------------------------------------------------
>
>                 Key: FOR-955
>                 URL: https://issues.apache.org/jira/browse/FOR-955
>             Project: Forrest
>          Issue Type: Task
>          Components: Core operations
>            Reporter: David Crossley
>
> These are the steps to get Forrest running with Cocoon-2.1 rather than the 
> current situation which uses an old Cocoon trunk. Not everything yet works, 
> but enough to give hope. See discussion at:
>  Re: upgrade strategies for our packaged Cocoon
>  http://marc.theaimsgroup.com/?l=forrest-dev&m=116969420304386
> --------------------------
> Steps:
> Revert main/java/org/apache/forrest/util/XPathTransformer.java r111200
> Revert main/java/org/apache/forrest/util/IdGeneratorTransformer.java r111200
> Edit main/webapp/WEB-INF/cocoon.xconf
> to change version attribute to ... cocoon version="2.1"
> Move content of WEB-INF/xconf/forrest-core.xconf into WEB-INF/cocoon.xconf
> Remove the <components> wrapper.
> Build cocoon-branch-2_1_X for the blocks that we use (see our 
> etc/cocoon_upgrade) and replace the jars in lib/core
> --------------------------
> Some results:
> localhost:8888/samples/sample.html ... missing decoration
> localhost:8888/samples/sample.xml ... seems okay
> localhost:8888/samples/sample.pdf ... seems okay
> localhost:8888/index.html ... The requested resource "/index.html" could not 
> be found
> localhost:8888/index.xml ... seems okay
> localhost:8888/index.pdf ... complains about linkmap-index.xml
> localhost:8888/linkmap.html ... The requested resource "/linkmap.html" could 
> not be found

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.