[Axis2][1.0] Handling HTTP 500 errors for input only requests!
Hi all, The subject may seem contradictory, as it has both input only and return words together :) Here is the scenario: - In my WSDL, all the operations have input message only. Therefore, I assume that I have input only services. - WSDL2Java generates *MessageReceiverInOnly as expected. Therefore, I beleive, my first assumption is confirmed. - I add InflowSecurity in service.xml. Therefore, my service requires security headers. - I don't add OutflowSecurity in the axis2.xml at the client side. (This is made deliberately to cause the server throwing missing security headers exception.) - I send request by calling generated test code. - All the messages goes through TCP/IP Monitor. - Request doesn't have security headers as expected. - Server sends a SOAPFault back to the client. (HTTP header says HTTP/1.1 500 Internal Server Error) - However, client doesn't do anything with this exception, although it successfully receives the whole message. Here are the questions: - Is this expected behavior? - If yes, why the server send soap fault for the in-only message? - Does the client only wait for *any* HTTP response without actually caring about what the header is? Or, does it behave differently but not for HTTP 500? - I saw the ReplyTo header in the request. Spec says ReplyTo is optional for in-only messages. What purposes Axis2 set it for? Thanks for your reading efforts :) Ali Sadik Kumlali __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [Axis2][1.0] Handling HTTP 500 errors for input only requests!
Hi again, I've found that org.apache.axis2.transport.http.AbstractHTTPSender really doesn't care about the HTTP status code returned by the service. Here is the code: - // org.apache.axis2.transport.http.AbstractHTTPSender protected void executeMethod(...) throws IOException { HostConfiguration config = this.getHostConfiguration(...); msgContext.setProperty(HTTPConstants.HTTP_METHOD, method); ... // --- // executeMethod returns back 202, 500, etc. but // it is not handled! // --- httpClient.executeMethod(config, method); } - Is it on purpose? If yes, could you please answer my previous questions? Thanks a lot. Ali Sadik Kumlali --- Ali Sadik Kumlali [EMAIL PROTECTED] wrote: Hi all, The subject may seem contradictory, as it has both input only and return words together :) Here is the scenario: - In my WSDL, all the operations have input message only. Therefore, I assume that I have input only services. - WSDL2Java generates *MessageReceiverInOnly as expected. Therefore, I beleive, my first assumption is confirmed. - I add InflowSecurity in service.xml. Therefore, my service requires security headers. - I don't add OutflowSecurity in the axis2.xml at the client side. (This is made deliberately to cause the server throwing missing security headers exception.) - I send request by calling generated test code. - All the messages goes through TCP/IP Monitor. - Request doesn't have security headers as expected. - Server sends a SOAPFault back to the client. (HTTP header says HTTP/1.1 500 Internal Server Error) - However, client doesn't do anything with this exception, although it successfully receives the whole message. Here are the questions: - Is this expected behavior? - If yes, why the server send soap fault for the in-only message? - Does the client only wait for *any* HTTP response without actually caring about what the header is? Or, does it behave differently but not for HTTP 500? - I saw the ReplyTo header in the request. Spec says ReplyTo is optional for in-only messages. What purposes Axis2 set it for? Thanks for your reading efforts :) Ali Sadik Kumlali __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[Axis2] Axis2's OMTutorial needs(!) to be updated :)
Hi Axis2 Team, According to the blog entry at http://blogs.cocoondev.org/dims/archives/004619.html, you also need to update OMTutorial found in Axis2's site to keep them in sync. http://ws.apache.org/commons/axiom/OMTutorial.html http://ws.apache.org/axis2/1_0/OMTutorial.html Regards, Ali Sadik Kumlali __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[Axis2][1.0] Congrats!
Hi all, 1.0 release is finally announced at the side. Congratulations to Axis2 Team for their efforts. Ali Sadik Kumlali __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [Axis2] installation guide - broken link (v. 1.0)
I's been fixed at SVN head. I'm not sure whether it's reflected to the site. Ali Sadik Kumlali --- Michele Mazzucco [EMAIL PROTECTED] wrote: Hi all, the installation guide page doesn't work (http://ws.apache.org/axis2/download/1_0/installationguide.html) Michele __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[Axis2][1.0RC5] WSDL2Java generates invalid WSDL due to missing soap12 schema file
Hi, http://schemas.xmlsoap.org/wsdl/soap12/ address does not refer to actual xsd file. Therefore, WSDL file generated by WSDL2Java cannot be validated either by Eclipse WTP's WSDL editor or XMLSpy. According to the instructions found in http://schemas.xmlsoap.org/wsdl/soap12/;, actual schema files are here: - Latest version: http://schemas.xmlsoap.org/wsdl/soap12/wsdl11soap12.xsd - Dated version (2 March 2006): http://schemas.xmlsoap.org/wsdl/soap12/wsdl11soap12-20060302.xsd - Dated version (26 October 2005): http://schemas.xmlsoap.org/wsdl/soap12/wsdl11soap12-20051026.xsd Do we have this problem with the SVN head? Thanks Ali Sadik Kumlali __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [Axis2][0.95] How can my service make call to another service? (More details) - RC5
Deepal, I've just tried it with axis2 war distribution (RC5) and got NPE. Here is my code snippet that uses ListenerManager: - System.out.println(ListenerManager.defaultConfigurationContext: + ListenerManager.defaultConfigurationContext); System.out.println(ListenerManager.defaultConfigurationContext.getServiceGroupContexts(): + ListenerManager.defaultConfigurationContext.getServiceGroupContexts()); com.mycompany.service.test.account.AccountServicesStub stub = new com.mycompany.service.test.account.AccountServicesStub(ListenerManager.defaultConfigurationContext, targetEndpoint); - Here is the output: - ListenerManager.defaultConfigurationContext: [EMAIL PROTECTED] ListenerManager.defaultConfigurationContext.getServiceGroupContexts(): {} java.lang.NullPointerException at org.apache.axis2.context.ServiceGroupContext.getServiceContext(ServiceGroupContext.java:59) at org.apache.axis2.client.ServiceClient.init(ServiceClient.java:101) at com.mycompany.service.test.account.AccountServicesStub.init(AccountServicesStub.java:329) at ... - What I've seen from the output is ListenerManager.defaultConfigurationContext is successfully set as it's not null. But I cannot think furthermore :-) What should I do? Thanks a lot. Ali Sadik Kumlali --- Ali Sadik Kumlali [EMAIL PROTECTED] wrote: Thanks Deepal. I'll try it with 1.0 RC3 and let you know the result. Best regards, Ali Sadik Kumlali --- Deepal Jayasinghe [EMAIL PROTECTED] wrote: You can have this with Axis2 RC or above :) You have to follow the following procedure for doing this - When you creating stub , it has a constructor which take configuration context as argument. - So pass that as ListenerManager.defaultConfigurationContext - In this case client will be created using server configuration context - And this will work in axis2 war distribution out of the box Note : In the case of AxisServlet , it will create a ListenerManager and will set defaultConfigurationContext as the server configuration context. If you are using some other thing say simpleHTTPServer then you have to do the following procedure. - Create a ConfigurationConetx using some axis2.xml and that axis2.xml can have all the transport listeners that you want - Then create a ListenerManager - and call startSystem - and finally ListenerManager.defaultConfigurationContext= configurationcotext; Ali Sadik Kumlali wrote: Hi all, Since there is no response yet, I assume that my posting had a lack of information :) Here is my scenario: 1) I have serviceA.wsdl and serviceB.wsdl. 2) I generate skeletons and stubs with WSDL2Java 3) I have serviceA.aar which has serviceB.wsdl's stub 4) When I call serviceB's stub from a class found in serviceA.aar, my soap message does not have addressing and security headers. 5) When I explicitly pass a repository location to constructor of serviceB's stub, it fails saying double initialization of addressing and security modules. 6) It cannot find the modules and gives me error when I try to engage the addressing and security modules by following code: stubB._getServiceClient().engageModule(new QName(addressing)); stubB._getServiceClient().engageModule(new QName(security)); Thanks again. Ali Sadik Kumlali --- Ali Sadik Kumlali [EMAIL PROTECTED] wrote: Hi all, I need my service to call another service. But, it somehow cannot see modules and thus doesn't add security/addressing headers. I tried engaging the modules manually as in test client. But, it couldn't find the modules. Any help would be appreciated. Thanks, Ali Sadik Kumlali __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Thanks, Deepal ~Future is Open~ __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [Axis2][0.95] How can my service make call to another service? (More details) - RC5
Hi again, Sorry for this much postings :( My messages was directed to the TCP/IP Monitor's port. I changed it to the port of the actual service and there is no such error anymore. But, I turned back to my first situation :) I still does not have addressing and security headers. Thanks, Ali Sadik Kumlali --- Ali Sadik Kumlali [EMAIL PROTECTED] wrote: Hi Deepal, I found that the cause of NPE is unassinged parent. If the service is already registered in axisConfig it doesn't enter in the code that assings a parent to the service. Also, it doesn't uses the parent of the registered service. The code causes NPE is here: // org.apache.axis2.client.ServiceClient public ServiceClient(ConfigurationContext configContext, AxisService axisService) throws AxisFault { ... // If the service is already registered, it doesn't enter // here so there will be no parent. if (this.axisConfig.getService(this.axisService.getName()) == null) { this.axisConfig.addService(this.axisService); } ServiceGroupContext sgc = new ServiceGroupContext(this.configContext, (AxisServiceGroup) this.axisService.getParent()); this.serviceContext = sgc.getServiceContext(this.axisService); } Here is the my way of passing this problem: // org.apache.axis2.client.ServiceClient public ServiceClient(ConfigurationContext configContext, AxisService axisService) throws AxisFault { ... AxisService service = null; AxisService registeredService = this.axisConfig.getService(this.axisService.getName()); if (registeredService != null) { service = registeredService; } else { this.axisConfig.addService(this.axisService); service = this.axisService; } ServiceGroupContext sgc = new ServiceGroupContext(this.configContext, (AxisServiceGroup) service.getParent()); this.serviceContext = sgc.getServiceContext(service); } But I'm still having an exception that says: ... at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) [ERROR] org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/axis2].[jsp] - Servlet.service() for servlet jsp threw exception java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.Response.getWriter(Response.java:606) at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:195) at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:124) Thanks, Ali Sadik Kumlali --- Ali Sadik Kumlali [EMAIL PROTECTED] wrote: Deepal, I've just tried it with axis2 war distribution (RC5) and got NPE. Here is my code snippet that uses ListenerManager: - System.out.println(ListenerManager.defaultConfigurationContext: + ListenerManager.defaultConfigurationContext); System.out.println(ListenerManager.defaultConfigurationContext.getServiceGroupContexts(): + ListenerManager.defaultConfigurationContext.getServiceGroupContexts()); com.mycompany.service.test.account.AccountServicesStub stub = new com.mycompany.service.test.account.AccountServicesStub(ListenerManager.defaultConfigurationContext, targetEndpoint); - Here is the output: - ListenerManager.defaultConfigurationContext: [EMAIL PROTECTED] ListenerManager.defaultConfigurationContext.getServiceGroupContexts(): {} java.lang.NullPointerException at org.apache.axis2.context.ServiceGroupContext.getServiceContext(ServiceGroupContext.java:59) at org.apache.axis2.client.ServiceClient.init(ServiceClient.java:101) at com.mycompany.service.test.account.AccountServicesStub.init(AccountServicesStub.java:329) at ... - What I've seen from the output is ListenerManager.defaultConfigurationContext is successfully set as it's not null. But I cannot think furthermore :-) What should I do? Thanks a lot. Ali Sadik Kumlali --- Ali Sadik Kumlali [EMAIL PROTECTED] wrote: Thanks Deepal. I'll try it with 1.0 RC3 and let you know the result. Best regards, Ali Sadik Kumlali --- Deepal Jayasinghe [EMAIL PROTECTED] wrote: You can have
RE: [Axis2] How to get MessageContext
Hi Michael, Depends. It works with 0.95 and does not work with RC1 and later releases. I'm sure, Axis2 Team is going to update the document with the announcement of 1.0 release (if it's not updated for RCx releases yet). Regards, Ali Sadik Kumlali --- Michael Robinson [EMAIL PROTECTED] wrote: Does this mean that the example at http://ws.apache.org/axis2/0_95/mtom-guide.html does not work? The section titled SOAP with Attachments (SwA) with Axis2 has a code fragment that seems to use an init method to set the MessageContext instead of a setter method. Is this incorrect? -Original Message- From: Ruchith Fernando [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 03, 2006 7:47 AM To: axis-user@ws.apache.org Subject: Re: [Axis2] How to get MessageContext An example for such a service impl class is here : [1] Thanks, Ruchith [1] https://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/se curity/interop/org/apache/axis2/oasis/ping/PingPortSkeleton.java On 5/3/06, Deepal Jayasinghe [EMAIL PROTECTED] wrote: ya , just add that method in to service impl class and that method will be called using java reflection. So you can keep a ref to operatoionConetx in side your class instance. And when you get the actual method call you can access that. Michele Mazzucco wrote: Hi Deepal, could you be more explicit please? Do you mean public void setOperationContext(OperationContext opctx) { // empty content } (and I don't need to call it)? Michele Deepal Jayasinghe wrote: you have to add a method called setOperationContext(OperationContext opctx) { } in to your sevrice impl class , and that method will be called whenever you get a req . Using opctx you can get the messagecontext Michele Mazzucco wrote: Hi all, how can I get the MessageContext from a OMelement? (I'm using the primary interface APIs, that is my methods have the following signature: OMelement operation(OMElement arg1, OMElelent arg2,..., OMElement argN) { ... } ) Thanks, Michele -- Thanks, Deepal ~Future is Open~ - This e-mail and any files transmitted with it are intended solely for the use of the entity or individual(s) to whom they are addressed and not for reliance upon by unintended recipients. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing, or copying of this e-mail and any files transmitted are strictly prohibited. If you have received this e-mail in error please delete the entire email and immediately notify us by email to the sender or by telephone to the AOC main office number, (404) 656-5171. Thank you. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: AW: [axis2] AEGIS: The WS-Security module for Axis2
As far as I've seen from 1.0RC5 on SVN, new name of the security module is rampart. Good choice :) --- Eran Chinthaka [EMAIL PROTECTED] wrote: Sanjiva Weerawarana wrote: OK how about Apache Sigiri? +1. And it was considered as one of the high security places in ancient days. So it would be a perfect match. (except that Ruchith found very difficult to climb it recently :) ) -- Chinthaka __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [Axis2] SimpleHTTPServer port conflict for multiple EchoNonBlockingDualClient threads
Hi Deepal, I'm currently running 1.0RC5 and still have the same problem. May be, as you said, I need somehow to use ListenerManager. Could you please tell me what to do? Thanks, Ali Sadik Kumlali --- Deepal Jayasinghe [EMAIL PROTECTED] wrote: Hi Sadik; In the current code base we done a major improvements in our transport freamwork with the introduction of ListenerManager. So in the next release onword you wont have such a problem. Ali Sadik Kumlali wrote: Dear all, I simply changed EchoNonBlockingDualClient sample to make it run as threads and created two threads. First one successfully starts SimpleHTTPServer on port 6060 and the second one gets an java.net.BindException: Address already in use: JVM_Bind while trying to start the server. Doesn't I have an option to listen all the responses for its dedicated port? For example 6060 for first request, 6061 for the second, and so on. Or, should i assume Axis2 to use the same port for the responses of all the long running transactions? Thanks a lot for any help. Ali Sadik Kumlali -- Error Message I Get -- testEchoNonBlockingDualClient: [java] [CLIENT1] Outgoing message [java] example1:ec ho xmlns:example1=http://example1.org/example1;exampl e1:TextAxis2 Echo String /example1:Text/example1:echo [java] - Deploying module : addressing [java] [CLIENT2] Outgoing message [java] example1:echo xmlns:example1=http://example1.org/example1;exampl e1:TextAxis2 Echo String /example1:Text/example1:echo [java] - Deploying module : addressing [java] - java.net.BindException: Address already in use: JVM_Bind [java] org.apache.axis2.AxisFault: Address already in use: JVM_Bind; nested exception is: [java] java.net.BindException: Address already in use: JVM_Bind [java] at org.apache.axis2.transport.http.SimpleHTTPServer.start(Simple HTTPServer.java:220) [java] at org.apache.axis2.client.ListenerManager.makeSureStarted(Liste nerManager.java:73) -- Modified EchoNonBlockingDualClient.java -- public class EchoNonBlockingDualClient implements Runnable { private static EndpointReference targetEPR = new EndpointReference( http://127.0.0.1:8080/axis2/services/MyService;); private String name; public EchoNonBlockingDualClient(String name) { this.name = name; } publ ic OMElement getPayload() throws XMLStreamException, FactoryConfigurationError { OMElement payload = ClientUtil.getEchoOMElement(); // Log the outgoing payload StringWriter writer = new StringWriter(); payload.serialize(XMLOutputFactory.newInstance().createXMLStreamWriter( writer)); writer.flush(); System.out.println([ + name + ] Outgoing message\n + writer.toString()); return payload; } public Options getOptions() { nbsp; Options options = new Options(); options.setTo(targetEPR); options.setTransportInProtocol(Constants.TRANSPORT_HTTP); options.setUseSeparateListener(true); return options; } public void makeRequest() { try { OMElement payload = getPayload(); Options options = getOptions(); // Callback to handle the response Callback callback = new Callback() { public void onComplete(AsyncResult result) { try { StringWriter writer = new StringWriter(); result.getResponseEnvelope().serialize( XMLOutputFactory.newInstance() .createXMLStreamWriter(writer)); writer.flush(); System.out.println([ + name + ] Incoming message\n + writer.toString()); try { Thread.sleep(1000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } catch (XMLStreamException e) { onError(e); } } public void onError(Exception e) { e.printStackTrace
[Axis2][1.0RC5] Asynchrony at the server side (EchoNonBlockingDualClient for long running MyService)
Hi all, As you know, EchoNonBlockingDualClient calls MyService and waits the response by launching SimpleHTTPServer on port 6060. Could someone check the correctness of the following flow, please? C: client S: server [C-S] open connection to the server's endpoint [C-S] send request SOAP with the ReplyTo declaring port 6060 [C-S] send HTTP 200 OK [C-S] close connection [C] open a thread and listen to port 6060. ... (time passes) [C-S] open connection to the client's port 6060 [C-S] send the result SOAP [C-S] send HTTP 200 OK [C-S] close connection According to the sample, MyService completes quickly and the result is returned immediately. Thus, there is no asynchrony at the server side. How can I do the followings: - Open a new thread that will do the actual work, when the echo operation of MyService is called. - Complete the rest of the echo operation WITHOUT sending any response to the client which would cause SimpleHTTPServer to be closed. - After the actual work has done in the thread, send the result to the client's SimpleHTTPServer. Any help would be great! Ali Sadik Kumlali __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [Axis2 1.0RC3] ws-addressing problems
Hi Michele, I had the same problem. You can follow the postings titled [Axis2][0.95] How can my service make call to another service? (More details). P.S.: I haven't tried yet :) Regards, Ali Sadik Kumlali --- Michele Mazzucco [EMAIL PROTECTED] wrote: Hi all, I'm using Axis2 1.0-RC3 and I'm having some problems with the addressing module (the module is engaged on the server side). Options options = new Options(); options.setTo(new EndpointReference(TARGET_EPR)); options.setTransportInProtocol(Constants.TRANSPORT_HTTP); options.setAction(urn:isBookAvailable); options.setUseSeparateListener(true); ServiceClient sender = new ServiceClient(); sender.setOptions(options); ConfigurationContext context = ConfigurationContextFactory.createConfigurationContextFromFileSystem( D:/Programs/apache-tomcat-5.5.15/webapps/axis2/WEB-INF/, null); // Callback code omitted sender.sendReceiveNonBlocking(payload, callback); produces: Exception in thread main org.apache.axis2.AxisFault: In order to use two transport channels, WS-Addressing module must be engaged at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:80) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:243) at org.apache.axis2.client.ServiceClient.sendReceiveNonBlocking(ServiceClient.java:483) at org.apache.axis2.client.ServiceClient.sendReceiveNonBlocking(ServiceClient.java:464) while if I add sender.engageModule(new QName(Constants.MODULE_ADDRESSING)); I get: Exception in thread main org.apache.axis2.AxisFault: Module not found at org.apache.axis2.description.AxisService.engageModule(AxisService.java:396) at org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:279) Any suggest? Michele __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[Axis2] Synchronous response over JMS
Hi all, I'm using Axis2's HTTP transport with the type of input+output+fault(s) messaging. Here is the structure of my WSDL design: Synchronous operation: - input: requestMsg - output: resultMsg - fault: faultMsg Asynchronous operation: - input: requestMsg - output: ackMsg - fault: faultMsg As you can see, whether the client calls synchronous or asynchronous operation, I respond them back synchronously to let them know the server's status regarding the request. In the near future, I might be required to support JMS transport, too. But, AFAIK, JMS is one-way messaging protocol which I don't see a way to send faults back synchronously. How does Axis2's JMS transport behave to input-output-fault(s) operations? Am i going to be required to change my WSDL or something like that? Thanks in advance, Ali Sadik Kumlali __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [axis2] AEGIS: The WS-Security module for Axis2
Hi Ruchith, Have you seen Aegis Databinding ( http://xfire.codehaus.org/Aegis+Binding) ? Don't you think it would be better to choose another name to prevent possible confusions? Best regards, Ali Sadik Kumlali --- Ruchith Fernando [EMAIL PROTECTED] wrote: Hi All, Please note that the name of the WS-Security implementation module is now changed to aegis. [1] (Greek Mythology. The goatskin shield or breastplate of Zeus or Athena) [2] . Earlier this was called security and I believe it was too abstract. See the first synonym of the first entry here : [3] This change is effective from Axis2 RC4. Thanks, Ruchith [1] http://dictionary.reference.com/search?q=aegis [2] http://www.florentine-persona.com/Images/Phreaknic03/Parthenon/athena_aegis.jpg [3] http://thesaurus.reference.com/search?q=security __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: AW: [axis2] AEGIS: The WS-Security module for Axis2
What about shelter ? Regards, Ali Sadik Kumlali --- Sanjiva Weerawarana [EMAIL PROTECTED] wrote: OK how about Apache Sigiri? Sigiriya is a world heritage site in Sri Lanka .. a 1500 year old rock fortress basically. http://www.saadhu.com/sigiriya/gardens.html Sanjiva. On Fri, 2006-04-28 at 14:48 +0100, Michel Drescher wrote: I guess you didn't sense the sarcasm there ;-) Cheers, Michel On 28 Apr 2006, at 14:45, Dittmann, Werner wrote: Definitly -1 to the word Ballast. In German that means that someone carries unnessecary things, e.g. during a walk. It has a quite negative meaning at all. Apache Ballast would translate into Apache contains dead freight or similar. Regards, Werner -Urspr�ngliche Nachricht- Von: Sanjiva Weerawarana [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 28. April 2006 15:36 An: axis-dev@ws.apache.org Cc: axis-user@ws.apache.org Betreff: Re: [axis2] AEGIS: The WS-Security module for Axis2 On Fri, 2006-04-28 at 19:29 +0600, Ruchith Fernando wrote: Oops ... thanks Ali... BTW I also stumbled upon another piece of software called aegis [1] Apologies about rushing this change and I'd like to propose to revert the name change and to come up with a better name. +1 for coming up with a new name. Would the devs/users please to suggest a better name (for this module that implements WS-Security support)? How about Apache Ballast? http://dictionary.reference.com/search?q=ballast It'll be great if we can settle on a name before Axis2 1.0 :-) +1. Sanjiva. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[Axis2] Good way of notifying the clients to say results are ready in asynchronous messaging
Hi all, I want to send a notification message to my clients when their requests are processed and the results are ready. Then I expect them to call a service to acquire the results. Here is the sample scenario: server.wsdl - OpenAccount - input: OpenAccountMsg - GetOpenAccountResult - input: GetOpenAccountResultMsg - output: GetOpenAccountResultResponseMsg client.wsdl - ResultIsReady (input only) - input: ResultIsReadyMsg OpenAccountMsg (MessageId: A) Client - Server ResultIsReadyMsg (MessageId: B, RelatesTo: A) Client - Server GetOpenAccountResultMsg (MessageId: C, RelatesTo: A) Client - Server - GetOpenAccountResultResponseMsg (MessageId: D, RelatesTo: A) Here are the questions: 1) Do you see any flaw in this scenario? Or is there a common and standards based way to accomplish this kind of asynchronous communication? 2) I haven't found a good way to say my clients which service do they need to call for getting the results. I'm planning to put the name of result service name (GetOpenAccountResultMsg) in notification message (ResultIsReadyMsg). Could you please enlighten me? Any help would be great! Ali Sadik Kumlali __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [Axis2] Good way of notifying the clients to say results are ready in asynchronous messaging
Hi Anne, Thanks for the reply. I already use WS-Addressing. Just wanted to make sure the correctness of my asynchronous communication design and, if any, to ask for a better solution. For example; I'm not sure if its suitable GetOpenAccountResultMsg to have a RelatesTo value that references to its first call. Also, I think that there must be a better way to say a client which service it must call to. Thanks again, Ali Sadik Kumlali --- Anne Thomas Manes [EMAIL PROTECTED] wrote: WS-Addressing. On 4/27/06, Ali Sadik Kumlali [EMAIL PROTECTED] wrote: Hi all, I want to send a notification message to my clients when their requests are processed and the results are ready. Then I expect them to call a service to acquire the results. Here is the sample scenario: server.wsdl - OpenAccount - input: OpenAccountMsg - GetOpenAccountResult - input: GetOpenAccountResultMsg - output: GetOpenAccountResultResponseMsg client.wsdl - ResultIsReady (input only) - input: ResultIsReadyMsg OpenAccountMsg (MessageId: A) Client - Server ResultIsReadyMsg (MessageId: B, RelatesTo: A) Client - Server GetOpenAccountResultMsg (MessageId: C, RelatesTo: A) Client - Server - GetOpenAccountResultResponseMsg (MessageId: D, RelatesTo: A) Here are the questions: 1) Do you see any flaw in this scenario? Or is there a common and standards based way to accomplish this kind of asynchronous communication? 2) I haven't found a good way to say my clients which service do they need to call for getting the results. I'm planning to put the name of result service name (GetOpenAccountResultMsg) in notification message (ResultIsReadyMsg). Could you please enlighten me? Any help would be great! Ali Sadik Kumlali __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [Axis2] Good way of notifying the clients to say results are ready in asynchronous messaging
Hi Rodrigo, Thank you very much for taking your time and sharing your thoughts with me. I forgot to mention that I already used WS-Addressing. Sorry for that. Actually, after Anne's reply, I looked at the spec and noticed that I needed to spend more time on WS-Addressing :-) If you don't mind I need to ask some questions regarding your reply. 2) The solution you are considering is basically correct, but putting and EndPointReference to the service will be better than a simple service name. Shortly, it will safe you some programming at the client side if you get a ready-to-use EPR ;-) Do you mean that I should use something like this: wsa:EndpointReference wsa:Addressxs:anyURI/wsa:Address wsa:ReferenceProperties... /wsa:ReferenceProperties wsa:ReferenceParameters... /wsa:ReferenceParameters wsa:PortTypexs:QName/wsa:PortType wsa:ServiceName PortName=xs:NCNamexs:QName/wsa:ServiceName wsp:Policy ... /wsp:Policy /wsa:EndpointReference If yes, where should I put this in WSDL? And how do I add it to my ResultIsReadyMsg? Some thoughts about your description: - You should include an EPR in OpenAccountMsg, pointing to the service Do you mean the client need to add wsa:ReplyTo in OpenAccountMsg? If yes, how can I enforce it in WSDL? - Why do not you include the results in the event notification itself? I want the client.wsdl to be as simple as possible. Since I provide GetXResult services for all the asynchronous services (X), clients already know how to handle the responses. I thought that it would be extra work for them implementing AcceptXResult services, too. You might say me to only use AcceptXResult in client.wsdl and remove GetXResult from the server.wsdl. But, I have to provide GetXResult services to handle notification error situations. Thus, the clients will be able to query if they somehow haven't got the notification message yet. Again, thank you very much for your valuable comments. Best regards, Ali Sadik Kumlali --- Rodrigo Ruiz [EMAIL PROTECTED] wrote: Ali, 1) The scenario you describe seems correct to me. Event Notification is a rather common pattern, and some specifications that can be of help are WS-Eventing and WS-BaseNotification. Anyway, your scenario is simple enough for, as Anne stated, WS-Addressing being enough to implement it. 2) The solution you are considering is basically correct, but putting and EndPointReference to the service will be better than a simple service name. Shortly, it will safe you some programming at the client side if you get a ready-to-use EPR ;-) Some thoughts about your description: - You should include an EPR in OpenAccountMsg, pointing to the service that will receive the notification in the client side. - Why do not you include the results in the event notification itself? Regards, Rodrigo Ruiz Anne Thomas Manes wrote: WS-Addressing. On 4/27/06, *Ali Sadik Kumlali* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi all, I want to send a notification message to my clients when their requests are processed and the results are ready. Then I expect them to call a service to acquire the results. Here is the sample scenario: server.wsdl - OpenAccount - input: OpenAccountMsg - GetOpenAccountResult - input: GetOpenAccountResultMsg - output: GetOpenAccountResultResponseMsg client.wsdl - ResultIsReady (input only) - input: ResultIsReadyMsg OpenAccountMsg (MessageId: A) Client - Server ResultIsReadyMsg (MessageId: B, RelatesTo: A) Client - Server GetOpenAccountResultMsg (MessageId: C, RelatesTo: A) Client - Server - GetOpenAccountResultResponseMsg (MessageId: D, RelatesTo: A) Here are the questions: 1) Do you see any flaw in this scenario? Or is there a common and standards based way to accomplish this kind of asynchronous communication? 2) I haven't found a good way to say my clients which service do they need to call for getting the results. I'm planning to put the name of result service name (GetOpenAccountResultMsg) in notification message (ResultIsReadyMsg). Could you please enlighten me? Any help would be great! Ali Sadik Kumlali __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com No virus
[Axis2][1.0RC3] Unable to locate with a locator the schema referenced at 'xsd1.xsd' ...
Hi all, I'm getting the following error when deploying my service on to 1.0RC3 Axis2.war. There was no such problem with 0.95 release. I noticed that WSDL2Java generated xsd0.xsd, xsd1.xsd, xsd2.xsd and AccountServices.wsdl files into repository folder. I guess, this is a new feature, since those files were not generated in 0.95 release. By the way, these files are also resides in XBeans-packaged.jar. Any help would be great. Thanks -- - Deploying module : soapmonitor - Deploying module : addressing - Deploying module : security Retrieving document at ''. Retrieving schema at 'xsd1.xsd', relative to ''. - Invalid service AccountServices.aar due to WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base ''; nested exception is: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base '': ; nested exception is: org.apache.axis2.AxisFault: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base ''; nested exception is: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base '': ; nested exception is: org.apache.axis2.deployment.DeploymentException: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base ''; nested exception is: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base '': ; nested exception is: org.apache.axis2.AxisFault: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base ''; nested exception is: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base '': org.apache.axis2.deployment.DeploymentException: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base ''; nested exception is: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base '': ; nested exception is: org.apache.axis2.AxisFault: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base ''; nested exception is: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base '': ; nested exception is: org.apache.axis2.deployment.DeploymentException: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base ''; nested exception is: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base '': ; nested exception is: org.apache.axis2.AxisFault: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base ''; nested exception is: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base '': at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:271) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:599) at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:195) at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:207) -- __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [Axis2][1.0RC3] Unable to locate with a locator the schema referenced at 'xsd1.xsd' ...
Hi Ajith, Thanks for the quick response. If I didn't miss something, the latest code in SVN causes the same error. Here are what I did: 1) Ran svn update 2) Ran maven clean jar -Dmaven.test.skip=true 3) Ran maven dist-std-bin 4) Generated code from the axis2-std-SNAPSHOT-bin.zip 5) Produced .aar file by running ant on the generated files. 6) Replaced libraries found in ...\webapps\axis2\WEB-INF\lib\ with the latests. 7) Replaced modules found in ...\webapps\axis2\WEB-INF\modules\ with the latests. 8) Put the .aar file into ...\webapps\axis2\WEB-INF\services Thanks again, Ali Sadik Kumlali --- Ajith Ranabahu [EMAIL PROTECTED] wrote: Hi, We actually found this bug and fixed it. It was caused by the addition of a new capability, loading relative schemas through the aar file On 4/26/06, Ali Sadik Kumlali [EMAIL PROTECTED] wrote: Hi all, I'm getting the following error when deploying my service on to 1.0RC3 Axis2.war. There was no such problem with 0.95 release. I noticed that WSDL2Java generated xsd0.xsd, xsd1.xsd, xsd2.xsd and AccountServices.wsdl files into repository folder. I guess, this is a new feature, since those files were not generated in 0.95 release. By the way, these files are also resides in XBeans-packaged.jar. Any help would be great. Thanks -- - Deploying module : soapmonitor - Deploying module : addressing - Deploying module : security Retrieving document at ''. Retrieving schema at 'xsd1.xsd', relative to ''. - Invalid service AccountServices.aar due to WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base ''; nested exception is: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base '': ; nested exception is: org.apache.axis2.AxisFault: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base ''; nested exception is: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base '': ; nested exception is: org.apache.axis2.deployment.DeploymentException: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base ''; nested exception is: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base '': ; nested exception is: org.apache.axis2.AxisFault: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base ''; nested exception is: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base '': org.apache.axis2.deployment.DeploymentException: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base ''; nested exception is: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base '': ; nested exception is: org.apache.axis2.AxisFault: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base ''; nested exception is: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base '': ; nested exception is: org.apache.axis2.deployment.DeploymentException: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base ''; nested exception is: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base '': ; nested exception is: org.apache.axis2.AxisFault: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode
Re: [Axis2][1.0RC3] Unable to locate with a locator the schema referenced at 'xsd1.xsd' ...
Here it is: http://issues.apache.org/jira/browse/AXIS2-623 Thanks, Ali Sadik Kumlali --- Davanum Srinivas [EMAIL PROTECTED] wrote: Ali, Could u please open a JIRA issue and upload your wsdl/schemas? that you used to generate the service. thanks, dims On 4/26/06, Ali Sadik Kumlali [EMAIL PROTECTED] wrote: Hi Ajith, Thanks for the quick response. If I didn't miss something, the latest code in SVN causes the same error. Here are what I did: 1) Ran svn update 2) Ran maven clean jar -Dmaven.test.skip=true 3) Ran maven dist-std-bin 4) Generated code from the axis2-std-SNAPSHOT-bin.zip 5) Produced .aar file by running ant on the generated files. 6) Replaced libraries found in ...\webapps\axis2\WEB-INF\lib\ with the latests. 7) Replaced modules found in ...\webapps\axis2\WEB-INF\modules\ with the latests. 8) Put the .aar file into ...\webapps\axis2\WEB-INF\services Thanks again, Ali Sadik Kumlali --- Ajith Ranabahu [EMAIL PROTECTED] wrote: Hi, We actually found this bug and fixed it. It was caused by the addition of a new capability, loading relative schemas through the aar file On 4/26/06, Ali Sadik Kumlali [EMAIL PROTECTED] wrote: Hi all, I'm getting the following error when deploying my service on to 1.0RC3 Axis2.war. There was no such problem with 0.95 release. I noticed that WSDL2Java generated xsd0.xsd, xsd1.xsd, xsd2.xsd and AccountServices.wsdl files into repository folder. I guess, this is a new feature, since those files were not generated in 0.95 release. By the way, these files are also resides in XBeans-packaged.jar. Any help would be great. Thanks -- - Deploying module : soapmonitor - Deploying module : addressing - Deploying module : security Retrieving document at ''. Retrieving schema at 'xsd1.xsd', relative to ''. - Invalid service AccountServices.aar due to WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base ''; nested exception is: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base '': ; nested exception is: org.apache.axis2.AxisFault: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base ''; nested exception is: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base '': ; nested exception is: org.apache.axis2.deployment.DeploymentException: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base ''; nested exception is: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base '': ; nested exception is: org.apache.axis2.AxisFault: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base ''; nested exception is: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base '': org.apache.axis2.deployment.DeploymentException: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base ''; nested exception is: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base '': ; nested exception is: org.apache.axis2.AxisFault: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base ''; nested exception is: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'xsd1.xsd' relative to document base '': ; nested exception is: org.apache.axis2
[Axis2][0.95] How can my service make call to another service?
Hi all, I need my service to call another service. But, it somehow cannot see modules and thus doesn't add security/addressing headers. I tried engaging the modules manually as in test client. But, it couldn't find the modules. Any help would be appreciated. Thanks, Ali Sadik Kumlali __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Trouble running axis2 examples
Hi Matt, Did you try running Ant script, instead of running it by yourself? You should have build.xml under ~/webservices/axis095/dist/samples/userguide$. Just try following command: ~/webservices/axis095/dist/samples/userguide$ ant If it works, you can find your missing point by following definitions found in build.xml. Regards, Ali Sadik Kumlali userguide.clients.EchoBlockingClient --- Matt L [EMAIL PROTECTED] wrote: Hello, I have installed tomcat 5.5.16 on Slackware Linux and installed axis2 0.95 within tomcat. I can view the axis2 page from a browser and have successfully validated the installation. The example services MyService and Version are available from the server. That is, I ran ~/webservices/axis095/dist/samples/userguide$ sudo cp *.aar \ /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/services/ I can compile all of the .java files under samples/userguide/src/userguide/clients from the standard distribution. I want to run the EchoBlockingClient or EchoBlockingDualClient sample, but I get the output below. Thank you for your help, Matt --- ~/webservices/axis095/dist/samples/userguide$ echo $CLASSPATH | sed -e 's/:/\n/g' . /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/XmlSchema-SNAPSHOT.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/annogen-0.1.0.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axiom-api-0.95.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axiom-impl-0.95.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axis-wsdl4j-1.2.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axis2-adb-0.95.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axis2-codegen-0.95.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axis2-doom-0.95.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axis2-kernel-0.95.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/backport-util-concurrent-2.0_01_pd.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/commons-codec-1.3.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/commons-fileupload-1.0.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/commons-httpclient-3.0.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/commons-logging-1.0.4.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/geronimo-spec-activation-1.0.2-rc4.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/geronimo-spec-javamail-1.3.1-rc5.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/geronimo-spec-jms-1.1-rc4.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/jaxen-1.1-beta-7.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/jaxme2-0.5.1.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/jaxmejs-0.5.1.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/jaxmexs-0.5.1.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/log4j-1.2.13.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/maven-itest-plugin-1.0.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/policy-1.0.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/servletapi-2.3.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/stax-api-1.0.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/wstx-asl-2.8.2.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/xbean-2.1.0.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/xercesImpl-2.7.1.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/xml-apis-1.3.02.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/xmlunit-1.0.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2.war /usr/local/webservices/ext_lib/addressing-0.95.mar /home/mleinho/webservices/axis095/dist/samples/userguide/src /home/mleinho/webservices ~/webservices/axis095/dist/samples/userguide$ jar tf \ /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/services/MyService.aar META-INF/ META-INF/MANIFEST.MF META-INF/services.xml userguide/ userguide/example1/ userguide/example1/MyService.class ~/webservices/axis095/dist/samples/userguide$ java userguide.clients.EchoBlockingClient org.apache.axis2.AxisFault: org.apache.axis2.AxisFault: userguide.example1.MyService; nested exception is: java.lang.ClassNotFoundException: userguide.example1.MyService at org.apache.axis2.AxisFault.makeFault(AxisFault.java:267) at org.apache.axis2
Re: Trouble running axis2 examples
Sorry, I forgot to add ant target. It must have been as ~/webservices/axis095/dist/samples/userguide$ ant testEchoBlockingClient Regards, Ali Sadik Kumlali --- Ali Sadik Kumlali [EMAIL PROTECTED] wrote: Hi Matt, Did you try running Ant script, instead of running it by yourself? You should have build.xml under ~/webservices/axis095/dist/samples/userguide$. Just try following command: ~/webservices/axis095/dist/samples/userguide$ ant If it works, you can find your missing point by following definitions found in build.xml. Regards, Ali Sadik Kumlali userguide.clients.EchoBlockingClient --- Matt L [EMAIL PROTECTED] wrote: Hello, I have installed tomcat 5.5.16 on Slackware Linux and installed axis2 0.95 within tomcat. I can view the axis2 page from a browser and have successfully validated the installation. The example services MyService and Version are available from the server. That is, I ran ~/webservices/axis095/dist/samples/userguide$ sudo cp *.aar \ /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/services/ I can compile all of the .java files under samples/userguide/src/userguide/clients from the standard distribution. I want to run the EchoBlockingClient or EchoBlockingDualClient sample, but I get the output below. Thank you for your help, Matt --- ~/webservices/axis095/dist/samples/userguide$ echo $CLASSPATH | sed -e 's/:/\n/g' . /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/XmlSchema-SNAPSHOT.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/annogen-0.1.0.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axiom-api-0.95.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axiom-impl-0.95.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axis-wsdl4j-1.2.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axis2-adb-0.95.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axis2-codegen-0.95.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axis2-doom-0.95.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/axis2-kernel-0.95.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/backport-util-concurrent-2.0_01_pd.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/commons-codec-1.3.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/commons-fileupload-1.0.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/commons-httpclient-3.0.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/commons-logging-1.0.4.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/geronimo-spec-activation-1.0.2-rc4.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/geronimo-spec-javamail-1.3.1-rc5.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/geronimo-spec-jms-1.1-rc4.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/jaxen-1.1-beta-7.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/jaxme2-0.5.1.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/jaxmejs-0.5.1.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/jaxmexs-0.5.1.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/log4j-1.2.13.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/maven-itest-plugin-1.0.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/policy-1.0.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/servletapi-2.3.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/stax-api-1.0.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/wstx-asl-2.8.2.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/xbean-2.1.0.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/xercesImpl-2.7.1.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/xml-apis-1.3.02.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/lib/xmlunit-1.0.jar /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2.war /usr/local/webservices/ext_lib/addressing-0.95.mar /home/mleinho/webservices/axis095/dist/samples/userguide/src /home/mleinho/webservices ~/webservices/axis095/dist/samples/userguide$ jar tf \ /usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/services/MyService.aar META-INF/ META-INF/MANIFEST.MF META-INF/services.xml userguide/ userguide/example1/ userguide/example1/MyService.class ~/webservices/axis095/dist/samples/userguide$ java
[Axis2][0.95] Re: got security module installation problems :(
Hi, I don't know wheter it's related with your problem, but wss4j-SNAPSHOT.jar is required for security module. I am able to run security module with the following libraries which reside under %CATALINA_HOME%\webapps\axis2\WEB-INF\lib: --- 23.03.2006 20:04 669.731 axis2-kernel-0.95.jar 23.03.2006 20:0494.037 axis2-adb-0.95.jar 23.03.2006 20:04 132.518 axis2-doom-0.95.jar 23.03.2006 20:04 196.902 axis2-codegen-0.95.jar 23.03.2006 20:04 126.771 axis-wsdl4j-1.2.jar 23.03.2006 20:04 2.637.587 xbean-2.1.0.jar 23.03.2006 20:0446.725 commons-codec-1.3.jar 23.03.2006 20:0431.528 geronimo-spec-activation-1.0.2-rc4.jar 23.03.2006 20:0439.688 policy-1.0.jar 23.03.2006 20:04 232.272 jaxen-1.1-beta-7.jar 23.03.2006 20:04 1.203.860 xercesImpl-2.7.1.jar 23.03.2006 20:0493.418 axiom-api-0.95.jar 23.03.2006 20:0426.396 stax-api-1.0.jar 23.03.2006 20:04 102.940 XmlSchema-SNAPSHOT.jar 23.03.2006 20:04 248.639 annogen-0.1.0.jar 23.03.2006 20:0422.379 commons-fileupload-1.0.jar 23.03.2006 20:04 389.968 wstx-asl-2.8.2.jar 23.03.2006 20:0430.838 geronimo-spec-jms-1.1-rc4.jar 23.03.2006 20:04 112.700 geronimo-spec-javamail-1.3.1-rc5.jar 23.03.2006 20:04 245.992 backport-util-concurrent-2.0_01_pd.jar 23.03.2006 20:04 194.205 xml-apis-1.3.02.jar 23.03.2006 20:0438.015 commons-logging-1.0.4.jar 23.03.2006 20:04 279.383 commons-httpclient-3.0.jar 23.03.2006 20:04 102.077 axiom-impl-0.95.jar 23.03.2006 20:04 358.180 log4j-1.2.13.jar 23.03.2006 20:0463.798 xmlunit-1.0.jar 23.03.2006 19:03 1.105.457 bcprov-jdk13-131.jar 23.03.2006 19:0371.442 commons-discovery-0.2.jar 23.03.2006 19:03 343.243 wss4j-SNAPSHOT.jar 23.03.2006 19:03 292.712 xmlsec-1.2.1.jar 25.03.2006 17:43 3.149.655 xalan-2.6.0.jar --- If you were able to run Security sample comes with Axis2 distribution, you would apply the same logic into your code. I used to have similar problems last month. You can follow postings with the subject of [Axis2][0.95][JDK1.4 and JDK 1.5] Still got security sample problems :). Regards, Ali Sadik Kumlali --- [EMAIL PROTECTED] wrote: Hello, I can't get the security module to work. I am using Tomcat 5.5, JDK 1.5 and Axis 2 0.95 (bin-download). I added module ref=security/ in axis2.xml (after addressing) and placed the security.mar in tomcat/webapps/axis2/web-inf/modules. To visit http://localhost:8080/axis2/listServices [http://localhost:8080/axis2/listServices] shows me this error: java.lang.NoClassDefFoundError: org/apache/xpath/compiler/FuncLoader ... Well i found: delete wss4j-SNAPSHOT.jar and download xalan.jar to fix the problem but it doesnt work for me, it says javax.servlet.ServletException: Trying to engage a module which is not available : security; nested exception is: org.apache.axis2.AxisFault: Trying to engage a module which is not available : security org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:215) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) java.lang.Thread.run(Unknown Source) Does anyone knows a solution? Thanks for your help :) SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! *http://f.web.de/?mc=021192* [http://f.web.de/?mc=021192] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [Axis2][0.95] Re: got security module installation problems :(
I missed something from your posting. If you really have web-inf, instead of WEB-INF, could you please rename it to WEB-INF and try again? Regards, Ali Sadik Kumlali --- Ali Sadik Kumlali [EMAIL PROTECTED] wrote: Hi, I don't know wheter it's related with your problem, but wss4j-SNAPSHOT.jar is required for security module. I am able to run security module with the following libraries which reside under %CATALINA_HOME%\webapps\axis2\WEB-INF\lib: --- 23.03.2006 20:04 669.731 axis2-kernel-0.95.jar 23.03.2006 20:0494.037 axis2-adb-0.95.jar 23.03.2006 20:04 132.518 axis2-doom-0.95.jar 23.03.2006 20:04 196.902 axis2-codegen-0.95.jar 23.03.2006 20:04 126.771 axis-wsdl4j-1.2.jar 23.03.2006 20:04 2.637.587 xbean-2.1.0.jar 23.03.2006 20:0446.725 commons-codec-1.3.jar 23.03.2006 20:0431.528 geronimo-spec-activation-1.0.2-rc4.jar 23.03.2006 20:0439.688 policy-1.0.jar 23.03.2006 20:04 232.272 jaxen-1.1-beta-7.jar 23.03.2006 20:04 1.203.860 xercesImpl-2.7.1.jar 23.03.2006 20:0493.418 axiom-api-0.95.jar 23.03.2006 20:0426.396 stax-api-1.0.jar 23.03.2006 20:04 102.940 XmlSchema-SNAPSHOT.jar 23.03.2006 20:04 248.639 annogen-0.1.0.jar 23.03.2006 20:0422.379 commons-fileupload-1.0.jar 23.03.2006 20:04 389.968 wstx-asl-2.8.2.jar 23.03.2006 20:0430.838 geronimo-spec-jms-1.1-rc4.jar 23.03.2006 20:04 112.700 geronimo-spec-javamail-1.3.1-rc5.jar 23.03.2006 20:04 245.992 backport-util-concurrent-2.0_01_pd.jar 23.03.2006 20:04 194.205 xml-apis-1.3.02.jar 23.03.2006 20:0438.015 commons-logging-1.0.4.jar 23.03.2006 20:04 279.383 commons-httpclient-3.0.jar 23.03.2006 20:04 102.077 axiom-impl-0.95.jar 23.03.2006 20:04 358.180 log4j-1.2.13.jar 23.03.2006 20:0463.798 xmlunit-1.0.jar 23.03.2006 19:03 1.105.457 bcprov-jdk13-131.jar 23.03.2006 19:0371.442 commons-discovery-0.2.jar 23.03.2006 19:03 343.243 wss4j-SNAPSHOT.jar 23.03.2006 19:03 292.712 xmlsec-1.2.1.jar 25.03.2006 17:43 3.149.655 xalan-2.6.0.jar --- If you were able to run Security sample comes with Axis2 distribution, you would apply the same logic into your code. I used to have similar problems last month. You can follow postings with the subject of [Axis2][0.95][JDK1.4 and JDK 1.5] Still got security sample problems :). Regards, Ali Sadik Kumlali --- [EMAIL PROTECTED] wrote: Hello, I can't get the security module to work. I am using Tomcat 5.5, JDK 1.5 and Axis 2 0.95 (bin-download). I added module ref=security/ in axis2.xml (after addressing) and placed the security.mar in tomcat/webapps/axis2/web-inf/modules. To visit http://localhost:8080/axis2/listServices [http://localhost:8080/axis2/listServices] shows me this error: java.lang.NoClassDefFoundError: org/apache/xpath/compiler/FuncLoader ... Well i found: delete wss4j-SNAPSHOT.jar and download xalan.jar to fix the problem but it doesnt work for me, it says javax.servlet.ServletException: Trying to engage a module which is not available : security; nested exception is: org.apache.axis2.AxisFault: Trying to engage a module which is not available : security org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:215) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) java.lang.Thread.run(Unknown Source) Does anyone knows a solution? Thanks for your help :) SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! *http://f.web.de/?mc=021192* [http://f.web.de/?mc=021192] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
RE: Can you do non-web server hosting in Axis2?
TCPEchoRawXMLTest.java and TCPTwoChannelEchoRawXMLTest.java from SVN[1] may help. Regards, Ali Sadik Kumlali [1] http://svn.apache.org/viewcvs.cgi/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/tcp/?rev=395043 --- DeRemer, Bob [EMAIL PROTECTED] wrote: Great! Thanks for the quick reply. Now, are there any samples in the Axis2 downloads that show a Java console application that is acting as a service host using TCP? I browsed them quickly, but didn't see anything. Thanks again! -Original Message- From: Ajith Ranabahu [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 18, 2006 11:25 AM To: axis-user@ws.apache.org Subject: Re: Can you do non-web server hosting in Axis2? Hi, Yep - you have a range of options from TCP to JMS as transports On 4/18/06, DeRemer, Bob [EMAIL PROTECTED] wrote: Just a simple question regarding alternative service hosting capabilities using Axis2: Can I write a basic Java console application that hosts Axis2 services via TCP transport? I'm currently working on a distributed .NET and Java architecture that would really benefit from having certain components being services/daemon processes, but that would also be hosting services. So, the different console-style processes would be both service hosts and clients - with some written in Java, the others written using either .NET 2.0 + WSE3 or WinFX. Thanks in advance for your help, Bob DeRemer Sr. Software Architect SAP Labs, LLC 350 Eagleview Blvd Exton, PA 19341 USA T1 +1.610.903.8000 x 136 T2 +1.717.505.7923 M +1.717.424.9595 E[EMAIL PROTECTED] -- Ajith Ranabahu __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [Axis2][0.95] Client side module engagement from axis2.xml
Hi Deepal, Thanks for the reply. But, as you can see my previous post, I had already added loggingPhase in inflow. I didn't write my own code. Just ran ClientSideModuleEngagement sample. It works without problem with its original code. But, it gaved me the mentioned error after I; 1) Commented out serviceClient.engageModule(new QName(LoggingModule)); line 2) And, added module ref=LoggingModule/ line to its axis2.xml Thanks, Ali Sadik Kumlali --- Deepal Jayasinghe [EMAIL PROTECTED] wrote: hi Ali please see my inline comments Ali Sadik Kumlali wrote: Hi all, Is not it allowed to define custom modules within axis2.xml, instead of calling engageModule () method of ServiceClient? you can define (engage) custom module in axis2.xml ,btw as far as axis2 is concern all the modules are custom modules to it :) , no matter whether it is addressing or security. Since I can add security and addressing without any problem, I think it is allowed. But, I'm facing with and interesting (?) situation. I tried to run ClientSideModuleEngagement by adding module ref=LoggingModule/ line to its axis2.xml. Then commented out following line: serviceClient.engageModule(new QName(LoggingModule)); When I ran the sample it gave me the following output: - Deploying module : addressing-0.95 - Deploying module : security-0.95 - Deploying module : LoggingModule - Invalid phases please recheck axis2.xml loggingPhase for the handler InFlowLogHandler you have to add the phase called loggingPhase into axis2.xml since LogingModule try to add a handler into that phase. So just add follwing entry into axis2.xml inside phaseOrder type=inflow phase name=loggingPhase/ / I don't get Invalid phases... warning with the original code. Am I missing something? Thanks in advance. Ali Sadik Kumlali P.S.: Here is my phase definitions found in axis2.xml phaseOrder type=inflow !-- System pre defined phases -- phase name=TransportIn/ phase name=PreDispatch/ phase name=Dispatch class=org.apache.axis2.engine.DispatchPhase handler name=RequestURIBasedDispatcher class=org.apache.axis2.engine.RequestURIBasedDispatcher order phase=Dispatch/ /handler handler name=SOAPActionBasedDispatcher class=org.apache.axis2.engine.SOAPActionBasedDispatcher order phase=Dispatch/ /handler handler name=AddressingBasedDispatcher class=org.apache.axis2.engine.AddressingBasedDispatcher order phase=Dispatch/ /handler handler name=SOAPMessageBodyBasedDispatcher class=org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher order phase=Dispatch/ /handler handler name=InstanceDispatcher class=org.apache.axis2.engine.InstanceDispatcher order phase=PostDispatch/ /handler /phase !-- System pre defined phases -- !-- After Postdispatch phase module author or or service author can add any phase he want -- phase name=loggingPhase/ phase name=OperationInPhase/ /phaseOrder phaseOrder type=outflow !-- user can add his own phases to this area -- phase name=OperationOutPhase/ !--system predefined phase-- !--these phase will run irrespective of the service-- phase name=loggingPhase/ phase name=PolicyDetermination/ phase name=MessageOut/ /phaseOrder phaseOrder type=INfaultflow !-- user can add his own phases to this area -- phase name=loggingPhase/ phase name=OperationInFaultPhase/ /phaseOrder phaseOrder type=Outfaultflow !-- user can add his own phases to this area -- phase name=loggingPhase/ phase name=OperationOutFaultPhase/ phase name=PolicyDetermination/ phase name=MessageOut/ /phaseOrder ... - __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Thanks, Deepal ~Future is Open~ __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [Axis2] hot deploy without reloading Axis2
Hi Kent, Did you try to change the value of hotupdate parameter found in axis2.xml to true? I've just tested it with 0.95 and it works perfectly. For more info, please read the following articles: - http://jaxmag.com/itr/online_artikel/psecom,id,757,nodeid,147.html - http://www.developer.com/open/print.php/10930_3557741_2 Regards, Ali Sadik Kumlali --- Kent Tong [EMAIL PROTECTED] wrote: Hi, After changing my Java code of service class, I update the .aar file in the Axis2 web app. However, it still won't see the updated code. I have to reload it. Is there an easier way? Thanks! __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [Axis2] hot deploy without reloading Axis2
Actually, it's difficult to find such a document. The API might give you some idea: http://ws.apache.org/axis2/0_95/api/org/apache/axis2/deployment/DeploymentConstants.html Otherwise, all the documentation about Axis2 can be found here: http://ws.apache.org/axis2/0_95/index.html Regards, Ali Sadik Kumlali --- Kent Tong [EMAIL PROTECTED] wrote: Ali Sadik Kumlali as_kumlali at yahoo.com writes: Did you try to change the value of hotupdate parameter found in axis2.xml to true? I've just tested it with 0.95 and it works perfectly. Thanks. I think that's what I am looking for. BTW, where can I find the list of all supported parameters in Axis2? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
RE: VERY URGENT Please HELP[Axis2] How to send message to a particular instance of that webservice?
Hi Nancy, I'm examining BPEL solutions nowadays. Since I'm not an expert on Axis2 and BPEL, wanted to understand your scenario clearly. AFAIK, you are able to do following: client BPEL1 -- BPEL2 ----- convID1 convID2 convID2 and want to accomplish following: convID2 client2 BPEL2 Do you? Thanks, Ali Sadik Kumlali --- nancy [EMAIL PROTECTED] wrote: Hi Srinath, I am really struck with my problem. I think I am not able to clear my problem/requirement through my queries. Let me try once again. *I am having two Servers: One is Tomcat server in which axis2 is deployed and my web service java client (implemented using axis2) is deployed Another is BPEL server/engine in which my 2 BPEl web services are running. *Through my client I invoked my first bpel web service which in turn invoked second bpel web service. *Now to complete my first bpel service I need to complete my second bpel web service and I am having the id (conversation id) of the second bpel process/bpel service instance. I need to create a client of my second bpel service through which I need to send message to second bpel service to complete. And I am unable to implement its Client. That's my problem. I hope this clears my requirement. Please suggest something ASAP. Can you give any example? -Original Message- From: Srinath Perera [mailto:[EMAIL PROTECTED] Sent: Friday, April 14, 2006 4:26 PM To: axis-user@ws.apache.org Subject: Re: VERY URGENT Please HELP[Axis2] How to send message to a particular instance of that webservice? Hi Nancy; check these are they what you need. If not you have to implemented conversation with handlers. http://issues.apache.org/jira/browse/AXIS2-532 http://issues.apache.org/jira/browse/AXIS2-548 Generally Web Services are stateless, I do not know specific header we used to transfer conversation ID. Any way good luck Srinath On 4/12/06, nancy [EMAIL PROTECTED] wrote: Please tell how can I interact with a webservice instance created somewhere else by setting its conversationid.? From: nancy [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 12, 2006 1:31 PM To: 'axis-user@ws.apache.org' Subject: RE: [Axis2] How to send message to a particular instance of that webservice? Is there no way to set Conversation id or soap header in stub in axis2? In Axis1, in binding stub generated by axis there were methods to set header, timeout etc. What is the way to do all this with stubs generated by axis2? Please Help From: nancy [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 12, 2006 1:06 PM To: axis-user@ws.apache.org Subject: [Axis2] How to send message to a particular instance of that webservice? Hi, I want to use Axis2 to create client for invoking the web service running in BPEL Engine. I have successfully created stub using my BPEl web service's wsdl. My BPEL service1 invoke another BPEL service2.I have successfully invoked BPEL service1.But when it invokes service2, I need to send a message to webservice2 using its conversation ID. I have created stub for second web service also. But can't find a way how to send message to a particular instance of that webservice2. Please Help!!! Thanks and regards, Nancy Aggarwal -- Srinath Perera: http://www.cs.indiana.edu/~hperera/ http://www.bloglines.com/blog/hemapani __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[Axis2][0.95] Validating all the incoming messages through a single point
Hi all, I'm using XmlBeans and can validate each operation in my skeleton. I need validation to be made at a single point before my skeleton is called. This may be provided with a validation module. But; 1) I don't have fromOM at that point (or I don't know how to get it ;-) 2) Even if I can get fromOM in a module, it will also be called by *MessageReceiverInOut. Thus, it will cause some performance decrease. May be WSDL2Java generator has an option to add validation code like this: --- // *MessageReceiverInOut.java ... if (MyOp.equals (methodName)) { reqParam = (MyOpDocument) fromOM (msgContext.getEnvelope().getBody().getFirstElement(), com.mycomp.service.MyOpDocument.class); // validate here ArrayList validationErrors = new ArrayList (); XmlOptions validationOptions = new XmlOptions (); validationOptions.setErrorListener (validationErrors); boolean isValid = reqParam.validate (validationOptions); if (!isValid) throw new AxisFault (Validation error, e) com.mycomp.srv.MyOpRespDocument resParam = null; resParam = skel.MyOp (reqParam); } ... --- Could you please tell me the best way of this? Thanks a lot. Ali Sadik Kumlali __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [Axis2][0.95] Validating all the incoming messages through a single point
Thank you for your response. There would be no difference between adding this code in skeleton and message receiver, if I *manually* added it. Actually, that is why I asked for a way to accomplish this with WSDL2Java. By any chance, is there a plan to do this? Thanks, Ali Sadik Kumlali --- robert lazarski [EMAIL PROTECTED] wrote: The message receiver is called before the skeleton - in fact its largely responible for initializing the skeleton. So there I believe is the correct place to do it. Nothings stopping you from adding code there. Or you could just reference your own message receiver via services.xml . Not sure how one could wire that code into having wsdl2java generate it. Jalopy perhaps but I haven't used it yet. HTH, Robert http://www.braziloutsource.com/ On 4/14/06, Ali Sadik Kumlali [EMAIL PROTECTED] wrote: Hi all, I'm using XmlBeans and can validate each operation in my skeleton. I need validation to be made at a single point before my skeleton is called. This may be provided with a validation module. But; 1) I don't have fromOM at that point (or I don't know how to get it ;-) 2) Even if I can get fromOM in a module, it will also be called by *MessageReceiverInOut. Thus, it will cause some performance decrease. May be WSDL2Java generator has an option to add validation code like this: --- // *MessageReceiverInOut.java ... if (MyOp.equals (methodName)) { reqParam = (MyOpDocument) fromOM (msgContext.getEnvelope().getBody().getFirstElement(), com.mycomp.service.MyOpDocument.class); // validate here ArrayList validationErrors = new ArrayList (); XmlOptions validationOptions = new XmlOptions (); validationOptions.setErrorListener (validationErrors); boolean isValid = reqParam.validate (validationOptions); if (!isValid) throw new AxisFault (Validation error, e) com.mycomp.srv.MyOpRespDocument resParam = null; resParam = skel.MyOp (reqParam); } ... --- Could you please tell me the best way of this? Thanks a lot. Ali Sadik Kumlali __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [Axis2][0.95] Validating all the incoming messages through a single point
Hi, What does Message Validation Phase[1] do? Does it able to validate incoming messages against XSD by using XMLBeans? Thanks, Ali Sadik Kumlali [1] Mentioned in Axis2 Architecture Guide http://ws.apache.org/axis2/0_95/Axis2ArchitectureGuide.html --- Ali Sadik Kumlali [EMAIL PROTECTED] wrote: Thank you for your response. There would be no difference between adding this code in skeleton and message receiver, if I *manually* added it. Actually, that is why I asked for a way to accomplish this with WSDL2Java. By any chance, is there a plan to do this? Thanks, Ali Sadik Kumlali --- robert lazarski [EMAIL PROTECTED] wrote: The message receiver is called before the skeleton - in fact its largely responible for initializing the skeleton. So there I believe is the correct place to do it. Nothings stopping you from adding code there. Or you could just reference your own message receiver via services.xml . Not sure how one could wire that code into having wsdl2java generate it. Jalopy perhaps but I haven't used it yet. HTH, Robert http://www.braziloutsource.com/ On 4/14/06, Ali Sadik Kumlali [EMAIL PROTECTED] wrote: Hi all, I'm using XmlBeans and can validate each operation in my skeleton. I need validation to be made at a single point before my skeleton is called. This may be provided with a validation module. But; 1) I don't have fromOM at that point (or I don't know how to get it ;-) 2) Even if I can get fromOM in a module, it will also be called by *MessageReceiverInOut. Thus, it will cause some performance decrease. May be WSDL2Java generator has an option to add validation code like this: --- // *MessageReceiverInOut.java ... if (MyOp.equals (methodName)) { reqParam = (MyOpDocument) fromOM (msgContext.getEnvelope().getBody().getFirstElement(), com.mycomp.service.MyOpDocument.class); // validate here ArrayList validationErrors = new ArrayList (); XmlOptions validationOptions = new XmlOptions (); validationOptions.setErrorListener (validationErrors); boolean isValid = reqParam.validate (validationOptions); if (!isValid) throw new AxisFault (Validation error, e) com.mycomp.srv.MyOpRespDocument resParam = null; resParam = skel.MyOp (reqParam); } ... --- Could you please tell me the best way of this? Thanks a lot. Ali Sadik Kumlali __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[Axis2] Re: Are there schemas available
Hi Shane, For the latest one: http://svn.apache.org/repos/asf/webservices/axis2/trunk/java/xdocs/latest/resources/schemas/ For 0.95: http://svn.apache.org/repos/asf/webservices/axis2/trunk/java/xdocs/0_95/resources/schemas/ Regards, Ali Sadik Kumlali --- Shane Preater [EMAIL PROTECTED] wrote: I am trying to find the schemas associated with both the services.xml and the module.xml configuration files. Are they available? Many thanks in advance, Shane Preater. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Do we have e-mail server problems?
Hi, The last two days, I have been experiencing some problems with [EMAIL PROTECTED] While some of my posts are missing, others I sent later are listed. Is there anyone with the same problem? Or do we have e-mail server problems? Thanks, Ali Sadik Kumlali __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[Axis2] What values are allowed for wsa:MessageID?
Hi all, According to the test results of WS-Addressing found in http://www.w3.org/2002/ws/addr/testsuite/report/ there may be different MessageID patterns. Here are some of them: WS02 Axis2: urn:uuid:43592586D597CCC70C1142484428187104 Microsoft: urn:uuid:1c8f2504-5f3f-4364-b33d-af0addb67b51 IBM: uuid:C5DA7766-0109-4000-E000-0D580A06 JBoss: auid:ef6949cee7321f7b Sun: uuid:85eb786a-a603-4cef-b0ab-f16078bdda9f According to http://www.w3.org/2005/08/addressing schema, it can be any value. Just to make sure, I did some tests with XMLSpy by giving 300 characters long text to MessageID field. There were no validation problems. At this point, I have some questions: 1) I need to write MessageID value to the database and therefore need to know exact size and format of it. Is there a *sender neutral* way of this? 2) Although http://www.w3.org/2005/08/addressing schema does not mandate for a special format, does Axis2 expect a special pattern? 3) Must I make sure that I can safely write MessageID without contradicting database schema constraints, if it has passed through Axis2? Thanks a lot, Ali Sadik Kumlali __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [Axis2] What values are allowed for wsa:MessageID?
Thank you very much for the quick answer. Please see my inline comments. --- David Illsley [EMAIL PROTECTED] wrote: According to http://www.w3.org/2005/08/addressing schema, it can be any value. That's not entirely correct, the definition is broad but there are some requirements. The specification text requires [message id] be a valid absolute IRI while the schema requires an xs:anyURI You seem right. But, I was able to put any text in any size into xs:anyURI qualified field. You can test it with the following schema and instance. anyURITest.xsd ?xml version=1.0 encoding=UTF-8? xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema; xmlns:wsa=http://www.w3.org/2005/08/addressing; elementFormDefault=qualified attributeFormDefault=unqualified xs:import namespace=http://www.w3.org/2005/08/addressing; schemaLocation=http://www.w3.org/2005/08/addressing/ws-addr.xsd/ xs:element name=URITest xs:complexType xs:sequence xs:element name=xsAnyURI type=xs:anyURI/ xs:element name=wsaAttributedURIType type=wsa:AttributedURIType/ xs:element ref=wsa:MessageID/ /xs:sequence /xs:complexType /xs:element /xs:schema Xml instance which is valid against the anyURITest.xsd ?xml version=1.0 encoding=UTF-8? URITest xmlns:wsa=http://www.w3.org/2005/08/addressing; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:noNamespaceSchemaLocation=anyURITest.xsd xsAnyURIabc 123 4as arw4343 -?;,[EMAIL PROTECTED] $/xsAnyURI wsaAttributedURITypeabc 123 4as arw4343 -?;,[EMAIL PROTECTED] $/wsaAttributedURIType wsa:MessageIDabc 123 4as arw4343 -?;,[EMAIL PROTECTED] $/wsa:MessageID /URITest snip 1) I need to write MessageID value to the database and therefore need to know exact size and format of it. Is there a *sender neutral* way of this? No. All you can know is that a conformant message id is an IRI If I'm not missing something, according to the my previous comment, IRI can be *anything*. 2) Although http://www.w3.org/2005/08/addressing schema does not mandate for a special format, does Axis2 expect a special pattern? The spec requires an IRI so if it did expect something I'd be more than a little surprised given the interop results. Is there any interop test that sets MessageID to the nonconformant IRI value? I mean, if someone has sent a value like abc 123 4as arw4343 -?;,[EMAIL PROTECTED] $ ? (I'm going to try it with Axis2 :-) 3) Must I make sure that I can safely write MessageID without contradicting database schema constraints, if it has passed through Axis2? A quick look at the code suggests no :-( I can't see any validation of the MessageID e.g. that it is actually a valid URI/IRI Hope this helps, David Thanks again. Ali Sadik Kumlali __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [Axis2] What values are allowed for wsa:MessageID?
I've tested it. Axis2 happily sends and receives MessageID like abc 123 4as arw4343 -?;,[EMAIL PROTECTED] $. I was also able to send 1000 characters long MessageID without any problem. Does it conform to IRI standard? Thanks a lot. Ali Sadik Kumlali --- Ali Sadik Kumlali [EMAIL PROTECTED] wrote: Thank you very much for the quick answer. Please see my inline comments. --- David Illsley [EMAIL PROTECTED] wrote: According to http://www.w3.org/2005/08/addressing schema, it can be any value. That's not entirely correct, the definition is broad but there are some requirements. The specification text requires [message id] be a valid absolute IRI while the schema requires an xs:anyURI You seem right. But, I was able to put any text in any size into xs:anyURI qualified field. You can test it with the following schema and instance. anyURITest.xsd ?xml version=1.0 encoding=UTF-8? xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema; xmlns:wsa=http://www.w3.org/2005/08/addressing; elementFormDefault=qualified attributeFormDefault=unqualified xs:import namespace=http://www.w3.org/2005/08/addressing; schemaLocation=http://www.w3.org/2005/08/addressing/ws-addr.xsd/ xs:element name=URITest xs:complexType xs:sequence xs:element name=xsAnyURI type=xs:anyURI/ xs:element name=wsaAttributedURIType type=wsa:AttributedURIType/ xs:element ref=wsa:MessageID/ /xs:sequence /xs:complexType /xs:element /xs:schema Xml instance which is valid against the anyURITest.xsd ?xml version=1.0 encoding=UTF-8? URITest xmlns:wsa=http://www.w3.org/2005/08/addressing; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:noNamespaceSchemaLocation=anyURITest.xsd xsAnyURIabc 123 4as arw4343 -?;,[EMAIL PROTECTED] $/xsAnyURI wsaAttributedURITypeabc 123 4as arw4343 -?;,[EMAIL PROTECTED] $/wsaAttributedURIType wsa:MessageIDabc 123 4as arw4343 -?;,[EMAIL PROTECTED] $/wsa:MessageID /URITest snip 1) I need to write MessageID value to the database and therefore need to know exact size and format of it. Is there a *sender neutral* way of this? No. All you can know is that a conformant message id is an IRI If I'm not missing something, according to the my previous comment, IRI can be *anything*. 2) Although http://www.w3.org/2005/08/addressing schema does not mandate for a special format, does Axis2 expect a special pattern? The spec requires an IRI so if it did expect something I'd be more than a little surprised given the interop results. Is there any interop test that sets MessageID to the nonconformant IRI value? I mean, if someone has sent a value like abc 123 4as arw4343 -?;,[EMAIL PROTECTED] $ ? (I'm going to try it with Axis2 :-) 3) Must I make sure that I can safely write MessageID without contradicting database schema constraints, if it has passed through Axis2? A quick look at the code suggests no :-( I can't see any validation of the MessageID e.g. that it is actually a valid URI/IRI Hope this helps, David Thanks again. Ali Sadik Kumlali __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
RE: [Axis2] What values are allowed for wsa:MessageID?
Thank you very much. But, as far as I understood, even though rfc3986 makes obsolete to rfc2396, xs:anyURI must conform to rfc2396. I could not find any refence that xs:anyURI must comply either with rfc3986 or rfc3987. I did some search and found many people were in trouble with xs:anyURI because of ambiguity of rfc2396: http://www.stylusstudio.com/xmldev/200404/post30160.html I also found a technical note from OASIS titled Handling of anyURI datatypes: http://www.oasis-open.org/committees/uddi-spec/doc/tn/uddi-spec-tc-tn-anyurihandling-20040921.htm#_ftn1. It has interesting footnote that says: - Discussions within the OASIS UDDI TC have shown that different TC members had different interpretations of what the allowed character set for anyURI based XML elements and attributes is. Clarifications with W3C representatives have shown that the allowed character set is unambiguously defined, as discussed in this Technical Note. - What I have as a result: - Even though it is not expected, someone can send strange MessageIDs to my services and Axis2 allows those message to successfully pass into my services. - Since my services can be confronted with any string as MessageID, I will have no chance to know its size and format. Thus, there is no way to predict a *suitable* table field to store it. I'm really confused... Ali Sadik Kumlali --- Flores, Raul [EMAIL PROTECTED] wrote: http://www.ietf.org/rfc/rfc3987.txt Even though it may not conform, you still have to deal with it! Raul Flores -Original Message- From: Ali Sadik Kumlali [mailto:[EMAIL PROTECTED] Sent: Thursday, April 13, 2006 9:31 AM To: axis-user@ws.apache.org Subject: Re: [Axis2] What values are allowed for wsa:MessageID? I've tested it. Axis2 happily sends and receives MessageID like abc 123 4as arw4343 -?;,[EMAIL PROTECTED] $. I was also able to send 1000 characters long MessageID without any problem. Does it conform to IRI standard? Thanks a lot. Ali Sadik Kumlali --- Ali Sadik Kumlali [EMAIL PROTECTED] wrote: Thank you very much for the quick answer. Please see my inline comments. --- David Illsley [EMAIL PROTECTED] wrote: According to http://www.w3.org/2005/08/addressing schema, it can be any value. That's not entirely correct, the definition is broad but there are some requirements. The specification text requires [message id] be a valid absolute IRI while the schema requires an xs:anyURI You seem right. But, I was able to put any text in any size into xs:anyURI qualified field. You can test it with the following schema and instance. anyURITest.xsd ?xml version=1.0 encoding=UTF-8? xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema; xmlns:wsa=http://www.w3.org/2005/08/addressing; elementFormDefault=qualified attributeFormDefault=unqualified xs:import namespace=http://www.w3.org/2005/08/addressing; schemaLocation=http://www.w3.org/2005/08/addressing/ws-addr.xsd/ xs:element name=URITest xs:complexType xs:sequence xs:element name=xsAnyURI type=xs:anyURI/ xs:element name=wsaAttributedURIType type=wsa:AttributedURIType/ xs:element ref=wsa:MessageID/ /xs:sequence /xs:complexType /xs:element /xs:schema Xml instance which is valid against the anyURITest.xsd ?xml version=1.0 encoding=UTF-8? URITest xmlns:wsa=http://www.w3.org/2005/08/addressing; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:noNamespaceSchemaLocation=anyURITest.xsd xsAnyURIabc 123 4as arw4343 -?;,[EMAIL PROTECTED] $/xsAnyURI wsaAttributedURITypeabc 123 4as arw4343 -?;,[EMAIL PROTECTED] $/wsaAttributedURIType wsa:MessageIDabc 123 4as arw4343 -?;,[EMAIL PROTECTED] $/wsa:MessageID /URITest snip 1) I need to write MessageID value to the database and therefore need to know exact size and format of it. Is there a *sender neutral* way of this? No. All you can know is that a conformant message id is an IRI If I'm not missing something, according to the my previous comment, IRI can be *anything*. 2) Although http://www.w3.org/2005/08/addressing schema does not mandate for a special format, does Axis2 expect a special pattern? The spec requires an IRI so if it did expect something I'd be more than a little surprised given the interop results. Is there any interop test that sets MessageID to the nonconformant IRI value? I mean, if someone has sent a value like abc 123 4as arw4343 -?;,[EMAIL PROTECTED
RE: [Axis2][0.95] LoggingModule.mar cannot be loaded
Thanks Sebastian. If I didn't get it wrong, LoggingModule.mar found in Axis2 distribution must be renamed to logging-x.xx.mar then. Regards, Ali Sadik Kumlali --- Sebastian Szczygiel [EMAIL PROTECTED] wrote: All Axis2 modules must follow following filename conventions: module-x.xx.mar where x.xx is the version (e.g. logging-1.00.mar) Best regards, Sebastian -Original Message- From: Ali Sadik Kumlali [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 12. April 2006 01:07 To: axis-user Subject: [Axis2][0.95] LoggingModule.mar cannot be loaded Hi Axis2 developers, While trying to run logging sample, I faced with an interesting problem. Let me explain the steps I took: 1) Put LoggingModule.mar under WEB-INF\modules 2) Put MyServiceWithModule.aar under WEB-INF\services 3) Added loggingPhase phase into axis2.xml found under WEB-INF\conf. I did this by following the instructions found in http://ws.apache.org/axis2/0_95/userguide4.html#Step_4:_Modify_the_%22ax is2_xml%22. Although I couldn't see any *green* thing ;-), replaced phase name=/ with phase name=loggingPhase/. Happily, this typo no longer exists in SVN. 4) Started Tomcat 5.5 and called http://localhost:8080/axis2/listServices.jsp. 5) Here is the exception I saw in the log file: --- - Deploying module : addressing-0.95 - Deploying module : security-0.95 - Deploying module : LoggingModule - Invalid service MyServiceWithModule.aar due to Processing Operations Modules logging module is invalid or has not been deployed; nested exception is: org.apache.axis2.deployment.DeploymentException: logging module is invalid or has not been deployed; nested exception is: org.apache.axis2.deployment.DeploymentException: Processing Operations Modules logging module is invalid or has not been deployed; nested exception is: org.apache.axis2.deployment.DeploymentException: logging module is invalid or has not been deployed ... --- 6) Changed the name of LoggingModule.mar to logging.mar and tried again. This time, everything went ok. 7) Also tried followings: - LoggingModule.mar -- Invalid - Logging.mar -- Invalid - logging.mar -- Valid - logging-0.95.mar -- Valid - my-logging.mar -- Invalid IMHO, there is a control like fileName.startsWith(moduleName) and this problem does not exists only for logging sample, but affects all the module loading processes. Just for your information. Regards, Ali Sadik Kumlali __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [axis2][0.95]problem with client
Hi Ouyang, You can find ClientUtil.java under samples/userguide/clients folder of 0.95 distribution (axis2-std-0.95-bin.zip). Regards, Ali Sadik Kumlali --- OUYANG Yang [EMAIL PROTECTED] wrote: Hello all:) I met a problem when tried to create a client for web service following the user guide. When create the EchoBlockingClient�� the source code is as follows: try { OMElement payload = ClientUtil.getEchoOMElement(); Options options = new Options(); options.setTo(targetEPR); options.setListenerTransportProtocol(Constants.TRANSPORT_HTTP); options.setUseSeparateListener(false); �ġ� }catch (AxisFault axisFault) { axisFault.printStackTrace(); } When I tried to compile this in IntelJ, there was a problem with the ClientUtil. The IntelJ said cannot resolve symbol 'ClientUtil' . What is this ClientUtil? Did I miss some jar file? Thank you very much! Regards Ouyang yang __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[Axis2][0.95] Client side module engagement from axis2.xml
Hi all, Is not it allowed to define custom modules within axis2.xml, instead of calling engageModule () method of ServiceClient? Since I can add security and addressing without any problem, I think it is allowed. But, I'm facing with and interesting (?) situation. I tried to run ClientSideModuleEngagement by adding module ref=LoggingModule/ line to its axis2.xml. Then commented out following line: serviceClient.engageModule(new QName(LoggingModule)); When I ran the sample it gave me the following output: - Deploying module : addressing-0.95 - Deploying module : security-0.95 - Deploying module : LoggingModule - Invalid phases please recheck axis2.xml loggingPhase for the handler InFlowLogHandler I don't get Invalid phases... warning with the original code. Am I missing something? Thanks in advance. Ali Sadik Kumlali P.S.: Here is my phase definitions found in axis2.xml phaseOrder type=inflow !-- System pre defined phases -- phase name=TransportIn/ phase name=PreDispatch/ phase name=Dispatch class=org.apache.axis2.engine.DispatchPhase handler name=RequestURIBasedDispatcher class=org.apache.axis2.engine.RequestURIBasedDispatcher order phase=Dispatch/ /handler handler name=SOAPActionBasedDispatcher class=org.apache.axis2.engine.SOAPActionBasedDispatcher order phase=Dispatch/ /handler handler name=AddressingBasedDispatcher class=org.apache.axis2.engine.AddressingBasedDispatcher order phase=Dispatch/ /handler handler name=SOAPMessageBodyBasedDispatcher class=org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher order phase=Dispatch/ /handler handler name=InstanceDispatcher class=org.apache.axis2.engine.InstanceDispatcher order phase=PostDispatch/ /handler /phase !-- System pre defined phases -- !-- After Postdispatch phase module author or or service author can add any phase he want -- phase name=loggingPhase/ phase name=OperationInPhase/ /phaseOrder phaseOrder type=outflow !-- user can add his own phases to this area -- phase name=OperationOutPhase/ !--system predefined phase-- !--these phase will run irrespective of the service-- phase name=loggingPhase/ phase name=PolicyDetermination/ phase name=MessageOut/ /phaseOrder phaseOrder type=INfaultflow !-- user can add his own phases to this area -- phase name=loggingPhase/ phase name=OperationInFaultPhase/ /phaseOrder phaseOrder type=Outfaultflow !-- user can add his own phases to this area -- phase name=loggingPhase/ phase name=OperationOutFaultPhase/ phase name=PolicyDetermination/ phase name=MessageOut/ /phaseOrder ... - __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [Axis2] 1.0RC1 module problems
Hi Robert, I faced the same problem and posted messages about it yesterday. When you rename LoggingModule.mar to logging.mar it should work. Could you please give this a try? Regards, Ali Sadik Kumlali --- robert lazarski [EMAIL PROTECTED] wrote: Hi all, I'm trying to port a module from around .94 to RC1 . I had some engagement problems, so I decided to try deploying the LoggingModule from the user guide - my module largely follows that example. The debug logs show: - Deploying module : LoggingModule - org.apache.axis2.i18n.resource::handleGetObject(modulenotavailble) - org.apache.axis2.i18n.resource::handleGetObject(modulevalfailed) - Module validation failed Trying to engage a module which is not available : logging - org.apache.axis2.i18n.resource::handleGetObject(modulenotavailble) - org.apache.axis2.i18n.resource::handleGetObject(modulevalfailed) - Module validation failed Trying to engage a module which is not available : logging Now the steps I followed was: 1) Move LoggingModule.mar to WEB-INF/modules. 2) add module ref=logging/ to my services.xml 3) Edit axis2.xml to put phase name=loggingPhase/ in the inflow, outflow, and faults. 4) add module ref=logging/ to axis2.xml . That's the way I remember it working. Any ideas? Robert http://www.braziloutsource.com/ __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [Axis2][0.95] How can I know wsa:MessageID before sending it?
Thanks Eran. It has worked perfectly for 0.95. Ali Sadik Kumlali --- Eran Chinthaka [EMAIL PROTECTED] wrote: Hi Ali, Ali Sadik Kumlali wrote: Hi all, At the service side, I can get MessageID that is sent by the client by invoking ctx.getMessageID(). What I need is to be able to know MessageID that my service is going to send as a response. Actually, what I need is a method like ctx.getMessageIDToBeSent(). AFAIK, it is not produced until it enters into the WSA module. Therefore, in my service, I do not have the MessageID yet. Am I wrong? If no, is there a way to do this? Nope, the message id is set to the out message context, inside the message receiver. And then that message context *may* be passed in to the service implementation class. If you wanna know the sending messageId, get access to the out message context, within the service class and override the messageId value. How to get access to the out message context ? In 0.95, introduce a method in ur service implementation class public void init(MessageContext inMsgCtxt, MessageContext inMsgCtxt){ // ur code here } In 1.0 RC1, introduce a method in ur service implementation class public void setOperationContext(OperationContext opCtxt){ MessageContext outMsgCtxt = opCtxt.getMessageContext(WSDLConstants.MESSAGE_LABEL_OUT_VALUE); // your code here } -- Chinthaka __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[Axis2][0.95] LoggingModule.mar cannot be loaded
Hi Axis2 developers, While trying to run logging sample, I faced with an interesting problem. Let me explain the steps I took: 1) Put LoggingModule.mar under WEB-INF\modules 2) Put MyServiceWithModule.aar under WEB-INF\services 3) Added loggingPhase phase into axis2.xml found under WEB-INF\conf. I did this by following the instructions found in http://ws.apache.org/axis2/0_95/userguide4.html#Step_4:_Modify_the_%22axis2_xml%22. Although I couldn't see any *green* thing ;-), replaced phase name=/ with phase name=loggingPhase/. Happily, this typo no longer exists in SVN. 4) Started Tomcat 5.5 and called http://localhost:8080/axis2/listServices.jsp. 5) Here is the exception I saw in the log file: --- - Deploying module : addressing-0.95 - Deploying module : security-0.95 - Deploying module : LoggingModule - Invalid service MyServiceWithModule.aar due to Processing Operations Modules logging module is invalid or has not been deployed; nested exception is: org.apache.axis2.deployment.DeploymentException: logging module is invalid or has not been deployed; nested exception is: org.apache.axis2.deployment.DeploymentException: Processing Operations Modules logging module is invalid or has not been deployed; nested exception is: org.apache.axis2.deployment.DeploymentException: logging module is invalid or has not been deployed ... --- 6) Changed the name of LoggingModule.mar to logging.mar and tried again. This time, everything went ok. 7) Also tried followings: - LoggingModule.mar -- Invalid - Logging.mar -- Invalid - logging.mar -- Valid - logging-0.95.mar -- Valid - my-logging.mar -- Invalid IMHO, there is a control like fileName.startsWith(moduleName) and this problem does not exists only for logging sample, but affects all the module loading processes. Just for your information. Regards, Ali Sadik Kumlali __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[Axis2][0.95] How can I know wsa:MessageID before sending it?
Hi all, At the service side, I can get MessageID that is sent by the client by invoking ctx.getMessageID(). What I need is to be able to know MessageID that my service is going to send as a response. Actually, what I need is a method like ctx.getMessageIDToBeSent(). AFAIK, it is not produced until it enters into the WSA module. Therefore, in my service, I do not have the MessageID yet. Am I wrong? If no, is there a way to do this? Thanks a lot, Ali Sadik Kumlali P.S.: Apologies for my previous HTML posts. I hadn't seen Mail Guideline found in http://ws.apache.org/axis2/guidelines.html __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [Axis2] Generation of Keystores
Hi Siamak,I highly recommend you to give Portecle (http://portecle.sourceforge.net/) a try. Thus, you will be able to manage keystores easily. It's superb and open-source. Please pass it English localeproperties before running:java -Duser.language=en -jar portecle.jarAlthough I don't know the theory behind it, followingsworked for me. You might also give a try to it: axis2 security sample's sec.jks -- - Examine sec.jks with Portecle and see signature algorithm of bob private key as "SHA1withRSA" - Notice signatureKeyIdentifier found in InflowSecurity and OutflowSecurity is set as SKIKeyIdentifier: signatureKeyIdentifierSKIKeyIdentifier/signatureKeyIdentifierkeytool generated client.jks and server.jks - Examine client.jks with Portecle and see signature algorithm of client private key as "MD5withRSA"- Replace SKIKeyIdentifier with DirectReference: signatureKeyIdentifierDirectReference/signatureKeyIdentifierHope this works.Ali Sadik KumlaliSiamak Haschemi [EMAIL PROTECTED] wrote: Hello Ruchith.Thank you very much for that fantastic support. It is not naturally that people are so patient :-)I will try to follow your hint, but I already did everything I could imagine.Thank you very much,Siamak HaschemiRuchith Fernando schrieb: Hi Siamak, I will try to get you a step by step project over the week end :-) But please note that the exception that you mentioned: "WSHandler: Signature: error during message procesingorg.apache.ws.security.WSSecurityException: General security error (Unexpected number of X509Data: for Signature) ..." occurs when you have NOT specified the correct alias of the private key in the keystore to use as the value of the element in the outflowConfiguration, also the callback handler class must supply the correct password of the private key when asked for password of that particular alias. Thanks, Ruchith On 4/6/06, Siamak Haschemi wrote:Hello Ruchith, I think that was a misunderstanding. I already made this changes. I think that the problem lies in de keystore. Did you look at the script? Is the generation of the Keystore correct? Or am I missing some extra paramaters? I would be very thankful If you could send me a litte projekt including the generation of self-signing Certificates. Thank you very much, Siamak Haschemi Ruchith Fernando schrieb: Hi, Please note that you will have to provide the configuration information according to set the new keystores. Simply replacing the keystores in the security sample will not help. - You will have to set the value in the outflowConfiguration parameter to the alias of the private key in the appropriate keystore. - You will have to provide a .properties file with the correct keystore information - You will have to make sure the PasswordCallbackhandler class (impl of java.auth.Callbackhandler) returns the proper passwords for the required identifiers. - You will have to make sure you have all the above available in the classpath of both service and client appropriately (The secUtil.jar in the security sample packages all of these). HTH Thanks, Ruchith On 4/6/06, Siamak Haschemi wrote:Hello Ruchith. I follow you instructions. I create a script for generating the keystore. But now I got into trubble with a error: "WSHandler: Signature: error during message procesingorg.apache.ws.security.WSSecurityException: General security error (Unexpected number of X509Data: for Signature) ..." If I use the original "sec.jks" from the security sample (and changing the axis2.xml user and encryptionUser param) it works. So I think there's still something wrong with my Keystore. Here is the script I use to generate the keystore. - @echo off set CLIENT_KEYPASS=keyPassClient set CLIENT_STOREPASS=storePassClient set SERVER_KEYPASS=keyPassServer set SERVER_STOREPASS=storePassServer keytool -genkey -keyalg RSA -alias client -keystore client.jks -dname "cn=Client" -keypass %CLIENT_KEYPASS% -storepass %CLIENT_STOREPASS% keytool -genkey -keyalg RSA -alias server -keystore server.jks -dname "cn=Server" -keypass %SERVER_KEYPASS% -storepass %SERVER_STOREPASS% keytool -selfcert -alias client -keystore client.jks -keypass %CLIENT_KEYPASS% -storepass %CLIENT_STOREPASS% keytool -selfcert -alias server -keystore server.jks -keypass %SERVER_KEYPASS% -storepass %SERVER_STOREPASS% keytool -export -keystore client.jks -alias client -storepass %CLIENT_STOREPASS% -file client.cert keytool -export -keystore server.jks -alias server -storepass %SERVER_STOREPASS% -file server.cert keytool -import -noprompt -alias server -file server.cert -keystore client.jks -storepass %CLIENT_STOREPASS% keytool -import -noprompt -alias client -file client.cert -keystore server.jks -storepass %SERVER_STOREPASS% del client.cert del server.cert keytool -list -keystore client.jks -storepass %CLIENT_STOREPASS% keytool -list -keystore
[Axis2] Couldn't find 0.95 tag and confused with SVN repository structure...
Hi,I needed to checkout the release tagged 0.95 from SVN, but couldn't find the tag. I thought that before announcement of 0.95 release, its tag had been frozen. What I found are; - http://svn.apache.org/viewcvs.cgi/webservices/axis2/tags/ doesn't have 0.95 - Both http://svn.apache.org/viewcvs.cgi/webservices/axis2/tags/ and http://svn.apache.org/viewcvs.cgi/webservices/axis2/tags/java/ have 0.94 folder. What is the difference?Am I missing something? Actually, I'm not familiar with SVN and may be thinking it as CVS ;-)Thanks a lot.Ali Sadik Kumlali Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice.
Re: How to reproduce WSDL2Java okay+uncompilable code generated
Hi,Eclipse Web Tools Platform (WTP) comes with XSD and WSDL editors which are able to validate.For more information please visit http://www.eclipse.org/webtools/Regards,Ali Sadik KumlaliAnne Thomas Manes [EMAIL PROTECTED] wrote: There are other problems with this WSDL besides the wrong qnames in your message parts. (Note that they aren't unqualified because there is a default namespace (the wsdl namespace); but these elements are in the xsd1 namespace.) When using RPC style, your message parts must reference types, not elements. To fix the WSDL, either change the style to "document" (and remove the namespace attributes from the soap:body definitions) or change the message parts to reference types rather than elements. I disagree with you that wsdl2java should have a built-in WSDL validator and should be able to catch all WSDL errors. As a best practice, you should validate your WSDL before running wsdl2java. Many WSDL editors provide WSDL validators. I'm not aware of an open source WSDL validator, though. (Perhaps someone would like to volunteer to build one?) I do think that wsdl2java should generate an error when it encounters an unresolvable reference, though. e.g.,"http://schemas.xmlsoap.org/wsdl/}echoStringParam is referenced but not defined"Anne On 3/30/06, Morten Mortensen [EMAIL PROTECTED] wrote: I can now directly provoke, what I said yesterday: WSDL2Java runningsmoothly, but the generated coded in an uncompilable state!To reproduce, take the "Axis2SampleDocLit.wsdl" from the 0.95distribution, make the error like I did in my own WSDL by removing the qualification from the message-elements like this (see the attachedfile; slightly modified variant of the original sample):Change e.g. -message name="echoString"part element="xsd1:echoStringParam" name="a"/- remove "xsd1"/message- into -message name="echoString"part element="echoStringParam" name="a"/ - no "xsd1" /messageNow the WSDL2Java runs without any errors, but the compilation failssince the code shown in my original message below is produced.I think, that there ought to be a negative test-case for WSDL2Java with this type of WSDL!It is very good, that given correct WSDL, then all is fine - but in reallife, we fiddle with WSDL for a long time, maybe do not get it right forthe first number of times and then it is important to have tools like WSDL2Java do some aggressive verification of the WSDL...Having to track down the cause of generated, uncompilable code is tootough.Developers - are you listening?Regards,Morten Sabroe Mortensen -Oprindelig meddelelse-Fra: Morten MortensenSendt: 29. marts 2006 17:38Til: axis-user@ws.apache.orgEmne: Mode "Document/literal" vs. "Document/literal wrapped" Hi allWith the 0.95 version, how come I can use WSDL2Java to generate*un-compilable* code?Apparently, when I write WSDL as "Document/literal wrapped", thegenerated "XXXReceiverInOut" has bad "toOM()", "fromOM()" and "toEnvelope()" (for an example, see the below "toOM()"-implementation;the parameter does not have the right type!).Why does this happen? What to do?Regards,Morten Sabroe Mortensen --- ...privateorg.apache.ws.commons.om.OMElementtoOM(org.apache.ws.commons.om.OMElement param){if (param instanceoforg.apache.axis2.databinding.ADBBean ){org.apache.ws.commons.om.impl.builder.StAXOMBuilder builder = neworg.apache.ws.commons.om.impl.builder.StAXOMBuilder(org.apache.ws.commons.om.OMAbstractFactory.getOMFactory(),param.getPullParser( org.apache.ws.commons.om.OMElement.MY_QNAME));org.apache.ws.commons.om.OMElementdocumentElement = builder.getDocumentElement();((org.apache.ws.commons.om.impl.OMNodeEx )documentElement).setParent(null); // remove the parent linkreturn documentElement;}else{ //todo finish this onece the bean serializer has the necessary methodsreturn null;}} ...--- New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
Re: [Axis2][0.95][JDK1.4 and JDK 1.5] Still got security sample problems :)
axiom-api-0.95.jar;C:\axis2\lib\axiom-impl-0.95. jar;C:\axis2\lib\axis-wsdl4j-1.2.jar;C:\axis2\lib\axis2-adb-0.95.jar;C :\axis2\lib\axis2-codegen-0.95.jar;C:\axis2\lib\axis2-doom-0.95.jar;C: \axis2\lib\axis2-kernel-0.95.jar;C:\axis2\lib\backport-util-concurrent -2.0_01_pd.jar;C:\axis2\lib\commons-codec-1.3.jar;C:\axis2\lib\commons -httpclient-3.0.jar;C:\axis2\lib\commons-logging-1.0.4.jar;C:\axis2\li b\geronimo-spec-activation-1.0.2-rc4.jar;C:\axis2\lib\geronimo-spec-javamai l-1.3.1-rc5.jar;C:\axis2\lib\geronimo-spec-jms-1.1-rc4.jar;C:\axis2\li b\jaxen-1.1-beta-7.jar;C:\axis2\lib\jaxme2-0.5.1.jar;C:\axis2\lib\jaxm ejs-0.5.1.jar;C:\axis2\lib\jaxmexs-0.5.1.jar;C:\axis2\lib\log4j-1.2.13 .jar;C:\axis2\lib\maven-itest-plugin-1.0.jar;C:\axis2\lib\policy-1.0.j ar;C:\axis2\lib\servletapi-2.3.jar;C:\axis2\lib\stax-api-1.0.jar;C:\TE MP\axis2\lib\wstx-asl-2.8.2.jar;C:\axis2\lib\xalan-2.6.0.jar;C:\axis2\ lib\xbean-2.1.0.jar;C:\axis2\lib\xercesImpl-2.7.1.jar;C:\axis2\lib\xml -apis-1.3.02.jar;C:\axis2\samples\security\lib\bcprov-jdk13-131.jar;C:\TEMP \axis2\samples\security\lib\commons-discovery-0.2.jar;C:\axis2\samples\secu rity\lib\secUtil.jar;C:\axis2\samples\security\lib\wss4j-SNAPSHOT.jar;C:\TE MP\axis2\samples\security\lib\xmlsec-1.2.1.jar [echo] - [java] org.apache.axis2.AxisFault: WSHandler: Encryption: error during mess age processingorg.apache.ws.security.WSSecurityException: An unsupported signatu re or encryption algorithm was used; nested exception is: [java] org.apache.xml.security.encryption.XMLEncryptionException: Canno t find any provider supporting AES/CBC/ISO10126Padding [java] Original Exception was java.security.NoSuchAlgorithmException: Canno t find any provider supporting AES/CBC/ISO10126Padding; nested exception is: [java] org.apache.ws.security.WSSecurityException: WSHandler: Encryptio n: error during message processingorg.apache.ws.security.WSSecurityException: An ...Ruchith Fernando [EMAIL PROTECTED] wrote: Hi,To ensure bouncycastle provider is picked up we insert it as thesecond in the list of providers.This done is each time the security handlers are invoked.Can you please run the attached TestCipher.java snippet and verify theabove behaviour works in your _specific_ JDK version?VERY IMPORTANT : Make sure you have bcprov-jdk13-131.jar in the classpath.This is what I did to compile and run TestCipher.java from the samedir that it is saved:$ javac TestCipher.java$ java -cp ~/.maven/repository/bouncycastle/jars/bcprov-jdk13-131.jar:.TestCipherThanks,RuchithOn 3/26/06, Ali Sadik Kumlali wrote: Hi Ruchith, Thank you for your help. I want you to make sure that I didn't write my own code and only try to run the samples/security that comes with Axis2. Actually, I replaced it with the separately distributed sample listed in the site. I could not find a big difference other than a typo in service.xml, though. Anyway, I re-checked my folder structure and build.xml according to your instructions, but could not find any difference. Moreover I tried followings with JDK 1.5: 1) Renamed c:\axis2\lib to c:\axis2\libx and ran the sample. As expected, I got "c:\axis2\lib not found" ant error. Therefore, I made sure that build.xml is proper. 2) I did the same for c:\axis2\samples\security\lib folder and got the same error. Therefore, I made sure that build.xml is proper. 3) Put bcprov-jdk13-131.jar under c:\axis2\samples\security\lib and ran the sample. Got the "known error"[1]. 4) Put bcprov-jdk13-131. jar under D:\programs\Java\jdk1.5.0_01\jre\lib\ext\ and ran the sample. Got the "known error"[1]. [1] known error: c:\axis2\samples\securityant Buildfile: build.xml securitySample: [java] org.apache.axis2.AxisFault: WSHandler: Encryption: error during mess age processingorg.apache.ws.security.WSSecurityException: An unsupported signatu re or encryption algorithm was used; nested exception is: [java] org.apache.xml.security.encryption.XMLEncryptionException: Canno t fin d any provider supporting AES/CBC/ISO10126Padding [java] Original Exception was java.security.NoSuchAlgorithmException: ... Thanks a lot. Ali Sadik Kumlali Ruchith Fernando wrote: Hi, Seems like the bouncycastle.jar is not in the classpath of the client. This is the JCE provider we use instead of the default impl and it contains implementations of the required algorithms. Please check whether you have a directory named 'lib' within in the samples/security directory and it should contain bcprov-jdk13-131.jar file [1]. Also please check whether the build.xml that you use has the following path def. And if those are available you can see that the ant build file properly loads all the jars in the 'lib' directory. Thanks, Ruchith [1] This directory also contains : commons-discovery-0.2.jar secUtil.jar wss4j-SNAPS
Re: [Axis2][0.95][JDK1.4 and JDK 1.5] Still got security sample problems :)
Hi Ruchith,With your helps, I've found the mistery at last!While I was thinking about the diffrences we might have, I gave "locale settings" a try and surprisingly it worked!Here is the mystery: "Security sample requires user language to be English". Therefore, -Duser.language=EN must be passed to JVM while application starts.To provide this support, I added jvmarg value="-Duser.language=EN"/ to the build.xml. Here is my build.xml for the securitySample:project name="samples" default="securitySample" path id="axis.classpath" fileset dir="../../lib" include name="*.jar"/ /fileset fileset dir="lib" include name="*.jar"/ /fileset /path property name="axis.classpath.prop" refid="axis.classpath"/ target name="securitySample" echo message="[os.name]: ${os.name}" / echo message="[os.version]: ${os.version}" / echo message="[os.arch]: ${os.arch}" / echo message="[ant.version]: ${ant.version}" / echo message="[java.version]: ${java.version}" / echo message="[java.home]: ${java.home}" / echo message="[java.class.path]:" /echo-/echoecho message="${java.class.path}" /echo-/echoecho message="[axis.classpath]:" /echo-/echoecho message="${axis.classpath.prop}" / echo-/echo java classname="sample.security.Client" classpathref="axis.classpath" fork="true"jvmarg value="-Duser.language=EN"/arg value="client_repo"/ arg value="8080"/ /java /target /projectIt works for both JDK 1.4 and JDK 1.5. But, for JDK 1.5, I would like to remind you that xalan-2.7.0.jar does not work, since it causes java.lang.NoClassDefFoundError: org/apache/xpath/compiler/FuncLoader exception. So, I needed to put xalan-2.6.0.jar under both WEB-INF\lib\ and c:\axis2\lib.Anyway, thanks a lot for you take your valuable time for me.Ali Sadik KumlaliRuchith Fernando [EMAIL PROTECTED] wrote: Hi Ali,hmm this is very strange since the TestCipher produced "BC" asthe output (i.e. bouncycastle is available as the default JCEprovider) you should be able to get the sample working if it is thesame JRE that is used by the security sample client.Did you try this with JDK 1.4?Thanks,Ruchithp.s. We were able to successfully run the security sample out of box(with the correct services.xml) with the follo wing configs:Windows XP , JKD 1.4.2_02Ubuntu Linux, JDK 1.4.2_08Gentoo Linux, JDK 1.4.2_08On 3/26/06, Ali Sadik Kumlali wrote: Hi Ruchith, I ran TestChiper and got SunJCE as output. Then changed my java.security file as following: security.provider.1=sun.security.provider.Sun security.provider.2=org.bouncycastle.jce.provider.BouncyCastleProvider security.provider.3=sun.security.rsa.SunRsaSign security.provider.4=com.sun.net.ssl.internal.ssl.Provider security.provider.5=com.sun.crypto.provider.SunJCE security.provider.6=sun.security.jgss.SunProvider security.provider.7=com.sun.security.sasl.Provider And ran again. This time I got BC. With this configuration I ran securitySample and got the same error. To print all the settings, I changed build.xml as following: - - - - classpathref="axis.classpath" fork="true"It gave me following output: c:\axis2\samples\securityant Buildfile: build.xml securitySample: [echo] [java.version]: 1.5.0_01 [echo] [java.home]: D:\programs\Java\jdk1.5.0_01\jre [echo] [java.class.path]: [echo] - [echo] D:\mydocuments\programlama\lib\apache\ant\apache-ant-1.6.2\lib\ant-l auncher.jar;D:\mydocuments\programlama\lib\apache\ant\apache-ant-1.6.2\lib\ant-a ntlr.jar;D:\mydocuments\programlama\lib\apache\ant\apache-ant-1.6.2\lib\ant-apac he-bcel.jar;D:\mydocuments\programlama\lib\apache\ant\apache-ant-1.6.2\lib\ant-a pache-bsf.jar;D:\mydocuments\programlama\lib\apache\ant\apache-ant-1.6.2\lib\ant -apache-log4j.jar;D:\mydocuments\programlama\lib\apache\ant\apache-ant-1.6.2\lib \ant-apache-oro.jar;D:\mydocuments\programlama\lib\apache\ant\apache-ant-1.6.2\l ib\ant-apache-regexp.jar;D:\mydocuments\programlama\lib\apache\ant\apache-ant-1. 6.2\lib\
[Axis2][0.95][JDK1.4 and JDK 1.5] Still got security sample problems :)
Dear all,Thanks to Axis2 team, 0.95 relase has finally announced on the site.Happily, there is an extra download for security sample which makes me feel I finally get rid of security sample nightmare :)Unfortunately and surprisingly, I can't get security sample to work and still get the same errors. I've listed all my journey with the new release step by step.Hope, I'll somehow find a way to make it work :)Thanks,Ali Sadik Kumlali --- TRIALS WITH JDK 1.4 --- Let's make sure the Java version:c:\axis2\samples\securityjava -version java version "1.4.2_02" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_02-b03) Java HotSpot(TM) Client VM (build 1.4.2_02-b03, mixed mode)Let's run the sample:c:\axis2\samples\securityant Buildfile : build.xmlsecuritySample: [java] org.apache.axis2.AxisFault: WSHandler: Encryption: error during mess age processingorg.apache.ws.security.WSSecurityException: An unsupported signatu re or encryption algorithm was used; nested exception is: [java] org.apache.xml.security.encryption.XMLEncryptionException: Canno t find any provider supporting AES/CBC/ISO10126Padding < span style="font-family: courier;"> [java] Original Exception was java.security.NoSuchAlgorithmException: Canno t find any provider supporting AES/CBC/ISO10126Padding; nested exception is: [java] org.apache.ws.security.WSSecurityException: WSHandler: Encryptio n: error during message processingorg.apache.ws.security.WSSecurityException: An unsupported signature or encryption algorithm was used; nested exception is: [java] org.apache.xml.security.encryption.XMLEncryptionEx ception: Canno t find any provider supporting AES/CBC/ISO10126Padding [java] Original Exception was java.security.NoSuchAlgorithmException: Canno t find any provider supporting AES/CBC/ISO10126Padding [java] at org.apache.axis2.security.WSDoAllSender.invoke(WSDoAllSender. java:253)... --- TRIALS WITH JDK 1.5 --- Let's make sure the Java version:c:\axis2\samples\securityjava -version java version "1.5.0_01" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08) Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode)Let's run the sample: c:\axis2\samples\securityant Buildfile: build.xmlsecuritySample: [java] Exception in thread "main" java.lang.NoClassDefFoundError: org/apach e/xpath/compiler/FuncLoader [java] at org.apache.ws.security.WSSConfig.init(WSSConfig.java:75) [java] at org.apache.ws.security.WSSConfig.getNewInstance(WSSConfig.jav a:98) [java] at org.apache.ws.security.WSSConfig.clinit(WSSConfig.java:48) [java] at org.apache.ws.security.WSSecurityEngine.clinit(WSSecurityEn gine.java:51) ...I remembered Ruchith Fernando's advice related to JDK 1.5 Xalan and followed the link he gave: http://svn.apache.org/viewcvs.cgi/*checkout*/webservices/axis2/trunk/java/xdocs/faq.html. Found an item mentioned to download xalan-2.7.0.jar. I downloaded it from:http://www.apache.org/dist/java-repository/xalan/jars/ and put under c:\axis2\lib but got the same error. Searched in Google for org.apache.xpath.compiler.FuncLoader. What I found that the FuncLoader.class existed in xalan-2.6.0.jar not in xalan-2.7.0.jar. Finally, downloaded xalan-2.6.0.jar and put under c:\axis2\lib. This time I got the same error found in JDK 1.4:securitySample: [java] org.apache.axis2.AxisFault: WSHandler: Encryption: error during mess age processingorg.apache.ws.security.WSSecurityException: An unsupported signatu re or encryption algorithm was used; nested exception is: [java] org.apache.xml.security.encryption.XMLEncryptionException: Canno t find any provider supporting AES/CBC/ISO10126Padding [java] Original Exception was java.security.NoSuchAlgorithmException: Canno t find any provider supporting AES/CBC/ISO10126Padding; nested exception is: [java] org.apache.ws.security.WSSecurityException: WSHandler: Encryptio n: error during message processingorg.apache.ws.security.WSSecurityException: An unsupported signature or encryption algorithm was used; nested exception is: [java] org.apache.xml.security.encryption.XMLEncryptionException: Canno ...Again looked in FAQ and added security.provider.7=org.bouncycastle.jce.provider.BouncyCastleProviderline to < br> d:\programs\java\jre1.5.0_06\lib\security\java.security file. I made sure that java -version belonged to the java installation found under d:\programs\java\jre1.5.0_06. Therefore, I must had changed correct java.security file.Finally, ran the ant
Re: [Axis2][0.95][JDK1.4 and JDK 1.5] Still got security sample problems :)
Hi Ruchith,Thank you for your help. I want you to make sure that I didn't write my own code and only try to run the samples/security that comes with Axis2. Actually, I replaced it with the separately distributed sample listed in the site. I could not find a big difference other than a typo in service.xml, though.Anyway, I re-checked my folder structure and build.xml according to your instructions, but could not find any difference. Moreover I tried followings with JDK 1.5:1) Renamed c:\axis2\lib to c:\axis2\libx and ran the sample. As expected, I got "c:\axis2\lib not found" ant error. Therefore, I made sure that build.xml is proper.2) I did the same for c:\axis2\samples\security\lib folder and got the same error. Therefore, I made sure that build.xml is proper.3) Put bcprov-jdk13-131.jar under c:\axis2\samples\security\lib and ran the sample. Got the "known error"[1].4) Put bcprov-jdk13-131. jar under D:\programs\Java\jdk1.5.0_01\jre\lib\ext\ and ran the sample. Got the "known error"[1].[1] known error: c:\axis2\samples\securityant Buildfile: build.xmlsecuritySample: [java] org.apache.axis2.AxisFault: WSHandler: Encryption: error during mess age processingorg.apache.ws.security.WSSecurityException: An unsupported signatu re or encryption algorithm was used; nested exception is: [java] org.apache.xml.security.encryption.XMLEncryptionException: Canno t find any provider supporting AES/CBC/ISO10126Padding [java] Original Exception was java.security.NoSuchAlgorithmException: ... -------- Thanks a lot.Ali Sadik Kumlali Ruchith Fernando [EMAIL PROTECTED] wrote: Hi,Seems like the bouncycastle.jar is not in the classpath of the client.This is the JCE provider we use instead of the default impl and itcontains implementations of the required algorithms.Please check whether you have a directory named 'lib' within in thesamples/security directory and it should contain bcprov-jdk13-131.jarfile [1].Also please check whether the build.xml that you use has the following path def. And if those are available you can see that the ant build fileproperly loads all the jars in the 'lib' directory.Thanks,Ruchith[1] This directory also contains :commons-discovery-0.2.jarsecUtil.jarwss4j-SNAPSHOT.jarxmlsec-1.2.1.jarOn 3/25/06, Ali Sadik Kumlali wrote: Dear all, Thanks to Axis2 team, 0.95 relase has finally announced on the site. Happily, there is an extra download for security sample which makes me feel I finally get rid of security sample nightmare :) Unfortunately and surprisingly, I can't get security sample to work and still get the same errors. I've listed all my journey with the new release step by step. Hope, I'll somehow find a way to make it work :) Thanks, Ali Sadik Kumlali --- TRIALS WITH JDK 1.4 --- Let's make sure the Java version: c:\axis2\samples\securityjava -version java version "1.4.2_02" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_02-b03) Java HotSpot(TM) Client VM (build 1.4.2_02-b03, mixed mode) Let's run the sample: c:\axis2\samples\securityant Buildfile : build.xml securitySample: [java] org.apache.axis2.AxisFault: WSHandler: Encryption: error during mess age processingorg.apache.ws.security.WSSecurityException: An unsupported signatu re or encryption algorithm was used; nested exception is: [java] org.apache.xml.security.encryption.XMLEncryptionException:& gt; Canno t find any provider supporting AES/CBC/ISO10126Padding span style="font-family: courier;" [java] Original Exception was java.security.NoSuchAlgorithmException: Canno t find any provider supporting AES/CBC/ISO10126Padding; nested exception is: [java] org.apache.ws.security.WSSecurityException: WSHandler: Encryptio n: error during message processingorg.apache.ws.security.WSSecurityException: An unsupported signature or encryption algorithm was used; nested exception is: [java] org.apache.xml.security.encryption.XMLEncryptionEx ception: Canno t find any provider supporting AES/CBC/ISO10126Padding [java] Original Exception was java.security.NoSuchAlgorithmException: Canno t find any provider supporting AES/CBC/ISO10126Padding [java] at org.apache.axis2.security.WSDoAllSender.invoke(WSDoAllSender. java:253) ... --- TRIALS WITH JDK 1.5 --- Let's make sure the Java version: c:\axis2\samples\securityjava -version java version "1.5.0_01" Java(TM) 2 Runtime Environment, Standard Edition (bui
RE: [axis2] - 0.95 - Security Sample
Hi Ameet,Could you manage to run "securitySample" without any problem? If you are ok, which java version do you use? Or, did you need any undocumented change to make it to run?I'm having difficulties with securitySample comes with 0.94 and 0.95. I posted my problems with "[Axis2] - 0.95 - Couldn't get security sample to work" subject yesterday.Any help would be appreciated.Ali Sadik KumlaliAmeet Hasmucrai Amarchande [EMAIL PROTECTED] wrote: Hi all,I found the problem. It was this line in service.xml:acionMappingurn:echo/acionMappingI changed to this, and it is working now:actionMappingurn:echo/actionMappingThanks,AmeetFrom: Ameet Hasmucrai Amarchande [mailto:[EMAIL PROTECTED] Sent: sexta-feira, 24 de Mar�o de 2006 11:18 To: axis-user@ws.apache.org Subject: [axis2] - 0.95 - Security Sample Hi all,I am trying to run the security sample, but when I am setting up the service, I get the error below, from Tomcat 5.5.16 console. The steps I have followed so far are: - I have engaged the security module - Copied SecurreService.aar to the services directory - Copied all jars from the sample/security/lib to axis2/web-inf/lib - And copied security-0.95.mar to the modules directory.Can anyone help me please.Thanks,Ameet INFO: Deploying web application archive axis2.war - Deploying module : addressing-0.95 - Deploying module : security-0.95 - Invalid service SecureService.aar due to com.ctc.wstx.exc.WstxUnexpectedCharE xception: Unexpected character '' (code 60); expected an element name. at [row,col {unknown-source}]: [5,37]; nested exception is: org.apache.ws.commons.om.OMException: com.ctc.wstx.exc.WstxUnexpectedCha rException: Unexpected character '' (code 60); expected an element name. at [row,col {unknown-source}]: [5,37] org.apache.axis2.deployment.DeploymentException: com.ctc.wstx.exc.WstxUnexpected CharException: Unexpected character '' (code 60); expected an element name. at [row,col {unknown-source}]: [5,37]; nested exception is: org.apache.ws.commons.om.OMException: com.ctc.wstx.exc.WstxUnexpectedCha rException: Unexpected character '' (code 60); expected an element name. at [row,col {unknown-source}]: [5,37] at org.apache.axis2.deployment.repository.util.ArchiveReader.processServ iceGroup(ArchiveReader.java:134) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngin e.java:428) at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoL ist.java:195) at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListe ner.java:195) at org.apache.axis2.deployment.RepositoryListener.checkServices(Reposito ryListener.java:145) at org.apache.axis2.deployment.DeploymentEngine.load(DeploymentEngine.ja va:571) at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfigurati on(FileSystemConfigurator.java:59) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurat ionContext(ConfigurationContextFactory.java:33) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurat ionContextFromFileSystem(ConfigurationContextFactory.java:82) at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisSer vlet.java:237) at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:204 ) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper. java:1105) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:93 2) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex t.java:3917) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4 197) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase .java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:73 9) 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:1112) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java :310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.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:4 50) 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
[Axis2][0.95][JDK1.4] maven clean jar is broken
Just wanted to inform.Regards,Ali Sadik Kumlali---multiproject:install-callback: [echo] Running jar:install for Apache Axis 2.0 - WSDLjava:prepare-filesystem: [mkdir] Created dir: D:\mydocuments\programming\java\mywork\axis2_java\modules\wsdl\target\classesRunning post goal: java:prepare-filesystemjava:compile: [echo] Compiling to D:\mydocuments\programming\java\mywork\axis2_java\modules\wsdl/target/classes [javac] Compiling 89 source files to D:\mydocuments\programming\java\mywork\axis2_java\modules\wsdl\target\classes [javac] D:\mydocuments\programming\java\mywork\axis2_java\modules\wsdl\src\org\apache\axis2\wsdl\builder\TypeTable.java:3: package org.apache.axiom.om doesnot exist [javac] import org.apache.axiom.om.OMElement; [javac] ^ [javac] D:\mydocuments\programming\java\mywork\axis2_java\modules\wsdl\src\org\apache\axis2\wsdl\writer\WOMtoWSDL11Writer.java:4: package org.apache.axiom.om does not exist [javac] import org.apache.axiom.om.OMAbstractFactory; [javac] ^ [javac] D:\mydocuments\programming\java\mywork\axis2_java\modules\wsdl\src\org\apache\axis2\wsdl\writer\WOMtoWSDL11Writer.java:5: package org.apache.axiom.om does not exist [javac] import org.apache.axiom.om.OMElement; ; [javac] ^ [javac] D:\mydocuments\programming\java\mywork\axis2_java\modules\wsdl\src\org\apache\axis2\wsdl\writer\WOMtoWSDL11Writer.java:6: package org.apache.axiom.om does not exist [javac] import org.apache.axiom.om.OMFactory; [javac] ^ [javac] D:\mydocuments\programming\java\mywork\axis2_java\modules\wsdl\src\org\apache\axis2\wsdl\writer\WOMtoWSDL11Writer.java:7: package org.apache.axiom.om.impl.builder does not exist [javac] import org.apache.axiom.om.impl.builder.StAXOMBuilder; [javac] ^ [javac] D:\mydocuments\programming\java\mywork\axis2_java\modules\wsdl\src\org\apache\axis2\wsdl\builder\TypeTable.java:84: cannot resolve symbol [javac] symbol : class OMElement [javac] location: class org.apache.axis2.wsdl.builder.TypeTable [javac] simpleTypetoxsd.put(OMElement.class.getName(), [javac] ^ [javac] D:\mydocuments\programming\java\mywork\axis2_java\modules\wsdl\src\org\apache\axis2\wsdl\writer\WOMtoWSDL11Writer.java:601: cannot resolve symbol [javac] symbol : class OMFactory [javac] location: class org.apache.axis2.wsdl.writer.WOMtoWSDL11Writer [javac] OMFactory fac = OMAbstractFactory.getOMFactory(); [javac] ^ [javac] D:\mydocuments\programming\java\mywork\axis2_java\modules\wsdl\src\org\apache\axis2\wsdl\writer\WOMtoWSDL11Writer.java:601: cannot resolve symbol [javac] symbol : variable OMAbstractFactory [javac] location: class org.apache.axis2.wsdl.writer.WOMtoWSDL11Writer [javac] OMFactory fac = OMAbstractFactory.getOMFactory(); [javac] ^ [javac] D:\mydocuments\programming\java\mywork\axis2_java\modules\wsdl\src\org\apache\axis2\wsdl\writer\WOMtoWSDL11Writer.java:603: cannot resolve symbol [javac] symbol : class StAXOMBuilder [javac] location: class org.apache.axis2.wsdl.writer.WOMtoWSDL11Writer [javac] StAXOMBuilder staxOMBuilder = new StAXOMBuilder(fac, xmlReader); [javac] ^ [javac] D:\mydocuments\programming\java\mywork\axis2_java\modules\wsdl\src\org\apache\axis2\wsdl\writer\WOMtoWSDL11Writer.java:603: cannot resolve symbol [javac] symb ol : class StAXOMBuilder [javac] location: class org.apache.axis2.wsdl.writer.WOMtoWSDL11Writer [javac] StAXOMBuilder staxOMBuilder = new StAXOMBuilder(fac, xmlReader); [javac] ^ [javac] D:\mydocuments\programming\java\mywork\axis2_java\modules\wsdl\src\org\apache\axis2\wsdl\writer\WOMtoWSDL11Writer.java:604: cannot resolve symbol [javac] symbol : class OMElement [javac] location: class org.apache.axis2.wsdl.writer.WOMtoWSDL11Writer [javac] OMElement schemaElement = staxOMBuilder.getDocumentElement(); [javac] ^ [javac] 11 errorsBUILD FAILEDFile.. C:\Documents and Settings\akumlali\.maven\cache\maven-multiproject-plugin-1.4.1\plugin.jellyElement... maven:reactorLine.. 218Column -1Unable to obtain goal [multiproject:install-callback] -- C:\Documents and Settings\akumlali\.maven\cache\maven-java-plugin-1.5\plugin.jelly:63:-1: ant:javac Compile failed; see the compiler error output for details.Total time : 43 secondsFinished at : 24 Mart 2006 Cuma 14:32:23 EET__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[Axis2] - 0.95 - Couldn't get security sample to work
Hi all,Since I'm told that security sample problems shown in 0.94 would be fixed in 0.95, I checked out the latest source from SVN and ran the Maven.Although I had many problems such as SVN checkout failure, Maven build, etc., I could finally manage to have jar and mar files. I ran security sample and got the following error:securitySample: [java] org.apache.axis2.AxisFault: WSHandler: Signature: error during message procesingorg.apache.ws.security.WSSecurityException: General security error (WSEncryptBody/WSSignEnvelope: Element to encrypt/sign not found: http://www.w3.org/2005/08/addressing, To); nested exception is: [java] org.apache.ws.security.WSSecurityException: WSHandler: Signature: error during message procesingorg.apache.ws.security.WSSecurityException: General security error (WSEncryptBody/WSSignEnvelope : Element to encrypt/sign not found: http://www.w3.org/2005/08/addressing, To) [java] at org.apache.axis2.security.WSDoAllSender.invoke(WSDoAllSender.java:253)...--It seemed that security module started before addressing and thus there were no addressing related tags in soap header. I, then, commented module ref="security"/ out and ran the sample again. This time it directly established a connection to the server without a console log that says "[java] - Deploying module : addressing". Consequently, I thought there was a problem related to the loading or executing of addressing module. Or I did something wrong :(Does anybody have the same problem?Thanks a lot,Ali Sadik Kumlali Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice.
Re: [Axis2] schema validation
Title: [Axis2] schema validation Hi Andreas,Although I'm not sure wheter my suggestion would addresse to your needs, I'll try to write what I did for schema validation.1) Used xmlbeans databinding instead of adb. Therefore, I passed "-d xmlbeans" to WSDL2Java.2) In generated skeleton class I added following methods: // This method is not generated by WSDL2Java protected void log (String desc, String str) { System.out.println(desc + ": " + str); } // This method is not generated by WSDL2Java and can be put in a util // class to make it globally accessible. protected void validate (org.apache.xmlbeans.XmlObject param) throws AxisFault { // Set up the validation error listener. ; ArrayList validationErrors = new ArrayList(); XmlOptions validationOptions = new XmlOptions(); validationOptions.setErrorListener(validationErrors); // During validation, errors are added to the ArrayList for // retrieval and printed. boolean isValid = param.validate(validationOptions); log("Incoming soap message is valid", "" + isValid); // Print the errors if the XML is invalid. if (!isValid) { Iterator iter = validationErrors.iterator(); StringBuffer sb = new StringBuffer(256); sp; while (iter.hasNext()) {sb.append(iter.next());sb.append("\n"); } log ("Validation error", sb.toString()); throw new AxisFault (sb.toString()); } }3) Say I have following method in my generated skeleton class: public com.mycompany.service.test.schemas.account.OpenAccountResultDocument OpenAccount( com.mycompany.service.test.schemas.account.OpenAccountDocument param0) { ; // Auto generated }I added "throws AxisFault" to it and called validate () before doing anything.4) In this way, if client's request soap is not validated against the schema, then validate() method throws and AxisFault and the client gets an soap fault message that exactly shows the validation error. Here is the sample soap fault:?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"soapenv:Header/soapenv:Bodysoapenv:FaultfaultcodeClient/faultcodefaultstringerror: cvc-maxLength-valid.1.1: string length (string) is greater than maxLength facet (3) for 2/faultstringfaultactorhttp://myAxisServer/role/default/faultactordetailsoapenv:Exceptionorg.apache.axis2.AxisFault: error: cvc-maxLength-valid.1.1: string length (string) is greater than maxLength facet (3) for 2 at com.mycompany.service.test.account.AccountServicesPortTypeSkeleton.OpenAccount(AccountServicesPortTypeSkeleton.java:57) at com.mycompany.service.test.account.AccountServicesPortTypeMessageReceiver.invokeBusinessLogic(AccountServicesPortTypeMessageReceiver.java:48).../soapenv:Exception/detail/soapenv:Fault/soapenv:Body/soapenv:EnvelopeHope this helps.Ali Sadik Kumlali"Sensen, Andreas (external)" [EMAIL PROTECTED] wrote: Hi everybody , I am trying to enable schema validation for my Web service using Axis2 0.94 under linux with the included xerces 2.7.1 parser. I've a couple of questions i hope you can help me with: 1. Is it possible to enable schema validation for a particular service using the default parsing steps taken by the engine? I noticed the XmlSchema-SNAPSHOT.jar in the lib directory, but didn't find any further documentation on this topic. 2. Since i couldn't figure out an answer two question 1, i implemented a "validation module", according to the module example and user documentation, that validates incoming messages. But h ow can i stop message processing if validation fails? The module throws an AxisFault on invalid messages, but the messages are still relayed to the other handlers and finally the service implementation. I searched the web, documentation, mailing list archive and the API reference but couldn't find an answer. Maybe you could point me to an example or further documentation i missed. Best regards and thanks in advance, Andreas New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
Re: [Axis2] schema validation
Title: [Axis2] schema validation Forgot to add sample for 3th item:public com.mycompany.service.test.schemas.account.OpenAccountResultDocument OpenAccount( com.mycompany.service.test.schemas.account.OpenAccountDocument param0) throws AxisFault { validate (param0);...}Ali Sadik Kumlali [EMAIL PROTECTED] wrote: Hi Andreas,Although I'm not sure wheter my suggestio n would addresse to your needs, I'll try to write what I did for schema validation.1) Used xmlbeans databinding instead of adb. Therefore, I passed "-d xmlbeans" to WSDL2Java.2) In generated skeleton class I added following methods: // This method is not generated by WSDL2Java protected void log (String desc, String str) { System.out.println(desc + ": " + str); } // This method is not generated by WSDL2Java and can be put in a util // class to make it globally accessible. protected void validate (org.apache.xmlbeans.XmlObject param) throws AxisFault { // Set up the validation error listener. ; ArrayList validationErrors = new ArrayList(); XmlOptions validationOptions = new XmlOptions(); validationOptions.setErrorListener(validationErrors); // During validation, errors are added to the ArrayList for // retrieval and printed. boolean isValid = param.validate(validationOptions); log("Incoming soap message is valid", "" + isValid); // Print the errors if the XML is invalid. if (!isValid) { Iterator iter = validationErrors.iterator(); StringBuffer sb = new StringBuffer(256);nb sp; while (iter.hasNext()) { p; sb.append(iter.next());sb.append("\n"); } log ("Validation error", sb.toString()); throw new AxisFault (sb.toString()); } }3) Say I have following method in my generated skeleton class: public com.mycompany.service.test.schemas.account.OpenAccountResultDocument OpenAccount( com.mycompany.service.test.schemas.account.OpenAccountDocument param0) { ; // Auto generated }I added "throws AxisFault" to it and called validate () before doing anything.4) In this way, if client's request soap is not validated against the schema, then validate() method throws and AxisFault and the client gets an soap fault message that exactly shows the validation error. Here is the sample soap fault:?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"soapenv:Header/soapenv:Bodysoapenv:FaultfaultcodeClient/faultcodefaultstringerror: cvc-maxLength-valid.1.1: string length (string) is greater than maxLength facet (3) for 2/faultstringfaultactorhttp://myAxisServer/role/default/faultactordetailsoapenv:Exceptionorg.apache.axis2.AxisFault: error: cvc-maxLength-valid.1.1: string length (string) is greater than maxLength facet (3) for 2 at com.mycompany.service.test.account.AccountServicesPortTypeSkeleton.OpenAccount(AccountServicesPortTypeSkeleton.java:57) at com.mycompany.service.test.account.AccountServicesPortTypeMessageReceiver.invokeBusinessLogic(AccountServicesPortTypeMessageReceiver.java:48).../soapenv:Exception/detail/soapenv:Fault/soapenv:Body/soapenv:EnvelopeHope this helps.Ali Sadik Kumlali"Sensen, Andreas (external)" [EMAIL PROTECTED] wrote: Hi everybody ,I am trying to enable schema validation for my Web service using Axis2 0.94 under linux with the included xerces 2.7.1 parser. I've a couple of questions i hope you can help me with: 1. Is it possible to enable schema validation for a particular service using the default parsing steps taken by the engine? I noticed the XmlSchema-SNAPSHOT.jar in the lib directory, but didn't find any further documentation on this topic. 2. Since i couldn't figure out an answer two question 1, i implemented a "validation module", according to the module example and user documentation, that validates incoming messages. But h ow can i stop message processing if validation fails? The module throws an AxisFault on invalid messages, but the messages are still relayed to the other handlers and finally the service implementation. I searched the web, documentation, mailing list archive and the API reference but couldn't find an answer. Maybe you could point me to an example or further documentation i missed. Best regards and thanks in advance, Andreas New Yahoo! Messenger with Voice. Call regular phones from your PC and save big. New Yahoo! Messenger with Voice. Call regular phones from your PC for low, low rates.
Re: [Axis2] - 0.95 - Couldn't get security sample to work
Thank you very much Ruchith.I get following error for "maven dist-std-bin" (Using JDK 1.4.2_08)...truetruetruetruetruetruetruetruetruetruetrue [copy] Copying 2 files to D:\mydocuments\programming\java\mywork\axis2_java\target\temp\cache\stddist-std-bin: [echo] +-- [echo] | Creating: Axis2 Standard Binary Distribution [echo] +-- [mkdir] Created dir: D:\mydocuments\programming\java\mywork\axis2_java\target\temp\std\bin\lib [mkdir] Created dir: D:\mydocuments\programming\java\mywork\axis2_java\target\temp\std\bin\bin [mkdir] Created dir: D:\mydocuments\programming\java\mywork\axis2_java\target\temp\std\bin\modules [mkdir] Created dir: D:\mydocuments\programming\java\mywork\axis2_java\target\temp\std\bin\samples [copy] Copying 8 files to D:\mydocuments\programming\java\mywork\axis2_java\target\temp\std\bin\bin [copy] Copying 43 files to D:\mydocuments\programming\java\mywork\axis2_java\target\temp\std\bin\lib [echo] Deleting Unwanted testing jars [delete] Deleting 3 files from D:\mydocuments\programming\java\mywork\axis2_java\target\temp\std\bin\libBUILD FAILEDFile.. D:\mydocuments\programming\java\mywork\axis2_java\maven.xmlElement... jarLine.. 607Column -1D:\mydocuments\programming\java\mywork\axis2_java\modules\core\target\classes not found.Total time : 1 minutes 23 secondsFinished at : 23 Mart 2006 Persembe 12:03:47 EETRuchith Fernando [EMAIL PROTECTED] wrote: Some tips when you are trying to run the security sample with the SVN head:- build the following distribution artifacts using the maven build- dist-std-bin- war- deploy the war- follow the instructions in the README.txt file available in thesamples/security directory in the dist-std-bin.zipAlso if you are using JDK 1.5 please make sure you include xalan.jarin the client's classpath and the axis2/WEB-INF/lib in tomcat (if uare using tomcat) and add the JCE provider as well according to theax is2 faq [1]Thanks,Ruchith[1] http://ws.apache.org/axis2/faq.htmlOn 3/23/06, Ruchith Fernando <[EMAIL PROTECTED]> wrote: Hi, The security sample was updated yesterday to rectify this issue ... are you trying with the latest SVN? Thanks, Ruchith On 3/23/06, Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote: Hi all, Since I'm told that security sample problems shown in 0.94 would be fixed in 0.95, I checked out the latest source from SVN and ran the Maven. Although I had many problems such as SVN checkout failure, Maven build, etc., I could finally manage to have jar and mar files. I ran security sample and got the following error: securitySample: [java] org.apache.axis2.AxisFault: WSHandler: Signature: error during messa ge procesingorg.apache.ws.security.WSSecurityException: General security error ( WSEncryptBody/WSSignEnvelope: Element to encrypt/sign not found: http://www.w3.o rg/2005/08/addressing, To); nested exception is: [java] org.apache.ws.security.WSSecurityException: WSHandler: Signature : error during message procesingorg.apache.ws.security.WSSecurityException: Gene ral security error (WSEncryptBody/WSSignEnvelope : Element to encrypt/sign not fo und: http://www.w3.org/2005/08/addressing, To) [java] at org.apache.axis2.security.WSDoAllSender.invoke(WSDoAllSender. java:253) ... -- It seemed that security module started before addressing and thus there were no addressing related tags in soap header. I, then, commented ref="security"/ out and ran the sample again. This time it directly established a connection to the server without a console log that says "[java] - Deploying module : addressing". Consequently, I thought there was a problem related to the loading or executing of addressing module. Or I did something wrong :( Does anybody have the same problem? Thanks a lot, Ali Sadik Kumlali Blab-away for as little as 1�/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice. Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice.
Re: AW: [Axis2] schema validation
Title: Nachricht I wish I would have an answer, but I'm a newbie :) Other members might answer.Good luck,Ali Sadik Kumlali"Sensen, Andreas (external)" [EMAIL PROTECTED] wrote: Hi Ali, thanks for the quick and detailed response,it helped me a lot! I have just one follo wup question which you might have an answer to: I'd really like to keep the validation in a module. Itthrows an AxisFault if an incoming message is invalid. But instead of sending a SOAPFault to the sender the message is further processed by the engine. Do you have any idea why? Andreas -Urspr�ngliche Nachricht-----Von: Ali Sadik Kumlali[mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 23. M�rz 200610:54An: axis-user@ws.apache.orgBetreff: Re: [Axis2]schema validationForgot to add sample for 3thitem:publiccom.mycompany.service.test.schemas.account.OpenAccountResultDocumentOpenAccount(com.mycompany.service.test.schemas.account.OpenAccountDocument param0) throwsAxisFault { validate(param0);...}__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [Axis2] - 0.95 - Couldn't get security sample to work
Again quick answer! Thank you Ruchith. When I ran "maven clean jar", I got the following error. I had the same error yesterday.Thanks a lot,Ali Sadik Kumlali---...is2_java\modules\integration\test-resources\SOAP12Testing\SOAP12TestServiceC\build\classes [copy] Copying 1 file to D:\mydocuments\programming\java\mywork\axis2_java\modules\integration\test-resources\SOAP12Testing\SOAP12TestServiceC\build\classes\META-INF [jar] Building jar: D:\mydocuments\programming\java\mywork\axis2_java\modules\integration\target\Repository\services\SOAP12TestServiceC.jar [delete] Deleting directory D:\mydocuments\programming\java\mywork\axis2_java\modules\integration\test-resources\SOAP12Testing\SOAP12TestServiceC\buildtest:test: [junit] Running org.apache.axis2.async.AsyncServiceTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time e lapsed: 1,781 sec [junit] [ERROR] Test org.apache.axis2.async.AsyncServiceTest FAILED [junit] Running org.apache.axis2.engine.AxisServiceBuilderTest [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 1,297 sec [junit] Running org.apache.axis2.engine.CallUnregisteredServiceTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 2,078 sec [junit] [ERROR] Test org.apache.axis2.engine.CallUnregisteredServiceTe st FAILED [junit] Running org.apache.axis2.engine.CharactersetEncodingTest [junit] Tests run: 11, Failures: 0, Errors: 11, Time elapsed: 1,891 sec [junit] [ERROR] Test org.apache.axis2.engine.CharactersetEncodingTest FAILED [junit] Running org.apache.axis2.engine.CommonsHTTPEchoRawXMLTest [junit] Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 1,609 sec [junit] [ERROR] Test org.apache.axis2.engine.CommonsHTTPEchoRawXMLTest FAILED [junit] Running org.apache.axis2.engine.EchoRawRuntimeProxyTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1,828 sec [junit] [ERROR] Test org.apache.axis2.engine.EchoRawRuntimeProxyTest FAILED [junit] Running org.apache.axis2.engine.EchoRawXMLChunkedTest [junit] Tests run: 1, Failures: 0, Err ors: 1, Time elapsed: 1,704 sec [junit] [ERROR] Test org.apache.axis2.engine.EchoRawXMLChunkedTest FAILED [junit] Running org.apache.axis2.engine.EchoRawXMLLoadTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1,922 sec [junit] [ERROR] Test org.apache.axis2.engine.EchoRawXMLLoadTest FAILED [junit] Running org.apache.axis2.engine.EchoRawXMLMultipleTest [junit] Tests run: 4, Failures: 0, Errors: 4, Time elapsed : 1,719 sec [junit] [ERROR] Test org.apache.axis2.engine.EchoRawXMLMultipleTest FAILED [junit] Running org.apache.axis2.engine.EchoRawXMLOnTwoChannelsSyncTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1,844 sec [junit] [ERROR] Test org.apache.axis2.engine.EchoRawXMLOnTwoChannelsSyncTestFAILED [junit] Running org.apache.axis2.engine.EchoRawXMLOnTwoChannelsTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1,563 sec [junit] [ERROR] Test org.apache.axis2.engine.EchoRawXMLOnTwoChannelsTest FAILED [junit] Running org.apache.axis2.engine.EchoRawXMLTest [junit] Tests run: 4, Failures: 0, Errors: 4, Time elapsed: 1,718 sec [junit] [ERROR] Test org.apache.axis2.engine.EchoRawXMLTest FAILED [junit] Running org.apache.axis2.engine.FaultHandlingTest [junit] Tests run: 3, Failures: 0, Errors: 3, Time elapsed: 1,937 sec [junit] [ERROR] Test org.apache.axis2.engine.FaultHandlingTest FAILED [junit] Running org.apache.axis2.engine.HandlerFailureTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1,703 sec [junit] [ERROR] Test org.apache.axis2.engine.HandlerFailureTest FAILED [junit] Running org.apache.axis2.engine.MessageContextInjectionTest [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 2,094 sec [junit] Running org.apache.axis2.engine.MessageWithServerTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1,563 sec [junit] [ERROR] Test org.apache.axis2.engine.MessageWithServerTest FAILED [junit] Running org.apache.axis2.engine.OneWayRawXMLTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1,829 sec [junit] [ERROR] Test org.apache.axis2.engine.OneWayRawXMLTest FAILED [junit] Running org.apache.axis2.engine.SOAPversionTest [junit] Tests run: 3, Failures: 0, Errors: 3, Time elapsed: 1,938 sec [junit] [ERROR] Test org.apache.axis2.engine.SOAPversionTest FAILED [junit] Running org.apache.axis2.engine.ServiceCreateTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 2,359 sec [junit] [ERROR] Test org.apache.axis2.engine.ServiceCreateTest FAILED [junit] Running org.apache.axis2.engine.ServiceDispatchingTest [junit] Tests run: 3, Failures: 0, Errors: 3, Time elapsed: 1,953 sec [junit] [ERROR] Test org.apache.axis2.engine.ServiceDispatchingTest FAILED [junit] Running org.apache.axis2.engine.ServiceGroupContextTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1,547 sec [junit] [ERROR] Test org.apache.axis2.engine.ServiceGroupContextTest FAILED [junit] Running org.ap
Re: [Axis2] - 0.95 - Couldn't get security sample to work
e: hmm all the integration tests seems to be failing ...Do you have a firewall turned on? Or do u have a server running onport ? All these tests creates an instance of the SimpleHTTPServeron port Thanks,RuchithOn 3/23/06, Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote: Again quick answer! Thank you Ruchith. When I ran "maven clean jar", I got the following error. I had the same error yesterday. Thanks a lot, Ali Sadik Kumlali --- ... is2_java\modules\integration\test-resources\SOAP12Testing\SOAP12TestServiceC\bui ld\classes [copy] Copying 1 file to D:\mydocuments\programming\java\mywork\axis2_java\m odules\integration\test-resources\SOAP12Testing\SOAP12TestServiceC\build\classes \META-INF [jar] Building jar: D:\mydocuments\programming\java\mywork\axis2_java\module s\integration\target\Repository\services\SOAP12TestServiceC.jar [delete] Deleting directory D:\mydocuments\programming\java\mywork\axis2_jav a\modules\integration\test-resources\SOAP12Testing\SOAP12TestServiceC\build test:test: [junit] Running org.apache.axis2.async.AsyncServiceTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time e lapsed: 1,781 sec [junit] [ERROR] Test org.apache.axis2.async.AsyncServiceTest FAILED [junit] Running org.apache.axis2.engine.AxisServiceBuilderTest [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 1,297 sec [junit] Running org.apache.axis2.engine.CallUnregisteredServiceTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 2,078 sec [junit] [ERROR] Test org.apache.axis2.engine.CallUnregisteredServiceTe st FAI LED [junit] Running org.apache.axis2.engine.CharactersetEncodingTest [junit] Tests run: 11, Failures: 0, Errors: 11, Time elapsed: 1,891 sec [junit] [ERROR] Test org.apache.axis2.engine.CharactersetEncodingTest FAILED [junit] Running org.apache.axis2.engine.CommonsHTTPEchoRawXMLTest [junit] Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 1,609 sec [junit] [ERROR] Test org.apache.axis2.engine.CommonsHTTPEchoRawXMLTest FAILE D [junit] Running org.apache.axis2.engine.EchoRawRuntimeProxyTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1,828 sec [junit] [ERROR] Test org.apache.axis2.engine.EchoRawRuntimeProxyTest FAILED [junit] Running org.apache.axis2.engine.EchoRawXMLChunkedTest [junit] Tests run: 1, Failures: 0, Err ors: 1, Time elapsed: 1,704 sec [junit] [ERROR] Test org.apache.axis2.engine.EchoRawXMLChunkedTest FAILED [junit] Running org.apache.axis2.engine.EchoRawXMLLoadTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1,922 sec [junit] [ERROR] Test org.apache.axis2.engine.EchoRawXMLLoadTest FAILED [junit] Running org.apache.axis2.engine.EchoRawXMLMultipleTest [junit] Tests run: 4, Failures: 0, Errors: 4, Time elapsed : 1,719 sec [junit] [ERROR] Test org.apache.axis2.engine.EchoRawXMLMultipleTest FAILED [junit] Running org.apache.axis2.engine.EchoRawXMLOnTwoChannelsSyncTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1,844 sec [junit] [ERROR] Test org.apache.axis2.engine.EchoRawXMLOnTwoChannelsSyncTest FAILED [junit] Running org.apache.axis2.engine.EchoRawXMLOnTwoChannelsTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1,563 sec [junit] [ERROR] Test org.apache.axis2.engine.EchoRawXMLOnTwoChannelsTest FAI LED [junit] Running org.apache.axis2.engine.EchoRawXMLTest [junit] Tests run: 4, Failures: 0, Errors: 4, Time elapsed: 1,718 sec [junit] [ERROR] Test org.apache.axis2.engine.EchoRawXMLTest FAILED [junit] Running org.apache.axis2.engine.FaultHandlingTest[junit] Tests run: 3, Failures: 0, Errors: 3, Time elapsed: 1,937 sec [junit] [ERROR] Test org.apache.axis2.engine.FaultHandlingTest FAILED [junit] Running org.apache.axis2.engine.HandlerFailureTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1,703 sec [junit] [ERROR] Test org.apache.axis2.engine.HandlerFailureTest FAILED [junit] Running org.apache.axis2.engine.MessageContextInjectionTest [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 2,094 sec [junit] Running org.apache.axis2.engine.MessageWithServerTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1,563 sec [junit] [ERROR] Test org.apache.axis2.engine.MessageWithServerTest FAILED [junit] Running org.apache.axis2.engine.OneWayRawXMLTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1,829 sec [junit] [ERROR] Test org.apache.axis2.engine.OneWayRawXMLTest FAILED [junit] Running org.apache.axis2.engine.SOAPversionTest [junit] Tests run: 3, Failures: 0, Errors: 3, Time elapsed: 1,938 sec [junit] [ERROR] Test org.apache.axis2.engine.SOAPversionTest FAILED [junit] Running org.apache.axis2.engine.ServiceCreateTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 2,359 se
Re: [Axis2] - 0.95 - Couldn't get security sample to work
Sorry I've forgotten to say that "maven dist-std-bin" worked perfectly this time :)Ali Sadik Kumlali [EMAIL PROTECTED] wrote: Thank you Ruchith. I've discovered that "BEA Products NodeManager (C_bea90_weblogic90)" service listens port . After I stopped the service and turned my firewall off, it passed some of tests it couldn't before. But it seems there still some problems: [junit] Running org.apache.axis2.mtom.EchoRawMTOMCommonsChunkingTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 6,813 sec [junit] [ERROR] Test org.apache.axis2.mtom.EchoRawMTOMCommonsChunkingTest FAILED [junit] Running org.apache.axis2.mtom.EchoRawMTOMFaultReportTest [juni t] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 5,266 sec [junit] Running org.apache.axis2.mtom.EchoRawMTOMFileCacheLoadTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 4,579 sec [junit] [ERROR] Test org.apache.axis2.mtom.EchoRawMTOMFileCacheLoadTest FAILED [junit] Running org.apache.axis2.mtom.EchoRawMTOMFileCacheTest [junit] Tests run: 2, Failures: 0, Errors: 1, Time elapsed: 8,875 sec [junit] [ERROR] Test org.apache.axis2.mtom.EchoRawMTOMFileCacheTest FAILED [junit] Running org.apache.axis2.mtom.EchoRawMTOMLoadTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 5,578 sec [junit] [ERROR] Test org.apache.axis2.mtom.EchoRawMTOMLoadTest FAILED [junit] Running org.apache.axis2.mtom.EchoRawMTOMTest [junit] Te sts run: 2, Failures: 0, Errors: 1, Time elapsed: 8,89 sec [junit] [ERROR] Test org.apache.axis2.mtom.EchoRawMTOMTest FAILED [junit] Running org.apache.axis2.mtom.EchoRawMTOMToBase64Test [junit] Tests run: 2, Failur es: 0, Errors: 1, Time elapsed: 8,031 sec [junit] [ERROR] Test org.apache.axis2.mtom.EchoRawMTOMToBase64Test FAILED [junit] Running org.apache.axis2.om.OMAttributeTest [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 1,734 sec [junit] Running org.apache.axis2.processingModel.SoapProcessingModelTest [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 4,781 sec [junit] Running org.apache.axis2.rpc.MultirefTest [junit] Tests run: 9, Failures: 0, Errors: 0, Time elapsed: 30,485 sec [junit] Running org.apache.axis2.rpc.RPCCallTest [junit] Tests run: 21, Failures: 0, Errors: 0, Time elapsed: 64,719 sec [junit] Running org.apache.axis2.security.AddressingMTOMSecurityTest [junit] Tests run: 2, Failures: 2, Errors: 0, Time elapsed: 11 ,219 sec [junit] [ERROR] Test org.apache.axis2.security.AddressingMTOMSecurityTest FAILED [junit] Running org.apache.axis2.security.MTOMOptimizedSecurityTest [junit] Tests run: 2, Failures: 2, Errors: 0, Time elapsed: 12,016 sec [junit] [ERROR] Test org.apache.axis2.security.MTOMOptimizedSecurityTest FAILED [junit] Running org.apache.axis2.security.Scenario1Test [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 10,922 sec [junit] Running org.apache.axis2.security.Scenario2Test [junit] Tests run: 2, Failures: 2, Errors: 0, Time elapsed: 11,734 sec [junit] [ERROR] Test org.apache.axis2.security.Scenario2Test FAILED [junit] Running org.apache.axis2.security.Scenario2aTest [junit] Tests run: 2, Failures: 2, Errors: 0, Time elaps ed: 12,063 sec [junit] [ERROR] Test org.apache.axis2.security.Scenario2aTest FAILED [junit] Running org.apache.axis2.security.Scenario3Test [junit] Tests run: 2, Failures: 2, Errors: 0, Time elapsed: 11,047 sec [junit] [ERROR] Test org.apache.axis2.security.Scenario3Test FAILED [junit] Running org.apache.axis2.security.Scenario4Test [junit] Tests run: 2, Failures: 2, Errors: 0, Time elapsed: 10,984 sec [junit] [ERROR] Test org.apache.axis2.security.Scenario4Test FAILED [junit] Running org.apache.axis2.security.Scenario5Test [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 11,813 sec [junit] Running org.apache.axis2.security.Scenario6Test [junit] Tests run: 2, Failures: 2, Errors: 0, Time elapsed: 11,625 sec [ junit] [ERROR] Test org.apache.axis2.security.Scenario6Test FAILED [junit] Running org.apache.axis2.security.Scenario7Test [junit] Tests run: 2, Failures: 2, Errors: 0, Time elapsed: 12,094 sec [junit] [ERROR] Test org.apache.axis2.security.Scenario7Test FAILED [junit] Running org.apache.axis2.swa.EchoRawSwATest [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 5,453 sec [junit] Running org.apache.axis2.tcp.TCPEchoRawXMLTest [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 11,39 sec [junit] Running org.apache.axis2.tcp.TCPTwoChannelEchoRawXMLTest [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 5 sec [junit] Running samples.wsdl.perf.PerfPortTypeTest [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 11, 766 secBUILD FAILEDFile.. C:\Documents and Settings\akumlali\.maven\cache\maven-multiproject-plugin-1.4.1\plugin.jellyElement... maven:reactorLine.. 218Column -1Unable to obtain goal [multiproject:install-callback] -- C:\Documents and Settings\akumlali\.maven\cache\maven-test-plugin-1.7\plugin.jelly:183:-1:
Re: [Axis2] - 0.95 - Couldn't get security sample to work
Since "maven dist-std-bin" worked properly I unzipped axis2-std-0.95-SNAPSHOT-bin.zip file and ran the security sample by following the instructions in README.txt. I got the following error which I saw and reported for 0.94 also.Any suggestion?Thanks a lot,Ali Sadik Kumlali--securitySample: [java] org.apache.axis2.AxisFault: WSHandler: Encryption: error during message processingorg.apache.ws.security.WSSecurityException: An unsupported signature or encryption algorithm was used; nested exception is: [java] org.apache.xml.security.encryption.XMLEncryptionException: Cannot find any provider supporting AES/CBC/ISO10126Padding [java] Original Exception was java.security.NoSuchAlgorithmException: Cannot find any provider supporting AES/CBC/ISO10126Padding; nested exception is: [java] org.apache.ws.security.WSSecurityException: WSHandler: Encryptio...Ali Sadik Kumlali [EMAIL PROTECTED] wrote: Sorry I've forgotten to say that "maven dist-std-bin" worked perfectly this time :)Ali Sadik Kumlali [EMAIL PROTECTED] wrote: Thank you Ruchith. I've discovered that "BEA Products NodeManager (C_bea90_weblogic90)" service listens port . After I stopped the service and turned my firewall off, it passed some of tests it couldn't before. But it seems there still some problems: [ junit] Running org.apache.axis2.mtom.EchoRawMTOMCommonsChunkingTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 6,813 sec [junit] [ERROR] Test org.apache.axis2.mtom.EchoRawMTOMCommonsChunkingTest FAILED [junit] Running org.apache.axis2.mtom.EchoRawMTOMFaultReportTest [juni t] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 5,266 sec [junit] Running org.apache.axis2.mtom.EchoRawMTOMFileCacheLoadTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 4,579 sec [junit] [ERROR] Test org.apache.axis2.mtom.EchoRawMTOMFileCacheLoadTest FAILED [junit] Running org.apache.axis2.mtom.EchoRawMTOMFileCacheTest [junit] Tests run: 2, Failures: 0, Errors: 1, Time elapsed: 8,875 sec [junit] [ERROR] Test org.apache.axis2.mtom.EchoRawMTOMFileCac heTest FAILED [junit] Running org.apache.axis2.mtom.EchoRawMTOMLoadTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 5,578 sec [junit] [ERROR] Test org.apache.axis2.mtom.EchoRawMTOMLoadTest FAILED [junit] Running org.apache.axis2.mtom.EchoRawMTOMTest [junit] Te sts run: 2, Failures: 0, Errors: 1, Time elapsed: 8,89 sec [junit] [ERROR] Test org.apache.axis2.mtom.EchoRawMTOMTest FAILED [junit] Running org.apache.axis2.mtom.EchoRawMTOMToBase64Test [junit] Tests run: 2, Failur es: 0, Errors: 1, Time elapsed: 8,031 sec [junit] [ERROR] Test org.apache.axis2.mtom.EchoRawMTOMToBase64Test FAILED [junit] Running org.apache.axis2.om.OMAttributeTest [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 1,734 sec p; [junit] Running org.apache.axis2.processingModel.SoapProcessingModelTest [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 4,781 sec [junit] Running org.apache.axis2.rpc.MultirefTest [junit] Tests run: 9, Failures: 0, Errors: 0, Time elapsed: 30,485 sec [junit] Running org.apache.axis2.rpc.RPCCallTest [junit] Tests run: 21, Failures: 0, Errors: 0, Time elapsed: 64,719 sec [junit] Running org.apache.axis2.security.AddressingMTOMSecurityTest [junit] Tests run: 2, Failures: 2, Errors: 0, Time elapsed: 11 ,219 sec [junit] [ERROR] Test org.apache.axis2.security.AddressingMTOMSecurityTest FAILED [junit] Running org.apache.axis2.security.MTOMOptimizedSecurityTest [junit] Tests run: 2, Failures: 2, Errors: 0, Time elapsed: 12,016 sec& nbsp; [junit] [ERROR] Test org.apache.axis2.security.MTOMOptimizedSecurityTest FAILED [junit] Running org.apache.axis2.security.Scenario1Test [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 10,922 sec [junit] Running org.apache.axis2.security.Scenario2Test [junit] Tests run: 2, Failures: 2, Errors: 0, Time elapsed: 11,734 sec [junit] [ERROR] Test org.apache.axis2.security.Scenario2Test FAILED [junit] Running org.apache.axis2.security.Scenario2aTest [junit] Tests run: 2, Failures: 2, Errors: 0, Time elaps ed: 12,063 sec [junit] [ERROR] Test org.apache.axis2.security.Scenario2aTest FAILED [junit] Running org.apache.axis2.security.Scenario3Test [junit] Tests run: 2, Failures: 2, Errors: 0, Time elapsed: 11,047 sec [junit] [ER ROR] Test org.apache.axis2.security.Scenario3Test FAILED [junit] Running org.apache.axis2.security.Scenario4Test [junit] Tests run: 2, Failures: 2, Errors: 0, Time elapsed: 10,984 sec [junit] [ERROR] Test org.apache.axis2.security.Scenario4Test FAILED [junit] Running org.apache.axis2.security.Scenario5Test [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 11,813 sec [junit] Running org.apache.axis2.security.Scenario6Test [junit] Tests run: 2, Failures: 2, Errors: 0, Time elapsed: 11,625 sec [ junit] [ERROR] Test org.apache.axis2.security.Scenario6Test FAILED [junit] Running org.apache.axis2.se
Re: [Axis2] wss4j
I have exactly the same problem. May be we both do the same mistake :)Ali Sadik KumlaliRob Henley [EMAIL PROTECTED] wrote: Tried to build SVN yesterday, but hit this problem:BUILD FAILEDFile.. C:\Documents and Settings\rhenley\.maven\cache\maven-multiproject-plugin-1.3.1\plugin.jellyElement... maven:reactorLine.. 217Column 9Unable to obtain goal [multiproject:install-callback] -- C:\Documents and Settings\rhenley\.maven\cache\maven-test-plugin-1.6.\plugin.jelly:181:54: There were test failures.Similar looking problem was seen last year and attributed to a bad version of maven and/or using JDK1.5. The JDK1.5 issue was marked as fixed in 0.92 (http://issues.apache.org/jira/browse/AXIS2-193) and I think I have a good version of maven (1.0.2).Possibly the commons-axiom build had the same problem yesterday? ...http://vmgump.apache.org/gump/public/ws-axis2-commons/ws-commons-axiom/gump_work/build_ws-axis2-commons_ws-commons-axiom.htmlDoes anyone know if the problem is in SVN? Otherwise, it must be me :-(Many thanksRob- Original Message - From: "Rob Henley" <[EMAIL PROTECTED]>To:Sent: Tuesday, March 21, 2006 12:58 PMSubject: Re: [Axis2] wss4j Hi Deepal I'm using 0.94. I will try to build from SVN, otherwise I'll wait for the 0.95 release. Cheers Rob - Original Message - From: "Deepal Jayasinghe" <[EMAIL PROTECTED]> To: Sent: Tuesday, March 21, 2006 12:46 PM Subject: Re: [Axis2] wss4j Hi Rob; Are you working on current SVN code base or 0.94 release, I am sure that I fixed this issues after 0.94 release. Rob Henley wrote: Hi Ruchith many thanks - great explanation! I know my server-side (tomcat) repository is ok, so I tried pointing my client there: ccf.createConfigurationContextFromFileSystem("C:/progra~1/Apache/Tomcat5.5/webapps/axis2/WEB-INF"); _serviceClient = new org.apache.axis2.client.ServiceClient(ctx, _service); Now I get a different error [java] java.lang.NullPointerException [java] at org.apache.axis2.context.ServiceGroupContext.getServiceContext(ServiceGroupContext.java:58) [java] at org.apache.axis2.client.ServiceClient.(ServiceClient.java:105) [java] at org.apache.axis2.PurchasingStub.(Unknown Source) [java] at samples.purchasing1.ClientTest.main(Unknown Source) Have you seen anything like this before? Cheers Rob - Original Message - From: "Ruchith Fernando" <[EMAIL PROTECTED]> To: Sent: Tuesday, March 21, 2006 2:23 AM Subject: Re: [Axis2] wss4j Hi Rob, Yes the repository is just a directory with a certain structure as shown below: repo_dir | +- services/ | | | +- foo.aar ; | +- bar.aar | |- modules/ | | | +- a.mar | +- b.mar | |- conf/ |+-axis2.xml I addition to the above you can have optional 'lib' directories at each service, module and repo level holding the common jars to be used in each scope. Thanks, Ruchith On 3/20/06, Rob Henley <[EMAIL PROTECTED]> wrote: Hi Ruchith, thanks! I'll try a later version. Just to clarify, I was thinking a repository was just a directory which conformed to a specific structure, for instance with sub-directories called modules, lib etc. It sounds like I haven't understood this properly. Can you tell me where it is described? Many thanks Rob - Original Message - From: "Ruchith Fernando" <[EMAIL PROTECTED]> To: Sent: Monday, March 20, 2006 12:53 PM Subject: Re: [Axis2] wss4j Hi Rob, java.lang.ClassNotFoundException: org.apache.ws.security.transform.STRTransform I can see that this class is in wss4j-SNAPSHOT.jar, which in turn is in my securi ty.mar in the modules directory. Extracting the jar into the lib directory seems to solve the problem, but presumably that isn't the right thing to do? No, you should not have to do that. In your scenario only the security module should contain the wss4j-SNAPSHOT.jar in its 'lib' directory and you should not be required to add it to your classpath separately. This sounds like a module classloading problem Deepal what do you think? Also can you send the complete stack trace of java.lang.ClassNotFoundException: org.apache.ws.security.transform.STRTransform The client code to set the configurationContext seemed to be for a version other than 0.94. My attempt looks like this:ConfigurationContextFactory ccf = new ConfigurationContextFactory(); ConfigurationContext ctx = ccf.createConfigurationContextFromFileSystem("C:/axis2");_serviceClient = new org.apache.axis2.client.ServiceClient(ctx, _service); (Just to get things working, I dropped this straight into the PurchasingStub constructor generated by wsdl2java. C:/axis2 is where I unzipped axis. It contains axis2.xml and subdirectories lib, modules etc.) The client classpath includes all the jars in t he lib
Re: [axis2] Running security sample
I get the same error with Axis2 0.94 and JDK 1.4. Haven't tried 0.95 SNAPSHOT yet.Any help appreciated.Ali Sadik Kumlali Ameet Hasmucrai Amarchande [EMAIL PROTECTED] wrote: Hi all,I have a problem when I try to run the security sample. The stack traceis below. Does anyone have any ideia of what it can be?ThankssecuritySample: [java] - Deploying module : addressing [java] - Deploying module : security [java] org.apache.axis2.AxisFault: WSHandler: Encryption: errorduring message processingorg.apache.ws.security.WSSecurityException:General security error (unsupported key transport encryption algorithm: public key algorithmtoo weak to encrypt symmetric key); nested exception is: [java] org.apache.ws.security.WSSecurityException: WSHandler:Encryption: error during messageprocessingorg.apache.ws.security.WSSecurityException: General security error (unsupported key transport encryption algorithm:public key algorithm too weak to encrypt symmetric key) [java] atorg.apache.axis2.security.WSDoAllSender.invoke(WSDoAllSender.java:261) [java] at org.apache.axis2.engine.Phase.invoke(Phase.java:376) [java] atorg.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:351) [java] atorg.apache.axis2.engine.AxisEngine.send(AxisEngine.java:441) [java] atorg.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:317) [java] atorg.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:267) [java] atorg.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:393) [java] atorg.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:326) [java] at sample.security.Client.main(Client.java:59) [java] Caused by: org.apache.ws.security.WSSecurityException:WSHandler: Encryption: error during messageprocessingorg.apache.ws.security.WSSecurityException: General security error (unsupported key transport encryptionalgorithm: public key algorithm too weak to encrypt symmetric key) [java] atorg.apache.ws.security.action.EncryptionAction.execute(EncryptionAction.java:64) [java] atorg.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:186) [java] atorg.apache.axis2.security.WSDoAllSender.invoke(WSDoAllSender.java:172) [java] ... 8 more Yahoo! Mail Use Photomail to share photos without annoying attachments.
Re: Questions about java:MSG
Hi Dink,As you mentioned, I would use different connections for ack and actual result. But instead of sharing the request message's connection with result's, I would prefer ack message to use the same connection with the request message. Then, I would close the connection. After the server prepares the actual result, it would send the message to the client through a new connection. I assumed here that the client already has a listener application and the server knows its URL.If you use Axis2, you will have WS-Addressing support that enables you to do correlation and client side handling of async messaging very smart. I don't know if Axis also supports WS-Addressing.Whether you use Axis or Axis2 information at http://ws.apache.org/axis2/0_94/userguide3.html#Writing_Web_Service_Clients_using_Axis2's_Primary_APIs might give some insights into your questions.Regards,Ali Sadik KumlaliDink [EMAIL PROTECTED] wrote: Hi Ali, The best solution coming into my head is as follows: public WebService { public Element[] method(Element [] elems) throws Exception{ //After receiving the input Message 1, the web service will return the ack response.invoke_ack(); //invoke_ack() is a method for sending the ack Message 2 Do something.. return Message3;} } According to the above solution, the pseudo code for the client will look like: open a thread for listening the incoming ack message SOAPMessage reply=SOAPConnection.call(Message 1,Web Service Endpoint); Based on the above design, the listening thread will receive the ack Message2 and then the main client programwill receive the reply Message 3. I don't know if the above architecture is strange andcould yougive me some suggestion? Best regards, Dink Lo- Original Message - From:Ali SadikKumlaliTo: axis-user@ws.apache.orgSent: Friday, March 17, 2006 7:50 PM Subject: Re: Questions about"java:MSG" HiDink,I'm designing the same structure with Axis2 for my project.Although I'm not sure it's the best, I will implement 1th and 2nd as sync and3th one as async. In this scenario, client must have a listener for the3th.But I don't know what the "java:MSG" is and how to implement async servicewith it.Regards,Ali Sadik KumlaliDink[EMAIL PROTECTED] wrote: Thanks for your reply. What you draw is really my case. Message 1.request Client ServerMessage 2. ack responseClient --- Server... (time passes) actual resultMessage 3.Client --- Server I have thought of two kinds of situation for the above case. The first situation, I regard the message 1 and 2 as the synchronous message pattern and the message 3 is the asynchronous one. Thesecond situation, I regard the three messages as the asynchronousmessages. I don't know which kind of situation is suitable for my case. Besides, I don't know if the "java:MSG" provider programming mode I used canfulfill the asynchronous case.If it can not achieve the asynchronous transmission, how can I do that? Regards, Dink Lo-Original Message -From: Ali SadikKumlaliTo:axis-user@ws.apache.orgSent: Friday, March 17, 2006 5:59 PM Subject:Re: Questions about "java:MSG" Hi Dink,Just to make it clear, do youmean;requestClient Serverack responseClient --- Server...(time passes)actual resultClient ---ServerIf this the your case, it has some asynchronousprocess logic. So, that might be your startingpoint.Regards,Ali Sadik KumlaliDink[EMAIL PROTECTED] wrote:Hello, I need to develop a client and a web service to accomplish some message exchange. Th e message exchange pattern is as follows: 1. The client sends an XML document to the web service to do some request. 2. The web service returns an XML document to notify the client that the request sent by the client is received and being processed. 3. The web service has finished the request and return the result to the client. I have used the "provider=java:MSG" style to develop the web service to handle theincoming message. But when I think ofhow toreach the step 3, I can't find any method signatureprovided by axistodo it. The method signatures provided by axis are: public Element [] method(Element [] bodies);public SOAPBodyElement [] method (SOAPBodyElement [] bodies);public Document
Re: [Axis2 ] unclosed Threads
Roman,JIRA is issue tracking application. You can reach Axis2's JIRA at http://issues.apache.org/jira/browse/AXIS2. It seems you are required to become a member to create an issue. You can reach sign-up page from https://issues.apache.org/jira/secure/Signup!default.jspa.Regards,Ali Sadik Kumlali Roman Weidlich [EMAIL PROTECTED] wrote: Sorry, what means "JIRA" ?Deepal Jayasinghe wrote: can you please creat a JIRA Roman Weidlich wrote: Look this: final String ENDPOINT1 = "http://..."; public String say(String data) { //first call String endpoint2 = invokeEchoBlocking(ENDPOINT1, "say", data); //second call String result = invokeEchoBlocking(endpoint2, "say", data); return result; } On every invocation two new threads arise visible in the Task-Manager of Windows. Axis 1 don't show this behaviour! Brings words and photos together (easily) with PhotoMail - it's free and works with Yahoo! Mail.
Re: Questions about java:MSG
Hi Dink,Just to make it clear, do you mean; requestClient Server ack response Client --- Server... (time passes) actual result Client --- Server If this the your case, it has some asynchronous process logic. So, that might be your starting point.Regards,Ali Sadik KumlaliDink [EMAIL PROTECTED] wrote: Hello, I need to develop a client and a web service to accomplish some message exchange. The message exchange pattern is as follows: 1. The client sends an XML document to the web service to do some request. 2. The web service returns an XML document to notify the client that the request sent by the client is received and being processed. 3. The web service has finished the request and return the result to the client. I have used the "provider=java:MSG" style to develop the web service to handle theincoming message. But when I think ofhow toreach the step 3, I can't find any method signatureprovided by axistodo it. The method signatures provided by axis are: public Element [] method(Element [] bodies);public SOAPBodyElement [] method (SOAPBodyElement [] bodies);public Document method(Document body);public void method(SOAPEnvelope req, SOAPEnvelope resp); Every method looks like a simultaneous method except the fourth one. The simultaneous method I mean is that the client sends a request to the web service and receives a response from the service. I think the methods provided by java:MSG can't fulfill myfull requirements. Can somebody point me some directions to solve the problem? Thanks, Dink Lo Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze.
Re: Questions about java:MSG
Hi Dink,I'm designing the same structure with Axis2 for my project. Although I'm not sure it's the best, I will implement 1th and 2nd as sync and 3th one as async. In this scenario, client must have a listener for the 3th.But I don't know what the "java:MSG" is and how to implement async service with it.Regards,Ali Sadik KumlaliDink [EMAIL PROTECTED] wrote: Thanks for your reply. What you draw is really my case. Message 1.request Client ServerMessage 2. ack responseClient --- Server... (time passes)actual resultMessage 3.Client --- Server I have thought of two kinds of situation for the above case. The first situation, I regard the message 1 and 2 as the synchronous message pattern and the message 3 is the asynchronous one. Thesecond situation, I regard the three messages as the asynchronousmessages. I don't know which kind of situation is suitable for my case. Besides, I don't know if the "java:MSG" provider programming mode I used canfulfill the asynchronous case.If it can not achieve the asynchronous transmission, how can I do that? Regards, Dink Lo- Original Message ----- From:Ali SadikKumlaliTo: axis-user@ws.apache.orgSent: Friday, March 17, 2006 5:59 PM Subject: Re: Questions about"java:MSG" Hi Dink,Just to make it clear, do youmean;requestClient Serverack responseClient --- Server...(time passes)actual resultClient ---ServerIf this the your case, it has some asynchronousprocess logic. So, that might be your startingpoint.Regards,Ali Sadik KumlaliDink[EMAIL PROTECTED] wrote: Hello, I need to develop a client and a web service to accomplish some message exchange. Th e message exchange pattern is as follows: 1. The client sends an XML document to the web service to do some request. 2. The web service returns an XML document to notify the client that the request sent by the client is received and being processed. 3. The web service has finished the request and return the result to the client. I have used the "provider=java:MSG" style to develop the web service to handle theincoming message. But when I think ofhow toreach the step 3, I can't find any method signatureprovided by axistodo it. The method signatures provided by axis are: public Element [] method(Element [] bodies);public SOAPBodyElement [] method (SOAPBodyElement [] bodies);public Document method(Document body);public void method(SOAPEnvelope req, SOAPEnvelope resp); Every method looks like a simultaneous method except the fourth one. The simultaneous method I mean is that the client sends a request to the web service and receives a response from the service. I think the methods provided by java:MSG can't fulfill myfull requirements. Can somebody point me some directions to solve the problem? Thanks, Dink Lo Yahoo! MailBring photos to life! NewPhotoMail makes sharing a breeze. Yahoo! Mail Use Photomail to share photos without annoying attachments.
Re: [Axis2] Handling request-responseS type messaging
Thank you Anne. But, AFAIK, WSDL does not support IN-Multiple OUT as operation type. If WSDL does not has signature for multiple results, how can client assume that it must wait for more than one results?Thanks a lot,Ali Sadik KumlaliAnne Thomas Manes [EMAIL PROTECTED] wrote: Ali, Do you mean; 1) Client sends request without waiting a response to it. Request has a CSV tag which has many lines to process. 2) Server processes the message and sends a result for each line in CS V. It sends results to the client without waiting a response.Yes. (Or alternatively, each message exchange could return an "ack", which would be easier to implement if you're using Axis 1.)Anne On 3/16/06, Al i Sadik Kumlali [EMAIL PROTECTED] wrote: Hi Eran, Hi Anne!What a quick response! What a good community! Thank you very very much. I love this community and hope companies discover the power of open-source products. I post your responses to my colleagues in the company to let them recognize that support does not always mean money, and vice versa :) Eran,Our current implementation uses DocSoap XDK based custom codes. Since we are required to handle all the soap related stuff manually, we are able to support "IN-multiple OUT" type messaging. Actually, manual operations are one of the reasons we want to give DocSoap XDK up. Therefore, it would be great if I could find a robust way in Axis2 to support "IN-multiple OUT" type messaging. Anne,Do you mean; 1) Client sends request without waiting a response to it. Request has a CSV tag which has many lines to process. 2) Server processes the message and sends a result for each line in CS V. It sends results to the client without waiting a response. Many thanks to you both!Ali Sadik Kumlali Anne Thomas Manes [EMAIL PROTECTED] wrote: You can also implement the pattern using one-way messages.Anne On 3/16/06, Eran Chinthaka [EMAIL PROTECTED] wrote: Hi Ali,Interesting scenario.First of all, Axis2 supports IN only and IN-OUT invocations by *default.* But thats doesn't mean we can not do IN-multiple OUT meps.Yes, we haven't come across them so far, but our pipe model enables custom MEPs. If you really ne ed this we can give atry to implement the first custom MEP using Axi s2. (or you can convince your boss otherwise ;-) )-- Chinthaka Ali Sadik Kumlali wrote: Dear all, There is an interesting messaging pattern between my company and its partner. Partner sends a message containing a tag named CSV that has multiple lines in it. Although we process all of them separately, we assume it as one message. After processing has been completed, we send a result message for every line in CSV. Thus, request-responseS type messaging occurs. This seems very strange when I look at the async messaging samples that come with Axis2. If I understand correctly, when client sends a request in an async-non blocker way, it also starts an http server to listen response. When the server finishes processing, it sends the result back to the client's http server. Consequently, each request has one response. AFAIK, we a re allowed to have one-way and request-response type operations, but not request-responseS. Is there a way to handle request-responseS type messagingwith Axis2? Or do I ne ed to convince my boss to give these kind of messaging up? :) Thanks a lot, Ali Sadik Kumlali Yahoo! Mail Bring photos to life! New PhotoMail http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=39174/*http://photomail.mail.yahoo.com makes sharing a breeze. Yahoo! Mail Use Photomail to share photos without annoying attachments. Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze.
[Axis2] In which version do you plan to support exception generation for faults?
Dear Axis2 developers,As far as I know, code generator of 0.94 does not generate exceptions for faults defined in WSDL. Instead, we are required to throw AxisFault.Do you have a plan to add this support to 0.95? Or, in which version do you plan to support?Regards,Ali Sadik Kumlali Yahoo! Mail Use Photomail to share photos without annoying attachments.
Re: [Axis2] How to handle multiple client certificates through WS-Security
Hi Ruchith,Thank you very much for your quick answer. I'll try every step ASAP. By the way, just to make sure, I have some questions regarding your answer.3.) Now each requester's signature will be verified by the securitymodule as and when it reaches the service.If it passes this step, can I say that "It is coming from one of my trusted senders and it's not intruded during transfer." ? 4.) At the service you can identify the client that sent the requestusing the information available in the message context.- Do you mean that "even the incomming message passes the 3th step, I'm still not aware of the sender and if I want to identify the sender, I need to follow instructions in 4th step" ? - If your answer is "yes", is it possible to do this before executing any service instead of at the beginning of each service? One more question. If I use client side certification based security model, do I still need to authenticate each message?Thanks a lot,Ali Sadik KumlaliRuchith Fernando [EMAIL PROTECTED] wrote: Hi Ali,You can certainly do what you want with Axis2 using the security module.You have to make sure that:1.) Configure the service to expect the requests to be signed2.) Public key certificates of each client must be imported into theservice's keystore. This is required in verifying the cert aftersignature verification.3.) Now each requester's signature will be verified by the securitymodule as and when it reaches the service.4.) At the service you can identify the client that sent the requestusing the information available in the message context.There is a vector of security results available in the message contextby the key WSHandlerConstants.RECV_RESULTS.Following code snippet shows how to extract the java.security.PrincipalVector results = null;// get the result Vector from the propertyif ((results = (Vector)msgContext.getProperty(WSHandlerConstants.RECV_RESULTS))== null) {System.out.println("No security results!!");}for (int i = 0; i results.size(); i++) { WSHandlerResult hResult = (WSHandlerResult)results.get(i); String actor = hResult.getActor(); Vector hResults = hResult.getResults(); for (int j = 0; j hResults.size(); j++) { WSSecurityEngineResult eResult = (WSSecurityEngineResult)hResults.get(j);if (eResult.getAction() != WSConstants.SIGN) { System.out.println(eResult.getPrincipal().getName()); } }}Thanks,RuchithOn 3/16/06, Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote: Dear all, t; Sorry if this a strange question, but I'm very new to web service security topic. Let me list my situation and needs step by step: 1) I have many clients 2) Each client has its own certificate 3) Each client send SOAP messages by signing with its certificate 4) I use Axis2 and WS-Security extentions 5) I need to recognize each sender uniquely and verify the message according to the sender's own certificate. 6) AFAIK, it's not necessary to use Username-token profile if I verify each message with sender's certificate. Some of the items seems very odd. If you beleive I'm going through correct way, please tell me how to build these up with Axis2. Otherwise, please let me know what kind of approach should I use to handle multiple client certificates. Thanks in advance, Ali Sadik Kumlali Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. Yahoo! Mail Use Photomail to share photos without annoying attachments.
[Axis2] Handling request-responseS type messaging
Dear all,There is an interesting messaging pattern between my company and its partner. Partner sends a message containing a tag named CSV that has multiple lines in it. Although we process all of them separately, we assume it as one message. After processing has been completed, we send a result message for every line in CSV. Thus, request-responseS type messaging occurs.This seems very strange when I look at the async messaging samples that come with Axis2. If I understand correctly, whenclient sends a request in an async-non blocker way, it alsostarts an http server to listen response. When the server finishes processing, it sends the result back to the client's http server.Consequently, each request has one response.AFAIK, we are allowed to have one-way and request-response type operations, but not request-responseS.Is there a way to handle request-responseS type messagingwith Axis2? Or do I ne ed to convince my boss to give these kindof messaging up? :)Thanks a lot,Ali Sadik Kumlali Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze.
Re: [Axis2] Handling request-responseS type messaging
Hi Eran, Hi Anne!What a quick response! What a good community! Thank you very very much. I love this community and hope companies discover the power of open-source products. I post your responses to my colleagues in the company to let them recognize that support does not always mean money, and vice versa :)Eran,Our current implementation uses DocSoap XDK based custom codes. Since we are required to handle all the soap related stuff manually, we are able to support "IN-multiple OUT" type messaging. Actually, manual operations are one of the reasons we want to give DocSoap XDK up. Therefore, it would be great if I could find a robust way in Axis2 to support "IN-multiple OUT" type messaging.Anne,Do you mean; 1) Client sends request without waiting a response to it. Request has a CSV tag which has many lines to process. 2) Server processes the message and sends a result for each line in CS V. It sends results to the client without waiting a response.Many thanks to you both! Ali Sadik Kumlali Anne Thomas Manes [EMAIL PROTECTED] wrote: You can also implement the pattern using one-way messages.AnneOn 3/16/06, Eran Chinthaka [EMAIL PROTECTED] wrote:Hi Ali,Interesting scenario.First of all, Axis2 supports IN only and IN-OUT invocations by *default.* But thats doesn't mean we can not do IN-multiple OUT meps.Yes, we haven't come across them so far, but our pipe model enablescustom MEPs. If you really ne ed this we can give atry to implement the first custom MEP using Axis2. (or you can convince your boss otherwise ;-) )-- ChinthakaAli Sadik Kumlali wrote: Dear all, There is an interesting messaging pattern between my company and its partner. Partner sends a message containing a tag named CSV that has multiple lines in it. Although we process all of them separately, we assume it as one message. After processing has been completed, we send a result message for every line in CSV. Thus, request-responseS type messaging occurs. This seems very strange when I look at the async messaging samples that come with Axis2. If I understand correctly, when client sends a request in an async-non blocker way, it also starts an http server to listen response. When the server finishes processing, it sends the result back to the client's http server. Consequently, each request has one response. AFAIK, we are allowed to have one-way and request-response type operations, but not request-responseS. Is there a way to handle request-responseS type messaging with Axis2? Or do I ne ed to convince my boss to give these kind of messaging up? :) Thanks a lot, Ali Sadik Kumlali Yahoo! Mail Bring photos to life! New PhotoMail http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=39174/*http://photomail.mail.yahoo.com makes sharing a breeze. Yahoo! Mail Use Photomail to share photos without annoying attachments.
[Axis2] SimpleHTTPServer port conflict for multiple EchoNonBlockingDualClient threads
Dear all,I simply changed EchoNonBlockingDualClient sample to make it run as threads and created two threads. First one successfully starts SimpleHTTPServer on port 6060 and the second one gets an "java.net.BindException: Address already in use: JVM_Bind" while trying to start the server.Doesn't I have an option to listen all the responses for its dedicated port? For example 6060 for first request, 6061 for the second, and so on. Or, should i assume Axis2 to use the same port for the responses of all the long running transactions?Thanks a lot for any help.Ali Sadik Kumlali--Error Message I Get--testEchoNonBlockingDualClient: [java] [CLIENT1] Outgoing message [java] example1:ec ho xmlns:example1="http://example1.org/example1"example1:TextAxis2 Echo String /example1:Text/example1:echo [java] - Deploying module : addressing [java] [CLIENT2] Outgoing message [java] example1:echo xmlns:example1="http://example1.org/example1"example1:TextAxis2 Echo String /example1:Text/example1:echo [java] - Deploying module : addressing [java] - java.net.BindException: Address already in use: JVM_Bind [java] org.apache.axis2.AxisFault: Address already in use: JVM_Bind; nestedexception is: [java] java.net.BindException: Address already in use: JVM_Bind [java] at org.apache.axis2.transport.http.SimpleHTTPServer.start(SimpleHTTPServer.java:220) [java] at org.apache.axis2.client.ListenerManager.makeSureStarted(ListenerManager.java:73)-- Modified EchoNonBlockingDualClient.java-- public class EchoNonBlockingDualClient implements Runnable { private static EndpointReference targetEPR = new EndpointReference( "http://127.0.0.1:8080/axis2/services/MyService"); private String name; public EchoNonBlockingDualClient(String name) { this.name = name; } publ ic OMElement getPayload() throws XMLStreamException, FactoryConfigurationError { OMElement payload = ClientUtil.getEchoOMElement(); // Log the outgoing payload StringWriter writer = new StringWriter(); payload.serialize(XMLOutputFactory.newInstance().createXMLStreamWriter(writer)); writer.flush(); System.out.println("[" + name + "] Outgoing message\n"+ writer.toString()); return payload; } public Options getOptions() {& nbsp; Options options = new Options(); options.setTo(targetEPR); options.setTransportInProtocol(Constants.TRANSPORT_HTTP); options.setUseSeparateListener(true); return options; } public void makeRequest() { try { OMElement payload = getPayload(); Options options = getOptions(); // Callback to handle the response Callback callback = new Callback() {public void onComplete(AsyncResult result) { try { StringWriter writer = new StringWriter(); result.getResponseEnvelope().serialize(XMLOutputFactory.newInstance() .createXMLStreamWriter(writer)); writer.flush(); System.out.println("[" + name + "] Incoming message\n"+ writer.toString()); try { Thread.sleep(1000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } catch (XMLStreamException e) { onError(e); }}public void onError(Exception e) { e.printStackTrace(); } }; // Non-Blocking Invocation ServiceClient sender = new ServiceClient(); sender.setOptions(options); sender.sendReceiveNonblocking(payload, callback); // Wait till the callback receives the response. while (!callback.isComplete()) {System.out.println("[" + name + "] I'm waiting for the response from the server"); Thread.sleep(1000); } // Need to close the Client Side Listener. } catch (AxisFault axisFault) { axisFault.printStackTrace(); } catch (Exception ex) { ex.printStackTrace(); } } public void run() { makeRequest(); } private static final void wait(int ms) { try { Thread.sleep(ms); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } public static void main(String[] args) { Thread client1 = new Thread(new EchoNonBlockingDualClient("CLIENT1")); client1.start(); wait(1000); Thread client2 = new Thread(new EchoNonBlockingDualClient("CLIENT2")); client2.start(); }} Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. __Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[Axis2] How to handle multiple client certificates through WS-Security
Dear all,Sorry if this a strange question, but I'm very new to web service security topic.Let me list my situation and needs step by step:1) I have many clients2) Each client has its own certificate3) Each client send SOAP messages by signing with its certificate4) I use Axis2 and WS-Security extentions5) I need to recognize each sender uniquely and verify the message according to the sender's own certificate.6) AFAIK, it's not necessary to use Username-token profile if I verify each message with sender's certificate.Some of the items seems very odd. If you beleive I'm going through correct way, please tell me how to build these up with Axis2. Otherwise, please let me know what kind of approach should I use to handle multiple client certificates.Thanks in advance,Ali Sadik Kumlali Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze.
Re: [Axis2] EchoNonBlockingDualClient problem
Hi,I have the same problem with Tomcat 5.5 and have two questions:1) Why does my client HTTP server is immediately closed and i get I/O exception when server tries to post the response? 2) Why does it print "waiting" when options.setUseSeparateListener() is passed false? (This is Antony Wilson's question actually) Thanks a lot.Ali Sadik KumlaliFIRST CASE + Original EchoNonBlockingDualClient.java + System.out.println("waiting..."); in while loopClient Log---testEchoNonBlockingDualClient: [java] - Deploying module : addressing [java] - Starting to process SOAP 1.1 message [java] ?xml version='1.0' encoding='utf-8'?soapenv:E nvelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"soapenv:Headerwsa:To xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"http://10.10.10.103:6060/axis2/services/__ANONYMOUS_SERVICE__/__OPERATION_OUT_IN__/wsa:Towsa:ReplyTo xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"wsa:Addresshttp://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous/wsa:Address/wsa:ReplyTowsa:From xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"wsa:Addresshttp://127.0.0.1:8080/axis2/services/MyService/wsa:Address/wsa:Fromwsa:MessageID xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"D3C49495E884E3019B11423375911122/wsa:MessageIDwsa:RelatesTo xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" wsa:RelationshipType="wsa:Reply"975BF946D7CFA918C611423375837211/wsa:RelatesTo/soapenv:Headersoapenv:Bodyexample1:echo xmlns:example1="http://example1.org/example1"example1:TextAxis2 Echo String /example1:Text/example1:echo/soapenv:Body/soapenv:Envelope [java] [SimpleHTTPServer] Stop calledServer Log--- Deploying module : addressing- Deploying module : security- Starting to process SOAP 1.1 message- I/O exception (org.apache.commons.httpclient.NoHttpResponseException) caught when processing request: The server 10.10.10.103 failed to respond- Retrying requestSECOND CASE: + Original EchoNonBlockingDualClient.java + System.out.println("waiting..."); in while loop p; + options.setUseSeparateListener(false); Client Log---testEchoNonBlockingDualClient: [java] - Deploying module : addressing [java] waiting... [java] - Starting to process SOAP 1.1 message [java] ?xml version='1.0' encoding='utf-8'?soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"soapenv:Headerwsa:To xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous/wsa:Towsa:ReplyTo xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"wsa:Addresshttp://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous/wsa:Address/wsa:ReplyTowsa:From xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"wsa:Addresshttp://127.0.0.1:8080/axis2/services/MyService/wsa:Address/wsa:Fromwsa:MessageID xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"D3C49495E884E3019B11423376489274/wsa:MessageIDwsa:RelatesTo xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" wsa:RelationshipType="wsa:Reply"6439FE16DCA2252A8E11423376486611/wsa:RelatesTo/soapenv:Headersoapenv:Bodyexample1:echo xmlns:example1="http://example1.org/example1"example1:TextAxis2 Echo String /example1:Text/example1:echo/soapenv:Body/soapenv:EnvelopeServer Log--- De ploying module : addressing- Deploying module : security- Starting to process SOAP 1.1 messagerobert lazarski [EMAIL PROTECTED] wrote: Could you start another thread with an axis2 prefix mentioning jboss ? I know jboss with web services ok, but it was with either axis 1 or jwsdp - not axis2 . Are you using wsdl and ejb ? Robert http://www.braziloutsource.com/On 3/13/06, Brian Shields [EMAIL PROTECTED] wrote:Tony,Apologies for jumping into this thread on an unr elated issue but i notice you have axis2 deployed on JBoss 4.0. I am about to undertakethis task and was wondering if there was any resources on the web tohelp in it. I dont have a lot of experience with JBoss so not looking forward to it!!Regards,BrianAntony Wilson wrote: I have not been able to get the EchonNonBlockingDualClient example to work as described in the documentation.In my setup, I have Axis2 deployed to JBoss 4.0.3 and I have modified the userguide.example1.MyService to delay for about 10 seconds before responding (leaving the 'echo' method).After packaging and deploying the MyService.aar to Axis2, I run EchoNonBlockingDualClient example...slightly modified to add a print statement within the while loop...like sopublic static void main(String[] args) {try {
[Axis2] Security sample throws Cannot find any provider supporting AES/CBC/ISO10126Padding exception
Dear all,I got several exceptions when trying out security sample found in ...\samples\security. There is a consice README.txt file under the folder. By following the instructions in the README.txt, I ran the ant script and got my first exceptions related with the missing libraries: xmlsec-1.3.0.jar, wss4j-SNAPSHOT.jar, commons-discovery-0.2.jar. I could manage to collect them all and put under ...\axis2\lib. But finally I got error listed below.I tried both JDK 1.4 and 1.5. I'm using Windows 2000, Tomcat 5.5Should the sample work without any extra work related with security such as generating keys and configuring Tomcat 5.5? Any help appreciated. Ali Sadik KumlaliC:\axis2\samples\securityant securitySampleBuildfile: build.xmlsecuritySample: [java] - Deploying module : addressing [java] - Deploying module : security [java] org.apache.axis2.AxisFault: WSHandler: Encryption: error during message processingorg.apache.ws.security.WSSecurityException: An unsupported signature or encryption algorithm was used; nested exception is: [java] org.apache.xml.security.encryption.XMLEncryptionException: Cannot find any provider supporting AES/CBC/ISO10126Padding [java] Original Exception was java.security.NoSuchAlgorithmException: Cannot find any provider supporting AES/CBC/ISO10126Padding; nested exception is: [java] org.apache.ws.security.WSSecurityException: WSHandler: Encryption: error during message processingorg.apache.ws.security.WSSecurityException: Anunsupported signature or encryption algorithm was used; nested exception is: [java] org.apache.xml.security.encryption.XMLEncryptionException: Cannot find any provider supporting AES/CBC/ISO10126Padding [java] Original Exception was java.security.NoSuchAlgorithmException: Cannot find any provider supporting AES/CBC/ISO10126Padding [java] at org.apache.axis2.security.WSDoAllSender.invoke(WSDoAllSender.java:261) [java] at org.apache.axis2.engine.Phase.invoke(Phase.java:376) [java] at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:351) [java] at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:441) [java] at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:317) [java] at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:267) [java] at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:393) [java] at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:326) [java] at sample.security.Client.main(Client.java:59) [java] Caused by: org.apache.ws.security.WSSecurityException: WSHandler: Encryption: error during message processingorg.apache.ws.security.WSSecurityException: An unsupported signature or encryption algorithm was used; nested exceptionis: [java] org.apache.xml.security.encryption.XMLEncryptionException: Cannot find any provider supporting AES/CBC/ISO10126Padding [java] Original Exception was java.security.NoSuchAlgorithmException: Cannot find any provider supporting AES/CBC/ISO10126Padding [java] at org.apache.ws.security.action.EncryptionAction.execute(EncryptionAction.java:64) [java] at org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:186) [java] at org.apache.axis2.security.WSDoAllSender.invoke(WSDoAllSender.java:172) [java] ... 8 more Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze.
Re: [Axis2] Security sample throws Cannot find any provider supporting AES/CBC/ISO10126Padding exception
Hi Ruchith,Thank you very much for your quick response. I downloaded bcprov-jdk13-128.jar and put it under ...\axis2\lib folder. It did not work. Also tried bcprov-jdk14-128.jar and bcprov-jdk15-128.jar. Did not work either.Thanks again.Ali Sadik KumlaliRuchith Fernando [EMAIL PROTECTED] wrote: Hi,From the trace you posted it seems like you are missing thebouncycastle library (bcprov-jdk13-128.jar).But the security module should contain these (all related third partyjars) and its expected to work without having any additional jars inthe classpath. I will check on this.Thanks,RuchithOn 3/7/06, Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote: Dear all, I got several exceptions when trying out security sample found in ...\samples\security. There is a consice README.txt file under the folder. By following the instructions in the README.txt, I ran the ant script and got my first exceptions related with the missing libraries: xmlsec-1.3.0.jar, wss4j-SNAPSHOT.jar, commons-discovery-0.2.jar. I could manage to collect them all and put under ...\axis2\lib. But finally I got error listed below. I tried both JDK 1.4 and 1.5. I'm using Windows 2000, Tomcat 5.5 Should the sample work without any extra work related with security such as generating keys and configuring Tomcat 5.5? Any help appreciated. Ali Sadik Kumlali C:\axis2\samples\securityant securitySample Buildfile: build.xml securitySample: [java] - Deploying module : addressing [java] - Deploying module : security [java] org.apache.axis2.AxisFault: WSHandler: Encryption: error during mess age processingorg.apache.ws.security.WSSecurityException: An unsupported signatu re or encryption algorithm was used; nested exception is: [java] org.apache.xml.security.encryption.XMLEncryptionException: Canno t find any provider supporting AES/CBC/ISO10126Padding [java] Original Exception was java.security.NoSuchAlgorithmException: Canno t find any provider supporting AES/CBC/ISO10126Padding; nested exception is: [java] org.apache.ws.security.WSSecurityException: WSHandler: Encryptio n: error during message processingorg.apache.ws.security.WSSecurityException: An unsupported signature or encryption algorithm was used; nested exception is: [java] org.apache.xml.security.encryption.XMLEncryptionException: Canno t find any provider supporting AES/CBC/ISO10126Padding [java] Original Exception was java.security.NoSuchAlgorithmException: Canno t find any provider supporting AES/CBC/ISO10126Padding [java] at org.apache.axis2.security.WSDoAllSender.invoke(WSDoAllSender. java:261) [java] at org.apache.axis2.engine.Phase.invoke(Phase.java:376) [java] at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:351 ) [java] at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:441) [java] at org.apache.axis2.description.OutInAxisOperationClient.send(Ou tInAxisOperation.java:317) [java] at org.apache.axis2.description.OutInAxisOperationClient.execute (OutInAxisOperation.java:267) [java] at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClie nt.java:393) [java] at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClie nt.java:326) [java] at sample.security.Client.main(Client.java:59) [java] Caused by: org.apache.ws.security.WSSecurityException: WSHandler: En cryption: error during message processingorg.apache.ws.security.WSSecurityExcept ion: An unsupported signature or encryption algorithm was used; nested exception is: [java] org.apache.xml.security.encryption.XMLEncryptionException: Canno t find any provider supporting AES/CBC/ISO10126Padding [java] Original Exception was java.security.NoSuchAlgorithmException: Canno t find any provider supporting AES/CBC/ISO10126Padding [java] at org.apache.ws.security.action.EncryptionAction.execute(Encryp tionAction.java:64) [java] at org.apache.ws.security.handler.WSHandler.doSenderAction(WSHan dler.java:186) [java] at org.apache.axis2.security.WSDoAllSender.invoke(WSDoAllSender. java:172) [java] ... 8 more Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze.
Re: [axis2] WSDL and XML Schema Imports
Hi Johan,I am not sure if it's a solution to your problem but I use real URL in schemaLocation to get rid of this kind of problems. What I do is defining my target URL in hosts file that maps to localhost. And also, I use Apache Web Server or IIS to host the localhost. For example, assuming you need to make following definition:schemaLocation="http://my.company.com/schemas/myschema.xsd"I offer you to do the following:1) Add an entry to the "hosts" file: my.company.com localhost "hosts" file resides under c:\WINDOWS\system32\drivers\etc\ in my Windows XP2) Install Apache Web Server or IIS. I use Apache.3) Create the "schemas" folder under htdocs folder of Apache. IIS must have its own directory structure.4) Put the "myschema.xsd" file under "schemas" folder5) When you call http://my.company.com/schemas/myschema.xsd URL with your browser, it must be there!Good luck,Ali Sadik Kumlali Johan Andersson [EMAIL PROTECTED] wrote: Hello,I'm struggling with schema imports in my wsdl files and would like some hints for how to proceed.The hostname of the target web server/servlet container is not known at the time I create my wsdl so I am trying to use a relative schemaLocation in my import: xsd:import namespace="http://my.domain.com/common/stuff" schemaLocation="../schemas/myschema.xsd" /When I deploy my service, Axis2 will parse this wsdl and try to resolve the location of the schema as a file and fail because the "current directory" is not anywhere near the webapp folder.If I give the full URL to the imported schema (http://myhost:port/axis2/schemas/myschema.xsd) it works like a charm but as I said the hostname is not known at the time I create the wsdl so this is not an option. Is there any way to hook in an Entity Resolver, set some kind of property to get the wsdl4j to load schemas of the classpath or even disabling parsing of the wsdl:types so I can get this to work please let me know.Best Regards Johan Andersson Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze.
[axis2] User guide sample application inconsistency(?)
Dear all,I'm a new axis2 user and want to learn it by following the instructions in it's user guide. First of all, i tried to generate a web service from a given WSDL as introduced in "Writing Web Services by Code Generating Skeleton". Therefore, i generated Java files from Axis2SampleDocLit.wsdl found in samples\wsdl directory. I also passed "-d xmlbeans" parameter to WSDL2Java.bat to make it use XMLBeans databinding. When i looked at the generated files, i found two directory created: src and resources. Under resources folder there was an interesting directory called "schemaorg_apache_xmlbeans" which i could not found any reference in user guide. I thought it must be "schema" directory mentioned in the guide. Anyway, i filled the empty methods in Axis2SampleDocLitPortTypeSkeleton.java file with the codes given in the user guide. Created services.xml file and filled with the code given in the guide. And created a package called Axis2SampleDocLitPortType.aar by following the instuctions. After all, i put the file under the \webapps\axis2\WEB-INF\services directory. Then after started Tomcat 5.5, clicked the "services" link listed in http://localhost:8080/axis2/index.jsp. Since i did not see the Axis2SampleDocLitPortType service listed in the page, looked at the log files of Tomcat resides under logs directory. Then i saw a line says "NullPointerException" without any further information. I also tried to change the name of schemaorg_apache_xmlbeans directory to schema. It did not work either. Am i missing something?Thans in advance,Ali Sadik Kumlali Yahoo! Mail Use Photomail to share photos without annoying attachments.