[AXIS2] Session management on Tomcat for AXIS2 WS
Hi,. I have a general question about deploying Web Services using AXIS2 running with Tomcat (6). I'm trying to set up a sort of compute server on Tomcat where web services requests are called to execute an algorithm and return the results. I use AXIS2 for the WS communication protocol. I'm running benchmarks on CPU and memory utilization on Tomcat and I am wondering what the mechanisms are for Tomcat to free up resources once it has completed the calculation request. What happens now is that I quickly run out of memory for a simple test case of a series of sequential requests. Is there a persistence of the session until some future timeout event? Thanks in advance for any suggestions. Carlos S. Zamudio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[AXIS2] AXIS2 WSDL2Java 2 1.2RC1 vs. AXIS 1.3
Below is a WSDL that can be used to generate Java classes with Wsdl2java with Axis 1.3 successfully, but fails using AXIS2 1.2RC1. http://www.ncbi.nlm.nih.gov/entrez/eutils/soap/eutils.wsdl With errors like the following: java:491) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. java:462) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. java:594) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. java:451) at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:16 50) at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler .java:1615) at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompi ler.java:929) at org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaT ... Carlos _ From: Carlos S. Zamudio [mailto:[EMAIL PROTECTED] Sent: Thursday, March 29, 2007 4:59 PM To: axis-user@ws.apache.org Subject: RE: [AXIS2] Transport error: 411 Error: Length Required I found the problem in another posting. To get around this Transport error I did as suggested and changed the property CHUNKED to false. s._getServiceClient().getOptions().setProperty(HTTPConstants.CHUNKED, false); where s is an instance of the ServiceStub. Carlos _ From: Carlos S. Zamudio [mailto:[EMAIL PROTECTED] Sent: Thursday, March 29, 2007 4:35 PM To: axis-user@ws.apache.org Subject: [AXIS2] Transport error: 411 Error: Length Required Has anyone seen this type of error coming from AXIS2 and know what it might indicate? I'm getting this from a test case using a WSDL2Java code generation. I noticed an old thread referencing this condition, but the message was not explanatory. Thanks. org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required
RE: [AXIS2] Transport error: 411 Error: Length Required
I found the problem in another posting. To get around this Transport error I did as suggested and changed the property CHUNKED to false. s._getServiceClient().getOptions().setProperty(HTTPConstants.CHUNKED, false); where s is an instance of the ServiceStub. Carlos _ From: Carlos S. Zamudio [mailto:[EMAIL PROTECTED] Sent: Thursday, March 29, 2007 4:35 PM To: axis-user@ws.apache.org Subject: [AXIS2] Transport error: 411 Error: Length Required Has anyone seen this type of error coming from AXIS2 and know what it might indicate? I'm getting this from a test case using a WSDL2Java code generation. I noticed an old thread referencing this condition, but the message was not explanatory. Thanks. org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required
[AXIS2] Transport error: 411 Error: Length Required
Has anyone seen this type of error coming from AXIS2 and know what it might indicate? I'm getting this from a test case using a WSDL2Java code generation. I noticed an old thread referencing this condition, but the message was not explanatory. Thanks. org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required
RE: [AXIS2] Codegen question regarding "local"
Amila, Thanks. I tried it with the RC build and I was able to generate the code using WSDL2Java. Now I am working my way through the interface. Have you seen the following type of message before (see below)? I noticed a message trail in some AXIS2 discussion group that referred to a problem of "chunking" but I don't know what this means. Thanks. org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required; nested exception is: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required _ From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 20, 2007 9:22 PM To: axis-user@ws.apache.org Subject: Re: [AXIS2] Codegen question regarding "local" seems to be a problem with the nightly build. we are planing to have a RC for Axis2 1.2 on this friday. Please hava a look with it. On 3/20/07, Carlos S. Zamudio <[EMAIL PROTECTED]> wrote: Here are the messages: C:\Development\Archives\axis2-SNAPSHOT\bin>wsdl2java Using AXIS2_HOME: C:\Development\Archives\axis2-SNAPSHOT Using JAVA_HOME:C:\Program Files\Java\jre1.5.0_06 Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/lo gging/LogFactory at org.apache.axis2.i18n.ProjectResourceBundle.(ProjectResourceB undle.java:50) at org.apache.axis2.i18n.MessagesConstants.(MessagesConstants.ja va:29) at org.apache.axis2.wsdl.i18n.CodegenMessages.(CodegenMessages.j ava:35) at org.apache.axis2.wsdl.WSDL2Code.printUsage(WSDL2Code.java:38) at org.apache.axis2.wsdl.WSDL2Code.validateCommandLineOptions(WSDL2Code. java:73) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:31) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) C:\Development\Archives\axis2-SNAPSHOT\bin> _ From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] Sent: Monday, March 19, 2007 11:02 PM To: axis-user@ws.apache.org <mailto:axis-user@ws.apache.org> Subject: Re: [AXIS2] Codegen question regarding "local" you are using axis2-1.1.1-SNAPSHOT not axis2-SNAPSHOT please use the link I gave you. thanks, Amila. On 3/19/07, Carlos S. Zamudio <[EMAIL PROTECTED]> wrote: Amila, Thanks so much for you patience with this. Maybe I am dense, but below is the command line that I have run to generate the JAR's and I am certain I am using the SNAPSHOT release (see below) as you have suggested. Any additional suggestions?: C:\> C:\Development\Archives\axis2-1.1.1-SNAPSHOT\bin\wsdl2java.bat -uri http://s oap.search.msn.com/webservices.asmx?wsdl -o C:\t1 -s -sd -u -ssi Using AXIS2_HOME: C:\Development\Archives\axis2-1.1.1-SNAPSHOT Using JAVA_HOME:C:\Program Files\Java\jre1.5.0_06 Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException : java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener ationEngine.java:224) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetExcepti on at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp leDBExtension.java:52) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener ationEngine.java:177) ... 2 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp leDBExtension.java:49) ... 3 more Caused by: org.apache.axis2.schema.SchemaCompilationException: Unsupported conte nt Simple Type List in {http://schemas.microsoft.com/MSNSearch/2005/09/fex}Searc <http://schemas.microsoft.com/MSNSearch/2005/09/fex%7DSearc> hFlags ! at org.apache.axis2.schema.SchemaCompiler.processSimpleType(SchemaCompil er.java:1868) at org.apache.
RE: [AXIS2] Codegen question regarding "local"
Here are the messages: C:\Development\Archives\axis2-SNAPSHOT\bin>wsdl2java Using AXIS2_HOME: C:\Development\Archives\axis2-SNAPSHOT Using JAVA_HOME:C:\Program Files\Java\jre1.5.0_06 Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/lo gging/LogFactory at org.apache.axis2.i18n.ProjectResourceBundle.(ProjectResourceB undle.java:50) at org.apache.axis2.i18n.MessagesConstants.(MessagesConstants.ja va:29) at org.apache.axis2.wsdl.i18n.CodegenMessages.(CodegenMessages.j ava:35) at org.apache.axis2.wsdl.WSDL2Code.printUsage(WSDL2Code.java:38) at org.apache.axis2.wsdl.WSDL2Code.validateCommandLineOptions(WSDL2Code. java:73) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:31) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) C:\Development\Archives\axis2-SNAPSHOT\bin> _ From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] Sent: Monday, March 19, 2007 11:02 PM To: axis-user@ws.apache.org Subject: Re: [AXIS2] Codegen question regarding "local" you are using axis2-1.1.1-SNAPSHOT not axis2-SNAPSHOT please use the link I gave you. thanks, Amila. On 3/19/07, Carlos S. Zamudio <[EMAIL PROTECTED]> wrote: Amila, Thanks so much for you patience with this. Maybe I am dense, but below is the command line that I have run to generate the JAR's and I am certain I am using the SNAPSHOT release (see below) as you have suggested. Any additional suggestions?: C:\> C:\Development\Archives\axis2-1.1.1-SNAPSHOT\bin\wsdl2java.bat -uri http://s oap.search.msn.com/webservices.asmx?wsdl -o C:\t1 -s -sd -u -ssi Using AXIS2_HOME: C:\Development\Archives\axis2-1.1.1-SNAPSHOT Using JAVA_HOME:C:\Program Files\Java\jre1.5.0_06 Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException : java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener ationEngine.java:224) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetExcepti on at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp leDBExtension.java:52) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener ationEngine.java:177) ... 2 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp leDBExtension.java:49) ... 3 more Caused by: org.apache.axis2.schema.SchemaCompilationException: Unsupported conte nt Simple Type List in {http://schemas.microsoft.com/MSNSearch/2005/09/fex}Searc <http://schemas.microsoft.com/MSNSearch/2005/09/fex%7DSearc> hFlags ! at org.apache.axis2.schema.SchemaCompiler.processSimpleType(SchemaCompil er.java:1868) at org.apache.axis2.schema.SchemaCompiler.processSimpleSchemaType(Schema Compiler.java:1816) at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j ava:878) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. java:533) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. java:495) at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:15 44) at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler .java:1506) at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompi ler.java:959) at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType( SchemaCompiler.java:917) at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j ava:872) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. java:533) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. java:495) at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:15 44) at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler .java:1506) at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompi ler.java:959) at org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaT ype(SchemaCompiler.java:891) at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j ava:874) at org.apache.a
RE: [AXIS2] Codegen question regarding "local"
Sorry. I'll give it a try with the correct SNAPSHOT. (-; FYI, the nightly SNAPSHOT for March 20th appears to have broken wsdl2java. If you try and run it on the command line to list the command line parameters it executes with errors. I'll try it with the next SNAPSHOT to see if it clears up. java2wsdl seems fine. Again, thanks for the help. Cheers, Carlos _ From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] Sent: Monday, March 19, 2007 11:02 PM To: axis-user@ws.apache.org Subject: Re: [AXIS2] Codegen question regarding "local" you are using axis2-1.1.1-SNAPSHOT not axis2-SNAPSHOT please use the link I gave you. thanks, Amila. On 3/19/07, Carlos S. Zamudio <[EMAIL PROTECTED]> wrote: Amila, Thanks so much for you patience with this. Maybe I am dense, but below is the command line that I have run to generate the JAR's and I am certain I am using the SNAPSHOT release (see below) as you have suggested. Any additional suggestions?: C:\> C:\Development\Archives\axis2-1.1.1-SNAPSHOT\bin\wsdl2java.bat -uri http://s oap.search.msn.com/webservices.asmx?wsdl -o C:\t1 -s -sd -u -ssi Using AXIS2_HOME: C:\Development\Archives\axis2-1.1.1-SNAPSHOT Using JAVA_HOME:C:\Program Files\Java\jre1.5.0_06 Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException : java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener ationEngine.java:224) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetExcepti on at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp leDBExtension.java:52) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener ationEngine.java:177) ... 2 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp leDBExtension.java:49) ... 3 more Caused by: org.apache.axis2.schema.SchemaCompilationException: Unsupported conte nt Simple Type List in {http://schemas.microsoft.com/MSNSearch/2005/09/fex}Searc <http://schemas.microsoft.com/MSNSearch/2005/09/fex%7DSearc> hFlags ! at org.apache.axis2.schema.SchemaCompiler.processSimpleType(SchemaCompil er.java:1868) at org.apache.axis2.schema.SchemaCompiler.processSimpleSchemaType(Schema Compiler.java:1816) at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j ava:878) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. java:533) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. java:495) at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:15 44) at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler .java:1506) at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompi ler.java:959) at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType( SchemaCompiler.java:917) at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j ava:872) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. java:533) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. java:495) at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:15 44) at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler .java:1506) at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompi ler.java:959) at org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaT ype(SchemaCompiler.java:891) at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j ava:874) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. java:533) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. java:505) at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:34 2) at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:25 4) at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java :72) ... 8 more C:\> _ From: Amila Suriarachchi [mailto:[EMAIL PROTEC
RE: [AXIS2] Codegen question regarding "local"
Amila, Thanks so much for you patience with this. Maybe I am dense, but below is the command line that I have run to generate the JAR's and I am certain I am using the SNAPSHOT release (see below) as you have suggested. Any additional suggestions?: C:\> C:\Development\Archives\axis2-1.1.1-SNAPSHOT\bin\wsdl2java.bat -uri http://s oap.search.msn.com/webservices.asmx?wsdl -o C:\t1 -s -sd -u -ssi Using AXIS2_HOME: C:\Development\Archives\axis2-1.1.1-SNAPSHOT Using JAVA_HOME:C:\Program Files\Java\jre1.5.0_06 Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException : java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener ationEngine.java:224) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetExcepti on at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp leDBExtension.java:52) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener ationEngine.java:177) ... 2 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp leDBExtension.java:49) ... 3 more Caused by: org.apache.axis2.schema.SchemaCompilationException: Unsupported conte nt Simple Type List in {http://schemas.microsoft.com/MSNSearch/2005/09/fex}Searc hFlags ! at org.apache.axis2.schema.SchemaCompiler.processSimpleType(SchemaCompil er.java:1868) at org.apache.axis2.schema.SchemaCompiler.processSimpleSchemaType(Schema Compiler.java:1816) at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j ava:878) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. java:533) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. java:495) at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:15 44) at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler .java:1506) at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompi ler.java:959) at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType( SchemaCompiler.java:917) at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j ava:872) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. java:533) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. java:495) at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:15 44) at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler .java:1506) at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompi ler.java:959) at org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaT ype(SchemaCompiler.java:891) at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j ava:874) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. java:533) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. java:505) at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:34 2) at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:25 4) at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java :72) ... 8 more C:\> _ From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] Sent: Monday, March 19, 2007 3:44 AM To: axis-user@ws.apache.org Subject: Re: [AXIS2] Codegen question regarding "local" it seems you still using Axis2 1.1.1 take a build from this link http://people.apache.org/dist/axis2/nightly/axis2-SNAPSHOT.zip I used -ss -sd -g -u -ssi but it does not matter. On 3/17/07, Carlos S. Zamudio <[EMAIL PROTECTED]> wrote: Thanks Amila. I appreciate your trying this out. Could you tell me what the parameters you used to run wsdl2java? I downloaded the SNAPSHOT and tried it but I am still getting AXIS2 errors (Unsupported content Simple Type List...). It would be great for me to get this working. (-: _ From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] Sent: Thursday, March 15, 2007 11:30 PM To: axis-user@ws.apache.org; [EMAIL PROT
RE: [AXIS2] Codegen question regarding "local"
Thanks Amila. I appreciate your trying this out. Could you tell me what the parameters you used to run wsdl2java? I downloaded the SNAPSHOT and tried it but I am still getting AXIS2 errors (Unsupported content Simple Type List...). It would be great for me to get this working. (-: _ From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] Sent: Thursday, March 15, 2007 11:30 PM To: axis-user@ws.apache.org; [EMAIL PROTECTED] Subject: Re: [AXIS2] Codegen question regarding "local" I generated the code with wsdl2java in axis2 trunk. So if you use the wsdl2java tool in an axis2 nightly build you should be able to generate the code correctly. Eclipse plugin uses the Axis2 1.1.1 jars. So you can get a axis2 SNAPSHOT nightly build and use those jars by editing the plugin.xml file and putting them to plugin lib folder. On 3/16/07, Davanum Srinivas <[EMAIL PROTECTED]> wrote: Carlos, Please log a JIRA bug so that we can track and ensure that the bug is fixed before the next release. thanks, dims On 3/15/07, Carlos S. Zamudio <[EMAIL PROTECTED]> wrote: > Sure. It's the Search WSDL located at: > http://soap.search.msn.com/webservices.asmx?wsdl. There have already been > posting on some modifications to the WSDL that needs to be performed to make > it work under AXIS2, and after removing some of the offending SimpleTypes, > it went through the generation process (don't know why AXIS didn't like some > of these types, but I tried Xfire as well and it too didn't like them - > prefer to use AXIS for this). > > An example of accessing the unresolved variable: > > /** >* databinding method to get an XML representation of this object >* >*/ >public javax.xml.stream.XMLStreamReader > getPullParser(javax.xml.namespace.QName qName){ > > > > > //We can safely assume an element has only one type > associated with it > return new > org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(MY_QNAME, > new java.lang.Object[]{ > > org.apache.axis2.databinding.utils.reader.ADBXMLStreamReader.ELEMENT_TEXT , > > org.apache.axis2.databinding.utils.ConverterUtil.convertToString(local) > }, > null); > > } > > > -Original Message- > From: Ajith Ranabahu [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 15, 2007 12:06 PM > To: axis-user@ws.apache.org <mailto:axis-user@ws.apache.org> > Subject: Re: [AXIS2] Codegen question regarding "local" > > Hi, > Is it possible to post the WSDL ? > > On 3/15/07, Carlos S. Zamudio < <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]> wrote: > > > > > > Hi, > > I'm using the AXIS2 codegen Eclipse plugin to generate the Java > > classes for a WSDL I am attempting to use. When I generate the > > classes, and integrate them into my Eclipse project, I find a variable > > called "local" that does not get resolved. It's not clear from the > > code what to do about this. This must be obvious, but anyone interested > in giving me a clue? Thanks. > > Carlos S. Zamudio > > > -- > Ajith Ranabahu > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers - To unsubscribe, e-mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL PROTECTED] -- Amila Suriarachchi, WSO2 Inc.
RE: [AXIS2] Codegen question regarding "local"
Sure. It's the Search WSDL located at: http://soap.search.msn.com/webservices.asmx?wsdl. There have already been posting on some modifications to the WSDL that needs to be performed to make it work under AXIS2, and after removing some of the offending SimpleTypes, it went through the generation process (dont know why AXIS didn't like some of these types, but I tried Xfire as well and it too didn't like them - prefer to use AXIS for this). An example of accessing the unresolved variable: /** * databinding method to get an XML representation of this object * */ public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName){ //We can safely assume an element has only one type associated with it return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(MY_QNAME, new java.lang.Object[]{ org.apache.axis2.databinding.utils.reader.ADBXMLStreamReader.ELEMENT_TEXT, org.apache.axis2.databinding.utils.ConverterUtil.convertToString(local) }, null); } -Original Message- From: Ajith Ranabahu [mailto:[EMAIL PROTECTED] Sent: Thursday, March 15, 2007 12:06 PM To: axis-user@ws.apache.org Subject: Re: [AXIS2] Codegen question regarding "local" Hi, Is it possible to post the WSDL ? On 3/15/07, Carlos S. Zamudio <[EMAIL PROTECTED]> wrote: > > > Hi, > I'm using the AXIS2 codegen Eclipse plugin to generate the Java > classes for a WSDL I am attempting to use. When I generate the > classes, and integrate them into my Eclipse project, I find a variable > called "local" that does not get resolved. It's not clear from the > code what to do about this. This must be obvious, but anyone interested in giving me a clue? Thanks. > Carlos S. Zamudio -- Ajith Ranabahu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[AXIS2] Codegen question regarding "local"
Hi, I'm using the AXIS2 codegen Eclipse plugin to generate the Java classes for a WSDL I am attempting to use. When I generate the classes, and integrate them into my Eclipse project, I find a variable called "local" that does not get resolved. It's not clear from the code what to do about this. This must be obvious, but anyone interested in giving me a clue? Thanks. Carlos S. Zamudio Blank Bkgrd.gif Description: GIF image
Web security accessing AXIS on Tomcat
Hi. I'm new to AXIS2 and Web Services in general. I've been able to get things going with AXIS2 configured using Tomcat. I've been able to build and run the samples and have build some of my own now, running in my Intranet. This is great stuff. What is mystery to me, however, is how to ensure security when I make my web services available over the Internet. I have to open the Tomcat port in my firewall, but then web users could stumble onto the Tomcat home page and the AXIS2 home page. Of course, both are protected by administrator passwords, but is there a mechanism to inhibit the browsing of these pages without affecting access to the web services? I'm just not getting how this would work and I didn't find any clues in the documentation. Thanks. Carlos