• Post Reply Bookmark Topic Watch Topic
  • New Topic

A version of Axis2 that uses commons-httpclient-2.0.jar?

 
Brett Daburn
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a version of Axis2 that uses commons-httpclient-2.0.jar instead of 3.1? We are using 2.0 and are unable to update at the time being. I already learned the Axis2 api and wrote some code, so I would hate to lose all of this and go to the weblogic generated stubs and api.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not following - what is the connection between Axis and HttpClient? Are you asking about the client side or the server side?
 
Brett Daburn
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am only doing the client side of the web service. This is the exception I get when I try to run it using the 2.0 jar. When I use the 3.1 jar, it is working fine, but am unable to use the 3.1 jar.

- Deploying module: metadataExchange - file:/C:/Documents and Settings/c02378/Desktop/axis2-1.4.1/lib/mex-1.4.1.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/httpclient/methods/RequestEntity
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:354)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:209)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at com.printable.services._1_0.sso_.SingleSignOnStub.Authenticate(SingleSignOnStub.java:467)
at com.printable.services._1_0.sso_.Test.main(Test.java:63)
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So the client contains both the Axis-based WS client (which uses HC 3.1) and some other code that must -for unrelated purposes- use HC 2.x; is that correct?

Why can't you upgrade the other code to HC 3.x? I don't think there are significant compatibility problems. If there indeed are such problems, I'd consider either separating the applications -one can call the other using Runtime.exec- or using class loaders to separate the code bases from each other.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!