Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javax.xml.namespace.QName

 
arief hidayat
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I am developing spring-ws on top of weblogic.
Inside yg application libraries. I found there are more than one jar file that contains QName class.
1. stax-api.1.0.1.jar -> used by spring-ws libraries
2. xml-apis-1.3.2.jar -> used by Xalan, and Xerces

If I run the application on weblogic 9.2, so far it works fine.
However, will there be any possibility in future that let set deep inside the code maybe some class need to access the QName but it found 2 classes of QName?


I try to deploy the same EAR file onto weblogic 10.0. when I try to access the application, it throws error:



I found in weblogic 10 library, there's api.jar that contains javax.xml.QName also.
So, now I total there are 3 jars containing QName.
I try to remove two Qname, but its not solved the problem.
Any idea?

Thanks
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Having two, or three, or any number of classes named QName will not be a problem at all if they are in different packages. And the documentation for LinkageError says:
Subclasses of LinkageError indicate that a class has some dependency on another class; however, the latter class has incompatibly changed after the compilation of the former class.

You didn't say whether the classes in question were part of the Weblogic distribution and I don't know what a "yg" application library is. But isn't Weblogic something you pay for support for? I would ask them.

And now that I have gone through that thought process, let's move this to the Weblogic forum.
 
arief hidayat
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Paul Clapham:
Having two, or three, or any number of classes named QName will not be a problem at all if they are in different packages.


Oh ic. But it's all under same package javax.xml.namespace. Just different jar files.


You didn't say whether the classes in question were part of the Weblogic distribution and I don't know what a "yg" application library is. But isn't Weblogic something you pay for support for? I would ask them.


Sorry "yg" is a typo. It should "my".
Which means the application I developed, it use Spring-WS, Axiom, JAXB 2.

And the classes appears in my application (inside xml-apis.jar and stax-api.jar) and also from weblogic server lib (api.jar).


And now that I have gone through that thought process, let's move this to the Weblogic forum.



And thanks for moving this post to the right place.

[ August 04, 2008: Message edited by: arief hidayat ]
[ August 04, 2008: Message edited by: arief hidayat ]
 
Marcos Maia
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You problably won't get any problems because of classloading rules. You can learn more from:

http://e-docs.bea.com/wls/docs92/programming/classloading.html

regards.
 
arief hidayat
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I have read that page.
I filter the classloader and set the apps NOT to use some weblogic libraries. One of the filter is "javax.xml.*".
All the configuration I have set is working on weblogic 9.2.
But failed in weblogic 10 (as I have state in previous post).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic