I don't know for sure..but my guess is you have to map XSL pages to the
cocoon servlet as well. It appears from the errors that xsl is still trying
to go to the orion xsl servlet. Just a guess. Maybe look in all the /config/
.xml files and see if you see anywhere else that *.xsl is being mapped to
the orion servlet.
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Montebove
> Luciano
> Sent: Monday, June 12, 2000 6:10 AM
> To: Orion-Interest
> Subject: R: Cocoon with Orion?
> Importance: High
>
>
> Orion 1.0.3 works with Cocoon 1.7.4 for static XML files but I wasn't able
> to have it work with .xsp files.
> My configuration steps were the following:
>
> 1)commented out the Orion xsl servlet chaining from
> global-web-application.xml
> 2)commented out the Orion xsl servlet definition from
> global-web-application.xml
> 3)copied cocoon.jar to orion/lib directory
> 4)created a cocoon directory under my app-web dir and put there the
> cocoon.properties
> 5)added the cocoon samples directory under my app-web dir
> 6)added:
> <servlet>
> <servlet-name>Cocoon</servlet-name>
> <display-name>Cocoon</display-name>
> <servlet-class>org.apache.cocoon.Cocoon</servlet-class>
> <init-param>
> <param-name>properties</param-name>
> <param-value>/cocoon/cocoon.properties</param-value>
> </init-param>
> </servlet>
> <servlet-mapping>
> <servlet-name>Cocoon</servlet-name>
> <url-pattern>*.xml</url-pattern>
> </servlet-mapping>
>
> to web.xml
>
> After this steps all static samples work, but as I try to get any
> xsp page I
> get the following error:
>
> java.lang.Exception: XSP Java Compiler: Compilation failed for _page.java
> 7: Package org.w3c.dom not found in import.
>
> import org.w3c.dom.*;
>
> ^
>
> 8: Package org.xml.sax not found in import.
>
> import org.xml.sax.*;
>
> ^
>
> 12: Package org.apache.cocoon.parser not found in import.
>
> import org.apache.cocoon.parser.*;
>
> ^
>
> 13: Package org.apache.cocoon.producer not found in import.
>
> import org.apache.cocoon.producer.*;
>
> ^
>
> 14: Package org.apache.cocoon.framework not found in import.
>
> import org.apache.cocoon.framework.*;
>
> ^
>
> 16: Package org.apache.cocoon.processor.xsp not found in import.
>
> import org.apache.cocoon.processor.xsp.*;
>
> ^
>
> 17: Package org.apache.cocoon.processor.xsp.library not found in import.
>
> import org.apache.cocoon.processor.xsp.library.*;
>
> ^
>
> 22: Superclass
> _C_._orion._applications._xmlc._xmlc_web._samples._xsp.XSPPage of class
> _C_._orion._applications._xmlc._xmlc_web._samples._xsp._page not found.
>
> public class _page extends XSPPage {
>
> ^
>
> 8 errors
>
>
>
> at
> org.apache.cocoon.processor.xsp.language.java.XSPJavaProcessor.com
> pile(XSPJa
> vaProcessor.java:159)
> at
> org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.
> java:451)
> at org.apache.cocoon.Engine.handle(Engine.java:305)
> at org.apache.cocoon.Cocoon.service(Cocoon.java:167)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java)
> at com.evermind.server.http.df.o3(JAX)
> at com.evermind.server.http.df.forward(JAX)
> at com.evermind.server.http.dm.o9(JAX)
> at com.evermind.server.http.dm.o8(JAX)
> at com.evermind.util.e.run(JAX)
>
> Any help appreciated
>
> Luciano Montebove
> Finsiel
> [EMAIL PROTECTED]
>
>
> -----Messaggio originale-----
> Da: Paul Lawton [mailto:[EMAIL PROTECTED]]
> Inviato: marted� 23 maggio 2000 19.30
> A: Orion-Interest
> Oggetto: Cocoon with Orion?
>
>
> Has anyone managed to get Cocoon 1.7.4 to work with Orion rc1?
>
> I have commented out the Orion xsl servlet chaining and I
> currently get the
> following error when trying to access the example index.xml file
> that comes
> with the cocoon samples:
>
> Publishing Engine could not be initialized.
> java.lang.RuntimeException: Error while initializing XSP engine:
> java.lang.Exception: Resource 'xsp-java.xsl' could not be found.
> at
> org.apache.cocoon.processor.xsp.XSPProcessor.init(XSPProcessor.java:161)
> at org.apache.cocoon.framework.Manager.create(Manager.java:101)
> at org.apache.cocoon.framework.Router.init(Router.java:80)
> at org.apache.cocoon.framework.Manager.create(Manager.java:101)
> at org.apache.cocoon.Engine.(Engine.java:165)
> at org.apache.cocoon.Engine.getInstance(Engine.java:202)
> at org.apache.cocoon.Cocoon.init(Cocoon.java:141)
> at com.evermind.server.http.HttpApplication.sj(JAX)
> at com.evermind.server.http.HttpApplication.r5(JAX)
> at com.evermind.server.http.HttpApplication.qt(JAX)
> at com.evermind.server.http.dl.cd(JAX)
> at com.evermind.util.e.run(JAX)
>
> at
> org.apache.cocoon.processor.xsp.XSPProcessor.init(XSPProcessor.java:174)
> at org.apache.cocoon.framework.Manager.create(Manager.java:101)
> at org.apache.cocoon.framework.Router.init(Router.java:80)
> at org.apache.cocoon.framework.Manager.create(Manager.java:101)
> at org.apache.cocoon.Engine.(Engine.java:165)
> at org.apache.cocoon.Engine.getInstance(Engine.java:202)
> at org.apache.cocoon.Cocoon.init(Cocoon.java:141)
> at com.evermind.server.http.HttpApplication.sj(JAX)
> at com.evermind.server.http.HttpApplication.r5(JAX)
> at com.evermind.server.http.HttpApplication.qt(JAX)
> at com.evermind.server.http.dl.cd(JAX)
> at com.evermind.util.e.run(JAX)
>
> Any pointers as to what's going wrong would be appreaciated.
>
> Paul
>
>