Problems with new Driver()

2004-01-09 Thread Luca Lorenzon
I receive this error

FopJsp_jsp - java.lang.IllegalArgumentException: 
org.apache.fop.svg.SVGElementMapping is not an ElementMapping

when I inizialize the Driver of FOP with the costructor

Driver driver = new Driver()
What's the problems?

I use Oc4j as stand alone application Server

The inizialization above is in the   public void jspInit() method of a Jsp 
(FopJsp.jsp).

This FopJsp.jsp was already used with Jserv as servlet/Jsp container and it 
don't give any problems.

The version of fop that I use is the 0.20.5rc; I try also to use the 0.20.5 
but the problems is the same.

Thanks a lot and
Best Regards
Luca Lorenzon

Stefano Masselli




Re: Problems with new Driver()

2004-01-09 Thread J.Pietschmann
Luca Lorenzon wrote:
I receive this error

FopJsp_jsp - java.lang.IllegalArgumentException: 
org.apache.fop.svg.SVGElementMapping is not an ElementMapping
This means the code loading the element mappings does not recognize
the SVGElementMapping as an ElementMapping, as it expects. The most
likely reason is that they are loaded from different class loaders -
welcome to class loader hell.
...
I use Oc4j as stand alone application Server
You'll probably have to ask on the application server's list for a
solution. I guess you call servlets/JSPs across web applications, but
there may be other reasons. It's definitely not a fault with the FOP
code.
J.Pietschmann





RE: Problems with new Driver()

2004-01-09 Thread Andreas L. Delmelle
 -Original Message-
 From: Luca Lorenzon [mailto:[EMAIL PROTECTED]


snip /

 I use Oc4j as stand alone application Server


Doesn't OC4J ship with its own JDK? If I remember correctly, the problem
here is that the XML parsers supplied by Oracle are incompatible with FOP.
As Joerg already (partly) suggested: make sure the Xerces and Xalan jars in
the FOP distro are loaded *before* the Oracle XML-related libs (or just
replace the latter by the former).


Should work.

Cheers,

Andreas