Actually, here is the reason ....

http://issues.apache.org/jira/browse/WSCOMMONS-70

John

-----Original Message-----
From: Chen, John (N-Avatar Inc.) 
Sent: Friday, June 29, 2007 4:59 PM
To: axis-user@ws.apache.org
Cc: [EMAIL PROTECTED]
Subject: RE: Where to put Axis2 jar files on TOMCAT


I think the problem is stax-api.jar, somehow I have to either put my
Axis2 WEB-INF/lib or my classpath to expose it to Axis engine. So my
solution is have it in my classpath and all other jar files under
common/lib and it works for me.

But why?

John

-----Original Message-----
From: Chen, John (N-Avatar Inc.) 
Sent: Friday, June 29, 2007 2:29 PM
To: axis-user@ws.apache.org
Cc: [EMAIL PROTECTED]
Subject: RE: Where to put Axis2 jar files on TOMCAT

Do you know why Axis2 is not able to locate the jar files I put under
common/lib. It looks to me an Axis2 service is able to locate some jar
files in common/lib such as Axis2-kernel.jar, but having problem with
some such as stax-api.jar. Is it the case?

I have to put my own jar file under common/lib since I have other web
applications using it and invoke Axis stub class from a class in that
jar file. Can anybody give me some help here? Please, I have tried all
the options I can think of, including adding Axis jar files to my
classpath(it didn't work either because of the tomcat class loader
mechanism)

Thanks

John


-----Original Message-----
From: Joe Nathan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 27, 2007 7:01 PM
To: axis-user@ws.apache.org
Subject: RE: Where to put Axis2 jar files on TOMCAT


Instead of common lib, place them all together in the service specific
lib.
Then it works. But this also creates another problem: duplicate resource
creations. Eventually, Axis and Tomcat should be merged as one.
Otherwise, duplication problems will remain.

regards.


Chen, John (N-Avatar Inc.) wrote:
> 
> Dims,
> 
> Actually when I put all jar files in common\lib, I could not even
> deploy, I got java.lang.IllegalStateException: No valid ObjectCreator
> found.
> 
> Thanks
> 
> John 
> 
> -----Original Message-----
> From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, June 27, 2007 3:08 PM
> To: axis-user@ws.apache.org
> Cc: Jain, Kokil
> Subject: Re: Where to put Axis2 jar files on TOMCAT
> 
> find all the stax related jars in your environment. easy thumb rule,
> you need to place the woodstox and stax jars in the same directory
> whether it is in WEB-INF/lib or commons/lib. more importantly remove
> any dups.
> 
> thanks,
> dims
> 
> On 6/27/07, Chen, John (N-Avatar Inc.) <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>>
>> I have been struggling with this issue for the last several days and
I
>> believe it is the Axis2 class loader issue
>>
>>
>>
>> Basically I am developing a system can act as both Web Services
client
> and
>> server. To use it as a Web Services client, I have to put my
> application jar
>> file and all dependent Axis2 jar files under common/lib. To host my
> Web
>> Services, I have a war file with my Web Services configuration and
> classes
>> in it.
>>
>>
>>
>> My issue is, if I don't put any Axis2 jar files in the war file
>> (WEB-INF/lib), I am getting the following exception,
>>
>> java.lang.IllegalStateException: No valid ObjectCreator found.
>>
>>         at
>> org.apache.axiom.om.util.StAXUtils$Pool.<init>(StAXUtils.java:44)
>>
>>         at
>> org.apache.axiom.om.util.StAXUtils.<clinit>(StAXUtils.java:68)
>>
>>         at
>> org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:555)
>>
>>         at
>> org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBui
>>
>>
>>
>> Then if I put those Axis2 jar files back in the war file, I don't
have
> any
>> problem deploying it, but I got the following exception when invoking
> the
>> Web Services,
>>
>>
>>
>> ERROR AxisServlet - java.lang.LinkageError: Class
>> javax/xml/stream/XMLStreamRead
>>
>> er violates loader constraints
>>
>>
>>
>>
>>
>> Thanks
>>
>>
>>
>> John
> 
> 
> -- 
> Davanum Srinivas :: http://davanum.wordpress.com
> 
> ---------------------------------------------------------------------
> 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]
> 
> 
> 

-- 
View this message in context:
http://www.nabble.com/Where-to-put-Axis2-jar-files-on-TOMCAT-tf3989363.h
tml#a11334198
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to