axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Watt" <John.W...@glasgow.ac.uk>
Subject RE: org.apache.axiom.om.impl.llom.factory.OMLinkedListMetaFactory cannot be cast to org.apache.axiom.om.OMMetaFactory
Date Thu, 12 Jan 2012 15:02:12 GMT
Hi Brett,

Its using 

axiom-api-1.2.10.jar
axiom-dom-1.2.10.jar
axiom-impl-1.2.10.jar

Thanks,
John

-----Original Message-----
From: Okken,Brett [mailto:BOKKEN@CERNER.COM] 
Sent: 12 January 2012 15:00
To: java-user@axis.apache.org
Subject: RE:
org.apache.axiom.om.impl.llom.factory.OMLinkedListMetaFactory cannot be
cast to org.apache.axiom.om.OMMetaFactory

What versions of the following projects are in your assembly:
axiom-api
axiom-dom
axiom-impl

Brett Okken

-----Original Message-----
From: John Watt [mailto:John.Watt@glasgow.ac.uk] 
Sent: Thursday, January 12, 2012 8:51 AM
To: java-user@axis.apache.org
Subject: FW:
org.apache.axiom.om.impl.llom.factory.OMLinkedListMetaFactory cannot be
cast to org.apache.axiom.om.OMMetaFactory

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.Watt@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


----------------------------------------------------------------------
CONFIDENTIALITY NOTICE This message and any included attachments are
from Cerner Corporation and are intended only for the addressee. The
information contained in this message is confidential and may constitute
inside or non-public information under international, federal, or state
securities laws. Unauthorized forwarding, printing, copying,
distribution, or use of such information is strictly prohibited and may
be unlawful. If you are not the addressee, please promptly delete this
message and notify the sender of the delivery error by e-mail or you may
call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1)
(816)221-1024.

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


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


Mime
View raw message