• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem may be with saaj.jar and AXIS,WAS,WSAD  RSS feed

Ranch Hand
Posts: 548
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have successfully developed and deployed an EJB using WSAD 5.1.2's WebSphere 5.0 Test Environment. I have even able to access the EJB using UTC(Universal Test Client) in WSAD and by launching the j2ee client module using
WebSphere lauchClient program.

Basically I have below directory structure:

-----------|------ lib
--------------------|--- all axis related jars are here
--|-----demoEjb.jar (has java jar dependencies set to axis.war\lib jars

I have now exposed this ejb as web service using AXIS 1.2 RC2 deployed as web module inside WSAD. This web service is properly exposed as web service as I can see it and access its wsdl when I access axis web services.

Now I have written a standalone-outside-wsad web service client that uses AXIS stubs and when I try to consume to this ejb web service I am getting below error.

faultCode: {http://xml.apache.org/axis/}HTTP
faultString: (500)Internal Server Error
{}:return code: 500
Error 500: class org.apache.axis.SOAPPart does not implement interface org.w3c.dom.Document


(500)Internal Server Error
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:663)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:94)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:147)
at org.apache.axis.client.Call.invokeEngine(Call.java:2719)
at org.apache.axis.client.Call.invoke(Call.java:2702)
at org.apache.axis.client.Call.invoke(Call.java:2378)
at org.apache.axis.client.Call.invoke(Call.java:2301)
at org.apache.axis.client.Call.invoke(Call.java:1758)
at com.sosnoski.test.DemoBindingStub.getAccountHistory(DemoBindingStub.java:194)
at com.sosnoski.test.Client.query(Client.java:63)
at com.sosnoski.test.Client.main(Client.java:100)

I read somewhere with axis mailing lists that it is problem related to axis's saaj.jar and wsad's websphere 5.0
test environment's webservices.jar so I even replaced my wsad installation's D:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v5\lib\webservices.jar with
saaj.jar but this did not help and even I have added an references to saaj.jar usign wsad's websphere 5.0 test environment
environment tab->ws.ext.dirs property and even this did not help.

Can anyone please tell me why is error occurring and how to solve it ?

Thanks & Regards,
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Trying adding saaj.jar to classpath of Websphere..

Instead of adding it to ws.ext.dirs add it under classpath n trying running it...
Rr Kumaran
Ranch Hand
Posts: 548
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Madhu,

Thank you for the response. What is the difference between the two.

My ultimate goal is deploy this ear in a production WAS5.0 and I am successfull in that. But my original problem remained still. No matter what I tune in WSAD, there is still WSAD-WEBSPHERE version of saaj.jar getting loaded and effective. I am not sure even this is the problem ...

Thanks & Regards,
Enjoy the full beauty of the english language. Embedded in this tiny ad:
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!