Hi,

I have an Axis2 web service which allows values to be set then retrieved
using separate methods. This service works fine in the browser. This
service is using axis2 1.5.3 and axiom 1.2.10.

I then tried to run up a Java client (webClientBean, which is called
from a JSP page) using the same Axis2 library versions which
programmatically calls the service. Using the ServiceClient example at
the following page:

http://today.java.net/pub/a/today/2006/12/13/invoking-web-services-using
-apache-axis2.html 

I've created a client which is attached (webClientBean).

I get the following error in Tomcat when it is invoked:

org.apache.jasper.JasperException: java.lang.ClassCastException:
org.apache.axiom.om.impl.llom.factory.OMLinkedListMetaFactory cannot be
cast to org.apache.axiom.om.OMMetaFactory
        
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServle
tWrapper.java:491)
        
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:419)
        
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
        
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

root cause

java.lang.ClassCastException:
org.apache.axiom.om.impl.llom.factory.OMLinkedListMetaFactory cannot be
cast to org.apache.axiom.om.OMMetaFactory
        
org.apache.axiom.om.OMAbstractFactory.getMetaFactory(OMAbstractFactory.j
ava:133)
        
org.apache.axiom.om.OMAbstractFactory.getOMFactory(OMAbstractFactory.jav
a:152)
        
org.apache.axis2.description.AxisDescription.<init>(AxisDescription.java
:70)
        
org.apache.axis2.engine.AxisConfiguration.<init>(AxisConfiguration.java:
160)
        
org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(D
eploymentEngine.java:701)
        
org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(
FileSystemConfigurator.java:116)
        
org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
Context(ConfigurationContextFactory.java:64)
        
org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
ContextFromFileSystem(ConfigurationContextFactory.java:206)
        
org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClie
nt.java:150)
        
org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:143)
        
org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:246)
        vanguard2.webClientBean.callWebServiceSet(webClientBean.java:60)
        org.apache.jsp.index_jsp._jspService(index_jsp.java:93)
        
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:377)
        
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
        
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


Do you know what the problem is? I've had a look at the advice in
http://ws.apache.org/axiom/userguide/ch04.html with regard to Migrating
from older Axiom Versions, but I'm not sure if this is the problem, or
how to fix it.

Thanks,
John

Dr. John Watt
BSc.(Hons) Ph.D MInstP
Technical Director NeSC

Direct Line: +44 (0)141 330 8647
Fax: +44 (0)141 330 7305
Mobile: 07545 500579
Email: john.w...@glasgow.ac.uk

National e-Science Centre
University of Glasgow
Room 246D, Kelvin Building
University Avenue
G12 8QQ

The University of Glasgow, charity number SC004401


Attachment: WebClientBean.java
Description: WebClientBean.java

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org

Reply via email to