Re: When do cleanup functions need to be called?
On spec, wouldn't it be related to the scope of your services ? http://www.developer.com/java/web/article.php/3620661 David Rees a écrit : On Tue, Jul 29, 2008 at 10:52 PM, Amila Suriarachchi <[EMAIL PROTECTED]> wrote: this method should be call when the MyServiceStub (see finalize method in ServiceClient) is garbage collected. I am not sure why it is not being called automatically. I don't think that it's being garbage collected at all. From what I can tell, a bunch of objects are still being referenced by the AxisConfiguration referenced by the AxisServlet. In RC1 we fixed a memory leak regarding this. But I can not realy think the reason for your problem. Yes, 1.4.1 RC1 makes the situation a lot better than 1.4 - Calling cleanup has no effect on the memory leak (see my earlier followup email). you can get the AxisConfiguration object like this, AxisConfiguration axiConfiguration = MessageContext.getCurrentMessageContext().getConfigurationContext().getAxisConfiguration(); and check whether there are some additional objects there after calling clean up. Please log a jira. Once I can create a small reproducable test-case I'll log a jira issue. Let me know if there is any other information I can gather or if there's anything else you want me to try in the meantime. Thanks, -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** Si vous n'êtes pas le destinataire désigné de ce message ou une personne autorisée à l'utiliser, toute distribution, copie, publication ou usage à quelques fins que ce soit des informations dans ce message sont interdits. Merci d'informer immédiatement l'expéditeur par messagerie, et, de détruire ce message. This e-mail is confidential. If you are not the addressee or an authorized recipient of this message, any distribution, copying, publication or use of this information for any purpose is prohibited. Please notify the sender immediately by e-mail and then delete this message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis with XSLT
Or you may use AXIOM service and client to build and decode datas in a DOM-like tree. sumedha rubasinghe a écrit : Hi, Data Services is a mechanism to expose relational database objects as web services. It will return data in your database object (eg. table) in XML format. Checkout following tutorial @ http://wso2.org/library/2617 . A collection of such tutorials can be found @ http://wso2.org/library/3183 . /sumedha On Tue, Jul 29, 2008 at 8:39 PM, samsam007 <[EMAIL PROTECTED]> wrote: Hi, I tried to build a AXIS service to return a recordset (from array or database) to an AXIS client. The client will use the following APIs to request the recordset from the AXIS service server: CreateCall() -> SetTargetEndpointAddress(..) -> SetOperationName(...) -> call.invoke() Now, I am not sure how to build the AXIS service to return the recordset to the soap client. I know xslt can be used to interact between soap/axis service and client. Can anybody post an example about how tho use AXIS with XSLT to return record(xml data) to the client? Thanks S -- View this message in context: http://www.nabble.com/Axis-with-XSLT-tp18714395p18714395.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** Si vous n'êtes pas le destinataire désigné de ce message ou une personne autorisée à l'utiliser, toute distribution, copie, publication ou usage à quelques fins que ce soit des informations dans ce message sont interdits. Merci d'informer immédiatement l'expéditeur par messagerie, et, de détruire ce message. This e-mail is confidential. If you are not the addressee or an authorized recipient of this message, any distribution, copying, publication or use of this information for any purpose is prohibited. Please notify the sender immediately by e-mail and then delete this message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2 with Properties
I had about the same problem : my database.properties file had to be put in the same folder as the .aar : webapps/axis2/WEB-INF/services. I guess Axis can't allow FileInputStream to fetch the file from within the .aar . Three days ago I asked here how to specify to Axis2 the directory to use for relative file paths used in a service : Keith Chapman suggested to add it to the classpath and then load it off the classpath. Regards Pierre [EMAIL PROTECTED] a écrit : Hello, I have a problem with my properties class. After archiving my service my database controller can't locate or read the properties data. In the data are the settings for the database connection like treiber , username url . Where do I have to place the properties for the right reading and is it possible to use a normal properties like this: private boolean loadProperties() { boolean data = "">false; try { properties.load(new FileInputStream(config)); data = "">true; } catch (final FileNotFoundException e) { System.out.println("Config File konnte nicht gefunden weren oder existiert nicht."); data = "">false; e.printStackTrace(); } catch (final IOException e) { System.out.println("Es ist ein Fehler beim Lesen der Config Datei aufgetreten."); data = "">false; e.printStackTrace(); } return data; }// end of load Properties I hope , that someone can help with this problem. Best regards Jörn ** Si vous n'êtes pas le destinataire désigné de ce message ou une personne autorisée à l'utiliser, toute distribution, copie, publication ou usage à quelques fins que ce soit des informations dans ce message sont interdits. Merci d'informer immédiatement l'expéditeur par messagerie, et, de détruire ce message. This e-mail is confidential. If you are not the addressee or an authorized recipient of this message, any distribution, copying, publication or use of this information for any purpose is prohibited. Please notify the sender immediately by e-mail and then delete this message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2 client time out
With the ServiceClient Options (eg stub._getServiceClient().getOptions() ), set : options.setTimeOutInMilliSeconds(9) Shehan Simen a écrit : Hi, How to set up client timeout interval in axis2 client code? In server side it takes around 1min to send reply to the client and my client gives error as time out. I am using tomcat with eclipse. Thankx. ** Si vous n'êtes pas le destinataire désigné de ce message ou une personne autorisée à l'utiliser, toute distribution, copie, publication ou usage à quelques fins que ce soit des informations dans ce message sont interdits. Merci d'informer immédiatement l'expéditeur par messagerie, et, de détruire ce message. This e-mail is confidential. If you are not the addressee or an authorized recipient of this message, any distribution, copying, publication or use of this information for any purpose is prohibited. Please notify the sender immediately by e-mail and then delete this message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AXIOM bug or feature
Hello, There seems to be a minor bug - or perhaps feature - in AXIOM : One may set the attribute of an OMElement to "null" without having any error. But this OMElement can't be returned (as an operation response) nor be converted to String (e.g for display purpose) : a "java.lang.NullPointerException" is thrown at this time. Why doesn't the null attribute value get converted to an empty string, or why doesn't the attribute simply get discarded ? Thanks, Pierre Muller Example trace when trying to display an OMElement with a null attribute : Exception in thread "main" java.lang.NullPointerException at com.ctc.wstx.sw.BaseNsStreamWriter.doWriteAttr(BaseNsStreamWriter.java:468) at com.ctc.wstx.sw.BaseNsStreamWriter.writeAttribute(BaseNsStreamWriter.java:230) at org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeAttribute(MTOMXMLStreamWriter.java:178) at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeStartpart(OMSerializerUtil.java:443) at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeStartpart(OMSerializerUtil.java:197) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:901) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:889) at org.apache.axiom.om.impl.llom.OMNodeImpl.serialize(OMNodeImpl.java:375) at org.apache.axiom.om.impl.llom.OMElementImpl.toString(OMElementImpl.java:1051) ** Si vous n'êtes pas le destinataire désigné de ce message ou une personne autorisée à l'utiliser, toute distribution, copie, publication ou usage à quelques fins que ce soit des informations dans ce message sont interdits. Merci d'informer immédiatement l'expéditeur par messagerie, et, de détruire ce message. This e-mail is confidential. If you are not the addressee or an authorized recipient of this message, any distribution, copying, publication or use of this information for any purpose is prohibited. Please notify the sender immediately by e-mail and then delete this message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Relative paths in a service
Hello, I have a jar trying to read the file : "xxx.properties". It only manages to find it when I put xxx.properties into axis2/WEB-INF/services/ folder. Is there a way to specify to Axis2 the directory to use for relative file paths used in a service ? Thanks Pierre ** Si vous n'êtes pas le destinataire désigné de ce message ou une personne autorisée à l'utiliser, toute distribution, copie, publication ou usage à quelques fins que ce soit des informations dans ce message sont interdits. Merci d'informer immédiatement l'expéditeur par messagerie, et, de détruire ce message. This e-mail is confidential. If you are not the addressee or an authorized recipient of this message, any distribution, copying, publication or use of this information for any purpose is prohibited. Please notify the sender immediately by e-mail and then delete this message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Enabling MTOM crashes Axis2.1.4
I've just tried. No success. I even checked the md5sum of the downloaded zipfile, it was good. No success either with another version of Tomcat (5.0). Pierre Thilina Gunarathne a écrit : Did you try downloading Axis2 again and doing a clean installation... I know this a typical IT support response ;-) .. But there is a chance that your jar might be corrupt.. thanks, Thilina On Thu, Jul 17, 2008 at 6:05 AM, Pierre Muller <[EMAIL PROTECTED]> wrote: Hello, I'm getting an "internal server error" when trying to enable MTOM in Axis2.1.4. Here is what I did : - I installed Axis2.1.4 into Tomcat 5.5.26 (with JDK 1.5.0.15, on Windows) (I dropped the .war in tomcat's "webapps" folder - in webapps/axis2/WEB-INF/conf/axis2.xml , I changed the parameter "enableMTOM" to true (SwA is still disabled) - I restarted Tomcat Then : - Axis2 homepage displays correctly ; also "List services" and services WSDL dynamic generation are still working. - BUT when trying to execute any operation of any service from the browser (e.g http://localhost:8080/axis2/services/Version/getVersion) , I get an "Internal server error", and Tomcat logs the following error for the servlet AxisServlet : java.lang.NoClassDefFoundError javax/activation/DataSource (see stack trace copied below). Same stack trace when executing the operation from an Axis2 client. I tried to move activation-1.1.jar from "webapps/axis2/WEB-INF/lib" to several other lib/ locations (jdk, jre, tomcat...), no success. No success either, when adding this jar to my CLASSPATH variable. Has someone any idea ? Thanks, Pierre Muller java.lang.NoClassDefFoundError: javax/activation/DataSource at org.apache.axiom.om.impl.MIMEOutputUtils.complete(MIMEOutputUtils.java:141) at org.apache.axiom.om.impl.MTOMXMLStreamWriter.flush(MTOMXMLStreamWriter.java:159) at org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:472) at org.apache.axis2.transport.http.ApplicationXMLFormatter.writeTo(ApplicationXMLFormatter.java:143) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:330) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:213) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448) at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176) at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:136) at org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:130) at org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:824) at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:253) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:595) ** Si vous n'êtes pas le destinataire désigné de ce message ou une personne autorisée à l'utiliser, toute distribution, copie, publication ou usage à quelques fins que ce soit des informations dans ce message sont interdits. Merci d'informer immédiatement l'expéditeur par messagerie, et, de détruire ce message. This e-mail is confidential. If you are not the addressee or an authorized recipient of this message, any distribution, copying, publication or use of this information for a
Re: Axis2 work files not deleted
Alternatively : - jars could be dropped in axis2/WEB-INF/services/lib/ (to keep axis2 jars apart from services jars). - You could simply create the specific directory Davanum described (axis2/WEB-INF/services/myService/) and drop in this directory what would be the whole content of the aar. Davanum Srinivas a écrit : Steve, I think you need to switch to completely get rid of aar and mar packages and switch to using just the directory. Let me explain. 1) axis2/WEB-INF/lib - drop all the jars currently in your aar or mar here 2) axis2/WEB-INF/classes - drop all the .class files in your aar here 3) axis2/WEB-INF/services - create one directory for each aar that you used to have 4) axis2/WEB-INF/modules - create one directory for each mar that you used to have 5) For each service, create a META-INF/services.xml under the service specific directory. For example axis2/WEB-INF/services/myService/META-INF/services.xml 6) For each module, create a META-INF/module.xml under the module specific directory. For example axis2/WEB-INF/modules/myModule/META-INF/module.xml Once you do this, there is no need for axis2 to unpack the aar(s)/mar(s) and it won't clutter up the Catalina work directory. thanks, dims [EMAIL PROTECTED] wrote: In my Tomcat work directory (work\Catalina\localhost\axis2) I'm getting multiple copies of each of the Axis2 archives (jar, aar, mar): axis211221antlr-2.7.6.jar axis217411antlr-2.7.6.jar etc A new set gets generated each time I restart Tomcat. On my Windows XP system, these are deleted each time Tomcat stops, but not on our Linux (CentOS) systems. These are running on pretty small virtual machines and we run out of disk space pretty easily. Sorry for reposting this question - I first posed it about two months ago - but as we get closer to putting services into production this is becoming more of a concern and I have not made any progress in finding the problem. Any ideas on what's going on here - and how to prevent it? If anyone with a similar environment would care to check their work area and see if the same thing is happening (you may have sufficient disk space for it to not be critical) I would really appreciate it. It will help determine whether this is caused by Axis2, Tomcat, server config, etc. Thanks! - Steve __ Steve Gruverman, Programmer IntelliCare, Inc. | A Medco Health Solutions Company 500 Southborough Drive | South Portland ME 04106 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** Si vous n'êtes pas le destinataire désigné de ce message ou une personne autorisée à l'utiliser, toute distribution, copie, publication ou usage à quelques fins que ce soit des informations dans ce message sont interdits. Merci d'informer immédiatement l'expéditeur par messagerie, et, de détruire ce message. This e-mail is confidential. If you are not the addressee or an authorized recipient of this message, any distribution, copying, publication or use of this information for any purpose is prohibited. Please notify the sender immediately by e-mail and then delete this message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Enabling MTOM crashes Axis2.1.4
Hello, I'm getting an "internal server error" when trying to enable MTOM in Axis2.1.4. Here is what I did : - I installed Axis2.1.4 into Tomcat 5.5.26 (with JDK 1.5.0.15, on Windows) (I dropped the .war in tomcat's "webapps" folder - in webapps/axis2/WEB-INF/conf/axis2.xml , I changed the parameter "enableMTOM" to true (SwA is still disabled) - I restarted Tomcat Then : - Axis2 homepage displays correctly ; also "List services" and services WSDL dynamic generation are still working. - BUT when trying to execute any operation of any service from the browser (e.g http://localhost:8080/axis2/services/Version/getVersion) , I get an "Internal server error", and Tomcat logs the following error for the servlet AxisServlet : java.lang.NoClassDefFoundError javax/activation/DataSource (see stack trace copied below). Same stack trace when executing the operation from an Axis2 client. I tried to move activation-1.1.jar from "webapps/axis2/WEB-INF/lib" to several other lib/ locations (jdk, jre, tomcat...), no success. No success either, when adding this jar to my CLASSPATH variable. Has someone any idea ? Thanks, Pierre Muller java.lang.NoClassDefFoundError: javax/activation/DataSource at org.apache.axiom.om.impl.MIMEOutputUtils.complete(MIMEOutputUtils.java:141) at org.apache.axiom.om.impl.MTOMXMLStreamWriter.flush(MTOMXMLStreamWriter.java:159) at org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:472) at org.apache.axis2.transport.http.ApplicationXMLFormatter.writeTo(ApplicationXMLFormatter.java:143) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:330) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:213) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448) at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176) at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:136) at org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:130) at org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:824) at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:253) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:595) ** Si vous n'êtes pas le destinataire désigné de ce message ou une personne autorisée à l'utiliser, toute distribution, copie, publication ou usage à quelques fins que ce soit des informations dans ce message sont interdits. Merci d'informer immédiatement l'expéditeur par messagerie, et, de détruire ce message. This e-mail is confidential. If you are not the addressee or an authorized recipient of this message, any distribution, copying, publication or use of this information for any purpose is prohibited. Please notify the sender immediately by e-mail and then delete this message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]