Re: java.lang.NoSuchMethodError: org.apache.axiom.om.OMFactory.createOMElement(
Hi, All I am facing the same problem. I have jar containing client created using axis2-1.2 / axiom 1.2.4 but when we try use this client using axis2-1.4.1/axiom 1.2.7 we get following error: Caused by: java.lang.NoSuchMethodError: org.apache.axiom.soap.SOAPFactory.createOMElement(Lorg/apache/axiom/om/OMDataSource;L java/lang/String;Lorg/apache/axiom/om/OMNamespace;)Lorg/apache/axiom/om/OMElement; It seems on following code in generated stub: factory.createOMElement(source, bindingFactory.getElementNames()[index], namespace); The factory is org.apache.axiom.soap.SOAPFactory. It seem sabove method was removed while moving to 1.2.7 fro axiom. Kindle help. Regards Kamlesh hping wrote: > > Hello all, > > I am new to axis2 land, and currently I am using axis2 1.4.1, and created > my own server and client. > When the client call the axis2 service, I got this exception. > > Here the utils.UtilsServiceMessageReceiverInOut class is inside the > Services.aar file. Inside that file, I already imported the import > org.apache.axiom.om.*. > > Any suggestions? > > === > org.apache.axiom.om.OMFactory.createOMElement(Lorg/apache/axiom/om/OMDataSource;Ljava/lang/String;Lorg/apache/axiom/om/OMNamespace;)Lorg/apache/axiom/om/OMElement; > java.lang.NoSuchMethodError: > org.apache.axiom.om.OMFactory.createOMElement(Lorg/apache/axiom/om/OMDataSource;Ljava/lang/String;Lorg/apache/axiom/om/OMNamespace;)Lorg/apache/axiom/om/OMElement; > at > utils.UtilsServiceMessageReceiverInOut.toOM(UtilsServiceMessageReceiverInOut.java:146) > at > utils.UtilsServiceMessageReceiverInOut.toEnvelope(UtilsServiceMessageReceiverInOut.java:157) > at > utils.UtilsServiceMessageReceiverInOut.invokeBusinessLogic(UtilsServiceMessageReceiverInOut.java:87) > at > org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:42) > at > org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100) > at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176) > at > com.acme.axis2.Axis2TestImpl.callAxisService(Axis2TestImpl.java:317) > at > com.acme.axis2.Axis2TestImpl.callAxisService(Axis2TestImpl.java:245) > at > com.acme.axis2.Axis2TestImpl.handleRequest(Axis2TestImpl.java:144) > > -- View this message in context: http://www.nabble.com/java.lang.NoSuchMethodError%3A-org.apache.axiom.om.OMFactory.createOMElement%28-tp22110938p25750722.html Sent from the Axis - User mailing list archive at Nabble.com.
Re: java.lang.NoSuchMethodError: org.apache.axiom.om.OMFactory.createOMElement(
Hi, It seems like you have a version mismatch problem with Axiom, it may refer to a incompatible Axiom.jar file from somewhere, pleases use the Jar files available on you axis2 1.4.1 lib directory to compile your services and also to run your web service client. Since you haven't mention when you get this exception and how you deploy the service, can't predict anything specifically, Also try to use axis2server shipped with axis2 1.4.1 distro to deploy your services. Further check you CLASSPATH and AXIS2_HOME environments variables also . Thanks , On Fri, Feb 20, 2009 at 3:52 AM, hping wrote: > > Hello all, > > I am new to axis2 land, and currently I am using axis2 1.4.1, and created my > own server and client. > When the client call the axis2 service, I got this exception. > > Here the utils.UtilsServiceMessageReceiverInOut class is inside the > Services.aar file. Inside that file, I already imported the import > org.apache.axiom.om.*. > > Any suggestions? > > === > org.apache.axiom.om.OMFactory.createOMElement(Lorg/apache/axiom/om/OMDataSource;Ljava/lang/String;Lorg/apache/axiom/om/OMNamespace;)Lorg/apache/axiom/om/OMElement; >java.lang.NoSuchMethodError: > org.apache.axiom.om.OMFactory.createOMElement(Lorg/apache/axiom/om/OMDataSource;Ljava/lang/String;Lorg/apache/axiom/om/OMNamespace;)Lorg/apache/axiom/om/OMElement; >at > utils.UtilsServiceMessageReceiverInOut.toOM(UtilsServiceMessageReceiverInOut.java:146) >at > utils.UtilsServiceMessageReceiverInOut.toEnvelope(UtilsServiceMessageReceiverInOut.java:157) >at > utils.UtilsServiceMessageReceiverInOut.invokeBusinessLogic(UtilsServiceMessageReceiverInOut.java:87) >at > org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:42) >at > org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100) >at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176) >at > com.acme.axis2.Axis2TestImpl.callAxisService(Axis2TestImpl.java:317) >at > com.acme.axis2.Axis2TestImpl.callAxisService(Axis2TestImpl.java:245) >at > com.acme.axis2.Axis2TestImpl.handleRequest(Axis2TestImpl.java:144) > > -- > View this message in context: > http://www.nabble.com/java.lang.NoSuchMethodError%3A-org.apache.axiom.om.OMFactory.createOMElement%28-tp22110938p22110938.html > Sent from the Axis - User mailing list archive at Nabble.com. > -- Sagara Gunathunga Blog - ssagara.blogspot.com Web - http://sagaras.awardspace.com/
java.lang.NoSuchMethodError: org.apache.axiom.om.OMFactory.createOMElement(
Hello all, I am new to axis2 land, and currently I am using axis2 1.4.1, and created my own server and client. When the client call the axis2 service, I got this exception. Here the utils.UtilsServiceMessageReceiverInOut class is inside the Services.aar file. Inside that file, I already imported the import org.apache.axiom.om.*. Any suggestions? === org.apache.axiom.om.OMFactory.createOMElement(Lorg/apache/axiom/om/OMDataSource;Ljava/lang/String;Lorg/apache/axiom/om/OMNamespace;)Lorg/apache/axiom/om/OMElement; java.lang.NoSuchMethodError: org.apache.axiom.om.OMFactory.createOMElement(Lorg/apache/axiom/om/OMDataSource;Ljava/lang/String;Lorg/apache/axiom/om/OMNamespace;)Lorg/apache/axiom/om/OMElement; at utils.UtilsServiceMessageReceiverInOut.toOM(UtilsServiceMessageReceiverInOut.java:146) at utils.UtilsServiceMessageReceiverInOut.toEnvelope(UtilsServiceMessageReceiverInOut.java:157) at utils.UtilsServiceMessageReceiverInOut.invokeBusinessLogic(UtilsServiceMessageReceiverInOut.java:87) at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:42) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176) at com.acme.axis2.Axis2TestImpl.callAxisService(Axis2TestImpl.java:317) at com.acme.axis2.Axis2TestImpl.callAxisService(Axis2TestImpl.java:245) at com.acme.axis2.Axis2TestImpl.handleRequest(Axis2TestImpl.java:144) -- View this message in context: http://www.nabble.com/java.lang.NoSuchMethodError%3A-org.apache.axiom.om.OMFactory.createOMElement%28-tp22110938p22110938.html Sent from the Axis - User mailing list archive at Nabble.com.
RE: java.lang.NoSuchMethodError: javax.xml.namespace.QName
Make sure that you don't have the weblogic jar in your classpath. Weblogic ships a different version of the QName class From: Anthony Bull [mailto:[EMAIL PROTECTED] Sent: Monday, April 28, 2008 1:48 PM To: axis-user@ws.apache.org Subject: Re: java.lang.NoSuchMethodError: javax.xml.namespace.QName Hi Peter, I'm not positive on it, but I seem to remember getting this error when I used a different version of the addressing/rampart modules with a specific version of Axis 2. E.g. Axis 2 1.3 and rampart 1.2 and addressing 1.2. Changing all modules are jars to be for the same release of Axis 2 fixed it up. Rajesh, Peter (CLAIMS, WIP) wrote: Hi, In the java client, to invoke an Axis2 webservice, when we try to create the ConfigurationContext as below, ConfigurationContext ctx = ConfigurationContextFactory.createConfigurationContextFromFileSystem("C: /Test/build/client_repository", null); Below exception is thrown, java.lang.NoSuchMethodError: javax.xml.namespace.QName.(Ljava/lang/String;Ljava/lang/String;Lja va/lang/String;)V Please advice. Thanks & Regards, Peter Rajesh * This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies. * -- Anthony - Anthony Bull Senior Developer Black Coffee Software Ltd PO Box 10-192 The Terrace Wellington, New Zealand [EMAIL PROTECTED] Ph +64 4 472 8818 Fax +64 4 472 8811 - www.bcsoft.co.nz --- This email may contain confidential or privileged information, and is intended for use only by the addressee, or addressees. If you are not the intended recipient please advise the sender immediately and do not copy, use or disclose the contents to any other person or organisation. Black Coffee Software Ltd accepts no responsibility for viruses received with this email, or to any changes made to the original content. Any views or opinions expressed in this email may be personal to the sender and are not necessarily those of Black Coffee Software Ltd. --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The information contained in this message and any accompanying attachments may contain privileged, private and/or confidential information protected by state and federal law. Penalties may be assessed for unauthorized use and/or disclosure. This message and any attachments are intended for the designated recipient only. If you have received this information in error, please notify the sender immediately and return or destroy the information. This e-mail transmission and any attachments are believed to have been sent free of any virus or other defect that might affect any computer system into which it is received and opened. It is, however, the recipient's responsibility to ensure that the e-mail transmission and any attachments are virus free, and the sender accepts no responsibility for any damage that may in any way arise from their use.
Re: java.lang.NoSuchMethodError: javax.xml.namespace.QName
Title: java.lang.NoSuchMethodError: javax.xml.namespace.QName Hi Peter, I'm not positive on it, but I seem to remember getting this error when I used a different version of the addressing/rampart modules with a specific version of Axis 2. E.g. Axis 2 1.3 and rampart 1.2 and addressing 1.2. Changing all modules are jars to be for the same release of Axis 2 fixed it up. Rajesh, Peter (CLAIMS, WIP) wrote: Hi, In the java client, to invoke an Axis2 webservice, when we try to create the ConfigurationContext as below, ConfigurationContext ctx = ConfigurationContextFactory.createConfigurationContextFromFileSystem("C:/Test/build/client_repository", null); Below exception is thrown, java.lang.NoSuchMethodError: javax.xml.namespace.QName.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V Please advice. Thanks & Regards, Peter Rajesh * This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies. * -- Anthony - Anthony Bull Senior Developer Black Coffee Software Ltd PO Box 10-192 The Terrace Wellington, New Zealand [EMAIL PROTECTED] Ph +64 4 472 8818 Fax +64 4 472 8811 - www.bcsoft.co.nz --- This email may contain confidential or privileged information, and is intended for use only by the addressee, or addressees. If you are not the intended recipient please advise the sender immediately and do not copy, use or disclose the contents to any other person or organisation. Black Coffee Software Ltd accepts no responsibility for viruses received with this email, or to any changes made to the original content. Any views or opinions expressed in this email may be personal to the sender and are not necessarily those of Black Coffee Software Ltd. --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.lang.NoSuchMethodError: javax.xml.namespace.QName
Hi, In the java client, to invoke an Axis2 webservice, when we try to create the ConfigurationContext as below, ConfigurationContext ctx = ConfigurationContextFactory.createConfigurationContextFromFileSystem("C: /Test/build/client_repository", null); Below exception is thrown, java.lang.NoSuchMethodError: javax.xml.namespace.QName.(Ljava/lang/String;Ljava/lang/String;Lja va/lang/String;)V Please advice. Thanks & Regards, Peter Rajesh * This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies. *
Re: Configuration error? java.lang.NoSuchMethodError: org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder: method (Ljavax/xml/stream/XMLStreamReader;)V not found
In my test cases which run successfully I am using axiom 1.1. mgainty wrote: > > are you implementing with version 1.2.5 axiom? > http://ws.apache.org/commons/axiom/download.cgi > > M-- > - Original Message - > Wrom: KEDOTWFAOBUZXUWLSZLKBRNVWWCUFPEGA > To: > Sent: Sunday, December 02, 2007 9:35 PM > Subject: Configuration error? java.lang.NoSuchMethodError: > org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder: method > (Ljavax/xml/stream/XMLStreamReader;)V not found > > >> >> I have activation-1.1.jar in jre/lib/endorsed, however I still get the >> following error when using an axis2 client in both Tomcat and Jetty. When >> run as a unit test there are no problems. I am running this inside a > spring >> (2.5) session, is there a potential conflict? >> >> INFO | jvm 1| 2007/12/02 20:09:26 | >> java.lang.reflect.InvocationTargetException >> INFO | jvm 1| 2007/12/02 20:09:26 | at >> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> INFO | jvm 1| 2007/12/02 20:09:26 | at >> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) >> INFO | jvm 1| 2007/12/02 20:09:26 | at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) >> INFO | jvm 1| 2007/12/02 20:09:26 | at >> java.lang.reflect.Method.invoke(Unknown Source) >> INFO | jvm 1| 2007/12/02 20:09:26 | at >> org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:283) >> INFO | jvm 1| 2007/12/02 20:09:26 | at >> > com.mnu.job.impl.JobDetailDelegateImpl.executeInternal(JobDetailDelegateImpl > java:35) >> INFO | jvm 1| 2007/12/02 20:09:26 | at >> > org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.ja > va:86) >> INFO | jvm 1| 2007/12/02 20:09:26 | at >> org.quartz.core.JobRunShell.run(JobRunShell.java:203) >> INFO | jvm 1| 2007/12/02 20:09:26 | at >> > org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520 > ) >> INFO | jvm 1| 2007/12/02 20:09:26 | Caused by: >> java.lang.NoSuchMethodError: >> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder: method >> (Ljavax/xml/stream/XMLStreamReader;)V not found >> INFO | jvm 1| 2007/12/02 20:09:26 | at >> org.apache.axis2.builder.SOAPBuilder.processDocument(SOAPBuilder.java:53) >> INFO | jvm 1| 2007/12/02 20:09:26 | at >> > org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUti > ls.java:160) >> INFO | jvm 1| 2007/12/02 20:09:26 | at >> > org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.j > ava:111) >> INFO | jvm 1| 2007/12/02 20:09:26 | at >> > org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.j > ava:87) >> INFO | jvm 1| 2007/12/02 20:09:26 | at >> > org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAx > isOperation.java:326) >> INFO | jvm 1| 2007/12/02 20:09:26 | at >> > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperatio > n.java:389) >> INFO | jvm 1| 2007/12/02 20:09:26 | at >> > org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisO > peration.java:211) >> INFO | jvm 1| 2007/12/02 20:09:26 | at >> org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) >> INFO | jvm 1| 2007/12/02 20:09:26 | at >> > com.mnu.core.webservice.landau.WsLandauB2BStub.InitializeOrder(WsLandauB2BSt > ub.java:847) >> INFO | jvm 1| 2007/12/02 20:09:26 | at >> > com.mnu.core.webservice.landau.LandauWSWrapper.initializeOrder(LandauWSWrapp > er.java:61) >> INFO | jvm 1| 2007/12/02 20:09:26 | at >> com.mnu.core.sender.LandauWSSender.sendOrder(LandauWSSender.java:46) >> INFO | jvm 1| 2007/12/02 20:09:26 | at >> > com.mnu.core.handler.LandauOrderHandler.handleOrder(LandauOrderHandler.java: > 150) >> INFO | jvm 1| 2007/12/02 20:09:26 | at >> > com.mnu.core.handler.LandauOrderHandler.handleOrders(LandauOrderHandler.java > :47) >> INFO | jvm 1| 2007/12/02 20:09:26 | at >> > com.mnu.core.processor.LandauOrderProcessor.processOrder(LandauOrderProcesso > r.java:58) >> -- >> View this message in context: > http://www.nabble.com/Configuration-error--java.lang.NoSuchMethodError%3A-or > g.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder%3A-method-%3Cinit%3E%2 > 8Ljavax-xml-stream-XMLStreamReader-%29V-not-found-tf4934056.html#a14123002 >> Sent from the Axis - User mailing list archive at Nabble.com. >> >> >>
Re: Configuration error? java.lang.NoSuchMethodError: org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder: method (Ljavax/xml/stream/XMLStreamReader;)V not found
are you implementing with version 1.2.5 axiom? http://ws.apache.org/commons/axiom/download.cgi M-- - Original Message - Wrom: KEDOTWFAOBUZXUWLSZLKBRNVWWCUFPEGA To: Sent: Sunday, December 02, 2007 9:35 PM Subject: Configuration error? java.lang.NoSuchMethodError: org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder: method (Ljavax/xml/stream/XMLStreamReader;)V not found > > I have activation-1.1.jar in jre/lib/endorsed, however I still get the > following error when using an axis2 client in both Tomcat and Jetty. When > run as a unit test there are no problems. I am running this inside a spring > (2.5) session, is there a potential conflict? > > INFO | jvm 1| 2007/12/02 20:09:26 | > java.lang.reflect.InvocationTargetException > INFO | jvm 1| 2007/12/02 20:09:26 | at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > INFO | jvm 1| 2007/12/02 20:09:26 | at > sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > INFO | jvm 1| 2007/12/02 20:09:26 | at > sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > INFO | jvm 1| 2007/12/02 20:09:26 | at > java.lang.reflect.Method.invoke(Unknown Source) > INFO | jvm 1| 2007/12/02 20:09:26 | at > org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:283) > INFO | jvm 1| 2007/12/02 20:09:26 | at > com.mnu.job.impl.JobDetailDelegateImpl.executeInternal(JobDetailDelegateImpl java:35) > INFO | jvm 1| 2007/12/02 20:09:26 | at > org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.ja va:86) > INFO | jvm 1| 2007/12/02 20:09:26 | at > org.quartz.core.JobRunShell.run(JobRunShell.java:203) > INFO | jvm 1| 2007/12/02 20:09:26 | at > org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520 ) > INFO | jvm 1| 2007/12/02 20:09:26 | Caused by: > java.lang.NoSuchMethodError: > org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder: method > (Ljavax/xml/stream/XMLStreamReader;)V not found > INFO | jvm 1| 2007/12/02 20:09:26 | at > org.apache.axis2.builder.SOAPBuilder.processDocument(SOAPBuilder.java:53) > INFO | jvm 1| 2007/12/02 20:09:26 | at > org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUti ls.java:160) > INFO | jvm 1| 2007/12/02 20:09:26 | at > org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.j ava:111) > INFO | jvm 1| 2007/12/02 20:09:26 | at > org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.j ava:87) > INFO | jvm 1| 2007/12/02 20:09:26 | at > org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAx isOperation.java:326) > INFO | jvm 1| 2007/12/02 20:09:26 | at > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperatio n.java:389) > INFO | jvm 1| 2007/12/02 20:09:26 | at > org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisO peration.java:211) > INFO | jvm 1| 2007/12/02 20:09:26 | at > org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) > INFO | jvm 1| 2007/12/02 20:09:26 | at > com.mnu.core.webservice.landau.WsLandauB2BStub.InitializeOrder(WsLandauB2BSt ub.java:847) > INFO | jvm 1| 2007/12/02 20:09:26 | at > com.mnu.core.webservice.landau.LandauWSWrapper.initializeOrder(LandauWSWrapp er.java:61) > INFO | jvm 1| 2007/12/02 20:09:26 | at > com.mnu.core.sender.LandauWSSender.sendOrder(LandauWSSender.java:46) > INFO | jvm 1| 2007/12/02 20:09:26 | at > com.mnu.core.handler.LandauOrderHandler.handleOrder(LandauOrderHandler.java: 150) > INFO | jvm 1| 2007/12/02 20:09:26 | at > com.mnu.core.handler.LandauOrderHandler.handleOrders(LandauOrderHandler.java :47) > INFO | jvm 1| 2007/12/02 20:09:26 | at > com.mnu.core.processor.LandauOrderProcessor.processOrder(LandauOrderProcesso r.java:58) > -- > View this message in context: http://www.nabble.com/Configuration-error--java.lang.NoSuchMethodError%3A-or g.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder%3A-method-%3Cinit%3E%2 8Ljavax-xml-stream-XMLStreamReader-%29V-not-found-tf4934056.html#a14123002 > Sent from the Axis - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configuration error? java.lang.NoSuchMethodError: org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder: method (Ljavax/xml/stream/XMLStreamReader;)V not found
I have activation-1.1.jar in jre/lib/endorsed, however I still get the following error when using an axis2 client in both Tomcat and Jetty. When run as a unit test there are no problems. I am running this inside a spring (2.5) session, is there a potential conflict? INFO | jvm 1| 2007/12/02 20:09:26 | java.lang.reflect.InvocationTargetException INFO | jvm 1| 2007/12/02 20:09:26 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) INFO | jvm 1| 2007/12/02 20:09:26 | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) INFO | jvm 1| 2007/12/02 20:09:26 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) INFO | jvm 1| 2007/12/02 20:09:26 | at java.lang.reflect.Method.invoke(Unknown Source) INFO | jvm 1| 2007/12/02 20:09:26 | at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:283) INFO | jvm 1| 2007/12/02 20:09:26 | at com.mnu.job.impl.JobDetailDelegateImpl.executeInternal(JobDetailDelegateImpl.java:35) INFO | jvm 1| 2007/12/02 20:09:26 | at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86) INFO | jvm 1| 2007/12/02 20:09:26 | at org.quartz.core.JobRunShell.run(JobRunShell.java:203) INFO | jvm 1| 2007/12/02 20:09:26 | at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) INFO | jvm 1| 2007/12/02 20:09:26 | Caused by: java.lang.NoSuchMethodError: org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder: method (Ljavax/xml/stream/XMLStreamReader;)V not found INFO | jvm 1| 2007/12/02 20:09:26 | at org.apache.axis2.builder.SOAPBuilder.processDocument(SOAPBuilder.java:53) INFO | jvm 1| 2007/12/02 20:09:26 | at org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:160) INFO | jvm 1| 2007/12/02 20:09:26 | at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:111) INFO | jvm 1| 2007/12/02 20:09:26 | at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:87) INFO | jvm 1| 2007/12/02 20:09:26 | at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:326) INFO | jvm 1| 2007/12/02 20:09:26 | at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389) INFO | jvm 1| 2007/12/02 20:09:26 | at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211) INFO | jvm 1| 2007/12/02 20:09:26 | at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) INFO | jvm 1| 2007/12/02 20:09:26 | at com.mnu.core.webservice.landau.WsLandauB2BStub.InitializeOrder(WsLandauB2BStub.java:847) INFO | jvm 1| 2007/12/02 20:09:26 | at com.mnu.core.webservice.landau.LandauWSWrapper.initializeOrder(LandauWSWrapper.java:61) INFO | jvm 1| 2007/12/02 20:09:26 | at com.mnu.core.sender.LandauWSSender.sendOrder(LandauWSSender.java:46) INFO | jvm 1| 2007/12/02 20:09:26 | at com.mnu.core.handler.LandauOrderHandler.handleOrder(LandauOrderHandler.java:150) INFO | jvm 1| 2007/12/02 20:09:26 | at com.mnu.core.handler.LandauOrderHandler.handleOrders(LandauOrderHandler.java:47) INFO | jvm 1| 2007/12/02 20:09:26 | at com.mnu.core.processor.LandauOrderProcessor.processOrder(LandauOrderProcessor.java:58) -- View this message in context: http://www.nabble.com/Configuration-error--java.lang.NoSuchMethodError%3A-org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder%3A-method-%3Cinit%3E%28Ljavax-xml-stream-XMLStreamReader-%29V-not-found-tf4934056.html#a14123002 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Axis2 1.3 "caused java.lang.NoSuchMethodError: javax.wsdl.Operation: method getExtensibilityElements()Ljava/util/List; not found"
Yes, I have the WSDL4J jar in the WAR: WEB-INF/lib/wsdl4j-1.6.2.jar The WAR is running inside IBM Websphere 6.0.2.13 The root cause appears to be a classloader issue. Websphere 6 uses PARENT_FIRST classloading by default. Websphere 6.0 has an older version of WSDL4J in Websphere's global lib directory. These classes are given priority over WEB-INF/lib due to the PARENT_FIRST classloading policy. The solution is to use PARENT_LAST classloading instead of PARENT_FIRST classloading. See: http://ws.apache.org/muse/docs/2.2.0/manual/troubleshooting/wsdl4j-versi on-on-websphere.html Sean -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 28, 2007 6:26 PM To: axis-user@ws.apache.org Subject: Re: Axis2 1.3 "caused java.lang.NoSuchMethodError: javax.wsdl.Operation: method getExtensibilityElements()Ljava/util/List; not found" Hi Sean do you have wsdl4j.jar on /WEB-INF/lib ? http://www.ibiblio.org/maven/wsdl4j/jars/ Martin-- - Original Message - Wrom: IMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLB To: Sent: Wednesday, November 28, 2007 7:47 PM Subject: Axis2 1.3 "caused java.lang.NoSuchMethodError: javax.wsdl.Operation: method getExtensibilityElements()Ljava/util/List; not found" I am seeing this message in my log file. What is the getExtensibilityElements() method? Where is this coming from? [11/28/07 16:26:24:591 PST] 017d ServiceDeploy I org.apache.axis2.deployment.ServiceDeployer deploy The XyzServices service, which is not valid, caused java.lang.NoSuchMethodError: javax.wsdl.Operation: method getExtensibilityElements()Ljava/util/List; not found at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateOperatio ns(WSDL11ToAxisServiceBuilder.java:1241) at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populatePortType (WSDL11ToAxisServiceBuilder.java:447) at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint s(WSDL11ToAxisServiceBuilder.java:360) at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService( WSDL11ToAxisServiceBuilder.java:281) at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllS ervices(WSDL11ToAllAxisServicesBuilder.java:109) at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLFil e(ArchiveReader.java:230) at org.apache.axis2.deployment.repository.util.ArchiveReader.processFilesIn Folder(ArchiveReader.java:431) at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(A rchiveReader.java:269) at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java: 64) at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(De ploymentFileData.java:137) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.j ava:571) at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList java:141) at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener java:318) at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryL istener.java:220) at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngi ne.java:118) at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBas edAxisConfigurator.java:272) at org.apache.axis2.context.ConfigurationContextFactory.createConfiguration Context(ConfigurationContextFactory.java:78) at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServle t.java:500) at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:420) at com.menlo.axis2.AxisServlet.init(AxisServlet.java:24) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2 1.3 "caused java.lang.NoSuchMethodError: javax.wsdl.Operation: method getExtensibilityElements()Ljava/util/List; not found"
On Nov 29, 2007 7:55 AM, <[EMAIL PROTECTED]> wrote: > Hi Sean > do you have wsdl4j.jar on /WEB-INF/lib ? > http://www.ibiblio.org/maven/wsdl4j/jars/ or are you using the correct version axis2 version supports wsdl4j-1.6.2.jar Amila. > <http://www.ibiblio.org/maven/wsdl4j/jars/> > Martin-- > - Original Message - > Wrom: IMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLB > To: > Sent: Wednesday, November 28, 2007 7:47 PM > Subject: Axis2 1.3 "caused java.lang.NoSuchMethodError: > javax.wsdl.Operation: method getExtensibilityElements()Ljava/util/List; > not > found" > > > > I am seeing this message in my log file. What is the > getExtensibilityElements() method? Where is this coming from? > > [11/28/07 16:26:24:591 PST] 017d ServiceDeploy I > org.apache.axis2.deployment.ServiceDeployer deploy The XyzServices > service, which is not valid, caused java.lang.NoSuchMethodError: > javax.wsdl.Operation: method getExtensibilityElements()Ljava/util/List; > not found > at > org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateOperatio > ns(WSDL11ToAxisServiceBuilder.java:1241) > at > org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populatePortType > (WSDL11ToAxisServiceBuilder.java:447) > at > org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint > s(WSDL11ToAxisServiceBuilder.java:360) > at > org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService( > WSDL11ToAxisServiceBuilder.java:281) > at > org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllS > ervices(WSDL11ToAllAxisServicesBuilder.java:109) > at > org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLFil > e(ArchiveReader.java:230) > at > org.apache.axis2.deployment.repository.util.ArchiveReader.processFilesIn > Folder(ArchiveReader.java:431) > at > org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(A > rchiveReader.java:269) > at > org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java: > 64) > at > org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(De > ploymentFileData.java:137) > at > org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.j > ava:571) > at > org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList > java:141) > at > org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener > java:318) > at > org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryL > istener.java:220) > at > org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngi > ne.java:118) > at > org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBas > edAxisConfigurator.java:272) > at > org.apache.axis2.context.ConfigurationContextFactory.createConfiguration > Context(ConfigurationContextFactory.java:78) > at > org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServle > t.java:500) > at > org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:420) > at com.menlo.axis2.AxisServlet.init(AxisServlet.java:24) > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Amila Suriarachchi, WSO2 Inc.
Re: Axis2 1.3 "caused java.lang.NoSuchMethodError: javax.wsdl.Operation: method getExtensibilityElements()Ljava/util/List; not found"
Hi Sean do you have wsdl4j.jar on /WEB-INF/lib ? http://www.ibiblio.org/maven/wsdl4j/jars/ Martin-- - Original Message - Wrom: IMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLB To: Sent: Wednesday, November 28, 2007 7:47 PM Subject: Axis2 1.3 "caused java.lang.NoSuchMethodError: javax.wsdl.Operation: method getExtensibilityElements()Ljava/util/List; not found" I am seeing this message in my log file. What is the getExtensibilityElements() method? Where is this coming from? [11/28/07 16:26:24:591 PST] 017d ServiceDeploy I org.apache.axis2.deployment.ServiceDeployer deploy The XyzServices service, which is not valid, caused java.lang.NoSuchMethodError: javax.wsdl.Operation: method getExtensibilityElements()Ljava/util/List; not found at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateOperatio ns(WSDL11ToAxisServiceBuilder.java:1241) at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populatePortType (WSDL11ToAxisServiceBuilder.java:447) at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint s(WSDL11ToAxisServiceBuilder.java:360) at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService( WSDL11ToAxisServiceBuilder.java:281) at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllS ervices(WSDL11ToAllAxisServicesBuilder.java:109) at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLFil e(ArchiveReader.java:230) at org.apache.axis2.deployment.repository.util.ArchiveReader.processFilesIn Folder(ArchiveReader.java:431) at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(A rchiveReader.java:269) at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java: 64) at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(De ploymentFileData.java:137) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.j ava:571) at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList java:141) at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener java:318) at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryL istener.java:220) at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngi ne.java:118) at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBas edAxisConfigurator.java:272) at org.apache.axis2.context.ConfigurationContextFactory.createConfiguration Context(ConfigurationContextFactory.java:78) at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServle t.java:500) at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:420) at com.menlo.axis2.AxisServlet.init(AxisServlet.java:24) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axis2 1.3 "caused java.lang.NoSuchMethodError: javax.wsdl.Operation: method getExtensibilityElements()Ljava/util/List; not found"
I am seeing this message in my log file. What is the getExtensibilityElements() method? Where is this coming from? [11/28/07 16:26:24:591 PST] 017d ServiceDeploy I org.apache.axis2.deployment.ServiceDeployer deploy The XyzServices service, which is not valid, caused java.lang.NoSuchMethodError: javax.wsdl.Operation: method getExtensibilityElements()Ljava/util/List; not found at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateOperatio ns(WSDL11ToAxisServiceBuilder.java:1241) at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populatePortType (WSDL11ToAxisServiceBuilder.java:447) at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint s(WSDL11ToAxisServiceBuilder.java:360) at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService( WSDL11ToAxisServiceBuilder.java:281) at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllS ervices(WSDL11ToAllAxisServicesBuilder.java:109) at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLFil e(ArchiveReader.java:230) at org.apache.axis2.deployment.repository.util.ArchiveReader.processFilesIn Folder(ArchiveReader.java:431) at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(A rchiveReader.java:269) at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java: 64) at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(De ploymentFileData.java:137) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.j ava:571) at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList .java:141) at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener .java:318) at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryL istener.java:220) at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngi ne.java:118) at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBas edAxisConfigurator.java:272) at org.apache.axis2.context.ConfigurationContextFactory.createConfiguration Context(ConfigurationContextFactory.java:78) at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServle t.java:500) at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:420) at com.menlo.axis2.AxisServlet.init(AxisServlet.java:24) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.lang.NoSuchMethodError when accessing happyaxis.jsp
I am getting a weird error when trying to access happyaxis.jsp on my test server installation that I need to start using. The Axis admin console works fine, but instead of the services pointing to http://server:port/axis2/services/ServiceName, they point to http://server:port/axis2/null/ServiceName. I think that this is related to a problem I have when I try to access happyaxis.jsp. It gets a 500 error and the localhost_log shows this error: 2007-07-10 11:03:36 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception java.lang.NoSuchMethodError: org.apache.axis2.context.ConfigurationContext.getSe rvicePath()Ljava/lang/String; at org.apache.jsp.axis2_002dweb.HappyAxis_jsp.invokeTheService(HappyAxis _jsp.java:332) at org.apache.jsp.axis2_002dweb.HappyAxis_jsp._jspService(HappyAxis_jsp. java:511) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2 92) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:237) I suspect the two are related but I don't know how. Alan Delimon Senior Software Engineer Software Integration Group PAETEC [EMAIL PROTECTED] 585-413-2127 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [axis2] ERROR org.apache.axis2.transport.http.AxisServlet - java.lang.NoSuchMethodError:
Sorry for the disturbance!It was a stupid error of me. I solved it.Benjamin2006/11/7, Benjamin Ernst <[EMAIL PROTECTED]>: Hi,I am getting the following Error:2006-11-07 17:01:20,797 ERROR org.apache.axis2.transport.http.AxisServlet - java.lang.NoSuchMethodError: org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.(Ljavax/xml/namespace/QName;[Ljava/lang/Object;[Ljava/lang/Object;Lorg/apache/ws/java2wsdl/utils/TypeTable;Z)V What is this about? I have no Idea...Thanks for any help!Benjamin
[axis2] ERROR org.apache.axis2.transport.http.AxisServlet - java.lang.NoSuchMethodError:
Hi,I am getting the following Error:2006-11-07 17:01:20,797 ERROR org.apache.axis2.transport.http.AxisServlet - java.lang.NoSuchMethodError: org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.(Ljavax/xml/namespace/QName;[Ljava/lang/Object;[Ljava/lang/Object;Lorg/apache/ws/java2wsdl/utils/TypeTable;Z)V What is this about? I have no Idea...Thanks for any help!Benjamin
Re: java.lang.NoSuchMethodError
g> exception (javax.naming.NameNotFoundException:) for my jdbc> ressource is raised on my tomcat server (after the axis2 call).>> How do I make my JNDI jdbc ressource available to my axis AAR archive> please?>> Thanks a million>>> - Original Message > From: robert lazarski <[EMAIL PROTECTED]>> To: axis-user@ws.apache.org; Nicolas Urien <[EMAIL PROTECTED]>> Sent: Friday, June 30, 2006 3:17:15 PM> Subject: Re: java.lang.NoSuchMethodError>> What version are you running? My general advice is to try the> nightlies, as a lot has happened since the 1.0 release:>> http://people.apache.org/dist/axis2/nightly/>> If that doesn't help, could you try enabling logging under the files> under WEB-INF/classes and send us the output?>> HTH,> Robert> http://www.braziloutsource.com/>> On 6/30/06, Nicolas Urien <[EMAIL PROTECTED]> wrote:> >> >> > Thanks Robert. It was definitely the problem.> >> > Then I got a second one that I fixed (due to protected modifiers in my> > business class).> >> > I now have this "unknow exception" :( when launching my client :> >> > Exception in thread "main" org.apache.axis2.AxisFault: unknown> > at> >> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287)> >> > at> >> fr.acoss.ancre.acces.dao.pojo.PojoDaoStub.countBySiret(PojoDaoStub.java:4054)> > at> > fr.acoss.ancre.acces.dao.pojo.Client.main(Client.java:18)> > Caused by: java.lang.Exception: org.apache.axis2.AxisFault> > at> >> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:108)> > at> >> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)> > at> >> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454)> > at> >> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)> > at> >> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)> > at> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)> > at> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)> > at> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)> > at> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)> > at> >> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)> > at> >> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)> > at> >> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)> > at> >> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)> > at> >> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)> > at> >> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)> > at> >> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)> > at> >> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)> > at> >> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)> > at> >> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)> > at> >> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)> > at> >> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)> > at> >> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)> > at> >> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)> > at> >> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)> > at> >> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)> > at> >> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)> > at> >> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)> > at> >> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)> > at> >> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)> > at> >> org.a
Re: java.lang.NoSuchMethodError
n>>> - Original Message > From: robert lazarski <[EMAIL PROTECTED]>> To: axis-user@ws.apache.org; Nicolas Urien <[EMAIL PROTECTED]>> Sent: Friday, June 30, 2006 3:17:15 PM> Subject: Re: java.lang.NoSuchMethodError>> What version are you running? My general advice is to try the> nightlies, as a lot has happened since the 1.0 release:>> http://people.apache.org/dist/axis2/nightly/>> If that doesn't help, could you try enabling logging under the files> under WEB-INF/classes and send us the output?>> HTH,> Robert> http://www.braziloutsource.com/>> On 6/30/06, Nicolas Urien <[EMAIL PROTECTED]> wrote:> >> >> > Thanks Robert. It was definitely the problem.> >> > Then I got a second one that I fixed (due to protected modifiers in my> > business class).> >> > I now have this "unknow exception" :( when launching my client :> >> > Exception in thread "main" org.apache.axis2.AxisFault: unknown> > at> >> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287)> >> > at> >> fr.acoss.ancre.acces.dao.pojo.PojoDaoStub.countBySiret(PojoDaoStub.java:4054)> > at> > fr.acoss.ancre.acces.dao.pojo.Client.main(Client.java:18)> > Caused by: java.lang.Exception: org.apache.axis2.AxisFault> > at> >> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:108)> > at> >> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)> > at> >> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454)> > at> >> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)> > at> >> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)> > at> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)> > at> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)> > at> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)> > at> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)> > at> >> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)> > at> >> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)> > at> >> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)> > at> >> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)> > at> >> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)> > at> >> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)> > at> >> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)> > at> >> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)> > at> >> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)> > at> >> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)> > at> >> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)> > at> >> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)> > at> >> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)> > at> >> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)> > at> >> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)> > at> >> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)> > at> >> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)> > at> >> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)> > at> >> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)> > at> >> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)> > at> >> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)> > at java.lang.Thread.run(Thread.java:595)> >> > at org.apache.axis2.AxisFault.(AxisFault.java:159)> > ... 3 more> >> >> >&g
Re: java.lang.NoSuchMethodError
If your talking about jndi.properties or any other file, that'd be the usual way: InputStream in = this.getClass().getClassLoader().getResourceAsStream(filename); Now of course there is no rule saying that your serviceClass must be in the aar. HTH, Robert http://www.braziloutsource.com/ On 6/30/06, Nicolas Urien <[EMAIL PROTECTED]> wrote: I am running 1.0. However, I have found out that the problem was due to the running of my implementation class (I have a bit of a complex design). A JNDI naming exception (javax.naming.NameNotFoundException:) for my jdbc ressource is raised on my tomcat server (after the axis2 call). How do I make my JNDI jdbc ressource available to my axis AAR archive please? Thanks a million - Original Message From: robert lazarski <[EMAIL PROTECTED]> To: axis-user@ws.apache.org; Nicolas Urien <[EMAIL PROTECTED]> Sent: Friday, June 30, 2006 3:17:15 PM Subject: Re: java.lang.NoSuchMethodError What version are you running? My general advice is to try the nightlies, as a lot has happened since the 1.0 release: http://people.apache.org/dist/axis2/nightly/ If that doesn't help, could you try enabling logging under the files under WEB-INF/classes and send us the output? HTH, Robert http://www.braziloutsource.com/ On 6/30/06, Nicolas Urien <[EMAIL PROTECTED]> wrote: > > > Thanks Robert. It was definitely the problem. > > Then I got a second one that I fixed (due to protected modifiers in my > business class). > > I now have this "unknow exception" :( when launching my client : > > Exception in thread "main" org.apache.axis2.AxisFault: unknown > at > org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287) > > at > fr.acoss.ancre.acces.dao.pojo.PojoDaoStub.countBySiret(PojoDaoStub.java:4054) > at > fr.acoss.ancre.acces.dao.pojo.Client.main(Client.java:18) > Caused by: java.lang.Exception: org.apache.axis2.AxisFault > at > org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:108) > at > org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37) > at > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454) > at > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284) > at > org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:709) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at > org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) > at > org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) > at > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) > at > org.apache.tomcat.util.threads.ThreadPool$
Re: java.lang.NoSuchMethodError
I am running 1.0.However, I have found out that the problem was due to the running of my implementation class (I have a bit of a complex design). A JNDI naming exception (javax.naming.NameNotFoundException:) for my jdbc ressource is raised on my tomcat server (after the axis2 call). How do I make my JNDI jdbc ressource available to my axis AAR archive please?Thanks a million- Original Message From: robert lazarski <[EMAIL PROTECTED]>To: axis-user@ws.apache.org; Nicolas Urien <[EMAIL PROTECTED]>Sent: Friday, June 30, 2006 3:17:15 PMSubject: Re: java.lang.NoSuchMethodErrorWhat version are you running? My general advice is to try thenightlies, as a lot has happened since the 1.0 release:http://people.apache.org/dist/axis2/nightly/If that doesn't help, could you try enabling logging under the filesunder WEB-INF/classes and send us the output?HTH,Roberthttp://www.braziloutsource.com/On 6/30/06, Nicolas Urien <[EMAIL PROTECTED]> wrote:>>> Thanks Robert. It was definitely the problem.>> Then I got a second one that I fixed (due to protected modifiers in my> business class).>> I now have this "unknow exception" :( when launching my client :>> Exception in thread "main" org.apache.axis2.AxisFault: unknown> at> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287)>> at> fr.acoss.ancre.acces.dao.pojo.PojoDaoStub.countBySiret(PojoDaoStub.java:4054)> at> fr.acoss.ancre.acces.dao.pojo.Client.main(Client.java:18)> Caused by: java.lang.Exception: org.apache.axis2.AxisFault> at> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:108)> at> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)> at> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454)> at> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)> at> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)> at> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)> at> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)> at> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)> at> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)> at> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)> at> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)> at> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)> at> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)> at> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)> at> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)> at> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)> at> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)> at> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)> at> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)> at> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)> at> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)> at> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)> at> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)> at> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)> at> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)> at> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)> at> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)> at> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)> at> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)> at> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)> at java.lang.Thread.run(Thread.java:595)>> at org.apache.axis2.AxisFault.(AxisFault.java:159)> ... 3 more>>>> - Original Message > From: robert lazarski <[EMAIL PROTECTED]>> To: axis-user@ws.apache.org; Nicolas Urien <[EMAIL PROTECTED]>> Sent: Friday, June 30, 2006 2:07:42 PM> Subject: Re: java.lang.NoSuchMethodError>> I've seen this err
Re: java.lang.NoSuchMethodError
What version are you running? My general advice is to try the nightlies, as a lot has happened since the 1.0 release: http://people.apache.org/dist/axis2/nightly/ If that doesn't help, could you try enabling logging under the files under WEB-INF/classes and send us the output? HTH, Robert http://www.braziloutsource.com/ On 6/30/06, Nicolas Urien <[EMAIL PROTECTED]> wrote: Thanks Robert. It was definitely the problem. Then I got a second one that I fixed (due to protected modifiers in my business class). I now have this "unknow exception" :( when launching my client : Exception in thread "main" org.apache.axis2.AxisFault: unknown at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287) at fr.acoss.ancre.acces.dao.pojo.PojoDaoStub.countBySiret(PojoDaoStub.java:4054) at fr.acoss.ancre.acces.dao.pojo.Client.main(Client.java:18) Caused by: java.lang.Exception: org.apache.axis2.AxisFault at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:108) at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) at org.apache.axis2.AxisFault.(AxisFault.java:159) ... 3 more - Original Message From: robert lazarski <[EMAIL PROTECTED]> To: axis-user@ws.apache.org; Nicolas Urien <[EMAIL PROTECTED]> Sent: Friday, June 30, 2006 2:07:42 PM Subject: Re: java.lang.NoSuchMethodError I've seen this error on the client side due to a different version of commons-httpclient being in a higher classloader, in my case the jbossall-client has a different version of this class. Make sure the client is loading the correct version of commons-http client. HTH, Robert http://www.braziloutsource.com/ On 6/30/06, Nicolas Urien <[EMAIL PROTECTED]> wrote: > > > I have deployed an axis aar2 archive file on tomcat 5.0. > > I get this exception when launching the client (it uses the axis2 generated > stubs): > > > > Exception in thread "main" java.lang.NoSuchMethodError: > org.apache.commons.httpclient.HttpConnectionManager.getParams()Lorg/apache/commons/httpclient/params/HttpConnectionManagerParams; > at > org.apache.axis2.transport.http.AbstractHTTPSender.getHttpClient(AbstractHTTPSender.java:509) > at > org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTP
Re: java.lang.NoSuchMethodError
Thanks Robert. It was definitely the problem.Then I got a second one that I fixed (due to protected modifiers in my business class).I now have this "unknow exception" :( when launching my client :Exception in thread "main" org.apache.axis2.AxisFault: unknown at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287) at fr.acoss.ancre.acces.dao.pojo.PojoDaoStub.countBySiret(PojoDaoStub.java:4054) at fr.acoss.ancre.acces.dao.pojo.Client.main(Client.java:18)Caused by: java.lang.Exception: org.apache.axis2.AxisFault at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:108) at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) at org.apache.axis2.AxisFault.(AxisFault.java:159) ... 3 more- Original Message From: robert lazarski <[EMAIL PROTECTED]>To: axis-user@ws.apache.org; Nicolas Urien <[EMAIL PROTECTED]>Sent: Friday, June 30, 2006 2:07:42 PMSubject: Re: java.lang.NoSuchMethodErrorI've seen this error on the client side due to a different version ofcommons-httpclient being in a higher classloader, in my case thejbossall-client has a different version of this class. Make sure theclient is loading the correct version of commons-http client.HTH,Roberthttp://www.braziloutsource.com/On 6/30/06, Nicolas Urien <[EMAIL PROTECTED]> wrote:>>> I have deployed an axis aar2 archive file on tomcat 5.0.>> I get this exception when launching the client (it uses the axis2 generated> stubs):>>>> Exception in thread "main" java.lang.NoSuchMethodError:> org.apache.commons.httpclient.HttpConnectionManager.getParams()Lorg/apache/commons/httpclient/params/HttpConnectionManagerParams;> at> org.apache.axis2.transport.http.AbstractHTTPSender.getHttpClient(AbstractHTTPSender.java:509)> at> org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:36)> at> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:299)> at> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:207)> at> org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:589)> at> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOpera
Re: java.lang.NoSuchMethodError
I've seen this error on the client side due to a different version of commons-httpclient being in a higher classloader, in my case the jbossall-client has a different version of this class. Make sure the client is loading the correct version of commons-http client. HTH, Robert http://www.braziloutsource.com/ On 6/30/06, Nicolas Urien <[EMAIL PROTECTED]> wrote: I have deployed an axis aar2 archive file on tomcat 5.0. I get this exception when launching the client (it uses the axis2 generated stubs): Exception in thread "main" java.lang.NoSuchMethodError: org.apache.commons.httpclient.HttpConnectionManager.getParams()Lorg/apache/commons/httpclient/params/HttpConnectionManagerParams; at org.apache.axis2.transport.http.AbstractHTTPSender.getHttpClient(AbstractHTTPSender.java:509) at org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:36) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:299) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:207) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:589) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:328) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:279) at fr.acoss.ancre.acces.dao.pojo.PojoDaoStub.countBySiret(PojoDaoStub.java:4054) at fr.acoss.ancre.acces.dao.pojo.Client.main(Client.java:18) Any help is greatly appreciated. Many thanks in advance! Here is the client code: package fr.acoss.ancre.acces.dao.pojo; import fr.acoss.ancre.acces.dao.pojo.PojoDaoStub.CountBySiretResponse;; public class Client { public static void main(String[] args) throws Exception { PojoDaoStub stub = new PojoDaoStub(); //Create the request PojoDaoStub.CountBySiret request = new PojoDaoStub.CountBySiret(); request.setParam0("17080431400145"); //Invoke the service CountBySiretResponse response = stub.countBySiret(request); System.out.println("Response : " + response.get_return()); } } Attached is the wsdl file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.NoSuchMethodError
maybe some jars with same name but are different versions in fact.2006/5/17, Krishnan T <[EMAIL PROTECTED]>: HiI am getting the following error during the webservicecall.In Windows environment i am not getting this error andmy webservice call is working fine, I am getting thiserror only in Linux environment. java.lang.NoSuchMethodError:javax.xml.namespace.QName.getPrefix()Ljava/lang/String;atorg.apache.axis.wsdl.symbolTable.BackslashUtil.getQNameWithDifferentLocal(BackslashUtil.java:62)at org.apache.axis.wsdl.symbolTable.BackslashUtil.getQNameWithBackslashlessLocal(BackslashUtil.java:39)atorg.apache.axis.wsdl.symbolTable.SymbolTable.populateServices(SymbolTable.java:3078)at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:745)atorg.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543)atorg.apache.axis.wsdl.symbolTable.SymbolTable.populate (SymbolTable.java:518)atorg.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)atorg.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)at java.lang.Thread.run (Thread.java:534)<05/17/06 10:27:37.499 IST> in Tomcat server t1, method createCall(): Errorprocessing WSDL document:javax.xml.rpc.ServiceException: Error processing WSDL document:<05/17/06 10:27:40.143 IST> in Tomcat server t2, method createCall(): Errorprocessing WSDL document:I am using axis-1.3, SAAJ 1.2Windows : Windows 2000 Java : 1.4.2_10JBoss : 3.2.3Linux : Red HatPlease send me your suggestions to resolve this issueRegardsGopalakrishnan TSend instant messages to your online friends http://in.messenger.yahoo.com
java.lang.NoSuchMethodError
Hi I am getting the following error during the webservice call. In Windows environment i am not getting this error and my webservice call is working fine, I am getting this error only in Linux environment. java.lang.NoSuchMethodError: javax.xml.namespace.QName.getPrefix()Ljava/lang/String; at org.apache.axis.wsdl.symbolTable.BackslashUtil.getQNameWithDifferentLocal(BackslashUtil.java:62) at org.apache.axis.wsdl.symbolTable.BackslashUtil.getQNameWithBackslashlessLocal(BackslashUtil.java:39) at org.apache.axis.wsdl.symbolTable.SymbolTable.populateServices(SymbolTable.java:3078) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:745) at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495) at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361) at java.lang.Thread.run(Thread.java:534) <05/17/06 10:27:37.499 IST>http://in.messenger.yahoo.com
Re: [Axis2] java.lang.NoSuchMethodError: org.apache.axis2.context.MessageContext.getMessageInformationHeaders()
Hi Kashif, Seems like you are trying to use an older version addressing mar with Axis2. Better have the appropriate version of addressing in the modules folder. MessageContext.getMessageInformationHeaders is a method removed some time back. -- Chinthaka P.S. Please prefix the subjects of all your emails related to Axis2 with [Axis2]. Kashif Saleem wrote: Hi All, The problem is this, when calling ServiceClient. sendReceive (OMElement), I got a following message: Exception in thread "main" java.lang.NoSuchMethodError: org.apache.axis2.context.MessageContext.getMessageInformationHeaders()Lorg/apache/axis2/addressing/MessageInformationHeaders; at org.apache.axis2.handlers.addressing.AddressingOutHandler.invoke(AddressingOutHandler.java:56) at org.apache.axis2.engine.Phase.invoke(Phase.java:376) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:351) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:441) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:317) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:267) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:393) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:326) at userguide.clients.TestClient.main(TestClient.java:54) I am just wondering about the cause of it.Attached with this mail is my client.I would appreciate your help. Kind Regards Kashif Saleem /* * Copyright 2004,2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package userguide.clients; import org.apache.axis2.AxisFault; import org.apache.axis2.Constants; import org.apache.axis2.addressing.EndpointReference; import org.apache.axis2.client.Options; import org.apache.axis2.client.ServiceClient; import org.apache.axis2.om.OMAbstractFactory; import org.apache.axis2.om.OMElement; import org.apache.axis2.om.OMFactory; import org.apache.axis2.om.OMNamespace; import javax.xml.namespace.QName; import javax.xml.stream.FactoryConfigurationError; import javax.xml.stream.XMLOutputFactory; import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamWriter; /** * This is a Client progam that accesses 'MyService' web service in Axis2 samples */ public class TCPClient { private static String toEpr = "tcp://localhost:8080/axis2/services/MyService"; public static void main(String[] args) throws AxisFault { Options options = new Options(); options.setTo(new EndpointReference(toEpr)); options.setTransportInProtocol(Constants.TRANSPORT_TCP); ServiceClient sender = new ServiceClient(); sender.engageModule(new QName(Constants.MODULE_ADDRESSING)); sender.setOptions(options); OMElement result = sender.sendReceive(getPayload()); try { XMLStreamWriter writer = XMLOutputFactory.newInstance() .createXMLStreamWriter(System.out); result.serialize(writer); writer.flush(); } catch (XMLStreamException e) { e.printStackTrace(); } catch (FactoryConfigurationError e) { e.printStackTrace(); } } private static OMElement getPayload() { OMFactory fac = OMAbstractFactory.getOMFactory(); OMNamespace omNs = fac.createOMNamespace( "tcp://localhost:8080/axis2/services/MyService", "example1"); OMElement method = fac.createOMElement("echo", omNs); OMElement value = fac.createOMElement("Text", omNs); value.addChild(fac.createText(value, "Axis2 Echo String ")); method.addChild(value); return method; } }
java.lang.NoSuchMethodError: org.apache.axis2.context.MessageContext.getMessageInformationHeaders()
Hi All, The problem is this, when calling ServiceClient. sendReceive (OMElement), I got a following message: Exception in thread "main" java.lang.NoSuchMethodError: org.apache.axis2.context.MessageContext.getMessageInformationHeaders()Lorg/apache/axis2/addressing/MessageInformationHeaders; at org.apache.axis2.handlers.addressing.AddressingOutHandler.invoke(AddressingOutHandler.java:56) at org.apache.axis2.engine.Phase.invoke(Phase.java:376) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:351) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:441) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:317) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:267) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:393) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:326) at userguide.clients.TestClient.main(TestClient.java:54) I am just wondering about the cause of it.Attached with this mail is my client.I would appreciate your help. Kind Regards Kashif Saleem /* * Copyright 2004,2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package userguide.clients; import org.apache.axis2.AxisFault; import org.apache.axis2.Constants; import org.apache.axis2.addressing.EndpointReference; import org.apache.axis2.client.Options; import org.apache.axis2.client.ServiceClient; import org.apache.axis2.om.OMAbstractFactory; import org.apache.axis2.om.OMElement; import org.apache.axis2.om.OMFactory; import org.apache.axis2.om.OMNamespace; import javax.xml.namespace.QName; import javax.xml.stream.FactoryConfigurationError; import javax.xml.stream.XMLOutputFactory; import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamWriter; /** * This is a Client progam that accesses 'MyService' web service in Axis2 samples */ public class TCPClient { private static String toEpr = "tcp://localhost:8080/axis2/services/MyService"; public static void main(String[] args) throws AxisFault { Options options = new Options(); options.setTo(new EndpointReference(toEpr)); options.setTransportInProtocol(Constants.TRANSPORT_TCP); ServiceClient sender = new ServiceClient(); sender.engageModule(new QName(Constants.MODULE_ADDRESSING)); sender.setOptions(options); OMElement result = sender.sendReceive(getPayload()); try { XMLStreamWriter writer = XMLOutputFactory.newInstance() .createXMLStreamWriter(System.out); result.serialize(writer); writer.flush(); } catch (XMLStreamException e) { e.printStackTrace(); } catch (FactoryConfigurationError e) { e.printStackTrace(); } } private static OMElement getPayload() { OMFactory fac = OMAbstractFactory.getOMFactory(); OMNamespace omNs = fac.createOMNamespace( "tcp://localhost:8080/axis2/services/MyService", "example1"); OMElement method = fac.createOMElement("echo", omNs); OMElement value = fac.createOMElement("Text", omNs); value.addChild(fac.createText(value, "Axis2 Echo String ")); method.addChild(value); return method; } }
Re: FW: axis-java2wsdl is throwing java.lang.NoSuchMethodError
i have a similar problem ... i've this exception:java.lang.NoSuchMethodException : org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory.create(java.lang.Class, javax.xml.namespace.QName) at java.lang.Class.getMethod(Class.java:1581) at org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory (BaseSerializerFactory.java:254) at org.apache.axis.client.Call.registerTypeMapping(Call.java:2315)i have activation.jar in my classpath ... i don't be able to resove this problem... anyone can help me??? thanks,Simone2006/2/3, Kiran Kumar <[EMAIL PROTECTED]>: Has anyone come across the following issue? Hello, I am using axis-1_3. When I am trying to use ant task "axis-java2wsdl", I am getting the following error. [axis-java2wsdl] java.lang.NoSuchMethodError: org.apache.axis.encoding.DefaultTypeMappingImpl.getSingleton()Lorg/apache/axis/encoding/TypeMapping; [axis-java2wsdl] at org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask.execute(Java2WsdlAntTask.java:221) [axis-java2wsdl] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) [axis-java2wsdl] at org.apache.tools.ant.Task.perform(Task.java:364) [axis-java2wsdl] at org.apache.tools.ant.Target.execute(Target.java:341) [axis-java2wsdl] at org.apache.tools.ant.Target.performTasks(Target.java:369) [axis-java2wsdl] at org.apache.tools.ant.Project.executeTarget(Project.java:1214) [axis-java2wsdl] at org.apache.tools.ant.Project.executeTargets(Project.java:1062) [axis-java2wsdl] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:377) [axis-java2wsdl] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:135) Initially it was not able to identify 'javax.activation.DataSource' class, so I have added activation.jar (from Sun) and then it threw the above exception. Any clue? I guess somewhere there is a conflict between the versions of the jar files.. Thanks,Kiran This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named. If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone. E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses. ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission. The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.
FW: axis-java2wsdl is throwing java.lang.NoSuchMethodError
Title: FW: axis-java2wsdl is throwing java.lang.NoSuchMethodError Has anyone come across the following issue? Hello, I am using axis-1_3. When I am trying to use ant task "axis-java2wsdl", I am getting the following error. [axis-java2wsdl] java.lang.NoSuchMethodError: org.apache.axis.encoding.DefaultTypeMappingImpl.getSingleton()Lorg/apache/axis/encoding/TypeMapping; [axis-java2wsdl] at org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask.execute(Java2WsdlAntTask.java:221) [axis-java2wsdl] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) [axis-java2wsdl] at org.apache.tools.ant.Task.perform(Task.java:364) [axis-java2wsdl] at org.apache.tools.ant.Target.execute(Target.java:341) [axis-java2wsdl] at org.apache.tools.ant.Target.performTasks(Target.java:369) [axis-java2wsdl] at org.apache.tools.ant.Project.executeTarget(Project.java:1214) [axis-java2wsdl] at org.apache.tools.ant.Project.executeTargets(Project.java:1062) [axis-java2wsdl] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:377) [axis-java2wsdl] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:135) Initially it was not able to identify 'javax.activation.DataSource' class, so I have added activation.jar (from Sun) and then it threw the above exception. Any clue? I guess somewhere there is a conflict between the versions of the jar files.. Thanks,Kiran This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named. If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone. E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses. ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission. The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.
axis-java2wsdl is throwing java.lang.NoSuchMethodError
Title: axis-java2wsdl is throwing java.lang.NoSuchMethodError Hello, I am using axis-1_3. When I am trying to use ant task "axis-java2wsdl", I am getting the following error. [axis-java2wsdl] java.lang.NoSuchMethodError: org.apache.axis.encoding.DefaultTypeMappingImpl.getSingleton()Lorg/apache/axis/encoding/TypeMapping; [axis-java2wsdl] at org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask.execute(Java2WsdlAntTask.java:221) [axis-java2wsdl] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) [axis-java2wsdl] at org.apache.tools.ant.Task.perform(Task.java:364) [axis-java2wsdl] at org.apache.tools.ant.Target.execute(Target.java:341) [axis-java2wsdl] at org.apache.tools.ant.Target.performTasks(Target.java:369) [axis-java2wsdl] at org.apache.tools.ant.Project.executeTarget(Project.java:1214) [axis-java2wsdl] at org.apache.tools.ant.Project.executeTargets(Project.java:1062) [axis-java2wsdl] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:377) [axis-java2wsdl] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:135) Initially it was not able to identify 'javax.activation.DataSource' class, so I have added activation.jar (from Sun) and then it threw the above exception. Any clue? I guess somewhere there is a conflict between the versions of the jar files.. Thanks,Kiran This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named. If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone. E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses. ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission. The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.