GeeCON Prague 2014*
The moose likes BEA/Weblogic and the fly likes javax.xml.namespace.QName Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "javax.xml.namespace.QName" Watch "javax.xml.namespace.QName" New topic
Author

javax.xml.namespace.QName

arief hidayat
Ranch Hand

Joined: Apr 13, 2007
Posts: 33
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
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

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

Joined: Apr 13, 2007
Posts: 33

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

Joined: Jan 06, 2001
Posts: 977
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

Joined: Apr 13, 2007
Posts: 33
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).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javax.xml.namespace.QName