AW: AW: ConcurrentModificationException in Axis2 code ! - SEVEREbug?
Hi, the problem is in axis2.log there is no stacktrace, only this: 2007-02-20 15:46:12,281 DEBUG AxisServlet - org.apache.axis2.AxisFault: null; nested exception is: java.util.ConcurrentModificationException I don't understand why Axis2 doesn't log a normal stacktrace :( If my code causes the exception, then Axis2 should catch it and log it properly. regards Marc > -Ursprüngliche Nachricht- > Von: Michele Mazzucco [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 20. Februar 2007 16:05 > An: axis-user@ws.apache.org > Betreff: Re: AW: ConcurrentModificationException in Axis2 > code ! - SEVEREbug? > > On Tue, 2007-02-20 at 16:00 +0100, Marc Lustig wrote: > > Hi Michele, > > > > thanks for the hint. However I don't think this is causing > the Exception because it occurs on the server-side, and this > bug appears to be in the client-API of Axis2. > > I'm sorry, but you havent' mentioned you problem happens on > the server side. Maybe if you post some code we can help. > > > Or is the client-API also called when webservice-requests > are consumed? > > No, it isn't. > > > > regards > > Marc > > Regards, > Michele > > > > > -Ursprüngliche Nachricht- > > > Von: Michele Mazzucco [mailto:[EMAIL PROTECTED] > > > Gesendet: Dienstag, 20. Februar 2007 15:00 > > > An: axis-user@ws.apache.org > > > Betreff: Re: ConcurrentModificationException in Axis2 code ! > > > - SEVERE bug? > > > > > > Marc, > > > > > > try to have a look to > > > https://issues.apache.org/jira/browse/AXIS2-1053 > > > It it is the same problem, the workaround I've found is > > > > > > > > > public class Foo { > > > private static Object lock = new Object(); // ... > > > > > > private void send() { > > > // initialization here > > > > > > synchronized(lock) { > > > sender.engageModule(...); > > >} > > > } > > > } > > > > > > > > > Regards, > > > Michele > > > > > > On Tue, 2007-02-20 at 14:46 +0100, Marc Lustig wrote: > > > > Hi, > > > > > > > > I am simply releasing 50 asynchronous requests on Axis2 > and as a > > > > result this appears in the log: > > > > > > > > > > > > > > > > java.util.ConcurrentModificationException > > > > at > > > > > > > > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxis > > > Op > > > > er > > > > ation.java:271) > > > > at > > > > > > > > org.apache.axis2.description.OutInAxisOperationClient.execute(OutInA > > > xi > > > > sO > > > > peration.java:202) > > > > > > > > > > > > Anybody having an idea what's going on and how to prevent this? > > > > > > > > regards > > > > Marc > > > > > > > > > > > > > > > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: [Asix2]Connection over firewall
Hi Davanum Thanks for your reply. I did follow the instruction, but still get java.net.ConnectionException: Connection refused: connect exception when I try to use WSDL2Java to generate stub from "outside" uri. I have modified both Axis2.xml: * at Geronimo server's deplyed folder * at my CLASSPATH registered axis2 folder where there are my wsdl2java etc This also happened when run client stub (i manaually saved the WSDL to local folder). Thanks a lot -Original Message- From: "Davanum Srinivas" <[EMAIL PROTECTED]> To: axis-user@ws.apache.org Date: Tue, 20 Feb 2007 07:55:32 -0500 Subject: Re: [Asix2]Connection over firewall http://wso2.org/library/161 On 2/20/07, Jiang Liu <[EMAIL PROTECTED]> wrote: > Hi all > I have a beginner question. My connection has restricted by firewall, > everything connection with outside requires to utilize school's proxy. I can > get "outside" service's WSDL and generate client stubs, but always get > AxisFault: Connection refused problem. So could anyone tell me how to setup > proxy setting in client stub? I get confused that should i write a separate > connection class or modify existing stubs/impls? > > Cheers!! > -- > Jiang Liu > Student Number: 3075163 > CS/Yallara Name: ljiang > RMIT, Melbourne > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jiang Liu Student Number: 3075163 CS/Yallara Name: ljiang RMIT, Melbourne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unexpected subelement while Axis2 Client -> Axis1 server
I hope you use adb as the axis2 client. Here the problem seems to be the receiving message is not compatible with the wsdl file you have used to generate the code. So please get the request you receive and validate it against the wsdl file and see. If it vaild please send it so that I'll have a look. What is the axis2 version you use? -- Amila Suriarachchi, WSO2 Inc.
Re: Re: Question on best practices regarding wsdl/xsd
Hi Anne I did have to access some services that using seperate style of WSDL. But the problem is when WSDL imports xml schema files, my generated client stub is not complete, espacially when using xmlbeans. I have to manually modify the orginal WSDL by adding "missing" schemas. So if i can not access to those schemas (only WSDL is public), what i can do to successfully generate a complete client? Regards -Original Message- From: "Anne Thomas Manes" <[EMAIL PROTECTED]> To: axis-user@ws.apache.org Date: Tue, 20 Feb 2007 23:46:58 -0500 Subject: Re: Question on best practices regarding wsdl/xsd "import" I just think that people don't follow best practices. Actually, a lot of tools will now automatically generate types in separate schemas, but I not aware of any tools that generate the service separately from the portType and/bindings. Of course the real best practice is to generate code form schemas rather than generating schemas from code. Anne On 2/20/07, John Eapen <[EMAIL PROTECTED]> wrote: > > Its my understanding that the one of best practices for wsdl developments > is to create schema types in a separate xsd file, the portType of wsdl > (abstract portion ) as a separate file and the wsdl service ( concrete > definition ) to be a in a separate file. > Obviously this helps with reuse , modularity and ease of development. > > Couple of questions/observations > > a. When I look around, at other published wsdl's, I see that most of them > do not follow this approach and rather have a single wsdl file containing > everything. > Is my understanding of this suggested practice incorrect or are there > interoperability issues here which may hv forced a single file approach ? > > b. Is there a way/tool/script to generate a "imploded" wsdl file ( just like > axis does ) where all the imports statements are replaced by the actual base > files ? > > Thanks > John > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jiang Liu Student Number: 3075163 CS/Yallara Name: ljiang RMIT, Melbourne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question on best practices regarding wsdl/xsd "import"
I just think that people don't follow best practices. Actually, a lot of tools will now automatically generate types in separate schemas, but I not aware of any tools that generate the service separately from the portType and/bindings. Of course the real best practice is to generate code form schemas rather than generating schemas from code. Anne On 2/20/07, John Eapen <[EMAIL PROTECTED]> wrote: Its my understanding that the one of best practices for wsdl developments is to create schema types in a separate xsd file, the portType of wsdl (abstract portion ) as a separate file and the wsdl service ( concrete definition ) to be a in a separate file. Obviously this helps with reuse , modularity and ease of development. Couple of questions/observations a. When I look around, at other published wsdl's, I see that most of them do not follow this approach and rather have a single wsdl file containing everything. Is my understanding of this suggested practice incorrect or are there interoperability issues here which may hv forced a single file approach ? b. Is there a way/tool/script to generate a "imploded" wsdl file ( just like axis does ) where all the imports statements are replaced by the actual base files ? Thanks John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] ServiceClient question
Hi Michele, There is only one listener instance per configuration context. So in this case you will have to make sure that all the ServiceClients hv done with the listener, before stopping it. Chamikara On 2/14/07, Michele Mazzucco <[EMAIL PROTECTED]> wrote: Hi Chamikara, what about I want to use my custom configuration ctx across different service clients (the conf. ctx uses a multithreaded connection manager)? Is it still ok to call configurationContext.getListenerManager ().stop(); ? Thanks, Michele On Tue, 2006-10-24 at 09:58 +0530, Chamikara Jayalath wrote: > To stop the listner yourself you will have to call the following > method as well. > > configurationContext.getListenerManager().stop(); > > Chamikara > > > On 10/24/06, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote: > Hi Michele; > > Yes , cleanup is enough. > Note : when you are creating service client if you pass your > own > configctx , then it will not stop the started listeners , but > if you > create that with default constructor it does. > > Thanks > Deepal > > >Hi all, > > > >what should I use instead of the > ServiceClient.finalizeInvoke() call > >(which I guess has been removed)? Is the cleanup() call > enough? > > > >Thanks, > >Michele > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > Thanks, > Deepal > > ~Future is Open~ > > > > - > 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]
Unexpected subelement while Axis2 Client -> Axis1 server
I'm getting and error Unexpected subelement. I have a Axis1 service and deployed with server-config.wsdd on Tomcat 5.5 http://xml.apache.org/axis/wsdd/"; xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";> http://webservice.ran.com/generated I retrieved the wsdl file from http://localhost:8080/service/TestWebService?wsdl http://webservice.ran.com/generated"; xmlns:apachesoap="http://xml.apache.org/xml-soap"; xmlns:impl="http://webservice.ran.com/generated"; xmlns:intf="http://webservice.ran.com/generated"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema";> http://schemas.xmlsoap.org/soap/http"/> http://webservice.ran.com/generated"; use="literal"/> http://webservice.ran.com/generated"; use="literal"/> http://localhost:8080/starws/services/TestWebService"/> I am able to generate the java file by using wsdl2java. But when I call the method i get java.lang.RuntimeException: Unexpected subelement getTestReturn I must be doing something wrong. Can someone point me to the right direction? -- View this message in context: http://www.nabble.com/Unexpected-subelement--while-Axis2-Client--%3E-Axis1-server-tf3264117.html#a9073201 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Rampart outflow disable
While doing some profiling of transient memory on our server, I noticed that the rampart module was using a large amount (of memory) while processing the outbound message. After some debugging, it looks like it is related to some code in RampartMessageData that converts the OM document to a DOM and then later back. I don't actually do anything, security-wise, to my outbound messages, so I'd just like to skip the rampart processing altogether to avoid the memory spike (and processing, for that matter). I was able to do this by editing the module.xml inside the rampart-1.1.mar file, but I'm wondering if there is a better/easier way to skip rampart processing for outbound messages.? Ryan Nelsestuen
Re: AXIS2: Dynamic creation and deploy of service
Hi Angel, That is exactly what I am looking for. I think there is no other way for generating the service - we have to run wsdl2java with the -adb option and gather the generated artifacts, although I was looking for avoiding the generation of an aar file and hoping that I could do the service creation programmatically and supply a 'skeleton' that will implement the relevant service operations as defined in the WSDL. But I do not see any way I can do that. The next phase is deployment - please post the code (or if that is not possible the basic steps that are required) for programmatic (hot) deployment. Thanks for your help. Shantanu - Original Message From: Angel Todorov <[EMAIL PROTECTED]> To: axis-user@ws.apache.org Sent: Saturday, February 17, 2007 1:32:38 AM Subject: Re: AXIS2: Dynamic creation and deploy of service Hi Shantanu, I have coded exactly what you want, including patches to the deployment engine of Axis2. There is a remote deployment API which you can call from anywhere via HTTP or a web service. The repository listener is synchronized so that a File system scheduler and a remote deployment call don't intervene. You also get feedback regarding the status of the deployed service (faulty or not, and if faulty - why). If you could wait until tomorrow i can send these to the ML. Thanks. Best, Angel On 2/16/07, Shantanu Sen <[EMAIL PROTECTED]> wrote: > Yes, if you could send some pointers it would be of great help. > > Firstly - to generate the service I can run the wsdl2java and generate the > necessary artifacts. Is there any other way? All we are interested is that > the service will have multiple operations that take in XML documents, so if > we have just an OMElement as the input and output for each of these > operations, it will work fine for us. > > Secondly, once I have a service, how do I programmatically register the > service (axis2 is running as a web app on an appserver). Once we register the > service programmatically (i.e. hot deployment) can we also persist the > deployment? > > Any help would be greatly appreciated. > > Thanks, > Shantanu > > - Original Message > From: Deepal Jayasinghe <[EMAIL PROTECTED]> > To: axis-user@ws.apache.org > Sent: Thursday, February 15, 2007 8:57:37 PM > Subject: Re: AXIS2: Dynamic creation and deploy of service > > Hi Shantanu ; > There is no sample as such in the axis2 codebase for this particular > case, but if you want we will be able to help you. > > Thanks > Deepal > > >Is there any sample that shows how to programmatically create a service > >(from a WSDL) and deploy it on an instance of Axis2 running on a appserver > >such as JBoss? > > > >Thanks, > >Shantanu Sen > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - 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]
Question on best practices regarding wsdl/xsd "import"
Its my understanding that the one of best practices for wsdl developments is to create schema types in a separate xsd file, the portType of wsdl (abstract portion ) as a separate file and the wsdl service ( concrete definition ) to be a in a separate file. Obviously this helps with reuse , modularity and ease of development. Couple of questions/observations a. When I look around, at other published wsdl's, I see that most of them do not follow this approach and rather have a single wsdl file containing everything. Is my understanding of this suggested practice incorrect or are there interoperability issues here which may hv forced a single file approach ? b. Is there a way/tool/script to generate a "imploded" wsdl file ( just like axis does ) where all the imports statements are replaced by the actual base files ? Thanks John
GZip in Axis
Hi, Thanks for replying. Is this two lines are essential for all the things to be done. ie Zipping the Request Xml. Getting Response In Zip Format (This is according to server inpl) Unzip the Response Xml. Or do I need to code any more for unzipping? Alick Buckley <[EMAIL PROTECTED]> wrote: Hi, If you are using a Axis 1.4 Agent to talk to a server that handles GZIP could try the follwoing : stub._setProperty ( org.apache.axis.transport.http.HTTPConstants.MC_ACCEPT_GZIP, Boolean.TRUE ) ; stub._setProperty ( org.apache.axis.transport.http.HTTPConstants.MC_GZIP_REQUEST, Boolean.TRUE ) ; -Original Message- From: Jobin Mathew [mailto:[EMAIL PROTECTED] Sent: Saturday, 17 February 2007 5:08 PM To: axis-user@ws.apache.org Subject: GZip in Axis Hi, I am using GZip compression in my project. The server is giving me GZipped response. But how can I unzip it. I used handler for doing this. In response handler I got the entire soap message in zipped format. Now I want to unzip it and add it to the same MessageContext. I searched too much but dont get any peice of code for doing this unzip in a handler. I am using Axis 1.4. Can you please help me. Thanks for all. Regards Jobin. - Looking for earth-friendly autos? Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. - Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit.
java.net.BindException problem
Hi all, I'm running 2 tomcat instances on the same host, respectively port 8081 and 18081 . The axis2.xml files are configured to run http servers on port 16060 and 26060. Finally, there's a client which runs the http server to receive asynchronous responses on port 6060. When the client sends a request I see the error below on the client side. I think the reason is that the server creates ServiceClient objects using a default ConfigurationContext, so I guess it tries to use port 6060 as well. Is there any tunable parameter (without changing the client or using another axis2.xml) to tell the system to run the http server on a different port? Thanks, Michele org.apache.axis2.transport.http.server.DefaultConnectionListenerFailureHandler.notifyAbnormalTermination(DefaultConnectionListenerFailureHandler.java:99) ERROR [HttpListener-6060-1] - Terminating connection listener [EMAIL PROTECTED] after 10retries in 0 seconds. java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359) at java.net.ServerSocket.bind(ServerSocket.java:319) at java.net.ServerSocket.(ServerSocket.java:185) at java.net.ServerSocket.(ServerSocket.java:97) at org.apache.axis2.transport.http.server.DefaultConnectionListener.run(DefaultConnectionListener.java:79) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor $Worker.runTask(ThreadPoolExecutor.java:665) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor $Worker.run(ThreadPoolExecutor.java:690) at java.lang.Thread.run(Thread.java:595) org.apache.axis2.transport.http.server.DefaultConnectionListenerFailureHandler.notifyAbnormalTermination(DefaultConnectionListenerFailureHandler.java:99) ERROR [HttpListener-6060-1] - Terminating connection listener [EMAIL PROTECTED] after 10retries in 0 seconds. java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359) at java.net.ServerSocket.bind(ServerSocket.java:319) at java.net.ServerSocket.(ServerSocket.java:185) at java.net.ServerSocket.(ServerSocket.java:97) at org.apache.axis2.transport.http.server.DefaultConnectionListener.run(DefaultConnectionListener.java:79) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor $Worker.runTask(ThreadPoolExecutor.java:665) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor $Worker.run(ThreadPoolExecutor.java:690) at java.lang.Thread.run(Thread.java:595) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error using Rampart with encryption
Hi, I'm attempting to use Axis 2 1.1.1 with Rampart 1.1 to make a WebService call using Encryption (I'm dynamically configuring it using the old OutflowConfiguration mechanism). I'm getting an error which I've seen elsewhere on the mail archives, but I've tried all the suggestions I can find, without success. The things I've tried are: - Made sure that bcprov*.jar is on my classpath (proven this by looking at a -verbose:class), I've tried both the version that ships with Rampart 1.1 and also the Java 1.5 version from Bouncycastle. - Made sure I've added security.provider.7=org.bouncycastle.jce.provider.BouncyCastleProvider to my java.security file (and checked 7 is the correct number) Are there any other things I could have missed? Stack trace: org.apache.axis2.AxisFault: WSHandler: Encryption: error during message processingorg.apache.ws.security.WSSecurityException: An unsupported signature or encryption algorithm was used (unsupported key transport encryption algorithm: No such algorithm: http://www.w3.org/2001/04/xmlenc#rsa-1_5); nested exception is: org.apache.ws.security.WSSecurityException: WSHandler: Encryption: error during message processingorg.apache.ws.security.WSSecurityException: An unsupported signature or encryption algorithm was used (unsupported key transport encryption algorithm: No such algorithm: http://www.w3.org/2001/04/xmlenc#rsa-1_5) at org.apache.rampart.handler.WSDoAllSender.processMessage(WSDoAllSender.ja va:92) at org.apache.rampart.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:74) at org.apache.axis2.engine.Phase.invoke(Phase.java:382) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:522) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:655) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper ation.java:237) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO peration.java:202) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:579 ) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508 ) Thanks in advance for any help, Nick
Re: AW: [Axis2] To many open connections
Hi Ted, Out of interest, what os/jvm are you using? Thanks, David On 20/02/07, Michele Mazzucco <[EMAIL PROTECTED]> wrote: Ted, if you want more control you can use OperationClient, but it won't give you more control over connections. Instead you could try something like this: // inititalization code ConfigurationContext multiThreadedConfigurationContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null); MultiThreadedHttpConnectionManager connectionManager = new MultiThreadedHttpConnectionManager(); HttpConnectionManagerParams params = new HttpConnectionManagerParams(); // you can tune these values params.setDefaultMaxConnectionsPerHost(5); params.setMaxTotalConnections(200); params.setStaleCheckingEnabled(true); connectionManager.setParams(params); HttpClient httpClient = new HttpClient(connectionManager); multiThreadedConfigurationContext.setProperty( HTTPConstants.REUSE_HTTP_CLIENT, Boolean.TRUE); multiThreadedConfigurationContext.setProperty( HTTPConstants.CACHED_HTTP_CLIENT, httpClient); ServiceClient sender = null; try { new ServiceClient(multiThreadedConfigurationContext, null); // set options end send message } finally { if (sender != null) { try { sender.cleanup(); } catch (AxisFault e) { // take the most appropriate action } } } Michele On Tue, 2007-02-20 at 11:01 +, [EMAIL PROTECTED] wrote: > Hi, > > thanks for fast reply, yes I'm using a ServiceClient to send my messages. I tryed out the connection reuse and I called the clean() method after each service call. It doesn't show any affects, the error is still present and there are still to many open connections wich leads to the address already in use error. Is there a way, not to use the ServiceClient for the calls to avoid this Problem and have more control over the connections? > > Thanks again, > Ted > > - Ursprüngliche Mail > Von: Michele Mazzucco <[EMAIL PROTECTED]> > An: axis-user@ws.apache.org > Gesendet: Dienstag, den 20. Februar 2007, 11:21:59 Uhr > Betreff: Re: [Axis2] To many open connections > > Ted, > > supposing you're using a ServiceClient object so send your messages, do > you call the cleanup() method in a finally block? > BTW, try to have a look here http://wso2.org/library/87 and here > http://wso2.org/library/165 > > Hope this helps, > Michele > > On Tue, 2007-02-20 at 10:11 +, [EMAIL PROTECTED] > wrote: > > Hi, > > > > trying to stress an Axis2 implemented application after round about 3960 calls an "Address already in use" error occours, because of the huge bunch of open connections. Is there a way to instruct Axis to close these connections? > > > > Thanks a lot > > Ted > > > > > > > > > > > > > > > > ___ > > Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de > > > > - > > 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] > > > > > > > > ___ > Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de > > - > 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] -- David Illsley - IBM Web Services Development - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axis2: Encrypting the merlin keystore password property
I have deployed an Axis2 service with security enabled. The crypto properties specify a keystore and password. Is there any way that the password property can be stored in an encrypted form, not plain text? org.apache.ws.security.crypto.merlin.keystore.password=password org.apache.ws.security.crypto.merlin.file=mykey.jks Thanks. Andrew. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
soap:address in WSDL
Relative newbie here. I have Web services hosted by Axis2 and let Axis generate the WSDL. My project spec: * .NET ASP client, using Visual Studio 2005 * Axis2 running under Tomcat in Unix I've successfully added a Web Reference in VS and am calling my WS via a C# Proxy. My question is this: The WSDL generated has the host:port (for Axis2) info embedded in soap:address location="" under the service definition of the WSDL. When I add a Web Reference into VS, it takes the whole WSDL with that address and becomes part of the VS project. The problem I see ahead - lies with migration from a Dev / QA / Prod. I don't want the host:port embedded in the WSDL within the .Net Web Reference, do I? Surely, I need to tell ASP.NET where the service is, but not have it imbedded in the wsdl. Is this where UDDI comes into play? What is best practice? Thanks for your help. Ken Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: ConcurrentModificationException in Axis2 code ! - SEVERE bug?
On Tue, 2007-02-20 at 16:00 +0100, Marc Lustig wrote: > Hi Michele, > > thanks for the hint. However I don't think this is causing the Exception > because it occurs on the server-side, and this bug appears to be in the > client-API of Axis2. I'm sorry, but you havent' mentioned you problem happens on the server side. Maybe if you post some code we can help. > Or is the client-API also called when webservice-requests are consumed? No, it isn't. > > regards > Marc Regards, Michele > > > -Ursprüngliche Nachricht- > > Von: Michele Mazzucco [mailto:[EMAIL PROTECTED] > > Gesendet: Dienstag, 20. Februar 2007 15:00 > > An: axis-user@ws.apache.org > > Betreff: Re: ConcurrentModificationException in Axis2 code ! > > - SEVERE bug? > > > > Marc, > > > > try to have a look to https://issues.apache.org/jira/browse/AXIS2-1053 > > It it is the same problem, the workaround I've found is > > > > > > public class Foo { > > private static Object lock = new Object(); // ... > > > > private void send() { > > // initialization here > > > > synchronized(lock) { > > sender.engageModule(...); > >} > > } > > } > > > > > > Regards, > > Michele > > > > On Tue, 2007-02-20 at 14:46 +0100, Marc Lustig wrote: > > > Hi, > > > > > > I am simply releasing 50 asynchronous requests on Axis2 and as a > > > result this appears in the log: > > > > > > > > > > > > java.util.ConcurrentModificationException > > > at > > > > > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOp > > > er > > > ation.java:271) > > > at > > > > > org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxi > > > sO > > > peration.java:202) > > > > > > > > > Anybody having an idea what's going on and how to prevent this? > > > > > > regards > > > Marc > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: ConcurrentModificationException in Axis2 code ! - SEVERE bug?
Hi Michele, thanks for the hint. However I don't think this is causing the Exception because it occurs on the server-side, and this bug appears to be in the client-API of Axis2. Or is the client-API also called when webservice-requests are consumed? regards Marc > -Ursprüngliche Nachricht- > Von: Michele Mazzucco [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 20. Februar 2007 15:00 > An: axis-user@ws.apache.org > Betreff: Re: ConcurrentModificationException in Axis2 code ! > - SEVERE bug? > > Marc, > > try to have a look to https://issues.apache.org/jira/browse/AXIS2-1053 > It it is the same problem, the workaround I've found is > > > public class Foo { > private static Object lock = new Object(); // ... > > private void send() { > // initialization here > > synchronized(lock) { > sender.engageModule(...); >} > } > } > > > Regards, > Michele > > On Tue, 2007-02-20 at 14:46 +0100, Marc Lustig wrote: > > Hi, > > > > I am simply releasing 50 asynchronous requests on Axis2 and as a > > result this appears in the log: > > > > > > > > java.util.ConcurrentModificationException > > at > > > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOp > > er > > ation.java:271) > > at > > > org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxi > > sO > > peration.java:202) > > > > > > Anybody having an idea what's going on and how to prevent this? > > > > regards > > Marc > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn and wasdl2code
Running mvn generate-source I get the following error: [INFO] [axis2-wsdl2code:wsdl2code {execution: default}] [INFO] [ERROR] FATAL ERROR [INFO] [INFO] javax/wsdl/WSDLException [INFO] [INFO] Trace java.lang.NoClassDefFoundError: javax/wsdl/WSDLException at org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.execute(WSDL2CodeMojo .java:396) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:534) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi fecycle(DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:589) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] [INFO] Total time: 5 seconds [INFO] Finished at: Tue Feb 20 15:48:07 CET 2007 [INFO] Final Memory: 3M/7M [INFO] My pom.xml (the build part) lokks as follows: org.apache.axis2.maven2 axis2-wsdl2code-maven-plugin wsdl2code target/generated skoda.dispoliste src/main/wsdl/DispoListe.wsdl Any idea what the javax/wsdl/WSDLException can be? Thanks, Anders Malmborg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] Exception occurred while trying to invoke service method
Ah ... no, the spaces are not in my code, only in my mail there is a space... I modified my service with other method trying to understand what is the problem, but some work and some not package stampa.wservice; import stampa.data.Ordinabile; public class PrintOnVideo{ Ordinabile m; public String print(Ordinabile o){ m=o; //String r=new String(m.getClass().getName()); String r=new String("Questa [ la mia stramaledetta classe ..."); return (r); } public void setO(Ordinabile o){ m=o;} public Ordinabile getO(){ return m; } public String stampami(){ return("Speriamo Speriamo Speriamo...");} } setO don't have exceptions, getO returns me a null object, stampami works and print gives me this exception ... Exception in thread "main" org.apache.axis2.AxisFault: Exception occurred while trying to invoke service method print at org.apache.axis2.description.OutInAxisOperationClient.send( OutInAxisOperation.java:271) at org.apache.axis2.description.OutInAxisOperationClient.execute( OutInAxisOperation.java:202) at org.apache.axis2.client.ServiceClient.sendReceive( ServiceClient.java:579) at org.apache.axis2.client.ServiceClient.sendReceive( ServiceClient.java:508) at org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking( RPCServiceClient.java:95) at stampa.client.PrintClient.main(PrintClient.java:73) What can I do? Please, can you help me? Kay* 2007/2/20, Javier Kohen <[EMAIL PROTECTED]>: El mar, 20-02-2007 a las 14:20 +0100, Kay* escribió: > Michele, there are no spaces I'm sorry to intrude, but I do see the extra spaces Michele mentioned. > 2007/2/19, Michele Mazzucco <[EMAIL PROTECTED]>: > Kay, > > > please try to remove the white space from the EPR. > > On 19 Feb 2007, at 16:06, Kay* wrote: > > EndpointReference targetEPR = new > > EndpointReference(" > > http://localhost:8080/axis2/services/PrintOnVideo";); > > > > options.setTo(targetEPR); Check the line where EndpointReference is constructed in your code. You'll see that there is an extra space between " and http:. You can also see it in some of the previous posts in this thread. Cheers, -- Javier Kohen <[EMAIL PROTECTED]> ICQ: blashyrkh #2361802 Jabber: [EMAIL PROTECTED]
Re: [Axis2] Exception occurred while trying to invoke service method
El mar, 20-02-2007 a las 14:20 +0100, Kay* escribió: > Michele, there are no spaces I'm sorry to intrude, but I do see the extra spaces Michele mentioned. > 2007/2/19, Michele Mazzucco <[EMAIL PROTECTED]>: > Kay, > > > please try to remove the white space from the EPR. > > On 19 Feb 2007, at 16:06, Kay* wrote: > > EndpointReference targetEPR = new > > EndpointReference(" > > http://localhost:8080/axis2/services/PrintOnVideo";); > > > > options.setTo(targetEPR); Check the line where EndpointReference is constructed in your code. You'll see that there is an extra space between " and http:. You can also see it in some of the previous posts in this thread. Cheers, -- Javier Kohen <[EMAIL PROTECTED]> ICQ: blashyrkh #2361802 Jabber: [EMAIL PROTECTED] signature.asc Description: Esta parte del mensaje está firmada digitalmente
Re: ConcurrentModificationException in Axis2 code ! - SEVERE bug?
Marc, try to have a look to https://issues.apache.org/jira/browse/AXIS2-1053 It it is the same problem, the workaround I've found is public class Foo { private static Object lock = new Object(); // ... private void send() { // initialization here synchronized(lock) { sender.engageModule(...); } } } Regards, Michele On Tue, 2007-02-20 at 14:46 +0100, Marc Lustig wrote: > Hi, > > I am simply releasing 50 asynchronous requests on Axis2 and as a result > this appears in the log: > > > > java.util.ConcurrentModificationException > at > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper > ation.java:271) > at > org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO > peration.java:202) > > > Anybody having an idea what's going on and how to prevent this? > > regards > Marc > > - > 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]
ConcurrentModificationException in Axis2 code ! - SEVERE bug?
Hi, I am simply releasing 50 asynchronous requests on Axis2 and as a result this appears in the log: java.util.ConcurrentModificationException at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper ation.java:271) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO peration.java:202) Anybody having an idea what's going on and how to prevent this? regards Marc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Axis C Client doesn't work with Axis Java Server
I captured the SOAP Message sent from both and I discovered the problem. The Axis C Sends the follow SOAP Message: http://www.w3.org/2003/05/soap-envelope";> The Axis Java Client sends this SOAP Message http://www.w3.org/2003/05/soap-envelope";> If you look in the body of the Java Client it has the method I'm trying to call on the server. The SOAP Exception that is caught in the SOAPMonitor says no EPR Operation when the C Client makes the SOAP Request. For some reason the C Client generated code is not adding the method to the body of the SOAP Message. Attached is my wsdl file. Thank you for any help that you can provide. -Original Message- From: Thilina Gunarathne [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 20, 2007 12:47 AM To: axis-user@ws.apache.org Subject: Re: Axis C Client doesn't work with Axis Java Server Hi, Please capture the messages from both Axis2 C & java client using the tcpmon[1] and post them.. It would be great if you can attach the generated WSDL too.. Thanks, Thilina [1] ws.apache.org/commons/tcpmon On 2/20/07, Callner, David A. <[EMAIL PROTECTED]> wrote: > > > I've deployed a very simple POJO Web Server that just returns a string. I > successfully created a Java Client using ADB databinding using the > wsdl2java.sh script and I get the result I expect when I run my java client. > I created a C Client using the WSDL2C. I followed the sample from > http://ws.apache.org/axis2/c/docs/userguide.html#Writing_Web_Service_Cl ients_using_Axis2%27s_Primary_APIs. > The only difference is I don't have any input variables onto my web service > so I just do the get's. I get a server side exception thrown in my > localhost_log file that Exception Processing Error Page [Error = 500, ] > java.lang.IllegalStateException. Want me to post my code? Anyone have any > ideas? > -- Thilina Gunarathne WSO2, Inc.; http://www.wso2.com/ Home page: http://webservices.apache.org/~thilina/ Blog: http://thilinag.blogspot.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] TrackService.wsdl Description: TrackService.wsdl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] Exception occurred while trying to invoke service method
Michele, there are no spaces 2007/2/19, Michele Mazzucco <[EMAIL PROTECTED]>: Kay, please try to remove the white space from the EPR. Michele On 19 Feb 2007, at 16:06, Kay* wrote: Hello, first of all, I apologize for my bad English... I have a problem but I don't know how I can resolve it. This is code: -- PrintOnVideo.java -- package stampa.wservice; import stampa.data.Ordinabile; public class PrintOnVideo{ public String print(Ordinabile o){ System.out.println("E' stato ricevuto un oggetti di classe "+o.getClass().getName()); return ( o.getClass().getName()); } } -- Ordinabile.java -- package stampa.data; public interface Ordinabile { public boolean maggioreDi(Ordinabile o); } --- PrintClient.java --- package stampa.client; import javax.xml.namespace.QName; import org.apache.axis2.AxisFault; import org.apache.axis2.addressing.EndpointReference; import org.apache.axis2.client.Options; import org.apache.axis2.rpc.client.RPCServiceClient ; import stampa.data.Carte; public class PrintClient { public static void main(String[] args1) throws AxisFault { RPCServiceClient serviceClient = new RPCServiceClient(); Options options = serviceClient.getOptions(); EndpointReference targetEPR = new EndpointReference(" http://localhost:8080/axis2/services/PrintOnVideo";); options.setTo(targetEPR); // Setting the weather QName opPrint = new QName("http://wservice.stampa/xsd ", "print"); //setto l'oggetto Carte obj = new Carte("Re","Nero","Fiori"); Object[] opPrintArgs = new Object[] { obj }; Class[] returnTypes = new Class[] { String.class }; Object[] risposta = serviceClient.invokeBlocking (opPrint, opPrintArgs,returnTypes); String cclasse = (String) risposta[0]; if (cclasse == null) { System.out.println("Weather didn't initialize!"); return; } // Displaying the result System.out.println("La risposta e' stata "+cclasse); } } - Carte.java - package stampa.data; public class Carte implements Ordinabile{ private String valore, colore, seme; public Carte(){ valore=new String("Asso"); colore=new String("Rosso"); seme=new String("Cuori"); } public Carte(String val, String col, String sm){ this.valore=val ; this.colore=col; this.seme=sm; } public boolean maggioreDi(Ordinabile o){ if (o instanceof Carte){ Carte p=(Carte)o; boolean ok= seme.equals(p.getSeme()); if ( ok ){ int x= Integer.parseInt(valore); int ox= Integer.parseInt (p.getValore()); return ( x>ox ); }else{return false;} }else{return false;} } String getValore(){return valore;} String getColore(){return colore;} String getSeme(){return seme;} } When I run my client, I have this exception: linux:~/TESI/PrintOnVideo/build/PrintOnVideo # java - Djava.ext.dirs=/usr/local/axis2-1.1.1/lib/ stampa.client.PrintClient Exception in thread "main" org.apache.axis2.AxisFault: Exception occurred while trying to invoke service method print at org.apache.axis2.description.OutInAxisOperationClient.send( OutInAxisOperation.java:271) at org.apache.axis2.description.OutInAxisOperationClient.execute( OutInAxisOperation.java:202) at org.apache.axis2.client.ServiceClient.sendReceive ( ServiceClient.java:579) at org.apache.axis2.client.ServiceClient.sendReceive( ServiceClient.java:508) at org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking( RPCServiceClient.java:95) at stampa.client.PrintClient.main(Unknown Source) I don't know what it means How can I resolve my problem? Thanks very much!! Kay*
Re: [Axis2] Transport out has not been set.
Are u sure all the jars that come with the axis2 dist are in your classpath? especially the commons*.jar thanks, dims On 2/20/07, mas <[EMAIL PROTECTED]> wrote: I do not have an axis2.xml file. I am invoking the tests in 2 ways and both give me the error. The first way is using the mvn test goal. And the second way is to run it as a JUnit Test in Eclipse 3.1 using the JUnit plugin. The files I am using are zipped up out at https://issues.apache.org/jira/browse/AXIS2- I have been following the Chad Davis thread you mentioned, although it doesn't seem to ever come to a conclusion. Chad seems to indicate that the code got further after he added axis2.xml. (I guess...) Would it be possible to post the files you have working for me? and I could see if I could get them to work as you stated? Thank you, Andrew J. Leer Tony Ambrozie wrote: > > Andrew, I was able to run your code past the issue you are reporting, > therefore you either have a configuration or a dependency issue. Have you > modified or removed axis2.xml? How are you invoking the tests (see > documentation on how Axis2 finds axis2.xml)? > > There was another report of this error that suggested a missing dependency > that gets somehow obscured, pls see here: > http://www.mail-archive.com/axis-user@ws.apache.org/msg23511.html > > Incidentally, the code eventually does throw a fault, but that seems to be > SOAPAction related, issue for another time. BTW, do you really need the > "?WSDL" in your endpoint? > > Thanks' > > > On 2/19/07, mas <[EMAIL PROTECTED]> wrote: >> >> >> I tried removing the setUseSeparateListener(false); >> >> That didn't really make a difference...*shrugs* >> >> I get the same error. >> >> Thank you, >>Andrew J. Leer >> >> >> Michele Mazzucco-2 wrote: >> > >> > >> > Andrew, >> > >> > there's no need to set the transport out. What you did should be >> enough. >> > Just in case, try to remove the options.setUseSeparateListener(false) >> > call - it's set to false by default. >> > >> > Michele >> > >> > >> > On 19 Feb 2007, at 19:55, mas wrote: >> > >> >> >> >> Now I understand that I've already set the "in" transport >> >> protocol. But I >> >> really do not know how to set the "out" transport protocol or why I >> >> have to >> >> do it. The client example in the Axis2 documentation >> >> ( http://ws.apache.org/axis2/1_1_1/quickstartguide.html) does not >> >> require >> >> this: >> > >> > >> > - >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Transport-out-has-not-been-set.-tf3254864.html#a9053257 >> >> Sent from the Axis - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/Transport-out-has-not-been-set.-tf3254864.html#a9060817 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Asix2]Connection over firewall
http://wso2.org/library/161 On 2/20/07, Jiang Liu <[EMAIL PROTECTED]> wrote: Hi all I have a beginner question. My connection has restricted by firewall, everything connection with outside requires to utilize school's proxy. I can get "outside" service's WSDL and generate client stubs, but always get AxisFault: Connection refused problem. So could anyone tell me how to setup proxy setting in client stub? I get confused that should i write a separate connection class or modify existing stubs/impls? Cheers!! -- Jiang Liu Student Number: 3075163 CS/Yallara Name: ljiang RMIT, Melbourne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Asix2]Connection over firewall
Hi all I have a beginner question. My connection has restricted by firewall, everything connection with outside requires to utilize school's proxy. I can get "outside" service's WSDL and generate client stubs, but always get AxisFault: Connection refused problem. So could anyone tell me how to setup proxy setting in client stub? I get confused that should i write a separate connection class or modify existing stubs/impls? Cheers!! -- Jiang Liu Student Number: 3075163 CS/Yallara Name: ljiang RMIT, Melbourne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] Transport out has not been set.
I do not have an axis2.xml file. I am invoking the tests in 2 ways and both give me the error. The first way is using the mvn test goal. And the second way is to run it as a JUnit Test in Eclipse 3.1 using the JUnit plugin. The files I am using are zipped up out at https://issues.apache.org/jira/browse/AXIS2- I have been following the Chad Davis thread you mentioned, although it doesn't seem to ever come to a conclusion. Chad seems to indicate that the code got further after he added axis2.xml. (I guess...) Would it be possible to post the files you have working for me? and I could see if I could get them to work as you stated? Thank you, Andrew J. Leer Tony Ambrozie wrote: > > Andrew, I was able to run your code past the issue you are reporting, > therefore you either have a configuration or a dependency issue. Have you > modified or removed axis2.xml? How are you invoking the tests (see > documentation on how Axis2 finds axis2.xml)? > > There was another report of this error that suggested a missing dependency > that gets somehow obscured, pls see here: > http://www.mail-archive.com/axis-user@ws.apache.org/msg23511.html > > Incidentally, the code eventually does throw a fault, but that seems to be > SOAPAction related, issue for another time. BTW, do you really need the > "?WSDL" in your endpoint? > > Thanks' > > > On 2/19/07, mas <[EMAIL PROTECTED]> wrote: >> >> >> I tried removing the setUseSeparateListener(false); >> >> That didn't really make a difference...*shrugs* >> >> I get the same error. >> >> Thank you, >>Andrew J. Leer >> >> >> Michele Mazzucco-2 wrote: >> > >> > >> > Andrew, >> > >> > there's no need to set the transport out. What you did should be >> enough. >> > Just in case, try to remove the options.setUseSeparateListener(false) >> > call - it's set to false by default. >> > >> > Michele >> > >> > >> > On 19 Feb 2007, at 19:55, mas wrote: >> > >> >> >> >> Now I understand that I've already set the "in" transport >> >> protocol. But I >> >> really do not know how to set the "out" transport protocol or why I >> >> have to >> >> do it. The client example in the Axis2 documentation >> >> ( http://ws.apache.org/axis2/1_1_1/quickstartguide.html) does not >> >> require >> >> this: >> > >> > >> > - >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Transport-out-has-not-been-set.-tf3254864.html#a9053257 >> >> Sent from the Axis - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/Transport-out-has-not-been-set.-tf3254864.html#a9060817 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: unable to engage the addressing module
On Tue, 2007-02-20 at 17:02 +0530, Thilina Gunarathne wrote: > > > In this case the modules in the repository for the server will not > be > > used, unless you explicitly provide the ConfigurationContext of the > > Axis2 server to your service client using the appropriate > constructor. > What I meant from the above is that you can reuse the configContext > which belong to the Axis2 server, which is pointing to the Axis2 repo > of the Axis2 web app... You can obtain it within a service by calling, > MessageContext.getCurrentMessageContext().getConfigurationContext()... hmmm, this does not work. The result of MessageContext.getCurrentMessageContext() is null if called this way public class Test { public Test() { MessageContext ctx = MessageContext.getCurrentMessageContext(); // ctx is null } } Michele - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: unable to engage the addressing module
Thilina, On Tue, 2007-02-20 at 16:22 +0530, Thilina Gunarathne wrote: > In this case the modules in the repository for the server will not be > used, unless you explicitly provide the ConfigurationContext of the > Axis2 server to your service client using the appropriate constructor. > > Another way to achieve the same is by putting your addressing mar in > the classpath.. So in the case of a WAR you can drop it to the > axis2/WEB-INF/lib.. I've fixed the problem this way, but it's not really clear the reason... What do you mean by "explicitly provide the ConfigurationContext of the Axis2 server to your service client"?, My service client runs inside the Axis2 server. Thanks, Michele - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: [Axis2] To many open connections
Ted, if you want more control you can use OperationClient, but it won't give you more control over connections. Instead you could try something like this: // inititalization code ConfigurationContext multiThreadedConfigurationContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null); MultiThreadedHttpConnectionManager connectionManager = new MultiThreadedHttpConnectionManager(); HttpConnectionManagerParams params = new HttpConnectionManagerParams(); // you can tune these values params.setDefaultMaxConnectionsPerHost(5); params.setMaxTotalConnections(200); params.setStaleCheckingEnabled(true); connectionManager.setParams(params); HttpClient httpClient = new HttpClient(connectionManager); multiThreadedConfigurationContext.setProperty( HTTPConstants.REUSE_HTTP_CLIENT, Boolean.TRUE); multiThreadedConfigurationContext.setProperty( HTTPConstants.CACHED_HTTP_CLIENT, httpClient); ServiceClient sender = null; try { new ServiceClient(multiThreadedConfigurationContext, null); // set options end send message } finally { if (sender != null) { try { sender.cleanup(); } catch (AxisFault e) { // take the most appropriate action } } } Michele On Tue, 2007-02-20 at 11:01 +, [EMAIL PROTECTED] wrote: > Hi, > > thanks for fast reply, yes I'm using a ServiceClient to send my messages. I > tryed out the connection reuse and I called the clean() method after each > service call. It doesn't show any affects, the error is still present and > there are still to many open connections wich leads to the address already in > use error. Is there a way, not to use the ServiceClient for the calls to > avoid this Problem and have more control over the connections? > > Thanks again, > Ted > > - Ursprüngliche Mail > Von: Michele Mazzucco <[EMAIL PROTECTED]> > An: axis-user@ws.apache.org > Gesendet: Dienstag, den 20. Februar 2007, 11:21:59 Uhr > Betreff: Re: [Axis2] To many open connections > > Ted, > > supposing you're using a ServiceClient object so send your messages, do > you call the cleanup() method in a finally block? > BTW, try to have a look here http://wso2.org/library/87 and here > http://wso2.org/library/165 > > Hope this helps, > Michele > > On Tue, 2007-02-20 at 10:11 +, [EMAIL PROTECTED] > wrote: > > Hi, > > > > trying to stress an Axis2 implemented application after round about 3960 > > calls an "Address already in use" error occours, because of the huge bunch > > of open connections. Is there a way to instruct Axis to close these > > connections? > > > > Thanks a lot > > Ted > > > > > > > > > > > > > > > > ___ > > Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de > > > > - > > 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] > > > > > > > > ___ > Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: unable to engage the addressing module
But for what I know the call ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null); is legal, isn't it?, Yes.. It's legal.. But it'll load the default settings without an Axis2 repository.. So there won't be any modules available for you unless you point to a Axis2 repo with the needed modules.. In this case the modules in the repository for the server will not be used, unless you explicitly provide the ConfigurationContext of the Axis2 server to your service client using the appropriate constructor. What I meant from the above is that you can reuse the configContext which belong to the Axis2 server, which is pointing to the Axis2 repo of the Axis2 web app... You can obtain it within a service by calling, MessageContext.getCurrentMessageContext().getConfigurationContext()... and it should be possible to use the addressing module it the ServiceClient is created using that ConfigurationContext (or even with the no arguments constructor). Provided that you have it in your classpath... ~Thilina Thanks, Michele > > Another way to achieve the same is by putting your addressing mar in > the classpath.. So in the case of a WAR you can drop it to the > axis2/WEB-INF/lib.. > > Thanks, > Thilina > > On 2/20/07, Michele Mazzucco <[EMAIL PROTECTED]> wrote: > > Hi again, > > > > shall I open a JIRA for this issue? I've tried with the 1.1.1 release as > > well, but I get always the same problem: > > > > try { > >ServiceClient sender = new ServiceClient(); > >sender.engageModule(new QName(Constants.MODULE_ADDRESSING)); > > } catch (Exception e) { > > log.fatal("Unable to create the ServiceClient", e); > > throw new InitializationException(e); > > } > > > > FATAL [10:18:28,384] RoutingService: - Unable to create the > > ServiceClient > > org.apache.axis2.AxisFault: Unable to engage module : addressing > > at > > org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:298) > > at > > ncl.qosp.controller.RoutingService.(RoutingService.java:170) > > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > > Method) > > at > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > > at > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > > at > > java.lang.reflect.Constructor.newInstance(Constructor.java:494) > > at java.lang.Class.newInstance0(Class.java:350) > > at java.lang.Class.newInstance(Class.java:303) > > at > > org.apache.axis2.engine.DependencyManager.initService(DependencyManager.java:92) > > at > > org.apache.axis2.context.ConfigurationContextFactory.initApplicationScopeServices(ConfigurationContextFactory.java:87) > > at > > org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:74) > > at > > org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:392) > > at > > org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:331) > > at > > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105) > > at > > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932) > > at > > org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951) > > at > > org.apache.catalina.core.StandardContext.start(StandardContext.java:4225) > > at > > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) > > at > > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) > > at > > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) > > at > > org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809) > > at > > org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698) > > at > > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472) > > at > > org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122) > > at > > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) > > at > > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) > > at > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021) > > at > > org.apache.catalina.core.StandardHost.start(StandardHost.java:718) > > at > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) > > at > > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) > > at > > org.apache.catalina.core.StandardService.start(StandardService.java:450) > > at > > org.apache.catalina.core.StandardServer.start(StandardServer.java:709) > > at org.apache.catalina.startup.Catalina.start(Catalina.java:551) > > at su
Re: unable to engage the addressing module
Thilina, On Tue, 2007-02-20 at 16:22 +0530, Thilina Gunarathne wrote: > Looks like you are trying to invoke another service from a service.. I'm just sending a message to another host (it's usually a redirection). This mechanism used to work until axis2 1.0*. I haven't changed my code, so it's something related to axis (and the change has not been documented). > In this case the modules in the repository for the server will not be > used, unless you explicitly provide the ConfigurationContext of the > Axis2 server to your service client using the appropriate constructor. But for what I know the call ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null); is legal, isn't it?, and it should be possible to use the addressing module it the ServiceClient is created using that ConfigurationContext (or even with the no arguments constructor). Thanks, Michele > > Another way to achieve the same is by putting your addressing mar in > the classpath.. So in the case of a WAR you can drop it to the > axis2/WEB-INF/lib.. > > Thanks, > Thilina > > On 2/20/07, Michele Mazzucco <[EMAIL PROTECTED]> wrote: > > Hi again, > > > > shall I open a JIRA for this issue? I've tried with the 1.1.1 release as > > well, but I get always the same problem: > > > > try { > >ServiceClient sender = new ServiceClient(); > >sender.engageModule(new QName(Constants.MODULE_ADDRESSING)); > > } catch (Exception e) { > > log.fatal("Unable to create the ServiceClient", e); > > throw new InitializationException(e); > > } > > > > FATAL [10:18:28,384] RoutingService: - Unable to create the > > ServiceClient > > org.apache.axis2.AxisFault: Unable to engage module : addressing > > at > > org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:298) > > at > > ncl.qosp.controller.RoutingService.(RoutingService.java:170) > > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > > Method) > > at > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > > at > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > > at > > java.lang.reflect.Constructor.newInstance(Constructor.java:494) > > at java.lang.Class.newInstance0(Class.java:350) > > at java.lang.Class.newInstance(Class.java:303) > > at > > org.apache.axis2.engine.DependencyManager.initService(DependencyManager.java:92) > > at > > org.apache.axis2.context.ConfigurationContextFactory.initApplicationScopeServices(ConfigurationContextFactory.java:87) > > at > > org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:74) > > at > > org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:392) > > at > > org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:331) > > at > > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105) > > at > > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932) > > at > > org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951) > > at > > org.apache.catalina.core.StandardContext.start(StandardContext.java:4225) > > at > > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) > > at > > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) > > at > > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) > > at > > org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809) > > at > > org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698) > > at > > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472) > > at > > org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122) > > at > > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) > > at > > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) > > at > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021) > > at > > org.apache.catalina.core.StandardHost.start(StandardHost.java:718) > > at > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) > > at > > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) > > at > > org.apache.catalina.core.StandardService.start(StandardService.java:450) > > at > > org.apache.catalina.core.StandardServer.start(StandardServer.java:709) > > at org.apache.catalina.startup.Catalina.start(Catalina.java:551) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at
AW: [Axis2] To many open connections
Hi, thanks for fast reply, yes I'm using a ServiceClient to send my messages. I tryed out the connection reuse and I called the clean() method after each service call. It doesn't show any affects, the error is still present and there are still to many open connections wich leads to the address already in use error. Is there a way, not to use the ServiceClient for the calls to avoid this Problem and have more control over the connections? Thanks again, Ted - Ursprüngliche Mail Von: Michele Mazzucco <[EMAIL PROTECTED]> An: axis-user@ws.apache.org Gesendet: Dienstag, den 20. Februar 2007, 11:21:59 Uhr Betreff: Re: [Axis2] To many open connections Ted, supposing you're using a ServiceClient object so send your messages, do you call the cleanup() method in a finally block? BTW, try to have a look here http://wso2.org/library/87 and here http://wso2.org/library/165 Hope this helps, Michele On Tue, 2007-02-20 at 10:11 +, [EMAIL PROTECTED] wrote: > Hi, > > trying to stress an Axis2 implemented application after round about 3960 > calls an "Address already in use" error occours, because of the huge bunch of > open connections. Is there a way to instruct Axis to close these connections? > > Thanks a lot > Ted > > > > > > > > ___ > Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de > > - > 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] ___ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
writing own provider
Please help me to write my own provider . any link code/ snippet/doc will be appreciated. Thanking you in anticipation, Pratima
Re: unable to engage the addressing module
Looks like you are trying to invoke another service from a service.. In this case the modules in the repository for the server will not be used, unless you explicitly provide the ConfigurationContext of the Axis2 server to your service client using the appropriate constructor. Another way to achieve the same is by putting your addressing mar in the classpath.. So in the case of a WAR you can drop it to the axis2/WEB-INF/lib.. Thanks, Thilina On 2/20/07, Michele Mazzucco <[EMAIL PROTECTED]> wrote: Hi again, shall I open a JIRA for this issue? I've tried with the 1.1.1 release as well, but I get always the same problem: try { ServiceClient sender = new ServiceClient(); sender.engageModule(new QName(Constants.MODULE_ADDRESSING)); } catch (Exception e) { log.fatal("Unable to create the ServiceClient", e); throw new InitializationException(e); } FATAL [10:18:28,384] RoutingService: - Unable to create the ServiceClient org.apache.axis2.AxisFault: Unable to engage module : addressing at org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:298) at ncl.qosp.controller.RoutingService.(RoutingService.java:170) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at org.apache.axis2.engine.DependencyManager.initService(DependencyManager.java:92) at org.apache.axis2.context.ConfigurationContextFactory.initApplicationScopeServices(ConfigurationContextFactory.java:87) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:74) at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:392) at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:331) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4225) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) ncl.qosp.controller.RoutingService.(RoutingService.java:172) FATAL [main] - Unable to create the ServiceClient org.apache.axis2.AxisFault: Unable to engage module : addressing at org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:298) at ncl.qosp.controller.RoutingService.(RoutingService.java:170) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.new
Re: unable to engage the addressing module
Some more details. >From the source code of ServiceClient I see the "Unable to engage..." message is set as AxisFault message when the module is not found in AxisConfiguration. How is it possible that the addressing module is not found since I know from the admin page that it's globally engaged? ~/devel/tomcat/router/webapps/axis2/WEB-INF> ls -R .: classes conf lib modules services web.xml ./classes: commons-logging.properties log4j.properties ./conf: axis2.xml ./lib: activation-1.1.jar axis2-LICENSE.txt jakarta-httpcore-4.0-alpha3.jar stax-api-1.0.1.jar activation-LICENSE.txt axis2-metadata-SNAPSHOT.jar jakarta-httpcore-LICENSE.txt stax-api-LICENSE.txt annogen-0.1.0.jar axis2-saaj-api-SNAPSHOT.jar jaxen-1.1-beta-10.jarstax-utils-LICENSE.txt annogen-LICENSE.txt axis2-saaj-SNAPSHOT.jar jaxen-LICENSE.txtwoden-1.0-incubating-SNAPSHOT.jar axiom-api-LICENSE.txt axis2-soapmonitor-SNAPSHOT.jar jaxmeapi-LICENSE.txt woden-LICENSE.txt axiom-api-SNAPSHOT.jar axis2-spring-SNAPSHOT.jar jaxmejs-LICENSE.txt wsdl4j-1.6.2.jar axiom-dom-LICENSE.txt axis2-xmlbeans-SNAPSHOT.jar jaxme-LICENSE.txtwsdl4j-LICENSE.txt axiom-dom-SNAPSHOT.jar backport-util-concurrent-2.2.jar jaxmexs-LICENSE.txt wstx-asl-3.2.0.jar axiom-impl-LICENSE.txt backport-util-concurrent-LICENSE.txt jibx-run-1.1.2.jar wstx-LICENSE.txt axiom-impl-SNAPSHOT.jar commons-codec-1.3.jar jibx-run-LICENSE.txt xalan-2.7.0.jar axis2-adb-codegen-SNAPSHOT.jar commons-codec-LICENSE.txt mail-1.4.jar xbean-2.2.0.jar axis2-adb-SNAPSHOT.jar commons-fileupload-1.1.1.jar mail-LICENSE.txt xbean-LICENSE.txt axis2-codegen-SNAPSHOT.jar commons-fileupload-LICENSE.txt neethi-LICENSE.txt xercesImpl-2.8.1.jar axis2-java2wsdl-SNAPSHOT.jarcommons-httpclient-3.0.1.jar neethi-SNAPSHOT.jar xercesImpl-LICENSE.txt axis2-jaxbri-SNAPSHOT.jar commons-httpclient-LICENSE.txt spring-beans-1.2.8.jar xerces-LICENSE.txt axis2-jaxws-api-SNAPSHOT.jarcommons-io-1.2.jar spring-context-1.2.8.jar xml-apis-1.3.03.jar axis2-jaxws-SNAPSHOT.jarcommons-logging-1.1.jar spring-core-1.2.8.jarxml-apis-LICENSE.txt axis2-jibx-SNAPSHOT.jar commons-logging-LICENSE.txt spring-LICENSE.txt XmlSchema-1.2.jar axis2-kernel-SNAPSHOT.jar geronimo-spec-jms-LICENSE.txt spring-web-1.2.8.jar XmlSchema-LICENSE.txt ./modules: addressing-SNAPSHOT.mar modules.list routing.mar soapmonitor-SNAPSHOT.mar ./services: RoutingService.aar services.list version.aar Any clue? Michele On Tue, 2007-02-20 at 10:24 +, Michele Mazzucco wrote: > Hi again, > > shall I open a JIRA for this issue? I've tried with the 1.1.1 release as > well, but I get always the same problem: > > try { >ServiceClient sender = new ServiceClient(); >sender.engageModule(new QName(Constants.MODULE_ADDRESSING)); > } catch (Exception e) { > log.fatal("Unable to create the ServiceClient", e); > throw new InitializationException(e); > } > > FATAL [10:18:28,384] RoutingService: - Unable to create the > ServiceClient > org.apache.axis2.AxisFault: Unable to engage module : addressing > at > org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:298) > at > ncl.qosp.controller.RoutingService.(RoutingService.java:170) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at > java.lang.reflect.Constructor.newInstance(Constructor.java:494) > at java.lang.Class.newInstance0(Class.java:350) > at java.lang.Class.newInstance(Class.java:303) > at > org.apache.axis2.engine.DependencyManager.initService(DependencyManager.java:92) > at > org.apache.axis2.context.ConfigurationContextFactory.initApplicationScopeServices(ConfigurationContextFactory.java:87) > at > org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:74) > at > org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:392) > at > org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:331) > at > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105) > at > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932) > at > org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951) > at > org.apache.catalina.core.StandardContext.start(StandardContext.java:4225) > at > org.apach
Re: unable to engage the addressing module
Hi again, shall I open a JIRA for this issue? I've tried with the 1.1.1 release as well, but I get always the same problem: try { ServiceClient sender = new ServiceClient(); sender.engageModule(new QName(Constants.MODULE_ADDRESSING)); } catch (Exception e) { log.fatal("Unable to create the ServiceClient", e); throw new InitializationException(e); } FATAL [10:18:28,384] RoutingService: - Unable to create the ServiceClient org.apache.axis2.AxisFault: Unable to engage module : addressing at org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:298) at ncl.qosp.controller.RoutingService.(RoutingService.java:170) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at org.apache.axis2.engine.DependencyManager.initService(DependencyManager.java:92) at org.apache.axis2.context.ConfigurationContextFactory.initApplicationScopeServices(ConfigurationContextFactory.java:87) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:74) at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:392) at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:331) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4225) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) ncl.qosp.controller.RoutingService.(RoutingService.java:172) FATAL [main] - Unable to create the ServiceClient org.apache.axis2.AxisFault: Unable to engage module : addressing at org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:298) at ncl.qosp.controller.RoutingService.(RoutingService.java:170) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at org.apache.axis2.engine.DependencyManager.initService(DependencyManager.java:92) at org.apache.axis2.context.ConfigurationContextFactory.initApplicationScopeServices(ConfigurationContextFactory.java:87) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:74) at org.
Re: [Axis2] To many open connections
Ted, supposing you're using a ServiceClient object so send your messages, do you call the cleanup() method in a finally block? BTW, try to have a look here http://wso2.org/library/87 and here http://wso2.org/library/165 Hope this helps, Michele On Tue, 2007-02-20 at 10:11 +, [EMAIL PROTECTED] wrote: > Hi, > > trying to stress an Axis2 implemented application after round about 3960 > calls an "Address already in use" error occours, because of the huge bunch of > open connections. Is there a way to instruct Axis to close these connections? > > Thanks a lot > Ted > > > > > > > > ___ > Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] To many open connections
Hi, trying to stress an Axis2 implemented application after round about 3960 calls an "Address already in use" error occours, because of the huge bunch of open connections. Is there a way to instruct Axis to close these connections? Thanks a lot Ted ___ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
change SOAP message validator
Hi, I have created a WSDL file and I generated the java files with WSDL2Java using Eclipse WTP plug-in. I extracted the XML Schema part from the WSDL and I generated a XSD file. Then, I validated some XML instances against the XSD file to be sure that the Schema detects the constraints. One of them is: Eclipse XML validation tool (that seems to use a Xerces validator) detects when the above patters is wrong. The problem is that the code generated by WSDL2Java and/or the AXIS server do not detect when the pattern "(X|\.)(X|\.)(X|\.)(X|\.)(X|\.)(X|\.)(X|\.)" is violated in a SOAP instance. I know that my WS server do some validation (It detects other minor restrictions) but it seems not to be "powerful" enough to validate the full SOAP instance against the WSDL. I would like to know how to change the SOAP instance validator or some other idea/solution to my problem. Thanks in advance, Pau - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FW: Axis overload
Kris, there are plenty of people around studying QoS issues. The problem is not simple at all. How is you architecture? Can you reject requests if you detect your systems is overloaded? Michele On Tue, 2007-02-20 at 09:14 +0100, Gmail wrote: > Hi, > > > > I have a distributed system which exchange information base on WS. The > average number of WS invocation is 1 per second. In this system > execution time is vital. My question is: do you know how could I > reduce invocation time of WS? I was thinking about some management > system which could keep information about server and when needed used > this information/connection to invoke WS. > > > > Best, > > > > Kris > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FW: Axis overload
Hi, I have a distributed system which exchange information base on WS. The average number of WS invocation is 1 per second. In this system execution time is vital. My question is: do you know how could I reduce invocation time of WS? I was thinking about some management system which could keep information about server and when needed used this information/connection to invoke WS. Best, Kris