Hi,
I am using JBoss 4.0.2 in linux. I have currently deployed an Axis 1.4 web service and a
web application client in the same JBoss server. A client calls the web service by using
the generated client stubs by Axis.
There are no problems when accessing the web service from an external webapp client
outside of JBoss. But when the webapp client deployed in the JBoss calls the web service
(which is also deployed in the same JBoss), it's unable to do so and I get a
ClassCastException at the following:
org.apache.axis.ConfigurationException: java.lang.ClassCastException
java.lang.ClassCastException
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.makeNewInstance(WSDDDeployableItem.java:302)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
at
org.apache.axis.deployment.wsdd.WSDDDeployment.getHandler(WSDDDeployment.java:394)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:276)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
at org.apache.axis.deployment.wsdd.WSDDChain.makeNewInstance(WSDDChain.java:125)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
at
org.apache.axis.deployment.wsdd.WSDDDeployment.getGlobalRequest(WSDDDeployment.java:473)
at
org.apache.axis.configuration.FileProvider.getGlobalRequest(FileProvider.java:269)
at org.apache.axis.AxisEngine.getGlobalRequest(AxisEngine.java:365)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:126)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
... ...
... ...
Since an external webapp client is able to access the web service from anywhere outside,
it can be assumed the web service deployed in JBoss is working fine. The only problem is
when the webapp client calls the web service within the same JBoss server.
Has anyone faced a similar problem of this nature, and solved it? If there is a solution
to this, please help refer me to it.
Thanks!
BR,
Melvin
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041248#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...