unsubscribe
unsuscribe
Printing out to the log on Tomcat
Hi all, I'm managed to get the userguide example working for Axis2. However, to validate that the changes I make to the service are actually working, I would like to print something to the tomcat console. So far, it hasn't worked, using a simple System.out.println(xyz); I grep the logs and it's not there. Also, I'm getting a message about log4j not being configured correctly. Do I need to figure that one out, then use log4j to get something to print? thanks...
Best way to build an async service
Question 1: Can someone point out an of an client using an async service? i.e. the service itself is async. Question 2: I'm putting together a web service which will accept a batch of XML, which could be pretty big, and put it onto a jms queue for processing. It's turning out to be a bit more complicated than I originally hoped. A synchronous service would be easiest, and simplest, but what are the chances of timing out? I'm not sure. So, I have been planning on an asynchronous service, to play it safe. For an asynchronous service, Axis2 relies on WS-addressing, which could have firewall issues, per this post from Peer Reynders at http://www.coderanch.com/t/224525/Web-Services/jav...hronous-Web-services-with-Axishttp://www.coderanch.com/t/224525/Web-Services/java/Asynchronous-Web-services-with-Axis. Peer suggested in that post that using a non-blocking client might work, but that again poses the timeout issue. Finally, to defeat the timeout problem, he suggests using a correlation identifier, which means that the initial request is assigned an id which is returned to the client. and have the client poll for the result, using the id. A message handler to designed to ignore overly aggressive client polls made within some threshold interval could be added ref http://www.ibm.com/developerworks/webservices/library/ws-asynch2/#4 But, if I configure the service to be asynchronous, then it will create a separate thread to do the processing - including writing to the queue. This would lessen the chances of a timeout, correct? For the acknowledgment, I could use a correlation identifier/batch number, and maybe send an email to the client. I could get the email from the data itself, or maybe I could look it up on for the customer locally. I don't necessarily even need to send the client an acknowledgment, but it would probably be a good idea. Does this make sense? In other words, I need to make this service asynchronous to lessen the risk of a timeout, right?
[Axis2] Ant codegen task problem
I have an Ant task set up to generate classes for my Axis2 web service. It fails every time I try to generate the server side code with the error below. org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: Schema writing failed! The Ant target looks like this: target name=codegen taskdef name=axis2-wsdl2java classname=org.apache.axis2.tool.ant.AntCodegenTask classpathref=axis2.class.path/ axis2-wsdl2java wsdlfilename=http://path/to/service?wsdl; output=${src} databindingname=adb packageName=com.domain.ws.myservice.gensrc serviceName=ImageViewService serverSide=true serverSideInterface=true generateServiceXml=true/ /target Can someone please provide some direction? Any help is greatly appreciated. Thanks.
Re: Axis2 Eclipse plugin - soapUI
I tried the soapUI plugin but found a few problems with it. The main one is that I specified the package for the generated classes but it was ignored. I set the package as: com.mydomain.ws.myservice.gensrc But all the classes were generated in: com.mydomain.ws.myservice Have you seen this behavior? Thanks. --- On Tue, 11/24/09, Olindo Pindaro o.pind...@gmail.com wrote: From: Olindo Pindaro o.pind...@gmail.com Subject: Re: Axis2 Eclipse plugin To: axis-user@ws.apache.org Date: Tuesday, November 24, 2009, 2:15 PM I use SoapUI plugin... it works fine. 2009/11/24 Jack Sprat rexclaim...@yahoo.com Can anyone shed some light on this? If the Eclipse plugin is not an option then what is the best way to automate the task of running the WSDL2Java command? I've run this from a DOS prompt and then manually imported the generated classes into Eclipse but there must be a better way. Thanks. --- On Tue, 11/24/09, Jack Sprat rexclaim...@yahoo.com wrote: From: Jack Sprat rexclaim...@yahoo.com Subject: Axis2 Eclipse plugin To: axis-user@ws.apache.org Date: Tuesday, November 24, 2009, 7:28 AM I cannot seem to find the Axis2 Eclipse plugin for WSDL2Java. I'm looking here: http://ws.apache.org/axis2/tools/1_0/eclipse/wsdl2java-plugin.html which takes me to the download page here: http://ws.apache.org/axis2/tools/index.html Every mirror under Code Generator Wizard shows a 404 not found error. Am I looking in the wrong place? Thanks.
Re: Axis2 Eclipse plugin - soapUI
In the soapUI perspective, right click the binding. Then select Generate Code from the menu and Axis2 artifacts from the sub-menu. This brings up a window of options for the generated code. There is an entry field for the package for generated source files. That seems to be ignored. The soapUI is a bit outdated and refers to Axis1 but you can see here: http://www.soapui.org/eclipse/soapui_nature.html Thanks. --- On Wed, 11/25/09, Olindo Pindaro o.pind...@gmail.com wrote: From: Olindo Pindaro o.pind...@gmail.com Subject: Re: Axis2 Eclipse plugin - soapUI To: axis-user@ws.apache.org Date: Wednesday, November 25, 2009, 12:16 PM I am not sure understanding what you mean.. But I use, as generated package, the defualt that is the one specified as namespace in WSDL. byeOlindo 2009/11/25 Jack Sprat rexclaim...@yahoo.com I tried the soapUI plugin but found a few problems with it. The main one is that I specified the package for the generated classes but it was ignored. I set the package as: com.mydomain.ws.myservice.gensrc But all the classes were generated in: com.mydomain.ws.myservice Have you seen this behavior? Thanks. --- On Tue, 11/24/09, Olindo Pindaro o.pind...@gmail.com wrote: From: Olindo Pindaro o.pind...@gmail.com Subject: Re: Axis2 Eclipse plugin To: axis-user@ws.apache.org Date: Tuesday, November 24, 2009, 2:15 PM I use SoapUI plugin... it works fine. 2009/11/24 Jack Sprat rexclaim...@yahoo.com Can anyone shed some light on this? If the Eclipse plugin is not an option then what is the best way to automate the task of running the WSDL2Java command? I've run this from a DOS prompt and then manually imported the generated classes into Eclipse but there must be a better way. Thanks. --- On Tue, 11/24/09, Jack Sprat rexclaim...@yahoo.com wrote: From: Jack Sprat rexclaim...@yahoo.com Subject: Axis2 Eclipse plugin To: axis-user@ws.apache.org Date: Tuesday, November 24, 2009, 7:28 AM I cannot seem to find the Axis2 Eclipse plugin for WSDL2Java. I'm looking here: http://ws.apache.org/axis2/tools/1_0/eclipse/wsdl2java-plugin.html which takes me to the download page here: http://ws.apache.org/axis2/tools/index.html Every mirror under Code Generator Wizard shows a 404 not found error. Am I looking in the wrong place? Thanks.
Axis2 Eclipse plugin
I cannot seem to find the Axis2 Eclipse plugin for WSDL2Java. I'm looking here: http://ws.apache.org/axis2/tools/1_0/eclipse/wsdl2java-plugin.html which takes me to the download page here: http://ws.apache.org/axis2/tools/index.html Every mirror under Code Generator Wizard shows a 404 not found error. Am I looking in the wrong place? Thanks.
Re: Axis2 Eclipse plugin
Can anyone shed some light on this? If the Eclipse plugin is not an option then what is the best way to automate the task of running the WSDL2Java command? I've run this from a DOS prompt and then manually imported the generated classes into Eclipse but there must be a better way. Thanks. --- On Tue, 11/24/09, Jack Sprat rexclaim...@yahoo.com wrote: From: Jack Sprat rexclaim...@yahoo.com Subject: Axis2 Eclipse plugin To: axis-user@ws.apache.org Date: Tuesday, November 24, 2009, 7:28 AM I cannot seem to find the Axis2 Eclipse plugin for WSDL2Java. I'm looking here: http://ws.apache.org/axis2/tools/1_0/eclipse/wsdl2java-plugin.html which takes me to the download page here: http://ws.apache.org/axis2/tools/index.html Every mirror under Code Generator Wizard shows a 404 not found error. Am I looking in the wrong place? Thanks.
NoClasDefFoundError
I made a few changes to an Axis2 1.4.1 service and now get the following error when I start my Tomcat 5.5 server: java.lang.NoClassDefFoundError: org/apache/axis2/handlers/AbstractHandler I've added all JARs from the Axis2 1.4.1 distribution but the error persists. I've searched around and not found anything that applies. Can someone point me in the right direction? Thanks, T
Re: NoClassDefFoundError
I found the source of my problem - the class package was incorrect in the messageReceiver specified in the services.xml file. I hope this helps someone else who comes across this error. Regards, T --- On Tue, 8/11/09, Jack Sprat rexclaim...@yahoo.com wrote: From: Jack Sprat rexclaim...@yahoo.com Subject: NoClasDefFoundError To: axis-user@ws.apache.org Date: Tuesday, August 11, 2009, 10:12 AM I made a few changes to an Axis2 1.4.1 service and now get the following error when I start my Tomcat 5.5 server: java.lang.NoClassDefFoundError: org/apache/axis2/handlers/AbstractHandler I've added all JARs from the Axis2 1.4.1 distribution but the error persists. I've searched around and not found anything that applies. Can someone point me in the right direction? Thanks, T
Re: axis2 on webshpere response != axis2 on glassfish response........ why?
Make sure you also checked the radio button for single class loader along with the parent last loading. Somethig else to check is to ensure you did not include the servlet.jar file in your web service WAR file. This must be manually added if using Eclipse for development but is not needed in WAS. HTH. --- On Sun, 6/21/09, jeffty jefft...@gmail.com wrote: From: jeffty jefft...@gmail.com Subject: Re: axis2 on webshpere response != axis2 on glassfish response why? To: axis-user@ws.apache.org Cc: some2...@gmail.com Date: Sunday, June 21, 2009, 8:00 AM Hi dims, I've tried set parent_last for the applications-axis2-web module-axis2.war-PARENT_LAST, after that I got the exception: java.lang.ExceptionInInitializerError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:79) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java(Compiled Code)) at java.lang.reflect.Constructor.newInstance(Constructor.java(Compiled Code)) at java.lang.Class.newInstance3(Class.java(Compiled Code)) at java.lang.Class.newInstance(Class.java(Compiled Code)) at java.beans.Beans.instantiate(Beans.java:218) at java.beans.Beans.instantiate(Beans.java:62) . Caused by: org.apache.commons.logging.LogConfigurationException: The chosen LogFactory implementation does not extend LogFactory. Please check your configuration. (Caused by java.lang.ClassCastException: The application has specified that a custom LogFactory implementation should be used but Class 'com.ibm.ws.commons.logging.TrLogFactory' cannot be converted to 'org.apache.commons.logging.LogFactory'. The conflict is caused by the presence of multiple LogFactory classes in incompatible classloaders. Background can be found in http://commons.apache.org/logging/tech.html. If you have not explicitly specified a custom LogFactory then it is likely that the container has set one without your knowledge. In this case, consider using the commons-logging-adapters.jar file or specifying the standard LogFactory from the command line. Help can be found @http://commons.apache.org/logging/troubleshooting.html.) at org.apache.commons.logging.LogFactory.createFactory(LogFactory.java:1271) at org.apache.commons.logging.LogFactory$2.run(LogFactory.java:1065) at java.security.AccessController.doPrivileged(Native Method) at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:1062) at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:612) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685) at at org.apache.axis2.transport.http.AxisServlet.clinit(AxisServlet.java:78).null(Unknown Source) ... 61 more Caused by: java.lang.ClassCastException: The application has specified that a custom LogFactory implementation should be used but Class 'com.ibm.ws.commons.logging.TrLogFactory' cannot be converted to 'org.apache.commons.logging.LogFactory'. The conflict is caused by the presence of multiple LogFactory classes in incompatible classloaders. Background can be found in http://commons.apache.org/logging/tech.html. If you have not explicitly specified a custom LogFactory then it is likely that the container has set one without your knowledge. In this case, consider using the commons-logging-adapters.jar file or specifying the standard LogFactory from the command line. Help can be found @http://commons.apache.org/logging/troubleshooting.html. at org.apache.commons.logging.LogFactory.createFactory(LogFactory.java:1220) ... 67 more And if I reset it as PARENT_FIRST, I got the exception I mentioned before: javax.servlet.ServletException: javax.xml.namespace.QName: method init(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V not found at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:99) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycleServlet.java:147) at com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecycleServlet.java:270) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleServlet.java:113) at com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java:189) . Thanks. Regards Jeffty - Original Message - From: Davanum Srinivas dava...@gmail.com To: axis-user@ws.apache.org Cc: some2...@gmail.com Sent: Sunday, June 21, 2009 10:36 PM Subject: Re: axis2 on webshpere response != axis2 on glassfish response why? Jeffty, Did you try PARENT_LAST? You may want to try asking websphere specific questions on this forum: http://www.ibm.com/developerworks/forums/forum.jspa?forumID=266start=0 -- dims On 06/21/2009 09:39 AM, jeffty wrote: Hello xedus, I wonder how do you deploy axis2 in websphere. I've tried to deploy the war file of axis2 1.3, 1.4 and 1.41 on Websphere
SOAPMonitor applet not found
I have the SOAPMonitor configured in my web.xml and can access the URL in my web service. But I get an exception that the applet cannot be found: Exception: java.lang.ClassNotFoundException: org.apache.axis2.soapmonitor.applet.SOAPMonitorApplet.class I've imported the SOAPMonitorApplet class from the soapmonitor-1.4.1.jar file included with the Axis2 distribution into the web app.root. What am I missing? Thanks, T
Re: Problems With Axis2
After creating the dynamic web project, click the Modify button in the Configuration section. This will open the Project Facets window and allow you to select/deselect each project facet. Regards, T --- On Mon, 1/26/09, Michael mtarullo...@optonline.net wrote: From: Michael mtarullo...@optonline.net Subject: Re: Problems With Axis2 To: axis-user@ws.apache.org Date: Monday, January 26, 2009, 6:06 PM #yiv521457004 .hmmessage P { PADDING-RIGHT:0px;PADDING-LEFT:0px;PADDING-BOTTOM:0px;MARGIN:0px;PADDING-TOP:0px;} #yiv521457004 { FONT-SIZE:10pt;FONT-FAMILY:Verdana;} The link I was given by Tori mentions nothing about configuring a facet extension point Is it always like this trying to get these three open source children (Eclipse, Tomcat and Axis2) to play nice in the sandbox? Does anyone else think, like me, that we should be spending time writing software and getting it work, not trying to get our tools to work? - Original Message - From: Martin Gainty To: axis-user@ws.apache.org Sent: Monday, January 26, 2009 7:53 PM Subject: RE: Problems With Axis2 from what I read you have to configure a facet extension point as in extension point=org.eclipse.wst.common.project.facet.core.facets project-facet id=formgen.core labelFormGen Core/label description Enables generation of HTML forms based on XML definition files. /description /project-facet project-facet-version facet=formgen.core version=1.0/ project-facet id=formgen.ext labelFormGen Extensions/label description Enables additional FormGen widgets. /description /project-facet project-facet-version facet=formgen.ext version=1.0/ /extensionhttp://www.eclipse.org/articles/Article-BuildingProjectFacets/tutorial.html#creating.basic.facets Martin Gainty __ Date: Mon, 26 Jan 2009 19:25:24 -0500 From: mtarullo...@optonline.net Subject: Re: Problems With Axis2 To: axis-user@ws.apache.org Tori, I have been following the instructions given in the like you supplied below. These are some of the problems that I am encountering: 1) When taking inventory of the WTP pieces I have installed I do not find 'the non-SDK package of the Web Tools Platform refered to a Web App Developers' 2) I continued on and my configuration matches the configuration in the link except I am using Tomcat v5.5 3) When I create a new Dynamic Web Project I do not get Project Facets and therefore no Axis2 Web Services checkbox. Did you encounter any of these problems? If so how did you fix them? Thanks, Mike - Original Message - From: Toriacht shatner.will...@gmail.com To: axis-user@ws.apache.org Sent: Sunday, January 25, 2009 6:22 PM Subject: Re: Problems With Axis2 Hi Mike, I'm afraid I'm a novice but the following tutorial is a simple guide to setting up/using AXIS2 with eclipse, it worked for me... http://www.builderau.com.au/program/java/soa/Setting-up-a-simple-Web-service-using-Java/0,339024620,339284524,00.htm Best Regards, Tori --
casting issues
can't seem to track down how this is possible edu.jhmi.rad.eprservices.EPRServicesSkeleton cannot be cast to edu.jhmi.rad.eprservices.EPRServicesSkeleton happens when the receiverInOut tries to cast the result of getTheImplementationObject been kicking it around for several days now. thanks, Jack Vining
RE: echo samples with Axis2/C Module for Apache2
Supun, I decided to try this again this morning with the math sample. Using TCPMon, I sent the command to add 40 8 http://localhost/axis2/services/math; From this log message in the axis2.log I took this morning, it looks as though the request is getting through to the server: [Fri Sep 12 08:21:23 2008] [debug] apache2_worker.c(199) http://localhost/axis2/services/math/ [Fri Sep 12 08:21:23 2008] [debug] apache2_worker.c(229) Client HTTP version HTTP/1.1 [Fri Sep 12 08:22:15 2008] [debug] apache2_worker.c(199) http://localhost/axis2/services/math/ [Fri Sep 12 08:22:15 2008] [debug] apache2_worker.c(229) Client HTTP version HTTP/1.1 I get: htmlheadtitle500 Internal Server Error/title/headbodyh2Internal Server Error/h2pThe server encountered an unexpected condition which prevented it from fulfilling the request./p/body/html. The axis2.log doesn't tell me any more than that. Interestingly, I checked the access_log for Apache and found that when I attempt to call the math sample from the command line: ./math add 40 8 http://localhost/axis2/services/math I get a POST /axis2/services/math HTTP/1.1 301 318 - Axis2C/1.5.0 Whereas, if I send the request via TCPMon, I get a POST /axis2/services/math HTTP/1.1 500 210 - Axis/2.0 Why would the Axis version be different depending on how I call it? There is only one server and module running as far as I know. --Jack _ From: Supun Kamburugamuva [mailto:[EMAIL PROTECTED] Sent: Friday, September 12, 2008 5:48 AM To: Apache AXIS C User List Subject: Re: echo samples with Axis2/C Module for Apache2 Hi Jack, From your log files it seems that the client request has not reached the server. You can use a tool like tcpmon[]1 to verify this. Send the request through tcpmon and you will see weather it reaches the target. [1] http://ws.apache.org/commons/tcpmon/download.cgi Supun.. On Thu, Sep 11, 2008 at 5:58 PM, Qasim Ijaz [EMAIL PROTECTED] wrote: How can I get off this list? I have tried in the past but the email address for unsubscribing doesn't work. Can anyone help? Thanks. Qasim. _ From: Gold, Jack L (US SSA) [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2008 7:57 AM To: Apache AXIS C User List Subject: RE: echo samples with Axis2/C Module for Apache2 The spam filter is preventing reception of the math_blocking.log file. Sorry. I don't know how else to post it to you. --Jack _ From: Supun Kamburugamuva [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2008 1:45 AM To: Apache AXIS C User List Subject: Re: echo samples with Axis2/C Module for Apache2 Can you please send the server log file for the failed test cases with Apache Server? Usually if a sample works with axis2_http_server it works with Apache server as well. Please note that google and yahoo sample failures have nothing to do with the local server. These requests go to google and yahoo servers respectively. Supun.. On Thu, Sep 11, 2008 at 12:37 AM, Gold, Jack L (US SSA) [EMAIL PROTECTED] wrote: It seems that some of the services are working and echo was just an example of one that wasn't. I have now run all the samples. Under Libmod_axis2 with Apache2: echo - Fails echo_blocking - Succeeds echo_blocking_addr - Succeeds echo_blocking_auth - succeeds echo_blocking_dual - succeeds echo_blocking_soap11 - succeeds echo_non_blocking - succeeds echo_non_blocking_dual - succeeds echo_rest - fails google - soap fault math - fails mtom - fails notify - fails yahoosearch - fails Under axis_simple_server: echo - Succeeds echo_blocking - Succeeds echo_blocking_addr - Succeeds echo_blocking_auth - succeeds echo_blocking_dual - succeeds echo_blocking_soap11 - succeeds echo_non_blocking - succeeds echo_non_blocking_dual - succeeds echo_rest - succeeds google - soap fault math - succeeds mtom - succeeds notify - succeeds yahoosearch - fails I would have expected the same results through both servers with maybe the exception of echo_rest and mtom. What bothers me is that some of the tests are successful only on the simple axis server, yet some work in both configurations. Any ideas? --Jack - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Software Engineer, WSO2 Inc -- Software Engineer, WSO2 Inc http://wso2.com
RE: echo samples with Axis2/C Module for Apache2
Supun, I thought the same thing. I am wondering if I forgot to include something in either building Apache2 or building the Axis2 module that may be causing this. I'm having trouble sending all of the logs at once, so I'll send one at a time. --Jack - echo.log (./echo http://localhost/axis2/services/echo): [Thu Sep 11 08:05:58 2008] [debug] phase.c(121) axis2_handler_t *request_uri_based_dispatcher added to the index 0 of the phase Transport [Thu Sep 11 08:05:58 2008] [debug] phase.c(121) axis2_handler_t *addressing_based_dispatcher added to the index 1 of the phase Transport [Thu Sep 11 08:05:58 2008] [debug] phase.c(121) axis2_handler_t *rest_dispatcher added to the index 0 of the phase Dispatch [Thu Sep 11 08:05:58 2008] [debug] phase.c(121) axis2_handler_t *soap_message_body_based_dispatcher added to the index 1 of the phase Dispatch [Thu Sep 11 08:05:58 2008] [debug] phase.c(121) axis2_handler_t *soap_action_based_dispatcher added to the index 2 of the phase Dispatch [Thu Sep 11 08:05:58 2008] [debug] phase.c(121) axis2_handler_t *dispatch_post_conditions_evaluator added to the index 0 of the phase PostDispatch [Thu Sep 11 08:05:58 2008] [debug] phase.c(121) axis2_handler_t *context_handler added to the index 1 of the phase PostDispatch [Thu Sep 11 08:05:58 2008] [debug] conf_builder.c(233) No custom dispatching order found. Continue with the default dispatching order [Thu Sep 11 08:05:58 2008] [debug] conf_builder.c(378) Module addressing found in axis2.xml [Thu Sep 11 08:05:58 2008] [debug] class_loader.c(140) ../../lib/libaxis2_http_sender.so shared lib loaded successfully [Thu Sep 11 08:05:58 2008] [debug] class_loader.c(140) ../../lib/libaxis2_http_receiver.so shared lib loaded successfully [Thu Sep 11 08:05:58 2008] [info] No files in the path ../../modules. [Thu Sep 11 08:05:58 2008] [info] No files in the path ../../services. [Thu Sep 11 08:05:58 2008] [debug] dep_engine.c(1283) axis2_dep_engine_load_module_dll: DLL path is : ../../modules/addressing/libaxis2_mod_addr.so [Thu Sep 11 08:05:58 2008] [debug] class_loader.c(140) ../../modules/addressing/libaxis2_mod_addr.so shared lib loaded successfully [Thu Sep 11 08:05:58 2008] [debug] phase_holder.c(139) Add handler AddressingInHandler to phase Transport [Thu Sep 11 08:05:58 2008] [debug] phase_resolver.c(139) Service name is : __ANONYMOUS_SERVICE__ [Thu Sep 11 08:05:58 2008] [debug] phase_resolver.c(723) Module name is:addressing [Thu Sep 11 08:05:58 2008] [debug] phase_resolver.c(2058) Trying to add this handler AddressingInHandler to system pre defined phases , but those handlers are already added to global chain which run irrespective of the service [Thu Sep 11 08:05:58 2008] [debug] phase_resolver.c(723) Module name is:addressing [Thu Sep 11 08:05:58 2008] [debug] phase_holder.c(139) Add handler AddressingOutHandler to phase MessageOut [Thu Sep 11 08:05:58 2008] [debug] phase_resolver.c(723) Module name is:addressing [Thu Sep 11 08:05:58 2008] [debug] phase_resolver.c(723) Module name is:addressing [Thu Sep 11 08:05:58 2008] [debug] phase_holder.c(139) Add handler AddressingOutHandler to phase MessageOut [Thu Sep 11 08:05:58 2008] [debug] phase_resolver.c(723) Module name is:addressing [Thu Sep 11 08:05:58 2008] [debug] phase_resolver.c(2058) Trying to add this handler AddressingInHandler to system pre defined phases , but those handlers are already added to global chain which run irrespective of the service [Thu Sep 11 08:05:58 2008] [debug] phase_resolver.c(723) Module name is:addressing [Thu Sep 11 08:05:58 2008] [debug] phase_holder.c(139) Add handler AddressingOutHandler to phase MessageOut [Thu Sep 11 08:05:58 2008] [debug] phase_resolver.c(723) Module name is:addressing [Thu Sep 11 08:05:58 2008] [debug] phase_resolver.c(723) Module name is:addressing [Thu Sep 11 08:05:58 2008] [debug] phase_holder.c(139) Add handler AddressingOutHandler to phase MessageOut [Thu Sep 11 08:05:58 2008] [debug] phase_resolver.c(723) Module name is:addressing [Thu Sep 11 08:05:58 2008] [debug] phase_resolver.c(2058) Trying to add this handler AddressingInHandler to system pre defined phases , but those handlers are already added to global chain which run irrespective of the service [Thu Sep 11 08:05:58 2008] [debug] phase_resolver.c(723) Module name is:addressing [Thu Sep 11 08:05:58 2008] [debug] phase_holder.c(139) Add handler AddressingOutHandler to phase MessageOut [Thu Sep 11 08:05:58 2008] [debug] phase_resolver.c(723) Module name is:addressing [Thu Sep 11 08:05:58 2008] [debug] phase_resolver.c(723) Module name is:addressing [Thu Sep 11 08:05:58 2008] [debug] phase_holder.c(139) Add handler AddressingOutHandler to phase MessageOut [Thu Sep 11 08:05:58 2008] [debug] phase_resolver.c(377) Module addressing will be engaged to __ANONYMOUS_SERVICE__ [Thu Sep 11 08:05:58 2008] [debug
RE: echo samples with Axis2/C Module for Apache2
the phase MessageOut [Thu Sep 11 08:11:45 2008] [info] Starting addressing out handler [Thu Sep 11 08:11:45 2008] [debug] addr_out_handler.c(133) No action present. Stop processing addressing [Thu Sep 11 08:11:45 2008] [debug] http_transport_sender.c(246) ctx_epr:http://localhost/axis2/services/echo_rest [Thu Sep 11 08:11:45 2008] [debug] http_transport_sender.c(770) using axis2 native http sender. [Thu Sep 11 08:11:45 2008] [debug] http_sender.c(416) msg_ctx_id:urn:uuid:cd4881be-7ffa-1dd1-264f-0019b9da4375 [Thu Sep 11 08:11:45 2008] [debug] http_transport_sender.c(787) OP name axutil_qname_get_localpart = http://www.w3.org/2004/08/wsdl/out-in [Thu Sep 11 08:11:45 2008] [debug] phase.c(210) Invoke the handler request_uri_based_dispatcher within the phase Transport [Thu Sep 11 08:11:45 2008] [debug] phase.c(210) Invoke the handler AddressingInHandler within the phase Transport [Thu Sep 11 08:11:45 2008] [info] Starting addressing in handler [Thu Sep 11 08:11:45 2008] [info] addr_in_handler.c [Thu Sep 11 08:11:45 2008] [debug] phase.c(210) Invoke the handler addressing_based_dispatcher within the phase Transport [Thu Sep 11 08:11:45 2008] [debug] phase.c(210) Invoke the handler rest_dispatcher within the phase Dispatch [Thu Sep 11 08:11:45 2008] [debug] phase.c(210) Invoke the handler soap_message_body_based_dispatcher within the phase Dispatch [Thu Sep 11 08:11:45 2008] [debug] phase.c(210) Invoke the handler soap_action_based_dispatcher within the phase Dispatch [Thu Sep 11 08:11:45 2008] [debug] phase.c(210) Invoke the handler dispatch_post_conditions_evaluator within the phase PostDispatch [Thu Sep 11 08:11:45 2008] [debug] phase.c(210) Invoke the handler context_handler within the phase PostDispatch _ From: Supun Kamburugamuva [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2008 1:45 AM To: Apache AXIS C User List Subject: Re: echo samples with Axis2/C Module for Apache2 Can you please send the server log file for the failed test cases with Apache Server? Usually if a sample works with axis2_http_server it works with Apache server as well. Please note that google and yahoo sample failures have nothing to do with the local server. These requests go to google and yahoo servers respectively. Supun.. On Thu, Sep 11, 2008 at 12:37 AM, Gold, Jack L (US SSA) [EMAIL PROTECTED] wrote: It seems that some of the services are working and echo was just an example of one that wasn't. I have now run all the samples. Under Libmod_axis2 with Apache2: echo - Fails echo_blocking - Succeeds echo_blocking_addr - Succeeds echo_blocking_auth - succeeds echo_blocking_dual - succeeds echo_blocking_soap11 - succeeds echo_non_blocking - succeeds echo_non_blocking_dual - succeeds echo_rest - fails google - soap fault math - fails mtom - fails notify - fails yahoosearch - fails Under axis_simple_server: echo - Succeeds echo_blocking - Succeeds echo_blocking_addr - Succeeds echo_blocking_auth - succeeds echo_blocking_dual - succeeds echo_blocking_soap11 - succeeds echo_non_blocking - succeeds echo_non_blocking_dual - succeeds echo_rest - succeeds google - soap fault math - succeeds mtom - succeeds notify - succeeds yahoosearch - fails I would have expected the same results through both servers with maybe the exception of echo_rest and mtom. What bothers me is that some of the tests are successful only on the simple axis server, yet some work in both configurations. Any ideas? --Jack - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Software Engineer, WSO2 Inc
RE: echo samples with Axis2/C Module for Apache2
of service __ANONYMOUS_SERVICE__ [Thu Sep 11 08:16:41 2008] [debug] phase_resolver.c(430) Module addressing already engaged to operation __OPERATION_OUT_IN__ of service __ANONYMOUS_SERVICE__ [Thu Sep 11 08:16:41 2008] [debug] op_client.c(881) Start:axis2_op_client_infer_transport [Thu Sep 11 08:16:41 2008] [debug] op_client.c(940) End:axis2_op_client_infer_transport [Thu Sep 11 08:16:41 2008] [debug] phase.c(210) Invoke the handler AddressingOutHandler within the phase MessageOut [Thu Sep 11 08:16:41 2008] [info] Starting addressing out handler [Thu Sep 11 08:16:41 2008] [debug] http_transport_sender.c(246) ctx_epr:http://localhost/axis2/services/notify [Thu Sep 11 08:16:41 2008] [debug] http_transport_sender.c(770) using axis2 native http sender. [Thu Sep 11 08:16:41 2008] [debug] http_sender.c(416) msg_ctx_id:urn:uuid:7df33cac-7ffb-1dd1-3fdf-0019b9da4375 [Thu Sep 11 08:16:41 2008] [error] http_sender.c(1405) Error occurred in transport [Thu Sep 11 08:16:41 2008] [error] engine.c(179) Transport sender invoke failed [Thu Sep 11 08:16:41 2008] [error] notify_client.c(107) Stub invoke FAILED: Error code: 74 :: Error occurred in transport _ From: Supun Kamburugamuva [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2008 1:45 AM To: Apache AXIS C User List Subject: Re: echo samples with Axis2/C Module for Apache2 Can you please send the server log file for the failed test cases with Apache Server? Usually if a sample works with axis2_http_server it works with Apache server as well. Please note that google and yahoo sample failures have nothing to do with the local server. These requests go to google and yahoo servers respectively. Supun.. On Thu, Sep 11, 2008 at 12:37 AM, Gold, Jack L (US SSA) [EMAIL PROTECTED] wrote: It seems that some of the services are working and echo was just an example of one that wasn't. I have now run all the samples. Under Libmod_axis2 with Apache2: echo - Fails echo_blocking - Succeeds echo_blocking_addr - Succeeds echo_blocking_auth - succeeds echo_blocking_dual - succeeds echo_blocking_soap11 - succeeds echo_non_blocking - succeeds echo_non_blocking_dual - succeeds echo_rest - fails google - soap fault math - fails mtom - fails notify - fails yahoosearch - fails Under axis_simple_server: echo - Succeeds echo_blocking - Succeeds echo_blocking_addr - Succeeds echo_blocking_auth - succeeds echo_blocking_dual - succeeds echo_blocking_soap11 - succeeds echo_non_blocking - succeeds echo_non_blocking_dual - succeeds echo_rest - succeeds google - soap fault math - succeeds mtom - succeeds notify - succeeds yahoosearch - fails I would have expected the same results through both servers with maybe the exception of echo_rest and mtom. What bothers me is that some of the tests are successful only on the simple axis server, yet some work in both configurations. Any ideas? --Jack - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Software Engineer, WSO2 Inc _ From: Supun Kamburugamuva [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2008 1:45 AM To: Apache AXIS C User List Subject: Re: echo samples with Axis2/C Module for Apache2 Can you please send the server log file for the failed test cases with Apache Server? Usually if a sample works with axis2_http_server it works with Apache server as well. Please note that google and yahoo sample failures have nothing to do with the local server. These requests go to google and yahoo servers respectively. Supun.. On Thu, Sep 11, 2008 at 12:37 AM, Gold, Jack L (US SSA) [EMAIL PROTECTED] wrote: It seems that some of the services are working and echo was just an example of one that wasn't. I have now run all the samples. Under Libmod_axis2 with Apache2: echo - Fails echo_blocking - Succeeds echo_blocking_addr - Succeeds echo_blocking_auth - succeeds echo_blocking_dual - succeeds echo_blocking_soap11 - succeeds echo_non_blocking - succeeds echo_non_blocking_dual - succeeds echo_rest - fails google - soap fault math - fails mtom - fails notify - fails yahoosearch - fails Under axis_simple_server: echo - Succeeds echo_blocking - Succeeds echo_blocking_addr - Succeeds echo_blocking_auth - succeeds echo_blocking_dual - succeeds echo_blocking_soap11 - succeeds echo_non_blocking - succeeds echo_non_blocking_dual - succeeds echo_rest - succeeds google - soap fault math - succeeds mtom - succeeds notify - succeeds yahoosearch - fails I would have expected the same results through both servers with maybe the exception of echo_rest and mtom. What bothers me is that some of the tests are successful only on the simple axis server, yet some work in both configurations. Any ideas? --Jack - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Software
RE: echo samples with Axis2/C Module for Apache2
Server is having problems with receiving the math.log file. --Jack _ From: Supun Kamburugamuva [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2008 1:45 AM To: Apache AXIS C User List Subject: Re: echo samples with Axis2/C Module for Apache2 Can you please send the server log file for the failed test cases with Apache Server? Usually if a sample works with axis2_http_server it works with Apache server as well. Please note that google and yahoo sample failures have nothing to do with the local server. These requests go to google and yahoo servers respectively. Supun.. On Thu, Sep 11, 2008 at 12:37 AM, Gold, Jack L (US SSA) [EMAIL PROTECTED] wrote: It seems that some of the services are working and echo was just an example of one that wasn't. I have now run all the samples. Under Libmod_axis2 with Apache2: echo - Fails echo_blocking - Succeeds echo_blocking_addr - Succeeds echo_blocking_auth - succeeds echo_blocking_dual - succeeds echo_blocking_soap11 - succeeds echo_non_blocking - succeeds echo_non_blocking_dual - succeeds echo_rest - fails google - soap fault math - fails mtom - fails notify - fails yahoosearch - fails Under axis_simple_server: echo - Succeeds echo_blocking - Succeeds echo_blocking_addr - Succeeds echo_blocking_auth - succeeds echo_blocking_dual - succeeds echo_blocking_soap11 - succeeds echo_non_blocking - succeeds echo_non_blocking_dual - succeeds echo_rest - succeeds google - soap fault math - succeeds mtom - succeeds notify - succeeds yahoosearch - fails I would have expected the same results through both servers with maybe the exception of echo_rest and mtom. What bothers me is that some of the tests are successful only on the simple axis server, yet some work in both configurations. Any ideas? --Jack - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Software Engineer, WSO2 Inc
RE: echo samples with Axis2/C Module for Apache2
The spam filter is preventing reception of the math_blocking.log file. Sorry. I don't know how else to post it to you. --Jack _ From: Supun Kamburugamuva [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2008 1:45 AM To: Apache AXIS C User List Subject: Re: echo samples with Axis2/C Module for Apache2 Can you please send the server log file for the failed test cases with Apache Server? Usually if a sample works with axis2_http_server it works with Apache server as well. Please note that google and yahoo sample failures have nothing to do with the local server. These requests go to google and yahoo servers respectively. Supun.. On Thu, Sep 11, 2008 at 12:37 AM, Gold, Jack L (US SSA) [EMAIL PROTECTED] wrote: It seems that some of the services are working and echo was just an example of one that wasn't. I have now run all the samples. Under Libmod_axis2 with Apache2: echo - Fails echo_blocking - Succeeds echo_blocking_addr - Succeeds echo_blocking_auth - succeeds echo_blocking_dual - succeeds echo_blocking_soap11 - succeeds echo_non_blocking - succeeds echo_non_blocking_dual - succeeds echo_rest - fails google - soap fault math - fails mtom - fails notify - fails yahoosearch - fails Under axis_simple_server: echo - Succeeds echo_blocking - Succeeds echo_blocking_addr - Succeeds echo_blocking_auth - succeeds echo_blocking_dual - succeeds echo_blocking_soap11 - succeeds echo_non_blocking - succeeds echo_non_blocking_dual - succeeds echo_rest - succeeds google - soap fault math - succeeds mtom - succeeds notify - succeeds yahoosearch - fails I would have expected the same results through both servers with maybe the exception of echo_rest and mtom. What bothers me is that some of the tests are successful only on the simple axis server, yet some work in both configurations. Any ideas? --Jack - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Software Engineer, WSO2 Inc
echo samples with Axis2/C Module for Apache2
I am going through the manual and attempting the tests indicated for checking the Apache Axis2/C Module. The test suggests typing echo http://localhost/axis2/services/echo at the command prompt. Unfortunately, this only serves to submit http://localhost/axis2/services/echo; back to the console. I verified that my http server is running and I receive the Deployed Services page when I set my browser to http://localhost/axis2/services, but I don't have any axis2.log file in my suggested log directory and I can't seem to test any of the sample services through Apache http server. I also verified that I am not receiving any crash message in my Apache2 log file, so I'm pretty sure the mod_axis2 is still functioning. Any suggestions as to how I can A) test the samples through the Apache module and B) verify that the Axis log file is being written to the correct place? Any help would be appreciated. Jack Gold BAE SYSTEMS 450 Pulaski Rd. MS - 01-59 Greenlawn, NY 11740 ph: (631) 262-8354 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
RE: echo samples with Axis2/C Module for Apache2
I originally had the log level set to error. I've just set it to debug. Now I can see that the module is being loaded and it looks to be loading correctly. I still don't see how this answers the question about the 'echo http://localhost/axis2/services/echo' request indicated in the manual. Below is the apache log after the log setting change to 'debug'. --Jack [Wed Sep 10 11:18:01 2008] [info] Apache Axis2/C version in use : 1.5.0 [Wed Sep 10 11:18:01 2008] [info] Starting log with log level 4 [Wed Sep 10 11:18:01 2008] [info] [Axis2] Axis2 worker created [Wed Sep 10 11:18:01 2008] [debug] phase.c(121) axis2_handler_t *request_uri_based_dispatcher added to the index 0 of the phase Transport [Wed Sep 10 11:18:01 2008] [debug] phase.c(121) axis2_handler_t *addressing_based_dispatcher added to the index 1 of the phase Transport [Wed Sep 10 11:18:01 2008] [debug] phase.c(121) axis2_handler_t *request_uri_based_dispatcher added to the index 0 of the phase Transport [Wed Sep 10 11:18:01 2008] [debug] phase.c(121) axis2_handler_t *addressing_based_dispatcher added to the index 1 of the phase Transport [Wed Sep 10 11:18:01 2008] [notice] Apache/2.0.63 (Unix) configured -- resuming normal operations [Wed Sep 10 11:18:01 2008] [debug] phase.c(121) axis2_handler_t *rest_dispatcher added to the index 0 of the phase Dispatch [Wed Sep 10 11:18:01 2008] [debug] phase.c(121) axis2_handler_t *soap_message_body_based_dispatcher added to the index 1 of the phase Dispatch [Wed Sep 10 11:18:01 2008] [debug] phase.c(121) axis2_handler_t *soap_action_based_dispatcher added to the index 2 of the phase Dispatch [Wed Sep 10 11:18:01 2008] [debug] phase.c(121) axis2_handler_t *dispatch_post_conditions_evaluator added to the index 0 of the phase PostDispatch [Wed Sep 10 11:18:01 2008] [debug] phase.c(121) axis2_handler_t *context_handler added to the index 1 of the phase PostDispatch [Wed Sep 10 11:18:01 2008] [debug] conf_builder.c(233) No custom dispatching order found. Continue with the default dispatching order [Wed Sep 10 11:18:01 2008] [debug] conf_builder.c(378) Module addressing found in axis2.xml [Wed Sep 10 11:18:01 2008] [debug] phase.c(121) axis2_handler_t *rest_dispatcher added to the index 0 of the phase Dispatch [Wed Sep 10 11:18:01 2008] [debug] phase.c(121) axis2_handler_t *soap_message_body_based_dispatcher added to the index 1 of the phase Dispatch [Wed Sep 10 11:18:01 2008] [debug] phase.c(121) axis2_handler_t *soap_action_based_dispatcher added to the index 2 of the phase Dispatch [Wed Sep 10 11:18:01 2008] [debug] phase.c(121) axis2_handler_t *dispatch_post_conditions_evaluator added to the index 0 of the phase PostDispatch [Wed Sep 10 11:18:01 2008] [debug] phase.c(121) axis2_handler_t *context_handler added to the index 1 of the phase PostDispatch [Wed Sep 10 11:18:01 2008] [debug] conf_builder.c(233) No custom dispatching order found. Continue with the default dispatching order [Wed Sep 10 11:18:01 2008] [debug] conf_builder.c(378) Module addressing found in axis2.xml [Wed Sep 10 11:18:01 2008] [debug] class_loader.c(140) /usr/local/axis2-1.5.0/lib/libaxis2_http_sender.so shared lib loaded successfully [Wed Sep 10 11:18:01 2008] [debug] class_loader.c(140) /usr/local/axis2-1.5.0/lib/libaxis2_http_receiver.so shared lib loaded successfully [Wed Sep 10 11:18:01 2008] [debug] class_loader.c(140) /usr/local/axis2-1.5.0/lib/libaxis2_http_sender.so shared lib loaded successfully [Wed Sep 10 11:18:01 2008] [debug] class_loader.c(140) /usr/local/axis2-1.5.0/lib/libaxis2_http_receiver.so shared lib loaded successfully [Wed Sep 10 11:18:01 2008] [debug] dep_engine.c(1283) axis2_dep_engine_load_module_dll: DLL path is : /usr/local/axis2-1.5.0/modules/addressing/libaxis2_mod_addr.so [Wed Sep 10 11:18:01 2008] [debug] class_loader.c(140) /usr/local/axis2-1.5.0/modules/addressing/libaxis2_mod_addr.so shared lib loaded successfully [Wed Sep 10 11:18:01 2008] [debug] dep_engine.c(1283) axis2_dep_engine_load_module_dll: DLL path is : /usr/local/axis2-1.5.0/modules/addressing/libaxis2_mod_addr.so [Wed Sep 10 11:18:01 2008] [debug] dep_engine.c(1283) axis2_dep_engine_load_module_dll: DLL path is : /usr/local/axis2-1.5.0/modules/logging/libaxis2_mod_log.so [Wed Sep 10 11:18:01 2008] [debug] class_loader.c(140) /usr/local/axis2-1.5.0/modules/addressing/libaxis2_mod_addr.so shared lib loaded successfully [Wed Sep 10 11:18:01 2008] [debug] class_loader.c(140) /usr/local/axis2-1.5.0/modules/logging/libaxis2_mod_log.so shared lib loaded successfully [Wed Sep 10 11:18:01 2008] [debug] dep_engine.c(1283) axis2_dep_engine_load_module_dll: DLL path is : /usr/local/axis2-1.5.0/modules/logging/libaxis2_mod_log.so [Wed Sep 10 11:18:01 2008] [debug] svc_builder.c(318) DLL path is : /usr/local/axis2-1.5.0/services/Calculator/libCalculator.so [Wed Sep 10 11:18:01 2008] [debug] class_loader.c(140) /usr/local/axis2-1.5.0/modules/logging/libaxis2_mod_log.so shared lib loaded successfully [Wed Sep 10 11:18:01 2008] [debug] svc_builder.c
RE: echo samples with Axis2/C Module for Apache2
Adding to the previous log, I recompiled the echo sample for my localhost and received this in the logfile. Any ideas? Did I miss something in the configuration? --Jack [Wed Sep 10 11:47:35 2008] [debug] phase_resolver.c(139) Service name is : __ANONYMOUS_SERVICE__ [Wed Sep 10 11:47:35 2008] [debug] phase_resolver.c(430) Module addressing already engaged to operation __OPERATION_ROBUST_OUT_ONLY__ of service __ANONYMOUS_SERVICE__ [Wed Sep 10 11:47:35 2008] [debug] phase_resolver.c(430) Module addressing already engaged to operation __OPERATION_OUT_ONLY__ of service __ANONYMOUS_SERVICE__ [Wed Sep 10 11:47:35 2008] [debug] phase_resolver.c(430) Module addressing already engaged to operation __OPERATION_OUT_IN__ of service __ANONYMOUS_SERVICE__ [Wed Sep 10 11:47:35 2008] [debug] op_client.c(881) Start:axis2_op_client_infer_transport [Wed Sep 10 11:47:35 2008] [debug] op_client.c(940) End:axis2_op_client_infer_transport [Wed Sep 10 11:47:35 2008] [debug] phase.c(210) Invoke the handler AddressingOutHandler within the phase MessageOut [Wed Sep 10 11:47:35 2008] [info] Starting addressing out handler [Wed Sep 10 11:47:35 2008] [debug] http_transport_sender.c(246) ctx_epr:http://localhost/axis2/services/echo [Wed Sep 10 11:47:35 2008] [debug] http_transport_sender.c(770) using axis2 native http sender. [Wed Sep 10 11:47:35 2008] [debug] http_sender.c(416) msg_ctx_id:urn:uuid:c9de7494-7f4f-1dd1-3131-0019b9da4375 [Wed Sep 10 11:47:35 2008] [error] http_sender.c(1405) Error occurred in transport [Wed Sep 10 11:47:35 2008] [error] engine.c(179) Transport sender invoke failed [Wed Sep 10 11:47:35 2008] [error] echo.c(124) Stub invoke FAILED: Error code: 74 :: Error occurred in transport [Wed Sep 10 11:47:35 2008] [debug] op_client.c(881) Start:axis2_op_client_infer_transport [Wed Sep 10 11:47:35 2008] [debug] op_client.c(940) End:axis2_op_client_infer_transport [Wed Sep 10 11:47:35 2008] [debug] phase.c(210) Invoke the handler AddressingOutHandler within the phase MessageOut [Wed Sep 10 11:47:35 2008] [info] Starting addressing out handler [Wed Sep 10 11:47:35 2008] [debug] http_transport_sender.c(246) ctx_epr:http://localhost/axis2/services/echo [Wed Sep 10 11:47:35 2008] [debug] http_transport_sender.c(770) using axis2 native http sender. [Wed Sep 10 11:47:35 2008] [debug] http_sender.c(416) msg_ctx_id:urn:uuid:c9debefe-7f4f-1dd1-3132-0019b9da4375 [Wed Sep 10 11:47:35 2008] [error] http_sender.c(1405) Error occurred in transport [Wed Sep 10 11:47:35 2008] [error] engine.c(179) Transport sender invoke failed [Wed Sep 10 11:47:35 2008] [error] echo.c(146) Stub invoke FAILED: Error code: 74 :: Error occurred in transport [Wed Sep 10 11:47:35 2008] [debug] arch_file_data.c(149) Service name :Calculator [Wed Sep 10 11:47:35 2008] [debug] arch_file_data.c(149) Service name :echo [Wed Sep 10 11:47:35 2008] [debug] arch_file_data.c(149) Service name :hello [Wed Sep 10 11:47:35 2008] [debug] arch_file_data.c(149) Service name :math [Wed Sep 10 11:47:35 2008] [debug] arch_file_data.c(149) Service name :mtom [Wed Sep 10 11:47:35 2008] [debug] arch_file_data.c(149) Service name :notify [Wed Sep 10 11:47:35 2008] [debug] arch_file_data.c(149) Service name :div [Wed Sep 10 11:47:35 2008] [debug] arch_file_data.c(149) Service name :add [Wed Sep 10 11:47:35 2008] [debug] arch_file_data.c(149) Service name :sub [Wed Sep 10 11:47:35 2008] [debug] arch_file_data.c(149) Service name :mul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: echo samples with Axis2/C Module for Apache2
I had not. Thanks. That definitely explains why the echo wasn't working. :) Unfortunately, I am seeing the same error I saw when I just recompiled the echo sample application with my hardcoded http://localhost/axis2/services URL. (yes, I reverted back to the original version of echo). What I am getting is a transport error. Error code 74:: Error occurred in transport. What might cause this? Log file attached below. --Jack ... _ [Wed Sep 10 13:57:06 2008] [debug] phase_resolver.c(430) Module addressing already engaged to operation __OPERATION_OUT_ONLY__ of service __ANONYMOUS_SERVICE__ [Wed Sep 10 13:57:06 2008] [debug] phase_resolver.c(430) Module addressing already engaged to operation __OPERATION_OUT_IN__ of service __ANONYMOUS_SERVICE__ [Wed Sep 10 13:57:06 2008] [debug] op_client.c(881) Start:axis2_op_client_infer_transport [Wed Sep 10 13:57:06 2008] [debug] op_client.c(940) End:axis2_op_client_infer_transport [Wed Sep 10 13:57:06 2008] [debug] phase.c(210) Invoke the handler AddressingOutHandler within the phase MessageOut [Wed Sep 10 13:57:06 2008] [info] Starting addressing out handler [Wed Sep 10 13:57:06 2008] [debug] http_transport_sender.c(246) ctx_epr:http://localhost/axis2/services/echo [Wed Sep 10 13:57:06 2008] [debug] http_transport_sender.c(770) using axis2 native http sender. [Wed Sep 10 13:57:06 2008] [debug] http_sender.c(416) msg_ctx_id:urn:uuid:e1a3d0ee-7f61-1dd1-2aab-0019b9da4375 [Wed Sep 10 13:57:06 2008] [error] http_sender.c(1405) Error occurred in transport [Wed Sep 10 13:57:06 2008] [error] engine.c(179) Transport sender invoke failed [Wed Sep 10 13:57:06 2008] [error] echo.c(124) Stub invoke FAILED: Error code: 74 :: Error occurred in transport [Wed Sep 10 13:57:06 2008] [debug] op_client.c(881) Start:axis2_op_client_infer_transport [Wed Sep 10 13:57:06 2008] [debug] op_client.c(940) End:axis2_op_client_infer_transport [Wed Sep 10 13:57:06 2008] [debug] phase.c(210) Invoke the handler AddressingOutHandler within the phase MessageOut [Wed Sep 10 13:57:06 2008] [info] Starting addressing out handler [Wed Sep 10 13:57:06 2008] [debug] http_transport_sender.c(246) ctx_epr:http://localhost/axis2/services/echo [Wed Sep 10 13:57:06 2008] [debug] http_transport_sender.c(770) using axis2 native http sender. [Wed Sep 10 13:57:06 2008] [debug] http_sender.c(416) msg_ctx_id:urn:uuid:e1a40eba-7f61-1dd1-2aac-0019b9da4375 [Wed Sep 10 13:57:06 2008] [error] http_sender.c(1405) Error occurred in transport [Wed Sep 10 13:57:06 2008] [error] engine.c(179) Transport sender invoke failed [Wed Sep 10 13:57:06 2008] [error] echo.c(146) Stub invoke FAILED: Error code: 74 :: Error occurred in transport [Wed Sep 10 13:57:06 2008] [debug] arch_file_data.c(149) Service name :Calculator [Wed Sep 10 13:57:06 2008] [debug] arch_file_data.c(149) Service name :echo [Wed Sep 10 13:57:06 2008] [debug] arch_file_data.c(149) Service name :hello [Wed Sep 10 13:57:06 2008] [debug] arch_file_data.c(149) Service name :math [Wed Sep 10 13:57:06 2008] [debug] arch_file_data.c(149) Service name :mtom [Wed Sep 10 13:57:06 2008] [debug] arch_file_data.c(149) Service name :notify [Wed Sep 10 13:57:06 2008] [debug] arch_file_data.c(149) Service name :div [Wed Sep 10 13:57:06 2008] [debug] arch_file_data.c(149) Service name :add [Wed Sep 10 13:57:06 2008] [debug] arch_file_data.c(149) Service name :sub [Wed Sep 10 13:57:06 2008] [debug] arch_file_data.c(149) Service name :mul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: echo samples with Axis2/C Module for Apache2
Incidentally, someone should probably update the manual to state: AXIS2C_HOME/bin/samples/echo http://localhost/axis2/services/echo As it is written, others might do exactly what I did and invoke the linux echo command. --Jack -Original Message- From: Samisa Abeysinghe [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 10, 2008 1:50 PM To: Apache AXIS C User List Subject: Re: echo samples with Axis2/C Module for Apache2 Did you try ./echo Samisa... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FAQ: Axis2/C with C++
I was reading the FAQ and the response to How can I use Axis2/C with C++? doesn't seem to have an answer I can work with. If I wrote my code in C++, then how would I have 'C' source files and 'C' code to wrap in an extern? Am I missing something here? I think this FAQ answer needs a bit more detail for someone unfamiliar with 'C' externs. Jack Gold
Re: [Axis2] handlers per operation
I've been down that road and it is not what I am looking for. If I do this then I need to hard-code the comparison to the SOAP action and I'd rather not do that. If the operation name ever changes then I'd need to go back and change the code. That is not ideal. Robert Wierschke wrote: Hi, you may read the SOAP action from the message and decide whether the handler should do anything or not. regards robert 2008/7/18 Jack Sprat [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: Hello. Is there a way to add handlers only for specific operations in a service and not for all? For example, I'd like to validate the user/password in the SOAP header on all operations except the simple echo operation. I have a handler set in the axis2.xml confg. file but that applies to all operations. Thanks, T
[Axis2] handlers per operation
Hello. Is there a way to add handlers only for specific operations in a service and not for all? For example, I'd like to validate the user/password in the SOAP header on all operations except the simple echo operation. I have a handler set in the axis2.xml confg. file but that applies to all operations. Thanks, T
Re: [Axis2] valid SOAP operations
AxisService service = messageContext.getAxisService() Jack Sprat [EMAIL PROTECTED] wrote: Where/how do I get the AxisService object in the code sample below? The code will be in the invoke method of my handler class that is invoked in the InFlow phase. Thanks. T Eran Chinthaka [EMAIL PROTECTED] wrote: AxisService service; // your axis service String action = messageContext.getSoapAction(); AxisOperation op = service.getOperationBySOAPAction(action); if (op == null) { op = service.getOperationByAction(action); } Please see [1] for more details. HTH, Chinthaka [1] : http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/dispatchers/ActionBasedOperationDispatcher.java?view=markup On Tue, May 27, 2008 at 10:58 AM, Jack Sprat [EMAIL PROTECTED] wrote: I think I've made the question more complicated than it needed to be. All I really need to know is whether the valid SOAP operations for a service are available in an Axis2 class somewhere? Something like getValidSOAPOpeations() that returns a list would be ideal. Otherwise I'll need to hard-code constants for each operation in the WSDL and compare the results of getSOAPAction to each one. Thanks, T keith chapman [EMAIL PROTECTED] wrote: Why not write a custom dispatcher that does this. After all this is what your trying to do (Dispatch to an operation using some custom information). You can have a look at the inbuilt dispatchers tp get an idea. Its pretty simple to write a new one. Thanks, Keith. On Tue, May 27, 2008 at 8:33 PM, Jack Sprat [EMAIL PROTECTED] wrote: What I am trying to do is validate the SOAP operation invoked in the handler class so I can take the appropriate action. I've found that many clients trying to consume the service don't know much about web services so they may send a request with no SOAPAction header or an invalid one. For example, my valid operations may be echo and calculate. Can these 2 operations be determined programatically somehow? I'd like to get the valid operations this way and compare what I got from the getSOAPAction() method to see if I got a valid operation. Basically, I'm trying to avoid hard-coding the operations in my Java code. Thanks, T keith chapman [EMAIL PROTECTED] wrote: Hi Jack, Can you state your requirement more clearly, that should help us provide you with a clear answer too. I couldn't understand what you are intending to do Thanks, Keith. On Tue, May 27, 2008 at 7:50 PM, Jack Sprat [EMAIL PROTECTED] wrote: I have a service that invokes a handler at the InFlow phase. Is there a way to programatically determine the valid SOAP operations at this point? I'd like to compare the value from getSOAPAction() to ensure a valid operation was requested. I'm open to a better way of doing this. Thanks, T.
Re: [Axis2] valid SOAP operations
It's not quite as simple as that. In this case, I was to bypass the authentication if a simple echo request is received. So I need to ensure the SOAPAction is valid and then check whether it is an echo request. If it is an echo then continue. If not, then authenticate the user in the SOAP header. Thanks, T Eran Chinthaka [EMAIL PROTECTED] wrote: Ok now I am getting the picture here. Are you trying to make sure the SOAP message that is just received has a proper operation name in it. If that is the case, don't worry about that, we are already doing that for you within dispatch phase. Dispatching is all about finding the correct service and operation. If we can not find it, we will send an error to the user, before the end of the dispatch phase. So your handler will be redundant if you put it. HTH Chinthaka On Fri, May 30, 2008 at 8:16 AM, Jack Sprat [EMAIL PROTECTED] wrote: AxisService service = messageContext.getAxisService() Jack Sprat [EMAIL PROTECTED] wrote: Where/how do I get the AxisService object in the code sample below? The code will be in the invoke method of my handler class that is invoked in the InFlow phase. Thanks. T Eran Chinthaka [EMAIL PROTECTED] wrote: AxisService service; // your axis service String action = messageContext.getSoapAction(); AxisOperation op = service.getOperationBySOAPAction(action); if (op == null) { op = service.getOperationByAction(action); } Please see [1] for more details. HTH, Chinthaka [1] : http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/dispatchers/ActionBasedOperationDispatcher.java?view=markup On Tue, May 27, 2008 at 10:58 AM, Jack Sprat [EMAIL PROTECTED] wrote: I think I've made the question more complicated than it needed to be. All I really need to know is whether the valid SOAP operations for a service are available in an Axis2 class somewhere? Something like getValidSOAPOpeations() that returns a list would be ideal. Otherwise I'll need to hard-code constants for each operation in the WSDL and compare the results of getSOAPAction to each one. Thanks, T keith chapman [EMAIL PROTECTED] wrote: Why not write a custom dispatcher that does this. After all this is what your trying to do (Dispatch to an operation using some custom information). You can have a look at the inbuilt dispatchers tp get an idea. Its pretty simple to write a new one. Thanks, Keith. On Tue, May 27, 2008 at 8:33 PM, Jack Sprat [EMAIL PROTECTED] wrote: What I am trying to do is validate the SOAP operation invoked in the handler class so I can take the appropriate action. I've found that many clients trying to consume the service don't know much about web services so they may send a request with no SOAPAction header or an invalid one. For example, my valid operations may be echo and calculate. Can these 2 operations be determined programatically somehow? I'd like to get the valid operations this way and compare what I got from the getSOAPAction() method to see if I got a valid operation. Basically, I'm trying to avoid hard-coding the operations in my Java code. Thanks, T keith chapman [EMAIL PROTECTED] wrote:Hi Jack, Can you state your requirement more clearly, that should help us provide you with a clear answer too. I couldn't understand what you are intending to do Thanks, Keith. On Tue, May 27, 2008 at 7:50 PM, Jack Sprat [EMAIL PROTECTED] wrote: I have a service that invokes a handler at the InFlow phase. Is there a way to programatically determine the valid SOAP operations at this point? I'd like to compare the value from getSOAPAction() to ensure a valid operation was requested. I'm open to a better way of doing this. Thanks, T.
[Axis2] endpoint domain
The domain of my WSDL endpoint location is being overlaid with an IP address when retrieving the WSDL using the ?wsdl parameter. The location looks like this in the WSDL: soap:address location=https://www.mydomain.com/mycontext/services/MyService; / but appears like this when accessing with the ?wsdl parameter: soap:address location=http://4.4.4.63:80/mycontext/services/MyService/ I have the useOriginalWSDL parameter set to true in the services.xml file. Will setting the modifyUserWSDLPortAddress parameter to false prevent this? Thanks, T.
Re: [Axis2] valid SOAP operations
Where/how do I get the AxisService object in the code sample below? The code will be in the invoke method of my handler class that is invoked in the InFlow phase. Thanks. T Eran Chinthaka [EMAIL PROTECTED] wrote: AxisService service; // your axis service String action = messageContext.getSoapAction(); AxisOperation op = service.getOperationBySOAPAction(action); if (op == null) { op = service.getOperationByAction(action); } Please see [1] for more details. HTH, Chinthaka [1] : http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/dispatchers/ActionBasedOperationDispatcher.java?view=markup On Tue, May 27, 2008 at 10:58 AM, Jack Sprat [EMAIL PROTECTED] wrote: I think I've made the question more complicated than it needed to be. All I really need to know is whether the valid SOAP operations for a service are available in an Axis2 class somewhere? Something like getValidSOAPOpeations() that returns a list would be ideal. Otherwise I'll need to hard-code constants for each operation in the WSDL and compare the results of getSOAPAction to each one. Thanks, T keith chapman [EMAIL PROTECTED] wrote: Why not write a custom dispatcher that does this. After all this is what your trying to do (Dispatch to an operation using some custom information). You can have a look at the inbuilt dispatchers tp get an idea. Its pretty simple to write a new one. Thanks, Keith. On Tue, May 27, 2008 at 8:33 PM, Jack Sprat [EMAIL PROTECTED] wrote: What I am trying to do is validate the SOAP operation invoked in the handler class so I can take the appropriate action. I've found that many clients trying to consume the service don't know much about web services so they may send a request with no SOAPAction header or an invalid one. For example, my valid operations may be echo and calculate. Can these 2 operations be determined programatically somehow? I'd like to get the valid operations this way and compare what I got from the getSOAPAction() method to see if I got a valid operation. Basically, I'm trying to avoid hard-coding the operations in my Java code. Thanks, T keith chapman [EMAIL PROTECTED] wrote: Hi Jack, Can you state your requirement more clearly, that should help us provide you with a clear answer too. I couldn't understand what you are intending to do Thanks, Keith. On Tue, May 27, 2008 at 7:50 PM, Jack Sprat [EMAIL PROTECTED] wrote: I have a service that invokes a handler at the InFlow phase. Is there a way to programatically determine the valid SOAP operations at this point? I'd like to compare the value from getSOAPAction() to ensure a valid operation was requested. I'm open to a better way of doing this. Thanks, T.
Re: [Axis2] valid SOAP operations
It is the last handler listed in the Dispatch phase of the InFlow phase order. Thanks, T Eran Chinthaka [EMAIL PROTECTED] wrote: Where in InFlow will be your handler? Tell me its location relative to dispatch phase, and don't tell me its before the dispatch phase ;) On Thu, May 29, 2008 at 10:25 AM, Jack Sprat [EMAIL PROTECTED] wrote: Where/how do I get the AxisService object in the code sample below? The code will be in the invoke method of my handler class that is invoked in the InFlow phase. Thanks. T Eran Chinthaka [EMAIL PROTECTED] wrote: AxisService service; // your axis service String action = messageContext.getSoapAction(); AxisOperation op = service.getOperationBySOAPAction(action); if (op == null) { op = service.getOperationByAction(action); } Please see [1] for more details. HTH, Chinthaka [1] : http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/dispatchers/ActionBasedOperationDispatcher.java?view=markup On Tue, May 27, 2008 at 10:58 AM, Jack Sprat [EMAIL PROTECTED] wrote: I think I've made the question more complicated than it needed to be. All I really need to know is whether the valid SOAP operations for a service are available in an Axis2 class somewhere? Something like getValidSOAPOpeations() that returns a list would be ideal. Otherwise I'll need to hard-code constants for each operation in the WSDL and compare the results of getSOAPAction to each one. Thanks, T keith chapman [EMAIL PROTECTED] wrote: Why not write a custom dispatcher that does this. After all this is what your trying to do (Dispatch to an operation using some custom information). You can have a look at the inbuilt dispatchers tp get an idea. Its pretty simple to write a new one. Thanks, Keith. On Tue, May 27, 2008 at 8:33 PM, Jack Sprat [EMAIL PROTECTED] wrote: What I am trying to do is validate the SOAP operation invoked in the handler class so I can take the appropriate action. I've found that many clients trying to consume the service don't know much about web services so they may send a request with no SOAPAction header or an invalid one. For example, my valid operations may be echo and calculate. Can these 2 operations be determined programatically somehow? I'd like to get the valid operations this way and compare what I got from the getSOAPAction() method to see if I got a valid operation. Basically, I'm trying to avoid hard-coding the operations in my Java code. Thanks, T keith chapman [EMAIL PROTECTED] wrote:Hi Jack, Can you state your requirement more clearly, that should help us provide you with a clear answer too. I couldn't understand what you are intending to do Thanks, Keith. On Tue, May 27, 2008 at 7:50 PM, Jack Sprat [EMAIL PROTECTED] wrote: I have a service that invokes a handler at the InFlow phase. Is there a way to programatically determine the valid SOAP operations at this point? I'd like to compare the value from getSOAPAction() to ensure a valid operation was requested. I'm open to a better way of doing this. Thanks, T.
[Axis2] ExceptionInInitializerError
I have an Axis2 1.2 service using XMLBeans 2.3 that has been working fine. A change was made to a schema so the beans were regenerated and all generated source was re-imported into the Eclipse project. Now the service fails with an ExceptionInInitializerError for all operations. The line where is fails is the following line in the finally block of the HTTPTransportUtils#processHTTPPostRequest method: msgContext.setEnvelope(new SOAP12Factory().getDefaultEnvelope()); The stack trace is below. 2008-05-27 15:39:36,031 ERROR AxisServlet - java.lang.ExceptionInInitializerError 2008-05-27 15:39:36,109 ERROR [AxisServlet] - Servlet.service() for servlet AxisServlet threw exception java.lang.NullPointerException at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:170) 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:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Unknown Source) NOTE - Subsequent calls fail with a java.lang.NoClassDefFoundError exception. What would cause this? Any help is appreciated. Thanks. T
Re: [Axis2] ExceptionInInitializerError
Problem solved. I needed to re-copy the schemaorg_apache_xmlbeans folder generated by the wsdl2java command back into the resources folder of the Eclipse project. Jack Sprat [EMAIL PROTECTED] wrote: I have an Axis2 1.2 service using XMLBeans 2.3 that has been working fine. A change was made to a schema so the beans were regenerated and all generated source was re-imported into the Eclipse project. Now the service fails with an ExceptionInInitializerError for all operations. The line where is fails is the following line in the finally block of the HTTPTransportUtils#processHTTPPostRequest method: msgContext.setEnvelope(new SOAP12Factory().getDefaultEnvelope()); The stack trace is below. 2008-05-27 15:39:36,031 ERROR AxisServlet - java.lang.ExceptionInInitializerError 2008-05-27 15:39:36,109 ERROR [AxisServlet] - Servlet.service() for servlet AxisServlet threw exception java.lang.NullPointerException at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:170) 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:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Unknown Source) NOTE - Subsequent calls fail with a java.lang.NoClassDefFoundError exception. What would cause this? Any help is appreciated. Thanks. T
[Axis2] valid SOAP operations
I have a service that invokes a handler at the InFlow phase. Is there a way to programatically determine the valid SOAP operations at this point? I'd like to compare the value from getSOAPAction() to ensure a valid operation was requested. I'm open to a better way of doing this. Thanks, T.
Re: WS-I Basic profile error
That made the errors disappear. Thanks so much for the tip! Lawrence Mandel [EMAIL PROTECTED] wrote: I think you're seeing these errors because you haven't specified the name attribute on your binding input and output elements. For example, ... / message=tns:availableResponseMsg / / ... ... style=document / use=literal / Lawrence T. Allen 04/08/2008 11:01 AM Please respond to axis-user@ws.apache.org To axis-user@ws.apache.org cc Subject Re: WS-I Basic profile error Below is the output. Warning: This web reference does not conform to WS-I Basic Profile v1.1. R2718: A wsdl:binding in a DESCRIPTION MUST have the same set of wsdl:operations as the wsdl:portType to which it refers. - Operation 'imageCheck' on portType 'imageViewPortType' from namespace 'http://ws.myco.com/imageview' has no matching binding. - Operation 'imageView' on portType 'imageViewPortType' from namespace 'http://ws.myco.com/imageview' has no matching binding. - Operation 'imageCheck' on binding 'imageViewBinding' from namespace 'http://ws.myco.com/imageview' has no matching operation on portType 'imageViewPortType' from namespace 'http://ws.myco.com/imageview'. - Operation 'imageCheck' on binding 'imageViewBinding' from namespace 'http://ws.myco.com/imageview' has no matching operation on portType 'imageViewPortType' from namespace 'http://ws.myco.com/imageview'. - Operation 'imageView' on binding 'imageViewBinding' from namespace 'http://ws.myco.com/imageview' has no matching operation on portType 'imageViewPortType' from namespace 'http://ws.myco.com/imageview'. - Operation 'imageView' on binding 'imageViewBinding' from namespace 'http://ws.myco.com/imageview' has no matching operation on portType 'imageViewPortType' from namespace 'http://ws.myco.com/imageview'. Thanks very much for any help. T Anne Thomas Manes wrote: Please provide the specific error(s). Anne On Mon, Apr 7, 2008 at 1:17 PM, Jack Sprat wrote: I have a WSDL that passes WS-I basic profile validation when run from the latest version of soapUI. I have a partner using .Net to consume the service that gets an error when trying to create a Web Reference to it. I'm trying to debug the problem for him and found that the Microsoft wsdl.exe tool is complaining that the WSDL does not conform to the WS-I Basic Profile 1.1. The errors indicate the operations have no matching binding but I cannot see the errors. Can someone lend a hand? This has me stumped. The WSDL is below. targetNamespace=http://ws.myco.com/imageview; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:tns=http://ws.myco.com/imageview; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; elementFormDefault=qualified xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:tns=http://ws.myco.com/imageview; targetNamespace=http://ws.myco.com/imageview; here. -- type=tns:PasswordType / / / / / message=tns:echoResponseMsg / message=tns:availableRequestMsg / message=tns:availableResponseMsg / message=tns:generalErrorMsg / message=tns:schemaErrorMsg / message=tns:imagesRequestMsg / message=tns:imagesResponseMsg / message=tns:generalErrorMsg / message=tns:schemaErrorMsg / xmlns:wsi=http://ws-i.org/schemas/conformanceClaim/; / transport=http://schemas.xmlsoap.org/soap/http; / style=document / style=document / part=authentication use=literal
WS-I Basic profile error
I have a WSDL that passes WS-I basic profile validation when run from the latest version of soapUI. I have a partner using .Net to consume the service that gets an error when trying to create a Web Reference to it. I'm trying to debug the problem for him and found that the Microsoft wsdl.exe tool is complaining that the WSDL does not conform to the WS-I Basic Profile 1.1. The errors indicate the operations have no matching binding but I cannot see the errors. Can someone lend a hand? This has me stumped. The WSDL is below. ?xml version=1.0 encoding=UTF-8? wsdl:definitions name=imageViewService targetNamespace=http://ws.myco.com/imageview; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:tns=http://ws.myco.com/imageview; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; wsdl:types xsd:schema attributeFormDefault=unqualified elementFormDefault=qualified xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:tns=http://ws.myco.com/imageview; targetNamespace=http://ws.myco.com/imageview; !-- Reference all the schemas -- xsd:include schemaLocation=availableImagesRequest.xsd/ xsd:include schemaLocation=availableImagesResponse.xsd/ xsd:include schemaLocation=imagesRequest.xsd/ xsd:include schemaLocation=imagesResponse.xsd/ !-- Define simple types used in SOAP request/response here. -- xsd:complexType name=AuthenticationType xsd:sequence xsd:element name=user type=tns:UserType / xsd:element name=password type=tns:PasswordType / /xsd:sequence /xsd:complexType xsd:simpleType name=EchoRequestType xsd:restriction base=xsd:string xsd:maxLength value=100 / /xsd:restriction /xsd:simpleType xsd:simpleType name=PasswordType xsd:restriction base=xsd:string xsd:minLength value=5 / xsd:maxLength value=10 / /xsd:restriction /xsd:simpleType xsd:simpleType name=UserType xsd:restriction base=xsd:string xsd:minLength value=5 / xsd:maxLength value=10 / /xsd:restriction /xsd:simpleType !-- Define SOAP message names here. -- !-- Authentication SOAP Header -- xsd:element name=auth type=tns:AuthenticationType / !-- General Fault -- xsd:element name=generalError type=xsd:string / !-- Schema Validation Fault -- xsd:element name=schemaError type=xsd:string / !-- Echo Request Type -- xsd:element name=echoRequest type=tns:EchoRequestType / !-- Echo Response Type -- xsd:element name=echoResponse type=xsd:string / /xsd:schema /wsdl:types !-- Define SOAP messages here. -- !-- = Authentication SOAP Header = -- wsdl:message name=authenticationMsg wsdl:part element=tns:auth name=authentication / /wsdl:message !-- = General Fault = -- wsdl:message name=generalErrorMsg wsdl:part element=tns:generalError name=fault / /wsdl:message !-- = Schema Validation Fault = -- wsdl:message name=schemaErrorMsg wsdl:part element=tns:schemaError name=fault / /wsdl:message !-- = Echo = -- wsdl:message name=echoRequestMsg wsdl:part element=tns:echoRequest name=echoRequest / /wsdl:message wsdl:message name=echoResponseMsg wsdl:part element=tns:echoResponse name=echoResponse / /wsdl:message !-- = Available Images = -- wsdl:message name=availableRequestMsg wsdl:part element=tns:availRequest name=availableRequest / /wsdl:message wsdl:message name=availableResponseMsg wsdl:part element=tns:availResponse name=availableResponse / /wsdl:message !-- = Document Images = -- wsdl:message name=imagesRequestMsg wsdl:part element=tns:imgRequest name=imagesRequest / /wsdl:message wsdl:message name=imagesResponseMsg wsdl:part element=tns:imgResponse name=imagesResponse / /wsdl:message !-- Define operations (one way or round-trip) here. -- wsdl:portType name=imageViewPortType wsdl:operation name=echo wsdl:input name=echoRequest message=tns:echoRequestMsg / wsdl:output name=echoResponse message=tns:echoResponseMsg / /wsdl:operation wsdl:operation name=imageCheck wsdl:input name=availableRequest message=tns:availableRequestMsg / wsdl:output name=availableResponse message=tns:availableResponseMsg /
Re: [Axis2] UnsupportedOperationException: TODO
For anyone using Websphere version 6.1, this appears to be a bug that was corrected with fix pack5. See this link: http://www-1.ibm.com/support/docview.wss?rs=180uid=swg1PK29135 T Jack Sprat [EMAIL PROTECTED] wrote: I am trying to validate an XML file against a schema and get an UnsupportedOperationException with a message of TODO (no quotes) when running in Websphere 6.1. This does not fail in Tomcat 5.5 Here is a snippet of the stack trace: java.lang.UnsupportedOperationException: TODO at org.apache.axiom.om.impl.dom.DocumentImpl.getDoctype(DocumentImpl.java:225) at org.apache.xerces.jaxp.validation.DOMValidatorHelper.setupEntityMap(Unknown Source) at org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown Source) at org.apache.xerces.jaxp.validation.ValidatorImpl.validate(Unknown Source) at javax.xml.validation.Validator.validate(Unknown Source) ... The source of the Axiom 1.2.4 DocumentImpl#getDocType method: public DocumentType getDoctype() { // TODO throw new UnsupportedOperationException(TODO); } Is the wrong DOM implementation being used? If so, how can I fix this?? I'm using Axis2-1.2. Thanks, T - Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out.
[Axis2] UnsupportedOperationException: TODO
I am trying to validate an XML file against a schema and get an UnsupportedOperationException with a message of TODO (no quotes) when running in Websphere 6.1. This does not fail in Tomcat 5.5 Here is a snippet of the stack trace: java.lang.UnsupportedOperationException: TODO at org.apache.axiom.om.impl.dom.DocumentImpl.getDoctype(DocumentImpl.java:225) at org.apache.xerces.jaxp.validation.DOMValidatorHelper.setupEntityMap(Unknown Source) at org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown Source) at org.apache.xerces.jaxp.validation.ValidatorImpl.validate(Unknown Source) at javax.xml.validation.Validator.validate(Unknown Source) ... The source of the Axiom 1.2.4 DocumentImpl#getDocType method: public DocumentType getDoctype() { // TODO throw new UnsupportedOperationException(TODO); } Is the wrong DOM implementation being used? If so, how can I fix this?? I'm using Axis2-1.2. Thanks, T - Catch up on fall's hot new shows on Yahoo! TV. Watch previews, get listings, and more!
[Axis2] schema validation exception
I am getting an UnsupportedOperation Exception each time I try to validate an OMElement against a schema. I am using Axis2 1.2 with no data binding so my service class receives an OMElement object. The validation code is quite simple: // Get XML stream reader from OMElement received XMLStreamReader reader = doc.getXMLStreamReader(); //Create the DOOM OMFactory OMFactory doomFactory = DOOMAbstractFactory.getOMFactory(); //Create the new builder StAXOMBuilder doomBuilder = new StAXOMBuilder(doomFactory, reader); //Get the document element OMElement omElem = doomBuilder.getDocumentElement(); try { SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); Schema xsd = factory.newSchema(schemaLocation); Validator validator = xsd.newValidator(); validator.validate(new DOMSource((Element) omElem)); return true; } catch (Exception e) { return false; } Below is a snippet of the stack trace: java.lang.UnsupportedOperationException: TODO at org.apache.axiom.om.impl.dom.DocumentImpl.getDoctype(DocumentImpl.java:225) at org.apache.xerces.jaxp.validation.DOMValidatorHelper.setupEntityMap(Unknown Source) at org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown Source) at org.apache.xerces.jaxp.validation.ValidatorImpl.validate(Unknown Source) at javax.xml.validation.Validator.validate(Unknown Source) Note that this works fine in Tomcat 5.5 but chokes in Websphere 6.1 so I suspect there is a class loading issue somewhere. What could be the problem?? Thanks, T - Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us.
Re: [Axis2] schema validation exception
I am using the Axiom and Xerces JAR files included with the Axis2-1.2 distribution: axiom-api-1.2.4.jar axiom-dom-1.2.4.jar axiom-impl-1.2.4.jar xercesImpl-2.8.1.jar I assume those are the right ones?? These are included in the deployed WAR file. I went through the pain of my 1st Websphere installation a few weeks back so I knew to set the parent class loader to last. Is there anything else I should check? I've been flustered thus far. - T Martin Gainty [EMAIL PROTECTED] wrote: For your websphere environment check the version of axiom jar (assume axiom-api-1.1.1.jar) check the version of Xerces (assume version 2.8.0 xercesImpl.jar) in either case I would copy the 2 good jars to your webspere deployment library folder HTH M-- - Original Message - From:JackSprat To: axis-user@ws.apache.org Sent: Monday, September 24, 2007 12:53PM Subject: [Axis2] schema validationexception I am gettingan UnsupportedOperation Exception each time I try to validate an OMElementagainst a schema. I am using Axis2 1.2 with no data binding so myservice class receives an OMElement object. The validation code is quite simple: // Get XML stream readerfrom OMElement received XMLStreamReader reader = doc.getXMLStreamReader(); //Create the DOOM OMFactory OMFactory doomFactory =DOOMAbstractFactory.getOMFactory(); //Create the new builder StAXOMBuilder doomBuilder = new StAXOMBuilder(doomFactory, reader); //Get the documentelement OMElement omElem =doomBuilder.getDocumentElement(); try { SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); Schema xsd =factory.newSchema(schemaLocation); Validator validator =xsd.newValidator(); validator.validate(new DOMSource((Element)omElem)); returntrue; } catch (Exception e) { return false; } Below is a snippet of the stack trace: java.lang.UnsupportedOperationException: TODO at org.apache.axiom.om.impl.dom.DocumentImpl.getDoctype(DocumentImpl.java:225) at org.apache.xerces.jaxp.validation.DOMValidatorHelper.setupEntityMap(Unknown Source) at org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown Source) at org.apache.xerces.jaxp.validation.ValidatorImpl.validate(Unknown Source) at javax.xml.validation.Validator.validate(Unknown Source) Note that this works fine in Tomcat 5.5 but chokes in Websphere 6.1 so I suspect there is a class loading issue somewhere. What could be the problem?? Thanks, T - Luggage? GPS? Comic books? Check out fitting gifts for grads at Yahoo! Search.
[Axis2] NoSuchMethodException
I'm using Axis2 1.2 and have turned on log4j debugging on the root to display all DEBUG level messages. I see a NoSuchMethodException on each request: 2007-08-06 15:51:42,264 DEBUG DependencyManager - Exception trying to call init java.lang.NoSuchMethodException: com.mycomp.ws.service.producer.ServiceSkeleton.init(org.apache.axis2.context.ServiceContext) at java.lang.Class.throwNoSuchMethodException(Class.java:275) at java.lang.Class.getMethod(Class.java:780) at org.apache.axis2.engine.DependencyManager.initServiceClass(DependencyManager.java:53) at org.apache.axis2.receivers.AbstractMessageReceiver.getTheImplementationObject(AbstractMessageReceiver.java:170) What is causing this exception? Is this error anything to be concerned about? Thanks, T - Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos more.
Re: [Axis2] NoSuchMethodException
Thanks for the quick reply. Is there any further info. on this exception that you can provide? Is there anything I can do to prevent it from happening? Thanks, T Davanum Srinivas [EMAIL PROTECTED] wrote: Safe to ignore this. -- dims On 8/7/07, Jack Sprat wrote: I'm using Axis2 1.2 and have turned on log4j debugging on the root to display all DEBUG level messages. I see a NoSuchMethodException on each request: 2007-08-06 15:51:42,264 DEBUG DependencyManager - Exception trying to call init java.lang.NoSuchMethodException: com.mycomp.ws.service.producer.ServiceSkeleton.init(org.apache.axis2.context.ServiceContext) at java.lang.Class.throwNoSuchMethodException(Class.java:275) at java.lang.Class.getMethod(Class.java:780) at org.apache.axis2.engine.DependencyManager.initServiceClass(DependencyManager.java:53) at org.apache.axis2.receivers.AbstractMessageReceiver.getTheImplementationObject(AbstractMessageReceiver.java:170) What is causing this exception? Is this error anything to be concerned about? Thanks, T - Got a little couch potato? Check out fun summer activities for kids.
Re: [Axis2] NoSuchMethodException
Excellent! Another reason to get version 1.3... Thanks, T Deepal Jayasinghe [EMAIL PROTECTED] wrote: The issue is fixed in 1.3 Thanks Deepal Davanum Srinivas wrote: add a dummy method - init(org.apache.axis2.context.ServiceContext) On 8/7/07, Jack Sprat wrote: Thanks for the quick reply. Is there any further info. on this exception that you can provide? Is there anything I can do to prevent it from happening? Thanks, T Davanum Srinivas wrote: Safe to ignore this. -- dims On 8/7/07, Jack Sprat wrote: I'm using Axis2 1.2 and have turned on log4j debugging on the root to display all DEBUG level messages. I see a NoSuchMethodException on each request: 2007-08-06 15:51:42,264 DEBUG DependencyManager - Exception trying to call init java.lang.NoSuchMethodException: com.mycomp.ws.service.producer.ServiceSkeleton.init(org.apache.axis2.context.ServiceContext) at java.lang.Class.throwNoSuchMethodException(Class.java:275) at java.lang.Class.getMethod(Class.java:780) at org.apache.axis2.engine.DependencyManager.initServiceClass(DependencyManager.java:53) at org.apache.axis2.receivers.AbstractMessageReceiver.getTheImplementationObject(AbstractMessageReceiver.java:170) What is causing this exception? Is this error anything to be concerned about? Thanks, T - Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
[Axis2] Websphere 6.1 deployment error
I have an Axis2 1.2 service that works fine on Tomcat 5.5. All the Axis2 artifacts are contained in one big WAR file. Deploying the WAR file to Websphere 6.1 yields the following error: INFO ServiceDeployer - The imageview service, which is not valid, caused java.lang.NoSuchMethodError: javax/wsdl/Operation.getExtensibilityElements()Ljava/util/List; I've set the class loading to parent last for this web application but get the same result. I've also tried setting the server-specific application settings to Single classloader policy and Parent Last for the class loading policy. No luck. There must be some sort of class loading error happening here. Any tips would be *greatly* appreciated. Thanks, T - Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV.
Re: RE [Axis2] Websphere 6.1 deployment error
I already had the application itself set to loading parent last. However, I had not changed the WAR class loader policy option to single class loader for application. Making that change got rid of the error, but now when I try to invoke my service I get the following error: Error 404: SRVE0201E: Servlet [org.apache.axis2.transport.http.AxisServlet]: not a servlet class What could be causing this? Thanks, T [EMAIL PROTECTED] wrote: I'm running Axis2 with websphere 6.1 without any problem. The issue you have seems to be the same as the one depicted here: http://ws.apache.org/muse/docs/2.2.0/manual/troubleshooting/wsdl4j-version-on-websphere.html Pierre Jack Sprat [EMAIL PROTECTED] 31/07/2007 16:25Veuillez répondre à axis-user@ws.apache.org A axis-user@ws.apache.org cc Objet [Axis2] Websphere 6.1 deployment error I have an Axis2 1.2 service that works fine on Tomcat 5.5. All the Axis2 artifacts are contained in one big WAR file. Deploying the WAR file to Websphere 6.1 yields the following error: INFO ServiceDeployer - The imageview service, which is not valid, caused java.lang.NoSuchMethodError: javax/wsdl/Operation.getExtensibilityElements()Ljava/util/List; I've set the class loading to parent last for this web application but get the same result. I've also tried setting the server-specific application settings to Single classloader policy and Parent Last for the class loading policy. No luck. There must be some sort of class loading error happening here. Any tips would be *greatly* appreciated. Thanks, T - Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos more.
Re: RE [Axis2] Websphere 6.1 deployment error
Thank you very much or the tip! Removing the servletapi-2.3.jar file from the WAR file seemed to do the trick. The error that the AxisServlet is not a servlet is gone and I see the AxisServlet and SOAPMonitorService initialized. I was able to run a successful echo test. I'm not sure I am home free yet, but getting a successful echo test was a big step. This has been quite an ordeal. I'll post Websphere 6.1 tips when I get everything up and running to help those who dare to tackle this in the future. Thanks, T Marcel Urbanek [EMAIL PROTECTED] wrote: Hi, the reason for this error message is usually, that you included the javax.servlet.Servlet class somewhere in a jar in your web-inf/lib directory. Delete that jar and it should work. If you have classloader problems regarding axis2, it may help to add the jars by adding them as shared library instead of copying them to your web-inf/lib Marcel Jack Sprat schrieb: I already had the application itself set to loading parent last. However, I had not changed the WAR class loader policy option to single class loader for application. Making that change got rid of the error, but now when I try to invoke my service I get the following error: Error 404: SRVE0201E: Servlet [org.apache.axis2.transport.http.AxisServlet]: not a servlet class What could be causing this? Thanks, T */[EMAIL PROTECTED]/* wrote: I'm running Axis2 with websphere 6.1 without any problem. The issue you have seems to be the same as the one depicted here: http://ws.apache.org/muse/docs/2.2.0/manual/troubleshooting/wsdl4j-version-on-websphere.html Pierre *Jack Sprat * 31/07/2007 16:25 Veuillez répondre à axis-user@ws.apache.org A axis-user@ws.apache.org cc Objet [Axis2] Websphere 6.1 deployment error I have an Axis2 1.2 service that works fine on Tomcat 5.5. All the Axis2 artifacts are contained in one big WAR file. Deploying the WAR file to Websphere 6.1 yields the following error: INFO ServiceDeployer - The imageview service, which is not valid, caused java.lang.NoSuchMethodError: javax/wsdl/Operation.getExtensibilityElements()Ljava/util/List; I've set the class loading to parent last for this web application but get the same result. I've also tried setting the server-specific application settings to Single classloader policy and Parent Last for the class loading policy. No luck. There must be some sort of class loading error happening here. Any tips would be *greatly* appreciated. Thanks, T - Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
Re: [Axis2] SOAPMonitorApplet port
The SOAP monitor is now working fine in my Axis2 web service. Many thanks to Robert Lazasrki for the assistance. It turns out that the port error occurs only when running Tomcat 5.5 within Eclipse. Also the messages referring to a null handler for the SOAP monitor phase can be ignored. One other confusing aspect of getting this running is that the port specified in the web.xml file is NOT the port used in the URL of the SOAP monitor. For example, port 5001 was defined in the web.xml file but the URL is: http://localhost:8080/service_name/SOAPMonitor I was trying: http://localhost:5001/service_name/SOAPMonitor Thanks, T robert lazarski [EMAIL PROTECTED] wrote: Search for 'Deploying module' - you may be doing it twice as that's the only thing I can think of. Sure you only have one war with axis2 ? When you shutdown tomcat, is java.exe still holding on to ports 5001, 3901 etc ? BTW, I just tested the soapmonitor with the 1.3 branch nightly from yesterday and it can use other ports like 3901 just fine. I'll improve the debugging a little to indicate what port its going to bind to. A suggestion is to use the 1.3 branch war as I mentioned last post - it'll be final shortly and as I said with that code I can't reproduce your problem. Also, sure, send me the logs off list and maybe I'll see something. HTH, Robert On 7/27/07, Jack Sprat wrote: Robert, Setting the log4j level to DEBUG produced quite a lot of messages in the Tomcat 5.5 console within Eclipse upon startup. There are a bunch of sax and Digester messages prior to the port error, but nothing that looks related. The 2 messages immediately before the port error are: 2007-07-27 11:16:46,687 DEBUG [/Eclipse_project_name] - Sending application start events 2007-07-27 11:16:46,687 DEBUG [/Eclipse_project_name] - Starting filters Is there anything in particular I should be looking for? I could send all the messages to you off-list. Thanks, T robert lazarski wrote: What version are you using? That's a pretty strange problem. There are people that use this tool and I've never heard of an issue like this. We're about to do a release soon - can you try these? http://people.apache.org/dist/axis2/nightly/axis2-1.3-SNAPSHOT-bin.zip http://people.apache.org/dist/axis2/nightly/axis2-1.3-SNAPSHOT-war.zip I can't think of anything off hand on windows that could track down what class loaded by java.exe is using the port. Can you put WEB-INF/classes/log4j.properties in DEBUG, along with a log4j.jar in WEB-INF/lib . That should create a bunch of axis2 content on catalina.out. If you could send that to this list, we might be able to track it down. Robert On 7/26/07, Jack Sprat wrote: Hi Robert, Only the Java executable (javaw.exe) is using the port. It does not matter what port I set in web.xml - it is always in use by the Java executable. I thought I could find an open port, but it does not seem to matter which one I use. It is *always* taken by javaw.exe. It''s almost like Axis2 is reserving the port and then trying to use it again, causing the bind error. Thanks, T robert lazarski wrote: What is connected to 3901 ? There's 65,000 or so ports, so I'm sure you should be able to find one of them open ;-) . HTH, Robert On 7/26/07, Jack Sprat wrote: Hi Robert. I used ActivePorts for Windows, as suggested earlier. This showed the port specified in web.xml as occupied by javaw.exe. What could be the problem here? Thanks again for trying to help. T robert lazarski wrote: I'm not a windows user, but you do have the netstat command that can help you track your occupied ports. On linux it'd be 'netstat -ancp | grep 5001' . You can engage the module in either services.xml or axis2.xml - but not both. engaging in axis2.xml make the module available for all services, whereas alternatively engaging in the services,xml makes to module available to just that service. If all else fails, you could use tcpmon as an alternative. HTH, Robert On 7/25/07, Jack Sprat wrote: Hi Robert. Thanks for trying to help. This has me quite confused. The Tomcat console says that the server socket on the port specified in web.xml cannot be opened. If I set port 3901 then the console says port 3901 cannot be opened. Same for port 5001. The ports show as used by the javaw.exe process. My only other question on the SOAP monitor applet is where to set the module ref. I have this set in the services.xml file. This is the same as the logging module, with the instructions here: http://ws.apache.org/axis2/1_1/modules.html But the SOAP monitor page says to set the module reference in the axis2.xml file. Which is right? Axis2 with Tomcat 5.5 Thanks, T robert lazarski wrote: When you set the port to 3901, does it still say cannot connect
Re: [Axis2] SOAPMonitorApplet port
Robert, Setting the log4j level to DEBUG produced quite a lot of messages in the Tomcat 5.5 console within Eclipse upon startup. There are a bunch of sax and Digester messages prior to the port error, but nothing that looks related. The 2 messages immediately before the port error are: 2007-07-27 11:16:46,687 DEBUG [/Eclipse_project_name] - Sending application start events 2007-07-27 11:16:46,687 DEBUG [/Eclipse_project_name] - Starting filters Is there anything in particular I should be looking for? I could send all the messages to you off-list. Thanks, T robert lazarski [EMAIL PROTECTED] wrote: What version are you using? That's a pretty strange problem. There are people that use this tool and I've never heard of an issue like this. We're about to do a release soon - can you try these? http://people.apache.org/dist/axis2/nightly/axis2-1.3-SNAPSHOT-bin.zip http://people.apache.org/dist/axis2/nightly/axis2-1.3-SNAPSHOT-war.zip I can't think of anything off hand on windows that could track down what class loaded by java.exe is using the port. Can you put WEB-INF/classes/log4j.properties in DEBUG, along with a log4j.jar in WEB-INF/lib . That should create a bunch of axis2 content on catalina.out. If you could send that to this list, we might be able to track it down. Robert On 7/26/07, Jack Sprat wrote: Hi Robert, Only the Java executable (javaw.exe) is using the port. It does not matter what port I set in web.xml - it is always in use by the Java executable. I thought I could find an open port, but it does not seem to matter which one I use. It is *always* taken by javaw.exe. It''s almost like Axis2 is reserving the port and then trying to use it again, causing the bind error. Thanks, T robert lazarski wrote: What is connected to 3901 ? There's 65,000 or so ports, so I'm sure you should be able to find one of them open ;-) . HTH, Robert On 7/26/07, Jack Sprat wrote: Hi Robert. I used ActivePorts for Windows, as suggested earlier. This showed the port specified in web.xml as occupied by javaw.exe. What could be the problem here? Thanks again for trying to help. T robert lazarski wrote: I'm not a windows user, but you do have the netstat command that can help you track your occupied ports. On linux it'd be 'netstat -ancp | grep 5001' . You can engage the module in either services.xml or axis2.xml - but not both. engaging in axis2.xml make the module available for all services, whereas alternatively engaging in the services,xml makes to module available to just that service. If all else fails, you could use tcpmon as an alternative. HTH, Robert On 7/25/07, Jack Sprat wrote: Hi Robert. Thanks for trying to help. This has me quite confused. The Tomcat console says that the server socket on the port specified in web.xml cannot be opened. If I set port 3901 then the console says port 3901 cannot be opened. Same for port 5001. The ports show as used by the javaw.exe process. My only other question on the SOAP monitor applet is where to set the module ref. I have this set in the services.xml file. This is the same as the logging module, with the instructions here: http://ws.apache.org/axis2/1_1/modules.html But the SOAP monitor page says to set the module reference in the axis2.xml file. Which is right? Axis2 with Tomcat 5.5 Thanks, T robert lazarski wrote: When you set the port to 3901, does it still say cannot connect to 5001? Can you try RC2? I'll try to give this scenario a spin today. HTH, Robert On 7/24/07, Jack Sprat wrote: I've tried ports 3901, 5001 and 5050. All gave the same result. robert lazarski wrote: Have you tried changing to another port in the web.xml? HTH, Robert On 7/24/07, Jack Sprat wrote: I've followed the instructions for setting up the SOAP monitor applet here: http://ws.apache.org/axis2/1_2/soapmonitor-module.html Whenever I start my server I get the following errors: 2007-07-24 18:18:20,468 ERROR SOAPMonitorService - Unable to open server socket using port: 5001 2007-07-24 18:18:20,484 ERROR SOAPMonitorService - Address already in use: JVM_Bind It does not seem to matter what port is used. What am I doing wrong? Thanks, T - Got a little couch potato? Check out fun summer activities for kids.
Re: [Axis2] SOAPMonitorApplet port
It looks like the port binding error occurs only when starting Tomcat 5.5 within the Eclipse WTP. I don't see the error when deploying the WAR file directly to Tomcat 5.5 However I see this message 12 times upon startup: Handler null added to Phase soapmonitorPhase Then when I invoke an operation I see: Invoking Handler 'null' in Phase 'soapmonitorPhase' My logging module works fine so I am fairly sure I deployed the SOAP monitor module right. Thanks, T robert lazarski [EMAIL PROTECTED] wrote: Search for 'Deploying module' - you may be doing it twice as that's the only thing I can think of. Sure you only have one war with axis2 ? When you shutdown tomcat, is java.exe still holding on to ports 5001, 3901 etc ? BTW, I just tested the soapmonitor with the 1.3 branch nightly from yesterday and it can use other ports like 3901 just fine. I'll improve the debugging a little to indicate what port its going to bind to. A suggestion is to use the 1.3 branch war as I mentioned last post - it'll be final shortly and as I said with that code I can't reproduce your problem. Also, sure, send me the logs off list and maybe I'll see something. HTH, Robert On 7/27/07, Jack Sprat wrote: Robert, Setting the log4j level to DEBUG produced quite a lot of messages in the Tomcat 5.5 console within Eclipse upon startup. There are a bunch of sax and Digester messages prior to the port error, but nothing that looks related. The 2 messages immediately before the port error are: 2007-07-27 11:16:46,687 DEBUG [/Eclipse_project_name] - Sending application start events 2007-07-27 11:16:46,687 DEBUG [/Eclipse_project_name] - Starting filters Is there anything in particular I should be looking for? I could send all the messages to you off-list. Thanks, T robert lazarski wrote: What version are you using? That's a pretty strange problem. There are people that use this tool and I've never heard of an issue like this. We're about to do a release soon - can you try these? http://people.apache.org/dist/axis2/nightly/axis2-1.3-SNAPSHOT-bin.zip http://people.apache.org/dist/axis2/nightly/axis2-1.3-SNAPSHOT-war.zip I can't think of anything off hand on windows that could track down what class loaded by java.exe is using the port. Can you put WEB-INF/classes/log4j.properties in DEBUG, along with a log4j.jar in WEB-INF/lib . That should create a bunch of axis2 content on catalina.out. If you could send that to this list, we might be able to track it down. Robert On 7/26/07, Jack Sprat wrote: Hi Robert, Only the Java executable (javaw.exe) is using the port. It does not matter what port I set in web.xml - it is always in use by the Java executable. I thought I could find an open port, but it does not seem to matter which one I use. It is *always* taken by javaw.exe. It''s almost like Axis2 is reserving the port and then trying to use it again, causing the bind error. Thanks, T robert lazarski wrote: What is connected to 3901 ? There's 65,000 or so ports, so I'm sure you should be able to find one of them open ;-) . HTH, Robert On 7/26/07, Jack Sprat wrote: Hi Robert. I used ActivePorts for Windows, as suggested earlier. This showed the port specified in web.xml as occupied by javaw.exe. What could be the problem here? Thanks again for trying to help. T robert lazarski wrote: I'm not a windows user, but you do have the netstat command that can help you track your occupied ports. On linux it'd be 'netstat -ancp | grep 5001' . You can engage the module in either services.xml or axis2.xml - but not both. engaging in axis2.xml make the module available for all services, whereas alternatively engaging in the services,xml makes to module available to just that service. If all else fails, you could use tcpmon as an alternative. HTH, Robert On 7/25/07, Jack Sprat wrote: Hi Robert. Thanks for trying to help. This has me quite confused. The Tomcat console says that the server socket on the port specified in web.xml cannot be opened. If I set port 3901 then the console says port 3901 cannot be opened. Same for port 5001. The ports show as used by the javaw.exe process. My only other question on the SOAP monitor applet is where to set the module ref. I have this set in the services.xml file. This is the same as the logging module, with the instructions here: http://ws.apache.org/axis2/1_1/modules.html But the SOAP monitor page says to set the module reference in the axis2.xml file. Which is right? Axis2 with Tomcat 5.5 Thanks, T robert lazarski wrote: When you set the port to 3901, does it still say cannot connect to 5001? Can you try RC2? I'll try to give this scenario a spin today. HTH, Robert On 7/24/07, Jack Sprat wrote: I've tried ports 3901, 5001
Re: [Axis2] SOAPMonitorApplet port
Hi Robert, Only the Java executable (javaw.exe) is using the port. It does not matter what port I set in web.xml - it is always in use by the Java executable. I thought I could find an open port, but it does not seem to matter which one I use. It is *always* taken by javaw.exe. It''s almost like Axis2 is reserving the port and then trying to use it again, causing the bind error. Thanks, T robert lazarski [EMAIL PROTECTED] wrote: What is connected to 3901 ? There's 65,000 or so ports, so I'm sure you should be able to find one of them open ;-) . HTH, Robert On 7/26/07, Jack Sprat wrote: Hi Robert. I used ActivePorts for Windows, as suggested earlier. This showed the port specified in web.xml as occupied by javaw.exe. What could be the problem here? Thanks again for trying to help. T robert lazarski wrote: I'm not a windows user, but you do have the netstat command that can help you track your occupied ports. On linux it'd be 'netstat -ancp | grep 5001' . You can engage the module in either services.xml or axis2.xml - but not both. engaging in axis2.xml make the module available for all services, whereas alternatively engaging in the services,xml makes to module available to just that service. If all else fails, you could use tcpmon as an alternative. HTH, Robert On 7/25/07, Jack Sprat wrote: Hi Robert. Thanks for trying to help. This has me quite confused. The Tomcat console says that the server socket on the port specified in web.xml cannot be opened. If I set port 3901 then the console says port 3901 cannot be opened. Same for port 5001. The ports show as used by the javaw.exe process. My only other question on the SOAP monitor applet is where to set the module ref. I have this set in the services.xml file. This is the same as the logging module, with the instructions here: http://ws.apache.org/axis2/1_1/modules.html But the SOAP monitor page says to set the module reference in the axis2.xml file. Which is right? Axis2 with Tomcat 5.5 Thanks, T robert lazarski wrote: When you set the port to 3901, does it still say cannot connect to 5001? Can you try RC2? I'll try to give this scenario a spin today. HTH, Robert On 7/24/07, Jack Sprat wrote: I've tried ports 3901, 5001 and 5050. All gave the same result. robert lazarski wrote: Have you tried changing to another port in the web.xml? HTH, Robert On 7/24/07, Jack Sprat wrote: I've followed the instructions for setting up the SOAP monitor applet here: http://ws.apache.org/axis2/1_2/soapmonitor-module.html Whenever I start my server I get the following errors: 2007-07-24 18:18:20,468 ERROR SOAPMonitorService - Unable to open server socket using port: 5001 2007-07-24 18:18:20,484 ERROR SOAPMonitorService - Address already in use: JVM_Bind It does not seem to matter what port is used. What am I doing wrong? Thanks, T - Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out.
Re: [Axis2] SOAPMonitorApplet port
Hi Robert. I used ActivePorts for Windows, as suggested earlier. This showed the port specified in web.xml as occupied by javaw.exe. What could be the problem here? Thanks again for trying to help. T robert lazarski [EMAIL PROTECTED] wrote: I'm not a windows user, but you do have the netstat command that can help you track your occupied ports. On linux it'd be 'netstat -ancp | grep 5001' . You can engage the module in either services.xml or axis2.xml - but not both. engaging in axis2.xml make the module available for all services, whereas alternatively engaging in the services,xml makes to module available to just that service. If all else fails, you could use tcpmon as an alternative. HTH, Robert On 7/25/07, Jack Sprat wrote: Hi Robert. Thanks for trying to help. This has me quite confused. The Tomcat console says that the server socket on the port specified in web.xml cannot be opened. If I set port 3901 then the console says port 3901 cannot be opened. Same for port 5001. The ports show as used by the javaw.exe process. My only other question on the SOAP monitor applet is where to set the module ref. I have this set in the services.xml file. This is the same as the logging module, with the instructions here: http://ws.apache.org/axis2/1_1/modules.html But the SOAP monitor page says to set the module reference in the axis2.xml file. Which is right? Axis2 with Tomcat 5.5 Thanks, T robert lazarski wrote: When you set the port to 3901, does it still say cannot connect to 5001? Can you try RC2? I'll try to give this scenario a spin today. HTH, Robert On 7/24/07, Jack Sprat wrote: I've tried ports 3901, 5001 and 5050. All gave the same result. robert lazarski wrote: Have you tried changing to another port in the web.xml? HTH, Robert On 7/24/07, Jack Sprat wrote: I've followed the instructions for setting up the SOAP monitor applet here: http://ws.apache.org/axis2/1_2/soapmonitor-module.html Whenever I start my server I get the following errors: 2007-07-24 18:18:20,468 ERROR SOAPMonitorService - Unable to open server socket using port: 5001 2007-07-24 18:18:20,484 ERROR SOAPMonitorService - Address already in use: JVM_Bind It does not seem to matter what port is used. What am I doing wrong? Thanks, T - Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out.
Re: [Axis2] SOAPMonitorApplet port
I'm using Axis2 version 1.2. I've already got a log4j.xml config. file in place. I'll set the debugging level on oprg.apache to DEBUG and post back. Thanks again for the help. T robert lazarski [EMAIL PROTECTED] wrote: What version are you using? That's a pretty strange problem. There are people that use this tool and I've never heard of an issue like this. We're about to do a release soon - can you try these? http://people.apache.org/dist/axis2/nightly/axis2-1.3-SNAPSHOT-bin.zip http://people.apache.org/dist/axis2/nightly/axis2-1.3-SNAPSHOT-war.zip I can't think of anything off hand on windows that could track down what class loaded by java.exe is using the port. Can you put WEB-INF/classes/log4j.properties in DEBUG, along with a log4j.jar in WEB-INF/lib . That should create a bunch of axis2 content on catalina.out. If you could send that to this list, we might be able to track it down. Robert On 7/26/07, Jack Sprat wrote: Hi Robert, Only the Java executable (javaw.exe) is using the port. It does not matter what port I set in web.xml - it is always in use by the Java executable. I thought I could find an open port, but it does not seem to matter which one I use. It is *always* taken by javaw.exe. It''s almost like Axis2 is reserving the port and then trying to use it again, causing the bind error. Thanks, T robert lazarski wrote: What is connected to 3901 ? There's 65,000 or so ports, so I'm sure you should be able to find one of them open ;-) . HTH, Robert On 7/26/07, Jack Sprat wrote: Hi Robert. I used ActivePorts for Windows, as suggested earlier. This showed the port specified in web.xml as occupied by javaw.exe. What could be the problem here? Thanks again for trying to help. T robert lazarski wrote: I'm not a windows user, but you do have the netstat command that can help you track your occupied ports. On linux it'd be 'netstat -ancp | grep 5001' . You can engage the module in either services.xml or axis2.xml - but not both. engaging in axis2.xml make the module available for all services, whereas alternatively engaging in the services,xml makes to module available to just that service. If all else fails, you could use tcpmon as an alternative. HTH, Robert On 7/25/07, Jack Sprat wrote: Hi Robert. Thanks for trying to help. This has me quite confused. The Tomcat console says that the server socket on the port specified in web.xml cannot be opened. If I set port 3901 then the console says port 3901 cannot be opened. Same for port 5001. The ports show as used by the javaw.exe process. My only other question on the SOAP monitor applet is where to set the module ref. I have this set in the services.xml file. This is the same as the logging module, with the instructions here: http://ws.apache.org/axis2/1_1/modules.html But the SOAP monitor page says to set the module reference in the axis2.xml file. Which is right? Axis2 with Tomcat 5.5 Thanks, T robert lazarski wrote: When you set the port to 3901, does it still say cannot connect to 5001? Can you try RC2? I'll try to give this scenario a spin today. HTH, Robert On 7/24/07, Jack Sprat wrote: I've tried ports 3901, 5001 and 5050. All gave the same result. robert lazarski wrote: Have you tried changing to another port in the web.xml? HTH, Robert On 7/24/07, Jack Sprat wrote: I've followed the instructions for setting up the SOAP monitor applet here: http://ws.apache.org/axis2/1_2/soapmonitor-module.html Whenever I start my server I get the following errors: 2007-07-24 18:18:20,468 ERROR SOAPMonitorService - Unable to open server socket using port: 5001 2007-07-24 18:18:20,484 ERROR SOAPMonitorService - Address already in use: JVM_Bind It does not seem to matter what port is used. What am I doing wrong? Thanks, T Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Shape Yahoo! in your own image. Join our Network Research Panel today!
RE: [Axis2] SOAPMonitorApplet port
Thanks. I'll give that a try. T [EMAIL PROTECTED] wrote: If you're stuck using windows then you can use the aports (active ports) utility to see exactly what ports are in use. It's a free download, easy to find via google. cheers, Michael Davis -Original Message- From: robert lazarski [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 7:07 AM To: axis-user@ws.apache.org Subject: Re: [Axis2] SOAPMonitorApplet port When you set the port to 3901, does it still say cannot connect to 5001? Can you try RC2? I'll try to give this scenario a spin today. HTH, Robert On 7/24/07, Jack Sprat wrote: I've tried ports 3901, 5001 and 5050. All gave the same result. robert lazarski wrote: Have you tried changing to another port in the web.xml? HTH, Robert On 7/24/07, Jack Sprat wrote: I've followed the instructions for setting up the SOAP monitor applet here: http://ws.apache.org/axis2/1_2/soapmonitor-module.html Whenever I start my server I get the following errors: 2007-07-24 18:18:20,468 ERROR SOAPMonitorService - Unable to open server socket using port: 5001 2007-07-24 18:18:20,484 ERROR SOAPMonitorService - Address already in use: JVM_Bind It does not seem to matter what port is used. What am I doing wrong? Thanks, T - Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV.
Re: [Axis2] SOAPMonitorApplet port
Hi Robert. Thanks for trying to help. This has me quite confused. The Tomcat console says that the server socket on the port specified in web.xml cannot be opened. If I set port 3901 then the console says port 3901 cannot be opened. Same for port 5001. The ports show as used by the javaw.exe process. My only other question on the SOAP monitor applet is where to set the module ref. I have this set in the services.xml file. This is the same as the logging module, with the instructions here: http://ws.apache.org/axis2/1_1/modules.html But the SOAP monitor page says to set the module reference in the axis2.xml file. Which is right? Axis2 with Tomcat 5.5 Thanks, T robert lazarski [EMAIL PROTECTED] wrote: When you set the port to 3901, does it still say cannot connect to 5001? Can you try RC2? I'll try to give this scenario a spin today. HTH, Robert On 7/24/07, Jack Sprat wrote: I've tried ports 3901, 5001 and 5050. All gave the same result. robert lazarski wrote: Have you tried changing to another port in the web.xml? HTH, Robert On 7/24/07, Jack Sprat wrote: I've followed the instructions for setting up the SOAP monitor applet here: http://ws.apache.org/axis2/1_2/soapmonitor-module.html Whenever I start my server I get the following errors: 2007-07-24 18:18:20,468 ERROR SOAPMonitorService - Unable to open server socket using port: 5001 2007-07-24 18:18:20,484 ERROR SOAPMonitorService - Address already in use: JVM_Bind It does not seem to matter what port is used. What am I doing wrong? Thanks, T - Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when.
[Axis2] SOAPMonitorApplet port
I've followed the instructions for setting up the SOAP monitor applet here: http://ws.apache.org/axis2/1_2/soapmonitor-module.html Whenever I start my server I get the following errors: 2007-07-24 18:18:20,468 ERROR SOAPMonitorService - Unable to open server socket using port: 5001 2007-07-24 18:18:20,484 ERROR SOAPMonitorService - Address already in use: JVM_Bind It does not seem to matter what port is used. What am I doing wrong? Thanks, T - Get the free Yahoo! toolbar and rest assured with the added security of spyware protection.
Re: [Axis2] SOAPMonitorApplet port
I've tried ports 3901, 5001 and 5050. All gave the same result. robert lazarski [EMAIL PROTECTED] wrote: Have you tried changing to another port in the web.xml? HTH, Robert On 7/24/07, Jack Sprat wrote: I've followed the instructions for setting up the SOAP monitor applet here: http://ws.apache.org/axis2/1_2/soapmonitor-module.html Whenever I start my server I get the following errors: 2007-07-24 18:18:20,468 ERROR SOAPMonitorService - Unable to open server socket using port: 5001 2007-07-24 18:18:20,484 ERROR SOAPMonitorService - Address already in use: JVM_Bind It does not seem to matter what port is used. What am I doing wrong? Thanks, T - Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games.
Re: [AXIS] SOAPConnectionImpl timeout
Can someone answer this question? My guess is milliseconds but I just want to be sure. The documentation is very thin. This seems like it would be a *really* easy question to answer for anyone who contributred to Axis 1..4 Thanks, T Jack Sprat [EMAIL PROTECTED] wrote: Can anyone answer this question?? I thought this would be a really easy one. Thanks, T Jack Sprat [EMAIL PROTECTED] wrote: What does the integer value for the setTimeout method represent in the SOAPConnectionImpl class in Axis 1.4? Is it milliseconds, seconds? The JavaDoc says only: set the timeout value Not too helpful... Thanks, T - Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when.
[AXIS] SOAPConnectionImpl timeout
What does the integer value for the setTimeout method represent in the SOAPConnectionImpl class in Axis 1.4? Is it milliseconds, seconds? The JavaDoc says only: set the timeout value Not too helpful... Thanks, T - Got a little couch potato? Check out fun summer activities for kids.
Re: [AXIS] SOAPConnectionImpl timeout
Can anyone answer this question?? I thought this would be a really easy one. Thanks, T Jack Sprat [EMAIL PROTECTED] wrote: What does the integer value for the setTimeout method represent in the SOAPConnectionImpl class in Axis 1.4? Is it milliseconds, seconds? The JavaDoc says only: set the timeout value Not too helpful... Thanks, T - Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out.
[Axis2] CDATA tag
I have an Axis 1.2 web service using XMLBeans. I want to wrap the content of one of the elements in a CDATA tag. I know I could manually prepend and append the CDATA delimiters but that is not ideal. What is the best way to do this? This should be obvious but I haven't found a clear choice. Thanks, T - Yahoo! oneSearch: Finally, mobile search that gives answers, not web links.
Re: How to retrieve SOAP Header in Axis2
Try the following to access the SOAP header: SOAPEnvelope env = msgContext.getEnvelope(); Regards, T shirene [EMAIL PROTECTED] wrote: Hi, Did anyone can help me on how to retrieve the soap header in axis2? Below is my service.xml file details: locked=falseReceiverService class=org.apache.axis2.receivers.RawXMLINOutMessageReceiver/ urn:soapRec if i use OMElement as incoming parameter, my web service is working but i not able to retrieve the soap header. public OMElement soapRec(OMElement element) {} In order to retrieve the soap header, i change the function to below method:- public void soapRec(SOAPEnvelope req, SOAPEnvelope resp){} but i get this error when i call the web service:- xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; /soapenv:ClientRaw Xml provider supports only the methods bearing the signature public OMElement lt;method-namegt;(OMElement) where the method name can be anythingorg.apache.axis2.AxisFault: Raw Xml provider supports only the methods bearing the signature public OMElement lt;method-namegt;(OMElement) where the method name can be anything at org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:95) 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:717) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) Is that cos by the invalid messageReceiver type? if yes, what shld i change it to? - Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool.
Re: AxisServlet NullPointerException
WSDL and WAR file have been uploaded. Thanks. Davanum Srinivas [EMAIL PROTECTED] wrote: Jack, Please upload the WAR w/o the axis2/related jars and let us know the names of the jars that need to be added. thanks, dims On 6/6/07, Jack Sprat wrote: JIRA AXIS2-2674 was logged when I first came across this problem. All the details are in there but I have not yet attached the WAR file since Axis2 is included within my web application. This makes the WAR file very large due to all the included JAR files. The WAR file is about 12 MB. You are correct on the attribute value. The correct value is qualified and not required - sorry for the confusion. Regards, T Thilina Gunarathne wrote: Jack, Please log a Jira with the necessary resources to reproduce the error... A stripped down test case with a WSDL similar to your one would be great... Also provide details about your environment too... After numerous trials and errors, the problem was alleviated by setting the elementFormDefault=required on the WSDL and all included schemas. is it elementFormDefault=required or elementFormDefault=qualified... I'm not sure whether elementFormDefault=required is allowed... Thanks, Thilina Does anyone know why this would solve the problem? Regards. T Jack Sprat wrote: Jeremy wrote: Jack Sprat wrote: I believe I found the bug in the org.apache.axis2.transport.http.HTTPTransportUtils class. The following if condition lacks a set of parentheses: if ((msgContext.getEnvelope() == null) soapVersion != VERSION_SOAP11) { msgContext.setEnvelope(new SOAP12Factory().getDefaultEnvelope()); } There needs to be a set of parenteses around the 2nd condition (soapVersion != VERSION_SOAP11) condition. The soapVersion variable had a value of 1 in this case so the condition should *NOT* have been satisfied. The operation within the if statement caused the exception. The != operator takes precedence over the operator. So the parentheses are not necessary (actually, the first set isn't necessary either - it just helps with readability). Jeremy That makes sense. I guess I was hoping that was the problem. The problem remains - why is this if condition being satisfied when the msgContext variable is *NOT* null and both the soapVersion and VERSION_SOAP11 variables are equal to 1. I've inspected these variables in the Eclipse WTP debugger and had 2 other developers look as well to ensure I was not missing something obvious. The NPE happens immediately when I try to step into the SOAP12Factory().getDefaultEnvelope() method. Could I send the WAR file for someone to try? It should be as simple as dropping it into an app server and sending a request. I'm completely at a loss here. Thanks, T. - Shape Yahoo! in your own image. Join our Network Research Panel today!
RE: embedded axis
There *was* a link to a good article on that here: http://ws.apache.org/axis2/articles.html See the last link on the page. However, the link does not work now. Can that be fixed?? I seached around and found the article here: http://wso2.org/library/90 Regards, T [EMAIL PROTECTED] wrote: I've done that, and it's not too hard. I just added the axis jar files to the web app, along with the axis jsps, added the necessary stuff to web.xml (i.e. the axis servlet), and it works. I'm not using EJB, but now I've got a web service that feeds data using Hibernate, and I've got a WebWork application in the same WAR file that I use to maintain that data. I'm using Tomcat. Michael Davis -Original Message- From: renjith kalappurackal[mailto:[EMAIL PROTECTED] Sent: Wednesday, June 06, 2007 9:45PM To: axis-user@ws.apache.org Subject: embeddedaxis Hi All, Could any one help me in setting an embedded Axis ( I mean I have aweb application in place And I am thinking of embed axis inside this existing web application.). I am not sure my thinking is right . I am using JBoss- Tomcat . The whole purpose of thinking about embedded Axis is to share the EJB layer with web application, so that web application and web-services should always be in sync. Thanks in advance, Renjith - - Get the free Yahoo! toolbar and rest assured with the added security of spyware protection.
Re: AxisServlet NullPointerException
JIRA AXIS2-2674 was logged when I first came across this problem. All the details are in there but I have not yet attached the WAR file since Axis2 is included within my web application. This makes the WAR file very large due to all the included JAR files. The WAR file is about 12 MB. You are correct on the attribute value. The correct value is qualified and not required - sorry for the confusion. Regards, T Thilina Gunarathne [EMAIL PROTECTED] wrote: Jack, Please log a Jira with the necessary resources to reproduce the error... A stripped down test case with a WSDL similar to your one would be great... Also provide details about your environment too... After numerous trials and errors, the problem was alleviated by setting the elementFormDefault=required on the WSDL and all included schemas. is it elementFormDefault=required or elementFormDefault=qualified... I'm not sure whether elementFormDefault=required is allowed... Thanks, Thilina Does anyone know why this would solve the problem? Regards. T Jack Sprat wrote: Jeremy wrote: Jack Sprat wrote: I believe I found the bug in the org.apache.axis2.transport.http.HTTPTransportUtils class. The following if condition lacks a set of parentheses: if ((msgContext.getEnvelope() == null) soapVersion != VERSION_SOAP11) { msgContext.setEnvelope(new SOAP12Factory().getDefaultEnvelope()); } There needs to be a set of parenteses around the 2nd condition (soapVersion != VERSION_SOAP11) condition. The soapVersion variable had a value of 1 in this case so the condition should *NOT* have been satisfied. The operation within the if statement caused the exception. The != operator takes precedence over the operator. So the parentheses are not necessary (actually, the first set isn't necessary either - it just helps with readability). Jeremy That makes sense. I guess I was hoping that was the problem. The problem remains - why is this if condition being satisfied when the msgContext variable is *NOT* null and both the soapVersion and VERSION_SOAP11 variables are equal to 1. I've inspected these variables in the Eclipse WTP debugger and had 2 other developers look as well to ensure I was not missing something obvious. The NPE happens immediately when I try to step into the SOAP12Factory().getDefaultEnvelope() method. Could I send the WAR file for someone to try? It should be as simple as dropping it into an app server and sending a request. I'm completely at a loss here. Thanks, T. - Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center.
Re: AxisServlet NullPointerException
I believe I found the source of this problem, though I still do not know why the code in the HTTPTransportUtils class behaved like it did. After numerous trials and errors, the problem was alleviated by setting the elementFormDefault=required on the WSDL and all included schemas. Does anyone know why this would solve the problem? Regards. T Jack Sprat [EMAIL PROTECTED] wrote: Jeremy [EMAIL PROTECTED] wrote: Jack Sprat wrote: I believe I found the bug in the org.apache.axis2.transport.http.HTTPTransportUtils class. The following if condition lacks a set of parentheses: if ((msgContext.getEnvelope() == null) soapVersion != VERSION_SOAP11) { msgContext.setEnvelope(new SOAP12Factory().getDefaultEnvelope()); } There needs to be a set of parenteses around the 2nd condition (soapVersion != VERSION_SOAP11) condition. The soapVersion variable had a value of 1 in this case so the condition should *NOT* have been satisfied. The operation within the if statement caused the exception. The != operator takes precedence over the operator. So the parentheses are not necessary (actually, the first set isn't necessary either - it just helps with readability). Jeremy That makes sense. I guess I was hoping that was the problem. The problem remains - why is this if condition being satisfied when the msgContext variable is *NOT* null and both the soapVersion and VERSION_SOAP11 variables are equal to 1. I've inspected these variables in the Eclipse WTP debugger and had 2 other developers look as well to ensure I was not missing something obvious. The NPE happens immediately when I try to step into the SOAP12Factory().getDefaultEnvelope() method. Could I send the WAR file for someone to try? It should be as simple as dropping it into an app server and sending a request. I'm completely at a loss here. Thanks, T. - Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool.
Re: [Axis2] SOAP header elements
Keith. Thanks again for the reply. Can you be a bit more specific? Which stub are you referring to? In this case the invoke method is being called from a handler class. I don't see a fromOM method in any of the classes generated for the elements in the SOAP header. T keith chapman [EMAIL PROTECTED] wrote: Exactly, the stub has a fromOM method that populates the xmlBeans classes from the response received. Thanks, Keith. On 5/22/07, Todd Allen [EMAIL PROTECTED] wrote:Keith, Thanks very much for the reply. Can you elaborate on your last statement of drill down to the XMLBeans class? How would I do that? I think that's the last piece of my puzzle. Is this similar to the fromOM method I see in the message receiver class generated by WSDL2Java? Thanks, Todd keith chapman wrote: Hi jack, U can use the following once you have the SOAPEnvelop to get the header block. SOAPHeader header = envelope.getHeader(); Once you get that you can get the specific header you want by using header.getHeaderBlocksWithNSURI(); or get all the headers and iterate through them using header.getChildren(); Once you have the header block you can drill down to the xmlBeans class. Thanks, Keith. On 5/21/07, *Jack Sprat* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: OK. I was able to get the header elements using the getChildElements() method and iterating. But the XMLBenas question remains. How do I get at the class created by XMLBeans for these 2 header elements? Thanks, T */Jack Sprat [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]/* wrote: Deepal, Thanks for the reply. Yes, this is server side. I can get the SOAPEnvelope but then how do I get the contents of the elements themselves? In this case it is a user and password element. The Axis2 JavaDocs have a return value of |org.apache.axiom.soap.SOAPEnvelope for the getEnvelope() method ||but I don't have any docs for that type. | Also, does the class created by XMLBeans for the user and password elements come into play at all? I was expecting to be able to pull in those classes created by XMLBeans for these 2 elements. Thanks, T */Deepal Jayasinghe [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]/* wrote: Hi Jack , If this is in the server side , you can get the message context and from that you can get the SOAP envelope and from the soap envelope you can get the soap headers. If it is the in the client side , the the process is , - First you get the last operation context from the service client - and then follow the above steps. Thanks Deepal Can anyone answer this question? I thought this would be fairly common but I've not seen any tutorials or anything like that. Any help is appreciated. Thanks. T */Jack Sprat /* wrote: I am using Axis 1.2 with XML Beans and need to get the user and password SOAP header elements. I've set up an Axis2 handler and it is being called properly. My question is how exactly do I get the to the SOAP header elements? Thanks. T - Need Mail bonding? Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users.
Re: [Axis2] SOAP header elements
OK. I was able to get the header elements using the getChildElements() method and iterating. But the XMLBenas question remains. How do I get at the class created by XMLBeans for these 2 header elements? Thanks, T Jack Sprat [EMAIL PROTECTED] wrote: Deepal, Thanks for the reply. Yes, this is server side. I can get the SOAPEnvelope but then how do I get the contents of the elements themselves? In this case it is a user and password element. The Axis2 JavaDocs have a return value of org.apache.axiom.soap.SOAPEnvelope for the getEnvelope() method but I don't have any docs for that type. Also, does the class created by XMLBeans for the user and password elements come into play at all? I was expecting to be able to pull in those classes created by XMLBeans for these 2 elements. Thanks, T Deepal Jayasinghe [EMAIL PROTECTED] wrote: Hi Jack , If this is in the server side , you can get the message context and from that you can get the SOAP envelope and from the soap envelope you can get the soap headers. If it is the in the client side , the the process is , - First you get the last operation context from the service client - and then follow the above steps. Thanks Deepal Can anyone answer this question? I thought this would be fairly common but I've not seen any tutorials or anything like that. Any help is appreciated. Thanks. T */Jack Sprat /* wrote: I am using Axis 1.2 with XML Beans and need to get the user and password SOAP header elements. I've set up an Axis2 handler and it is being called properly. My question is how exactly do I get the to the SOAP header elements? Thanks. T Shape Yahoo! in your own image. Join our Network Research Panel today! http://us.rd.yahoo.com/evt=48517/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 hot CTA = Join our Network Research Panel - Pinpoint customers who are looking for what you sell.
Re: [Axis2] SOAP header elements
Deepal, Thanks for the reply. Yes, this is server side. I can get the SOAPEnvelope but then how do I get the contents of the elements themselves? In this case it is a user and password element. The Axis2 JavaDocs have a return value of org.apache.axiom.soap.SOAPEnvelope for the getEnvelope() method but I don't have any docs for that type. Also, does the class created by XMLBeans for the user and password elements come into play at all? I was expecting to be able to pull in those classes created by XMLBeans for these 2 elements. Thanks, T Deepal Jayasinghe [EMAIL PROTECTED] wrote: Hi Jack , If this is in the server side , you can get the message context and from that you can get the SOAP envelope and from the soap envelope you can get the soap headers. If it is the in the client side , the the process is , - First you get the last operation context from the service client - and then follow the above steps. Thanks Deepal Can anyone answer this question? I thought this would be fairly common but I've not seen any tutorials or anything like that. Any help is appreciated. Thanks. T */Jack Sprat /* wrote: I am using Axis 1.2 with XML Beans and need to get the user and password SOAP header elements. I've set up an Axis2 handler and it is being called properly. My question is how exactly do I get the to the SOAP header elements? Thanks. T Shape Yahoo! in your own image. Join our Network Research Panel today!http://us.rd.yahoo.com/evt=48517/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 hot CTA = Join our Network Research Panel
[Axis2] SOAP header elements
I am using Axis 1.2 with XML Beans and need to get the user and password SOAP header elements. I've set up a handler and it is being called properly. My question is how exactly do I get the to the SOAP header elements? Thanks. T - Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
Re: [Axis2] SOAP header elements
Can anyone answer this question? I thought this would be fairly common but I've not seen any tutorials or anything like that. Any help is appreciated. Thanks. T Jack Sprat [EMAIL PROTECTED] wrote: I am using Axis 1.2 with XML Beans and need to get the user and password SOAP header elements. I've set up an Axis2 handler and it is being called properly. My question is how exactly do I get the to the SOAP header elements? Thanks. T - No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started.
Re: AxisServlet NullPointerException
Jeremy [EMAIL PROTECTED] wrote: Jack Sprat wrote: I believe I found the bug in the org.apache.axis2.transport.http.HTTPTransportUtils class. The following if condition lacks a set of parentheses: if ((msgContext.getEnvelope() == null) soapVersion != VERSION_SOAP11) { msgContext.setEnvelope(new SOAP12Factory().getDefaultEnvelope()); } There needs to be a set of parenteses around the 2nd condition (soapVersion != VERSION_SOAP11) condition. The soapVersion variable had a value of 1 in this case so the condition should *NOT* have been satisfied. The operation within the if statement caused the exception. The != operator takes precedence over the operator. So the parentheses are not necessary (actually, the first set isn't necessary either - it just helps with readability). Jeremy That makes sense. I guess I was hoping that was the problem. The problem remains - why is this if condition being satisfied when the msgContext variable is *NOT* null and both the soapVersion and VERSION_SOAP11 variables are equal to 1. I've inspected these variables in the Eclipse WTP debugger and had 2 other developers look as well to ensure I was not missing something obvious. The NPE happens immediately when I try to step into the SOAP12Factory().getDefaultEnvelope() method. Could I send the WAR file for someone to try? It should be as simple as dropping it into an app server and sending a request. I'm completely at a loss here. Thanks, T. - Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center.
AxisServlet NullPointerException
I have a web application to which I added Axis 1.2. The Java class stubs were generated using he WSDL2Java tool using XMLBeans data binding. Everything appears to be configured right since the methods in the skeleton class are being invoked correctly. The echo method works fine. However, when I try another operation I always get a NullPointerException thrown from the doPost method of the org.apache.axis2.transport.http.AxisServlet class. The error says only: May 8, 2007 1:40:01 PM org.apache.axis2.transport.http.AxisServlet doPost SEVERE: java.lang.NullPointerException I can't seem to find any more info. than that. Tracing the code in the Eclipse WTP I see the call go through the skeleton class and then return to the MessageReceiverInOut class. Stepping into that class yields no errors. The code then steps into the AbstractInOutSynchMessageReceiver and that is where the error occurs. That class is in the axis2-kernel-1.2.jar file. Can anyone *please* point me in the right direction? Thanks. T. - Don't get soaked. Take a quick peak at the forecast with theYahoo! Search weather shortcut.
Re: AxisServlet NullPointerException
I believe I found the bug in the org.apache.axis2.transport.http.HTTPTransportUtils class. The following if condition lacks a set of parentheses: if ((msgContext.getEnvelope() == null) soapVersion != VERSION_SOAP11) { msgContext.setEnvelope(new SOAP12Factory().getDefaultEnvelope()); } There needs to be a set of parenteses around the 2nd condition (soapVersion != VERSION_SOAP11) condition. The soapVersion variable had a value of 1 in this case so the condition should *NOT* have been satisfied. The operation within the if statement caused the exception. Should a JIRA be raised for this? Thanks, T. Jack Sprat [EMAIL PROTECTED] wrote: I have a web application to which I added Axis 1.2. The Java class stubs were generated using he WSDL2Java tool using XMLBeans data binding. Everything appears to be configured right since the methods in the skeleton class are being invoked correctly. The echo method works fine. However, when I try another operation I always get a NullPointerException thrown from the doPost method of the org.apache.axis2.transport.http.AxisServlet class. The error says only: May 8, 2007 1:40:01 PM org.apache.axis2.transport.http.AxisServlet doPost SEVERE: java.lang.NullPointerException I can't seem to find any more info. than that. Tracing the code in the Eclipse WTP I see the call go through the skeleton class and then return to the MessageReceiverInOut class. Stepping into that class yields no errors. The code then steps into the AbstractInOutSynchMessageReceiver and that is where the error occurs. That class is in the axis2-kernel-1.2.jar file. Can anyone *please* point me in the right direction? Thanks. T. - Ahhh...imagining that irresistible new car smell? Check outnew cars at Yahoo! Autos.
Re: AxisServlet NullPointerException
Jeremy [EMAIL PROTECTED] wrote: Jack Sprat wrote: I believe I found the bug in the org.apache.axis2.transport.http.HTTPTransportUtils class. The following if condition lacks a set of parentheses: if ((msgContext.getEnvelope() == null) soapVersion != VERSION_SOAP11) { msgContext.setEnvelope(new SOAP12Factory().getDefaultEnvelope()); } There needs to be a set of parenteses around the 2nd condition (soapVersion != VERSION_SOAP11) condition. The soapVersion variable had a value of 1 in this case so the condition should *NOT* have been satisfied. The operation within the if statement caused the exception. The != operator takes precedence over the operator. So the parentheses are not necessary (actually, the first set isn't necessary either - it just helps with readability). Jeremy OK. But why was the condition satisfied when the envelope was *NOT* null and the soapVersion was equal to 1? I have inspected and re-inspected these variables in the Eclipse WTP debugger but I just cannot see why this condition would be satisfied. I try to step into the SOAP12Factory().getDefaultEnvelope() method and the exception is immediately thrown. - 8:00? 8:25? 8:40? Find a flick in no time with theYahoo! Search movie showtime shortcut.
Re: [Axis2] Re: User manual for Axis2 v 0.95 - Problems with Invoking a service using a mail
Hi Chamil, Thanks for that... I have not yet had a chance to play with it... I expect that we will probably wait for this part of Axis2 to become a little more mature before we try to implement with it anyway. We will certainly be keeping an eye on how things progress. Cheers Jack... On 29/04/06, Chamil Thanthrimudalige [EMAIL PROTECTED] wrote: Hi Jack, I did a bit of digging and found a few problems with the mail transport and I have fixed them now. This is due to the fact that we have excluded the mail tests from the build since we can't have a dependency on the sun javamail and activation jars. There were some changes to axis2 code which have not been tested with the mail transport. I have fixed these and you will be able to use the mail transport now. Have a look at MailRequestResponseRawXMLTest[1] for an example about how to do a request response case, and have a look at mail-enabled- server-axis2.xml[2] and mail-enabled-client-axis2.xml[2] for examples on configurations. I still have not updated the docs. So you will have to stick to the code for now. Have a go[4] at the code with the sun javamail and activation jars. You can do this from inside by changing the etc/project.properties file to use the sun jars after copying them into the maven repository. Best Regards, Chamil Thanthrimudalige [1] modules/integration/test/org/apache/axis2/mail/ MailRequestResponseRawXMLTest.java [2] modules/integration/test/org/apache/axis2/mail/mail-enabled- server-axis2.xml [3] modules/integration/test/org/apache/axis2/mail/mail-enabled- client-axis2.xml [4] maven -o test:single - Dtestcase=org.apache.axis2.mail.MailRequestResponseRawXMLTest
[axis2] mail transport - is it functional
Hi, Some more question about the mail transport in axis2. 1. Is it considered to be stable for use in a production system or is there more work to do? (I have looked a the src and seem to be finding a few //todo comments, and things like More details need to be explained here. in the Javadoc for service client which do not inspire comfort). 2. Has anyone actually successfully used the mail transport in axis2? If so do anyone have an actual working example (not the example from the user-guide which I still cannot get to work)? -- Cheers Jack... The claim natural is not synonymous with safe.
Re: [Axis2] Re: User manual for Axis2 v 0.95 - Problems with Invoking a service using a mail
Hi Chamil, Thanks for the quick reply. I am still having difficulties. Is there a fully functional example of SOAP via SMTP (ie a zip, jar, other that contains both client and source code that can be downloaded and run)? Also when building from WSDL into stubs / skeletons where do the changes have to be made to use SMTP as a transport? Cheers Jack... On 26/04/06, Chamil Thanthrimudalige [EMAIL PROTECTED] wrote: Hi Jack, Thanks for finding the typo. UtilsMailServer is in the integration module which is not shipped with any distribution. I think we need to move this to some other module that will be shipped. If you can get the source from a svn checkout[1] you will get UtilsMailServer[2]. Also pleas make sure you are using Sun javamail and activation jars. Best Regards, Chamil Thanthrimudalige [1] http://ws.apache.org/axis2/svn.html [2] It is at [Axis2 source dir]/modules/integration/test/org/apache/ axis2/mail/UtilsMailServer.java Hi, I'm having real trouble setting up a working example of SOAP over SMTP - I've looked at the user guide but the example seems broken (see below). Does anyone have a working example of this or any pointers? Would be muchly appreciated. Some specific issues for example: For example in Section 2. in the code you have: ConfigurationContext configContextbuilder .buildConfigurationContext(file.getAbsolutePath()); This is not even valid java and should probably read something like: ConfigurationContext configContext = builder.buildConfigurationContext(file.getAbsolutePath ()); Also the UtilsMailServer that is mentioned cannot be found anywhere (in the src or bin or doc distributions)? Is it possible that this section of the user guide is revised and if so please make the source code for this section available somewhere as a zip / jar / other (or better still include it in the samples with the bin or src distributions). Cheers Jack... The claim natural is not synonymous with safe.
Re: [Axis2] Re: User manual for Axis2 v 0.95 - Problems with Invoking a service using a mail
Ho Chamil, Ok let me see if I have this right now. To use a generic mail server (and only perform one way communication - ie the client sends a message to the service, which then performs some back end processing) I need to: 1. have an email account where the messages are sent to (and the service collects them from) 2. set the mail transport sections of the axis2.xml Where the transport sender section includes smtp details and the transport receiver section to include pop3 details?? In the website [2] the comments seem to be in the wrong sections??? Also in the website [2] it has: transportSender name=mail class=org.apache.axis2.transport.mail.MailTransportSender and in all other axis2.xml files seems to have transportSender name=mailto class=org.apache.axis2.transport.mail.MailTransportSender *So should it be mail or mailto?? 3. the only change in the client is the EndPointReference?? //private static EndpointReference targetEPR = // new EndpointReference(http://localhost:8080/axis2/services/MyService;); private static EndpointReference targetEPR = new EndpointReference(mailto:[EMAIL PROTECTED] + /axis2/services/MyService/ping); 4. what change do i make on the service to get it to collect the mails/messages from the mail server?? On 26/04/06, Chamil Thanthrimudalige [EMAIL PROTECTED] wrote: Hi Jack, We do not have a sample in a box. Can you have a look at a test case[1] in the integration module in the axis2 source checkout[svn checkout]. To configure to work with the mail transport, have a look at the mail transport configuration document[2] for information about how to configure the mail transport. After the configuration you can just copy and past the code in a sample to check things out. For examples on the configuration have a look at the configuration files in the integration module.[3] Best Regards, Chamil Thanthrimudalige [1] Have a look at axis2/modules/integration/test/org/apache/axis2/ mail/MailOneWayRawXMLTest.java [2] http://ws.apache.org/axis2/0_95/mail-configuration.html [3] axis2/modules/integration/test/org/apache/axis2/mai On Apr 26, 2006, at 3:50 PM, Jack wrote: Hi Chamil, Thanks for the quick reply. I am still having difficulties. Is there a fully functional example of SOAP via SMTP (ie a zip, jar, other that contains both client and source code that can be downloaded and run)? Also when building from WSDL into stubs / skeletons where do the changes have to be made to use SMTP as a transport? Cheers Jack... On 26/04/06, Chamil Thanthrimudalige [EMAIL PROTECTED] wrote: Hi Jack, Thanks for finding the typo. UtilsMailServer is in the integration module which is not shipped with any distribution. I think we need to move this to some other module that will be shipped. If you can get the source from a svn checkout[1] you will get UtilsMailServer[2]. Also pleas make sure you are using Sun javamail and activation jars. Best Regards, Chamil Thanthrimudalige [1] http://ws.apache.org/axis2/svn.html [2] It is at [Axis2 source dir]/modules/integration/test/org/apache/ axis2/mail/UtilsMailServer.java Hi, I'm having real trouble setting up a working example of SOAP over SMTP - I've looked at the user guide but the example seems broken (see below). Does anyone have a working example of this or any pointers? Would be muchly appreciated. Some specific issues for example: For example in Section 2. in the code you have: ConfigurationContext configContextbuilder .buildConfigurationContext(file.getAbsolutePath()); This is not even valid java and should probably read something like: ConfigurationContext configContext = builder.buildConfigurationContext (file.getAbsolutePath ()); Also the UtilsMailServer that is mentioned cannot be found anywhere (in the src or bin or doc distributions)? Is it possible that this section of the user guide is revised and if so please make the source code for this section available somewhere as a zip / jar / other (or better still include it in the samples with the bin or src distributions). Cheers Jack... The claim natural is not synonymous with safe. -- Cheers Jack... The claim natural is not synonymous with safe.
Re: Axis2: WSS4J - problem getting client to use my axis2.xml
I think you need to do this javadoc says you are not allowed to give one relative to other so: String X = E:\\jboss-4.0.3SP1\\server\\axistest\\deploy\\axis2.war\\WEB-INF; String Y = E:\\jboss-4.0.3SP1\\server\\axistest\\deploy\\axis2.war\\WEB-INF\\conf\\axis2.xml; configContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem(X, Y); Cheers Jack... On 26/04/06, Rob Henley [EMAIL PROTECTED] wrote: I'm using the 0.95 binary release on Windows XP, plus the separately downloaded security sample. Some stuff appeared to be missing from the distribution. I downloaded security-0.95.mar separately via the 'Modules' link and copied under my axis2\WEB-INF\modules, and also got a copy of xalan.jar. My axis2.xml contains: module ref=security/ parameter name=InflowSecurity action itemsTimestamp/items /action /parameter parameter name=OutflowSecurity action itemsTimestamp/items /action /parameter My service is starting ok, but I don't think my client is picking up the security settings. My client code is attempting to pick up the same axis2.xml which my server uses ... ConfigurationContext ctx = ConfigurationContextFactory.createConfigurationContextFromFileSystem(X, Y); // see below PurchasingStub stub = new PurchasingStub(ctx, http://localhost:8081/axis2/services/Purchasing;); // stub generated from WSDL I've tried various combinations for (X, Y) above. (I looked at the javadocs, but still couldn't be sure what this should look like exactly). Here's what I tried, followed by the various errors I received at runtime: (null, null) [java] org.apache.axis2.AxisFault: org.apache.axis2.AxisFault: WSDoAllReceiver: Request does not contain required Security header [java] at org.apache.axis2.security.WSDoAllReceiver.invoke(WSDoAllReceiver.java:187) [java] at org.apache.axis2.engine.Phase.invoke(Phase.java:378) ok - that probably isn't surprising. I'm not sure how the client would find the repository if I don't tell it where to look. (C:/Program Files/Apache/Tomcat5.5/webapps/axis2/WEB-INF, axis2.xml); (C:\\Program Files\\Apache\\Tomcat5.5\\webapps\\axis2\\WEB-INF, axis2.xml); (C:/progra~1/Apache/Tomcat5.5/webapps/axis2/WEB-INF, axis2.xml); [java] org.apache.axis2.deployment.DeploymentException: axis2.xml (The system cannot find the file specified); nested exception is: [java] java.io.FileNotFoundException: axis2.xml (The system cannot find the file specified) [java] at org.apache.axis2.deployment.DeploymentEngine.load(DeploymentEngine.java:550) I also tried prefxing axis2.xml with 'conf/', with the same result. (The javadoc suggests this wouldn't be valid anyway). (C:/Program Files/Apache/Tomcat5.5/webapps/axis2/WEB-INF, null); [java] java.lang.NullPointerException [java] at org.apache.axis2.context.ServiceGroupContext.getServiceContext(ServiceGroupContext.java:59) [java] at org.apache.axis2.client.ServiceClient.init(ServiceClient.java:97) [java] at org.apache.axis2.PurchasingStub.init(Unknown Source) [java] at samples.purchasing1.ClientTest.main(Unknown Source) Has anyone seen a similar problem or have an idea how I can make progress? Many thanks Rob -- Cheers Jack... The claim natural is not synonymous with safe.
User manual for Axis2 v 0.95 - Problems with Invoking a service using a mail
Hi, I'm having real trouble setting up a working example of SOAP over SMTP - I've looked at the user guide but the example seems broken (see below). Does anyone have a working example of this or any pointers? Would be muchly appreciated. Some specific issues for example: For example in Section 2. in the code you have: ConfigurationContext configContextbuilder .buildConfigurationContext(file.getAbsolutePath()); This is not even valid java and should probably read something like: ConfigurationContext configContext = builder.buildConfigurationContext(file.getAbsolutePath()); Also the UtilsMailServer that is mentioned cannot be found anywhere (in the src or bin or doc distributions)? Is it possible that this section of the user guide is revised and if so please make the source code for this section available somewhere as a zip / jar / other (or better still include it in the samples with the bin or src distributions). Cheers Jack... The claim natural is not synonymous with safe.
Problems getting user exceptions to work
Hi. I'm using axis 1.2.1, and I'm trying to get the exceptions sent by my service thrown to the client. For instance, my service can throw an InvalidDateException exception, which is a subclass of java.lang.Exception, and I want the client code to get that exception. What little is said on the axis website about this implies that it should just work, but it doesn't seem to - what I get on the other side is an AxisFault with the message string from my exception embedded inside. Is there something special I have to do, on either side, to get this to work? Thanks. -Jack
RE: Problems getting user exceptions to work
Nope, didn't work. Wouldn't think it would - AxisFault isn't a subclass of InvalidDateException. -Jack Jarmo Doc wrote: Try doing this: catch (AxisFault ex) { if (ex instanceof InvalidDateException) { InvalidDateException myex = (InvalidDateException)ex; // deal with myex here } // deal with others here } From: Jack Lund [EMAIL PROTECTED] Reply-To: axis-user@ws.apache.org To: axis-user@ws.apache.org Subject: Problems getting user exceptions to work Date: Wed, 29 Mar 2006 12:21:33 -0600 Hi. I'm using axis 1.2.1, and I'm trying to get the exceptions sent by my service thrown to the client. For instance, my service can throw an InvalidDateException exception, which is a subclass of java.lang.Exception, and I want the client code to get that exception. What little is said on the axis website about this implies that it should just work, but it doesn't seem to - what I get on the other side is an AxisFault with the message string from my exception embedded inside. Is there something special I have to do, on either side, to get this to work? Thanks. -Jack _ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/
RE: Problems getting user exceptions to work
Yeah, I can see that that would be easier. Unfortunately, I have no control over the exceptions being thrown - I just need the client-side to be able to catch them *as* the exceptions that are originally thrown. I also am doing dynamic proxying rather than stubs/skeletons, so it makes it that more complicated. >From the debugging I've been able to do, it looks like the fault coming across contains the fully-qualified package name of the exception class, but for some reason on the client side it's not creating the exception. Since this is an area where there's practically no documentation, I'm finding myself pretty much randomly trying different things and seeing if they work. The user's guide is really vague about this subject: "If a method is marked as throwing an Exception that is not an instance or a subclass of java.rmi.RemoteException, then things are subtly different. The exception is no longer a SOAP Fault, but described as a wsdl:fault in the WSDL of the method. According to the JAX-RPC specification, your subclass of Exception must have accessor methods to access all the fields in the object to be marshalled and a constructor that takes as parameters all the same fields (i.e, arguments of the same name and type). This is a kind of immutable variant of a normal JavaBean. The fields in the object must be of the datatypes that can be reliably mapped into WSDL. If your exception meets this specification, then the WSDL describing the method will describe the exception too, enabling callers to create stub implementations of the exception, regardless of platform." I was kind of hoping someone else out there would have had some experience with getting this to work. -Jack Jarmo Doc wrote: I have an Axis client stub which was generated from WSDL. *All* of the client-side user-defined exceptions extend org.apache.axis.AxisFault. The equivalent exceptions at the server also extend org.apache.axis.AxisFault, rather than Exception. This is a decidedly dodgy area, imo, especially when it comes to interop with non-Axis clients. From: Jack Lund [EMAIL PROTECTED] Reply-To: axis-user@ws.apache.org To: axis-user@ws.apache.org Subject: RE: Problems getting user exceptions to work Date: Wed, 29 Mar 2006 14:51:47 -0600 Nope, didn't work. Wouldn't think it would - AxisFault isn't a subclass of InvalidDateException. -Jack Jarmo Doc wrote: Try doing this: catch (AxisFault ex) { if (ex instanceof InvalidDateException) { InvalidDateException myex = (InvalidDateException)ex; // deal with myex here } // deal with others here } From: Jack Lund [EMAIL PROTECTED] Reply-To: axis-user@ws.apache.org To: axis-user@ws.apache.org Subject: Problems getting user exceptions to work Date: Wed, 29 Mar 2006 12:21:33 -0600 Hi. I'm using axis 1.2.1, and I'm trying to get the exceptions sent by my service thrown to the client. For instance, my service can throw an "InvalidDateException" exception, which is a subclass of java.lang.Exception, and I want the client code to get that exception. What little is said on the axis website about this implies that it should "just work", but it doesn't seem to - what I get on the other side is an AxisFault with the message string from my exception embedded inside. Is there something special I have to do, on either side, to get this to work? Thanks. -Jack _ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
How is exception handling supposed to work in Axis???
As a follow-up to my previous question, how exactly are you supposed to do exception handling in Axis (specifically, 1.2.1)? The user's guide says that as long as your exceptions inherit from java.lang.Exception, and are beans, then it should just work. That hasn't been my experience, and, from what I can tell from the archives of this mailing list, people either seem to say: a) Don't bother, it's too complicated. Bypass it altogether by either throwing subclasses of AxisFault or just returning the exception data as the return value from the method or b) it works, but only if you custom-craft your WSDL in some magic way, which noone seems to want to document anywhere This seems to imply to me that the Axis user docs are seriously in error. Is this true? Should I be using something besides Axis to do this, because I really don't want to have to do something kludgy with the exceptions just to bypass a (really major) hole in the implementation. -Jack
Re: Problems getting user exceptions to work
/ /wsdl:port /wsdl:service /wsdl:definitions Thanks. -Jack Dies Koper wrote: Hello Jack, As Jarmo pointed out, all client-side (generated) exceptions extend AxisFault. Are you not using the generated exceptions? The WSDL defines the interface, including the faults. Either you let Axis do the mapping to Java using its own generated classes, or you do not. I don't think Axis could do its job without them. There is no need to catch an AxisFault first and then doing an instanceof. Jarmo must have written that code before he had his coffee ;) Your client does not (and should not) need to know that AxisFault is being used internally. Could you show us the WSDL that defines your fault (complexType + message, etc.), the SOAP response containing the fault, and the code you use to catch the exception? Regards, Dies Jack Lund wrote: Yeah, I can see that that would be easier. Unfortunately, I have no control over the exceptions being thrown - I just need the client-side to be able to catch them *as* the exceptions that are originally thrown. I also am doing dynamic proxying rather than stubs/skeletons, so it makes it that more complicated. From the debugging I've been able to do, it looks like the fault coming across contains the fully-qualified package name of the exception class, but for some reason on the client side it's not creating the exception. Since this is an area where there's practically no documentation, I'm finding myself pretty much randomly trying different things and seeing if they work. The user's guide is really vague about this subject: If a method is marked as throwing an Exception that is not an instance or a subclass of java.rmi.RemoteException, then things are subtly different. The exception is no longer a SOAP Fault, but described as a wsdl:fault in the WSDL of the method. According to the JAX-RPC specification, your subclass of Exception must have accessor methods to access all the fields in the object to be marshalled /and/ a constructor that takes as parameters all the same fields (i.e, arguments of the same name and type). This is a kind of immutable variant of a normal JavaBean http://java.sun.com/products/javabeans. The fields in the object must be of the datatypes that can be reliably mapped into WSDL. If your exception meets this specification, then the WSDL describing the method will describe the exception too, enabling callers to create stub implementations of the exception, regardless of platform. I was kind of hoping someone else out there would have had some experience with getting this to work. -Jack Jarmo Doc wrote: I have an Axis client stub which was generated from WSDL. *All* of the client-side user-defined exceptions extend org.apache.axis.AxisFault. The equivalent exceptions at the server also extend org.apache.axis.AxisFault, rather than Exception. This is a decidedly dodgy area, imo, especially when it comes to interop with non-Axis clients. From: Jack Lund [EMAIL PROTECTED] Reply-To: axis-user@ws.apache.org To: axis-user@ws.apache.org Subject: RE: Problems getting user exceptions to work Date: Wed, 29 Mar 2006 14:51:47 -0600 Nope, didn't work. Wouldn't think it would - AxisFault isn't a subclass of InvalidDateException. -Jack Jarmo Doc wrote: Try doing this: catch (AxisFault ex) { if (ex instanceof InvalidDateException) { InvalidDateException myex = (InvalidDateException)ex; // deal with myex here } // deal with others here } From: Jack Lund [EMAIL PROTECTED] Reply-To: axis-user@ws.apache.org To: axis-user@ws.apache.org Subject: Problems getting user exceptions to work Date: Wed, 29 Mar 2006 12:21:33 -0600 Hi. I'm using axis 1.2.1, and I'm trying to get the exceptions sent by my service thrown to the client. For instance, my service can throw an InvalidDateException exception, which is a subclass of java.lang.Exception, and I want the client code to get that exception. What little is said on the axis website about this implies that it should just work, but it doesn't seem to - what I get on the other side is an AxisFault with the message string from my exception embedded inside. Is there something special I have to do, on either side, to get this to work? Thanks. -Jack
Re: Problems getting user exceptions to work
Thanks for taking the time to answer me so thoroughly. I really, really appreciate it. Dies Koper wrote: I am not sure about meaning of The exception is no longer a SOAP Fault in your quote of the User's Guide, as a fault described in the WSDL is still a SOAP fault when it is included in the SOAP body. I do not think I contradicted anything in the quote. It refers to the JAX-RPC 1.1 spec. I also got my information from there, so you should just be seeing different ways of saying the same. Well, from the quote, it looks like they're saying that all you need to do to pass exceptions is a) inherit from Exception, and b) be a javabean whose fields are wsdl-able datatypes. It never mentions that you have to inherit from AxisFault. As you have probably noticed, in this mailing list the recommended approach with Axis seems to be to start with the WSDL (maybe the first draft generated by Java2WSDL). You tweak the WSDL into the service you want, and develop the client and server implementations from there. Axis also allows you to take a different approach, but I would not be surprised if there are more bugs on that path. I still do not understand whether you delete the generated exceptions and use your own. I don't generate exceptions at all. I never do Java2WSDL or WSDL2Java. The service class, data and exceptions are all standard Java classes. Do you want to discuss the validity of Axis's implementation or get your problem solved? I'm fine with either, just want to know how to answer. I apologize for my frustration level. I have no problems with Axis's implementation - what I've been able to see of it is really, really great. My only problem is the lack of documentation, especially in an area as fundamental as exception handling. Please look at the generated interface, javabeans and exception classes as not being part of your client, but part of Axis's WSDL-Java mapping. Your client class does not need to have any dependencies on axis classes. Just catch the InvalidDateException and don't care whether it extends AxisFault internally. It is just a generated class that would be regenerated anyway if you would use a different SOAP engine. I think that's the disconnect we're having here. I'm not generating anything, nor am I interested in generating anything. From what I've been able to see, Axis provides me with the ability to drop a standard Java class into its container, without having to do any code generation, and it will automatically create the service. I've already taken advantage of that, and it works great. Unfortunately, it doesn't seem to handle exceptions the same way, which is why I was so confused. What you seem to be saying is that I have to generate the code from the WSDL (or, alternatively, generate the WSDL from the java class and then generate the client and exceptions from the WSDL) in order to have exception handling. Unfortunately, that's not something I can do, because of the architectural and technical constraints of the project. I can write something which intercepts the exceptions before they get to Axis on the server side, and wrap them in an AxisFault, but it will be an enormous pain. I was hoping that Axis would do that. They're obviously already catching exceptions on the server side, and I was hoping that they would just serialize it just as they would any other class going across the wire, which is what I thought that section in the user's guide was saying. Unfortunately, it sounds like this isn't the case. 3) There is no number 3. ;-) Maybe later? :) You never know. :) It doesn't make much sense to me that axis would have this wonderful mechanism whereby we can install a fairly arbitrary Java class and turn it magically into a web service...unless you throw exceptions, in which case all bets are off. Of course, I've been wrong before. I am wondering whether you just ran into a bug or expect something from Axis that it was not designed to do. Don't know. I guess we may never know - unless I stumble on the solution randomly. Weirder stuff has happened before. Thanks again for taking the time to answer my questions. Jack
Support for choice / group elements in WSDL2Java
Hi, I downloaded Axis 1.2.1 Final and tried using the included WSDL2Java tool to generate Java classes corresponding to a WSDL file. The schema in the WSDL file is the DSMLv2 schema available at: http://www.oasis-open.org/committees/dsml/docs/DSMLv2.xsd The generated Java classes didn't look quite right. Particularly, processing of the xsd:choice and xsd:group tags in DSMLv2.xsd seemed to have been skipped, e.g. a class BatchRequest.java was created but it did not contain any mention of the BatchRequests group. Does Axis support xsd:choice and/or xsd:group tags? Thanks, Jack __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com