We help IT Professionals succeed at work.

Error in applying XSL on XML in Websphere environment

akashpan1
akashpan1 asked
on
Medium Priority
317 Views
Last Modified: 2013-12-11
We use Xalan and Xerces for XML transformation. When we run application in WebSphere environment we get following error. Application runs fine as a standalone app. It is only the problem in the Websphere environment. Has any one come across this problem?

org/apache/xalan/xpath/xdom/XercesLiaison, method: parse signature: (Lorg/xml/sax/InputSource&#59;)V) Incompatible object argument for method call]: java.lang.VerifyError: (class: org/apache/xalan/xpath/xdom/XercesLiaison, method: parse signature: (Lorg/xml/sax/InputSource;)V) Incompatible object argument for method call
      at java.lang.Class.forName1(Native Method)
      at java.lang.Class.forName(Class.java(Compiled Code))
      at org.apache.xalan.xslt.XSLTEngineImpl.<init>(XSLTEngineImpl.java:360)
      at org.apache.xalan.xslt.XSLTProcessorFactory.getProcessor(XSLTProcessorFactory.java:79)
Comment
Watch Question

Hi,

The web app classloader was loading classes from the system classloader (includes all the .jars specified in server.xml's classpath) instead of from WEB-INF/lib.

i hope it will do.

R.K

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Hi,

1. Try a different version of xalan jar file that you are using.
2. What is ur WAS installed path,

There can be a problem because of there is any space in your classpath. just like "c:\\Program Files\IBM\...." (The space between 'Progam Files')...

R.K

Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.