Re: Axis 2 install
RE: Axis 2 installHi Sven I am working on it. I have probably done something wrong so I am re-installing (deploying). One thing is i have a lot of warnings and errors on the script when Tomcat starts. I checked the link and all seems well with the install in spite of that. Logs is still empty even after the re-install – no catalina files to check. So I am moving to the Tomcat manager as a second port of call. Kind regards Martin From: Schlarb Sven Sent: Tuesday, January 10, 2012 12:16 PM To: java-user@axis.apache.org Subject: RE: Axis 2 install Hi Martin, if the axis2 directory does not exist in the webapps folder, this means that the deployment did not work for some reason. Note that the automatic deployment only works if "autoDeploy is set to "true", see section "Deploying on a running server" here: http://tomcat.apache.org/tomcat-7.0-doc/deployer-howto.html#Deployment_on_Tomcat_startup I suppose that you already tried restarting tomcat. Also consider that if both"autoDeploy and "deployOnStartup" are set to "false" the deployment would not happen. You can also try to deploy the web application using the tomcat manager, did you try that? If you tried all this and the deployment does still not work, then you have to look at the log files. What does logs/catalina.out say? You should find a section similar to this: INFO: Deploying web application archive axis2.war [INFO] Clustering has been disabled [INFO] Deploying module: mtompolicy-1.5.1 - file:/usr/local/java/apache-tomcat-6.0.26/webapps/axis2/WEB-INF/modules/mtompolicy-1.5.1.mar [INFO] Deploying module: metadataExchange-1.5.1 - file:/usr/local/java/apache-tomcat-6.0.26/webapps/axis2/WEB-INF/modules/mex-1.5.1.mar [INFO] Deploying module: ping-1.5.1 - file:/usr/local/java/apache-tomcat-6.0.26/webapps/axis2/WEB-INF/modules/ping-1.5.1.mar [INFO] Deploying module: script-1.5.1 - file:/usr/local/java/apache-tomcat-6.0.26/webapps/axis2/WEB-INF/modules/axis2-scripting-1.5.1.mar [INFO] Deploying module: jaxws-1.5.1 - file:/usr/local/java/apache-tomcat-6.0.26/webapps/axis2/WEB-INF/modules/axis2-jaxws-mar-1.5.1.mar [INFO] Deploying module: soapmonitor-1.5.1 - file:/usr/local/java/apache-tomcat-6.0.26/webapps/axis2/WEB-INF/modules/soapmonitor-1.5.1.mar [INFO] Deploying module: addressing-1.5.1 - file:/usr/local/java/apache-tomcat-6.0.26/webapps/axis2/WEB-INF/modules/addressing-1.5.1.mar [INFO] Deploying module: metadataExchange-1.5.1-impl - file:/usr/local/java/apache-tomcat-6.0.26/webapps/axis2/WEB-INF/lib/mex-1.5.1-impl.jar Regards, Sven -Original message- To: java-user@axis.apache.org; From: MH Sent: Tue 10-01-2012 10:06 Subject: Re: Axis 2 install Hi Sven The .war is deployed in the webapps folder. There are four other folders there including ROOT. An Axis-2 folder is not evident. Kind regards Martin From: Schlarb Sven Sent: Tuesday, January 10, 2012 8:41 AM To: java-user@axis.apache.org Subject: RE: Axis 2 install Hi, did you check if the axis.war has been deployed in the webapps folder? The folder apache-tomcat-${version}/webapps/axis2/ should exist. Regards, Sven -Original message- To: java-user@axis.apache.org; From: MH Sent: Mon 09-01-2012 20:01 Subject: Axis 2 install Hi I am a new user. I have installed apache Tomcat as a servlet container for Axis 2. My install of Axis 2 is, however, not responding I have downloaded a standard binary distribution with the .war file. I have also set up the environment variable AXIS2_HOME. When I start Tomcat and invoke the http:///axis2 I see 404 error with message informing me that apache axis is not available. The war file is in the Tomcat folder. However I checked to see if I should build a new .war file using ant create.war in the ..\module\webapp\scripts folder where the build.xml file is located. The build failed. As a new axis implementer I would like to know if anyone has an idea what may be wrong here at this stage? Kind regards Martin Harrison
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.(AxisDescription.java :70) org.apache.axis2.engine.AxisConfiguration.(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.(ServiceClient.java:143) org.apache.axis2.client.ServiceClient.(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 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
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.w...@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.(AxisDescription.java :70) org.apache.axis2.engine.AxisConfiguration.(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.(ServiceClient.java:143) org.apache.axis2.client.ServiceClient.(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 -- 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-unsubscr...@axis.apache.org For additional commands, e-mail: java-user-h...@axis.apache.org
RE: org.apache.axiom.om.impl.llom.factory.OMLinkedListMetaFactory cannot be cast to org.apache.axiom.om.OMMetaFactory
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:bok...@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.w...@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.(AxisDescription.java :70) org.apache.axis2.engine.AxisConfiguration.(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.(ServiceClient.java:143) org.apache.axis2.client.ServiceClient.(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 -- 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
RE: org.apache.axiom.om.impl.llom.factory.OMLinkedListMetaFactory cannot be cast to org.apache.axiom.om.OMMetaFactory
I am guessing that you have some other version of one or more of those jars in your classpath somewhere. In 1.2.10, OMLinkedListMetaFactory (in axiom-api) directly implements OMMetaFactory (from axiom-api): public class OMLinkedListMetaFactory implements OMMetaFactory This changes in 1.2.11, where OMLinkedListMetaFactory extends AbstractOMMetaFactory (from axiom-api): public class OMLinkedListMetaFactory extends AbstractOMMetaFactory Brett -Original Message- From: John Watt [mailto:john.w...@glasgow.ac.uk] Sent: Thursday, January 12, 2012 9:02 AM 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 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:bok...@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.w...@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.(AxisDescription.java :70) org.apache.axis2.engine.AxisConfiguration.(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.(ServiceClient.java:143) org.apache.axis2.client.ServiceClient.(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
RE: org.apache.axiom.om.impl.llom.factory.OMLinkedListMetaFactory cannot be cast to org.apache.axiom.om.OMMetaFactory
We definitely don't have different versions of the .jars, and a search of the whole filesystem shows only the one version of the axiom jars. However, our Java client is running in the same Tomcat container as the Axis2 service, so I copied some of the libs in the Axis2 lib directory to $CATALINA_HOME/lib for the client to make use of them. Could this duplication cause a problem like the one reported? Thanks! John -Original Message- From: Okken,Brett [mailto:bok...@cerner.com] Sent: 12 January 2012 16:02 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 I am guessing that you have some other version of one or more of those jars in your classpath somewhere. In 1.2.10, OMLinkedListMetaFactory (in axiom-api) directly implements OMMetaFactory (from axiom-api): public class OMLinkedListMetaFactory implements OMMetaFactory This changes in 1.2.11, where OMLinkedListMetaFactory extends AbstractOMMetaFactory (from axiom-api): public class OMLinkedListMetaFactory extends AbstractOMMetaFactory Brett -Original Message- From: John Watt [mailto:john.w...@glasgow.ac.uk] Sent: Thursday, January 12, 2012 9:02 AM 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 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:bok...@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.w...@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.(AxisDescription.java :70) org.apache.axis2.engine.AxisConfiguration.(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.(ServiceClient.java:143) org.apache.axis2.client.ServiceClient.(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.ap
RE: org.apache.axiom.om.impl.llom.factory.OMLinkedListMetaFactory cannot be cast to org.apache.axiom.om.OMMetaFactory
Potentially. Having the same class loaded in differing class loaders can cause issues if anything ever gets shared. Take a look at the "Classloader Magic" section of this[1] article. [1] - http://www.objectsource.com/j2eechapters/Ch21-ClassLoaders_and_J2EE.htm Brett -Original Message- From: John Watt [mailto:john.w...@glasgow.ac.uk] Sent: Thursday, January 12, 2012 10:13 AM 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 We definitely don't have different versions of the .jars, and a search of the whole filesystem shows only the one version of the axiom jars. However, our Java client is running in the same Tomcat container as the Axis2 service, so I copied some of the libs in the Axis2 lib directory to $CATALINA_HOME/lib for the client to make use of them. Could this duplication cause a problem like the one reported? Thanks! John -Original Message- From: Okken,Brett [mailto:bok...@cerner.com] Sent: 12 January 2012 16:02 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 I am guessing that you have some other version of one or more of those jars in your classpath somewhere. In 1.2.10, OMLinkedListMetaFactory (in axiom-api) directly implements OMMetaFactory (from axiom-api): public class OMLinkedListMetaFactory implements OMMetaFactory This changes in 1.2.11, where OMLinkedListMetaFactory extends AbstractOMMetaFactory (from axiom-api): public class OMLinkedListMetaFactory extends AbstractOMMetaFactory Brett -Original Message- From: John Watt [mailto:john.w...@glasgow.ac.uk] Sent: Thursday, January 12, 2012 9:02 AM 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 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:bok...@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.w...@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.(AxisDescription.java :70) org.apache.axis2.engine.AxisConfiguration.(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.configureServ