Jesse,
We use Websphere 5.1.1 as well. I am using the nightly (9/22) build, and am
deploying the axis2.war as an EAR file (customized web.xml). I too was seeing
the same error caused by the loading of an old version of QName, which was
preventing version.aar from loading properly.
This is how I fixed it...
Tried setting the classloading to PARENT_LAST for both the application and
the web module, but it didn't work. It wasn't until I actually set the
PARENT_LAST policy on the server instance (Servers->${instance},
Configuration tab) that it worked.
But then I got a ClassCastException because Websphere's version of
'com.ibm.ws.commons.logging.TrLogFactory' was getting cast to
'org.apache.commons.logging.LogFactory'. The fix for this is described here:
http://jakarta.apache.org/commons/logging/troubleshooting.html
Basically, you have to set a system property on the web container itself,
Servers->${instance}->Web Container->Custom Properties equivalent to
org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFact
oryImpl
(I also did it on the server's Process Definition as well, just in case...)
You may want to set up a separate server instance for Axis just to isolate
this behavior.
Brennan
-----Original Message-----
From: Jesse Vitrone [mailto:[EMAIL PROTECTED]
Sent: Monday, September 18, 2006 1:08 PM
To: [email protected]
Subject: Re: [Axis2] jar conflicts
I tried a few things, and I can't seem to et WebSphere 5.1.x to use the QName
from the stax-api-1.0.1.jar.
Set Parent Last for the class loader.
Unjarred stax-api-1.0.1.jar into my WEB-INF/classes.
Copied stax-api-1.0.1.jar into the WebSphere lib dir.
None of that seemed to help. Any ideas what I can do to get WebSphere to
work?
Thanks in advance.
----- Original Message ----
From: Davanum Srinivas <[EMAIL PROTECTED]>
To: [email protected]; Jesse Vitrone <[EMAIL PROTECTED]>
Sent: Monday, September 18, 2006 9:53:45 AM
Subject: Re: [Axis2] jar conflicts
Please set the class loader mode to "Parent Last"
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ib
m.websphere.base.doc/info/aes/ae/ctrb_classload_jcl_conf.html
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ib
m.websphere.base.doc/info/aes/ae/crun_classload.html
-- dims
On 9/18/06, Jesse Vitrone <[EMAIL PROTECTED]> wrote:
> When I decompile the .class files, it looks like they're all fine, I think
I'm picking up an old QName from WebSphere :(
>
> Thanks anyway.
>
> Jesse
>
>
> ----- Original Message ----
> From: Davanum Srinivas <[EMAIL PROTECTED]>
> To: [email protected]; Jesse Vitrone <[EMAIL PROTECTED]>
> Sent: Friday, September 15, 2006 3:12:53 PM
> Subject: Re: [Axis2] jar conflicts
>
> Please run javap to look at the signatures and let us know which jar
> has the bad QName.
>
> javap -classpath woden-SNAPSHOT.jar -public javax.xml.namespace.QName
>
> thanks,
> dims
>
> On 9/14/06, Jesse Vitrone <[EMAIL PROTECTED]> wrote:
> > I'm getting the following error when I run -
> >
> > java.lang.NoSuchMethodError:
javax.xml.namespace.QName.<init>(Ljava/lang/String;Ljava/lang/String;Ljava/la
ng/String;)V
> > at
com.starwood.valhalla.booking.BookingServiceStub$CreateBooking.<clinit>(Booki
ngServiceStub.java:19569)
> >
> >
> > From what I see online, this happens when there are conflicts in the jars
and it's loading the wrong javax.xml.namespace.QName .
> >
> > I looked in the jars in our app (a lot of them) and I see QName in all
these jars:
> > jaxrpc.jar
> > jaxb-api.jar
> > woden-SNAPSHOT.jar
> > stax-api-1.0.1.jar
> >
> > If we use jaxb for other stuff in our app, does this mean I'm going to
get screwed and not be able to use Axis2?
> >
> > Is there a way, even programatically, to for this instance of this class
to use the right jar?
> >
> > Thanks in advance.
> >
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]