Try with adding the following system property to the startup arguments for the server:

com.ibm.ws.classloader.classSharing=false

i.e java -Dcom.ibm.ws.classloader.classSharing=false ...

By default WAS cashes class definitions on a per server basis, and not on a per classloader basis, as would seem natural in a J2EE container. The property above should fix the problem, I have tested it in WAS 4.0.2 and 4.0.3. Also make sure that you have the correct version of xerces (1.2.3?) either in WEB-INF/lib or in the root of the ear.

Br - Johan


Sharma, Siddharth wrote:

Hi,
I am newbie with FOP and am using the same to create PDF on Websphere 4.0.3.

Batik has some DOM classes, which are present in Xerces as well, with
different implementations.
This leads to a number of problems, the latest being the stacktrace below.

I am creating the input DOM tree at runtime based on user input and
transforming it using
XSLTransform.transform(xmlDOM,inStream,foDom);
(The exception is thrown here on the above line during transformation)

And then generating the PDF using
Driver driver = new Driver(insource, bytePDF);
driver.setRenderer(Driver.RENDER_PDF);
driver.run();

Has anyone faced this problem of same class-multiple implementations in the
two libraries (if that is the problem).
Can anyone help?
Sid




java.lang.reflect.InvocationTargetException: java.lang.LinkageError: Class org/w3c/dom/Node violates loader constraints: definition mismatch between parent and child loaders at org.apache.fop.tools.xslt.TraxTransform.transform(TraxTransform.java:87) at java.lang.reflect.Method.invoke(Native Method) at org.apache.fop.tools.xslt.XSLTransform.transform(XSLTransform.java:76) at org.apache.fop.tools.xslt.XSLTransform.transform(XSLTransform.java:63) at com.fidelity.qdro.common.util.PDFGeneratorImpl.getPDF(PDFGeneratorImpl.java: 98) at com.fidelity.qdro.common.business.QDROProcessorImpl.saveQDRO(QDROProcessorIm pl.java:475) at com.fidelity.qdro.formgen.controllers.FormGenFinal.doProcess(FormGenFinal.ja va:67) at com.fidelity.qdro.formgen.controllers.InternetBaseController.doPost(Internet BaseController.java:99) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager .java:827) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl eServlet.java:167) at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle t.java:297) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle Servlet.java:110) at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47 2) at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan ager.java:1012) at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag er.java:913) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W ebAppRequestDispatcher.java:665) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest Dispatcher.java:331) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD ispatcher.java:117) at com.ibm.servlet.engine.webapp.InvokerServlet.service(InvokerServlet.java:267 ) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager .java:827) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl eServlet.java:167) at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle t.java:297) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle Servlet.java:110) at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47 2) at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan ager.java:1012) at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag er.java:913) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W ebAppRequestDispatcher.java:665) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest Dispatcher.java:331) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD ispatcher.java:117) at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:124) at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker. java:218) at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn vocation.java:67) at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequ estProcessor.java:122) at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener .java:315) at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.ja va:60) at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java(Comp iled Code)) at com.ibm.ws.http.HttpConnection.run(HttpConnection.java(Compiled Code)) at com.ibm.ws.util.CachedThread.run(ThreadPool.java:137)



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




--
Johan Åbrandt

Technical Project Manager
(Tekninen projektipäällikkö)
Tel. +358 9 6817 3342
Mobile. +358 40 848 8068
[EMAIL PROTECTED]

Profit Software Oy
Meritullinkatu 11 C
00170 Helsinki, Finland


__________________________________________________________________________

This message and its attachments have been found clean from known viruses with three different antivirus programs.
__________________________________________________________________________


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



Reply via email to