Thanks Jeremias,

You definitely set me in the right direction.  I tried to put the avalon
framework jar in the lib directory as directed, but was still getting class
not found exceptions for the logger.  So, I put these files in a place
directly accessible to everyone:

avalon framework
fop jar
logkit jar

If I don't include the logkit, the fop won't load properly (can't find the
logger class) even though I specifically tell it not to log anything. It's a
problem at deploy time rather than run time.

Once that is set up, it works :) -- however, my Cocoon webapps all are
giving me class cast exceptions when using ObjectModelHelper.getRequest().
About 10MB of these exact same errors are logged when I try to just log in
to my webapps.  However, everything continues to run OK, but just very slow
because of all of the errors that are being thrown.  This is what the error
looks like:

13:54:37,031 ERROR [STDERR] Logging Error: Unknown error writing event.
13:54:37,031 ERROR [STDERR] java.lang.ClassCastException:
org.apache.cocoon.environment.http.HttpRequest
13:54:37,031 ERROR [STDERR]     at
org.apache.cocoon.environment.ObjectModelHelper.getRequest(ObjectModelHelper
.java:91)
13:54:37,031 ERROR [STDERR]     at
org.apache.cocoon.util.log.CocoonLogFormatter.getURI(CocoonLogFormatter.java
:205)
13:54:37,031 ERROR [STDERR]     at
org.apache.cocoon.util.log.CocoonLogFormatter.formatPatternRun(CocoonLogForm
atter.java:153)
13:54:37,031 ERROR [STDERR]     at
org.apache.cocoon.util.log.ExtensiblePatternFormatter.format(ExtensiblePatte
rnFormatter.java:37
6)
13:54:37,047 ERROR [STDERR]     at
org.apache.log.output.AbstractOutputTarget.format(AbstractOutputTarget.java:
132)
13:54:37,047 ERROR [STDERR]     at
org.apache.log.output.AbstractOutputTarget.doProcessEvent(AbstractOutputTarg
et.java:91)
13:54:37,047 ERROR [STDERR]     at
org.apache.log.output.AbstractTarget.processEvent(AbstractTarget.java:87)
13:54:37,047 ERROR [STDERR]     at
org.apache.log.Logger.fireEvent(Logger.java:612)
13:54:37,047 ERROR [STDERR]     at
org.apache.log.Logger.output(Logger.java:587)
13:54:37,047 ERROR [STDERR]     at
org.apache.log.Logger.output(Logger.java:570)
13:54:37,047 ERROR [STDERR]     at
org.apache.log.Logger.info(Logger.java:146)
13:54:37,047 ERROR [STDERR]     at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1142)
13:54:37,047 ERROR [STDERR]     at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
13:54:37,047 ERROR [STDERR]     at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:24
7)
13:54:37,047 ERROR [STDERR]     at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
....

I've found that it's the logkit jar that is causing the problems.  If I
remove the logkit, then the webapps deploy OK, but I can't render to PDF
using the fop libraries embedded in my EJBs.  I am going to go ahead and
post to the Cocoon mailing list, but if anyone here has suggestions on how
to get this to behave correctly I'm all ears :)  Again, thanks for your
help. I'm another step closer.

Collin


----- Original Message ----- 
From: "Jeremias Maerki" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 28, 2003 10:52 AM
Subject: Re: (Full Post) : Issues integrating FOP into Cocoon/J2EE project


> Have you tried placing avalon-framework.jar in JBoss' lib/ext directory
> (not sure if the path is right)? This way a higher level classloader
> will pick up the jar and make it available for both Cocoon and FOP. I
> don't know if it will work but it's worth a try.
>
> On 25.07.2003 23:27:57 Collin VanDyck wrote:
> > Summary:  I'd like to be able to run the FOP serializer outside of
> > Cocoon in my EJBs, but cannot seem to do this.  Has anyone here
> > successfully gotten this to work?  I've been stuck on this for a while,
> > and would really appreciate some direction.  Thanks!
>
>
> Jeremias Maerki
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to