You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Michael Niemaz <Mi...@xrce.xerox.com> on 2005/11/14 18:11:43 UTC

Fop in embedded app

Hi all,
    I can't make my fop application work when deployed in tomcat as a 
web service. It looks like there's a conflict between xerces and crimson 
so taht crimson is never loaded and when it gets to constructing the 
pdf, it says that there is no more crmison sax parser available. I can't 
removed xerces from the shared/lib dir of tomcat. Apparently, Fop does 
not wotk with xerces (could you confirm?) so I think I'm kinda stuck 
here ;-(

Any ideas?

thanx,

--mike

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Fop in embedded app

Posted by Michael Niemaz <Mi...@xrce.xerox.com>.
I somehow managed to make it work finally.
Don't know exactly what was the problem really. Probably related to 
libraries versions conflict.
All I did was updating my maven dependencies (xerces, xalan, crimson, ...)

--mike

Jeremias Maerki wrote:

>FOP works nicely with both Crimson and Xerces, or any other
>JAXP-conforming XML parser for that matter. The problem is that you
>probably have both in your setup. Remember that JDKs >= 1.4 already come
>with an XML parser so it's not necessary to include another in either
>Tomcat's shared/lib or the webapps's lib directory. All assuming you
>don't still work with JDK 1.3.x, of course.
>
>I can't tell why you might run into conflicts there. So, just reduce to
>the minimum by relying on what the JDK gives you. If you continue to
>have problems after following the advice above, please state the JDK and
>Tomcat versions you use and list all the crimson and xerces libraries
>you have in your environment (shared/lib, common/lib, webapp's lib
>directory etc. etc.).
>
>Good luck!
>
>On 14.11.2005 18:11:43 Michael Niemaz wrote:
>  
>
>>Hi all,
>>    I can't make my fop application work when deployed in tomcat as a 
>>web service. It looks like there's a conflict between xerces and crimson 
>>so taht crimson is never loaded and when it gets to constructing the 
>>pdf, it says that there is no more crmison sax parser available. I can't 
>>removed xerces from the shared/lib dir of tomcat. Apparently, Fop does 
>>not wotk with xerces (could you confirm?) so I think I'm kinda stuck 
>>here ;-(
>>
>>Any ideas?
>>    
>>
>
>
>Jeremias Maerki
>
>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Fop in embedded app

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
FOP works nicely with both Crimson and Xerces, or any other
JAXP-conforming XML parser for that matter. The problem is that you
probably have both in your setup. Remember that JDKs >= 1.4 already come
with an XML parser so it's not necessary to include another in either
Tomcat's shared/lib or the webapps's lib directory. All assuming you
don't still work with JDK 1.3.x, of course.

I can't tell why you might run into conflicts there. So, just reduce to
the minimum by relying on what the JDK gives you. If you continue to
have problems after following the advice above, please state the JDK and
Tomcat versions you use and list all the crimson and xerces libraries
you have in your environment (shared/lib, common/lib, webapp's lib
directory etc. etc.).

Good luck!

On 14.11.2005 18:11:43 Michael Niemaz wrote:
> Hi all,
>     I can't make my fop application work when deployed in tomcat as a 
> web service. It looks like there's a conflict between xerces and crimson 
> so taht crimson is never loaded and when it gets to constructing the 
> pdf, it says that there is no more crmison sax parser available. I can't 
> removed xerces from the shared/lib dir of tomcat. Apparently, Fop does 
> not wotk with xerces (could you confirm?) so I think I'm kinda stuck 
> here ;-(
> 
> Any ideas?


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org