Showing results for 
Search instead for 
Did you mean: 

Wrong version of QName during Java mapping tests

Former Member
0 Kudos

I am trying to test my Java mappings. In the mapping, I am using XmlBeans to parse the XML message files. However, XmlBeans contains a newer version of javax.xml.namespace.QName class. But the Integration Engine has an older version of QName somewhere in the classpath. As the result, I get this error:

java.lang.NoSuchMethodError: javax.xml.namespace.QName.<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

Does anyone know how to work around this problem? Many thanks!


View Entire Topic
Former Member
0 Kudos

I solved it myself. It was a class loader problem. Thanks everyone!


0 Kudos

Please note, that this is not a solution; changing the content of J2EE Engine in any not officially supported way (as here: replacing files on the file system) makes the product not oficcially supported. All the subsequent issues from this change will be considered as consulting. The recommended way of using third party libraries is described in SAP Note 990854.

Former Member
0 Kudos


I am meeting the same problem now. In note 990854:

1. Declare all jars of the third party implementation in a separate library

<code>Confused... how to declare them in a Library?</code>

2. Create an interface to access and work with the third party implementation classes and bundle it with the jars files in the library mentioned in point 1 above.

<code>Still don't know what to do....</code>

3. Specify a reference from your application to the library created in point 1 above.

Any help is much appreciated~~