axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chen, John (N-Avatar Inc.)" <john.c...@lmco.com>
Subject RE: Where to put Axis2 jar files on TOMCAT
Date Fri, 29 Jun 2007 18:28:41 GMT
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:jowen4077@yahoo.com] 
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:davanum@gmail.com] 
> 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.) <john.chen@lmco.com> 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: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 
> 

-- 
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: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message