To clarify:

1)My problem is not related to XSL (The XSL servlet is completely disabled).
With static XML/XSL files Cocoon works fine.

2)All the required Cocoon classes are in the orion/lib dir (cocoon.jar,
fop.jar) or are part of the Orion server (xerces and xalan). They are also
visible to Cocoon because as I stated in the previous paragraph all works
fine with xml files (transformed to HTML, PDF ...). 

3)The problem is that the XSP compiler
(org.apache.cocoon.processor.xsp.language.java.XSPJavaProcessor) is invoked
but for some strange reasons it can't find the packages present in the
xerces, cocoon ... jars. A similar configuration with Tomcat 3.1 works, so
it seems an Orion specific problem.

Luciano 

Follow the error message:

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.compile(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)



-----Messaggio originale-----
Da: Karl Avedal [mailto:[EMAIL PROTECTED]]
Inviato: marted� 13 giugno 2000 7.50
A: Orion-Interest
Cc: Orion-Interest
Oggetto: Re: Cocoon with Orion?


Hello,

Kevin Duffey wrote:

> 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.

What makes you think so? The error does not mention the Orion XSL Servlet at
all, but does mention not finding the Cocoon classes, so that could be the
problem. Also, if you are using a .xsp file, shouldn't you set up a mapping
for
.xsp?

> 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.

He isn't trying to map an xsl file.

Also, xsl is not mapped to any orion servlet. You can find the global
mappings
in global-web-application.xml and you will find that it's not there.

Regards,
Karl Avedal

> > 12: Package org.apache.cocoon.parser not found in import.
> >
> >     import org.apache.cocoon.parser.*;
> >
> >            ^
> >


Reply via email to