Re: unit testing a service

2006-07-02 Thread Jim Bender
Jana, I run a TestNG test, but I must admit that I found some code on the Internet that showed how to run Embedded Tomcat (5.5) and I use that for testing a service. You only need some jars and a directory and you can test the web service. The TestNG test runs a test client and hits the Embedded

[Axis2] I tried the latest daily build for today (29 June) and still had the IllegalStateException

2006-06-29 Thread Jim Bender
My current test for Axis2-Std-1.0 is to run my end-to-end web service generation, which builds the service archive and jar, deploys them to a directory for Embedded Tomcat, runs Tomcat, hits it from the test client within the TestNG test. I still am seeing the same error with the daily build for

Re: WSDL file generation

2006-06-26 Thread Jim Bender
PROTECTED] wrote: Hi Jim Two things - is this happen in current code base or Axis2 1.0 - any possibility of helping me to regenerate the problem ( I mean can you give me the source file so that I can test.) Jim Bender wrote: Deepal, The main problem is that when I run Java2WSDL

Re: WSDL file generation

2006-06-26 Thread Jim Bender
, Jim On 6/26/06, Jim Bender [EMAIL PROTECTED] wrote: Deepal, The example works with Axis2 0.93, if the interface provided to the generator is in the default package (otherwise, uncompilable code is produced). The problem still occurred with the Axis2 Std 1.0 release and daily builds up

Whatever is happening with Java2WSDL seems to be in Java2OMBuilder

2006-06-26 Thread Jim Bender
I have been stepping through code in the debugger in Eclipse, to see if I can tell why there are duplicate complex type definitions for my parameter class (there is an import in the Java interface and then the type is used as a parameter to the one method). The situation seems to be that the

The duplicate type is happening here for the WSDL file

2006-06-26 Thread Jim Bender
I don't know the precise step, but by the time that we leave the generateOM() method in the Java2OMBuilder, there are two complex type definitions in the WSDL. public OMElement generateOM() throws Exception { OMFactory fac = OMAbstractFactory.getOMFactory(); wsdl =

Re: I am ready to create a new JIRA issue

2006-06-24 Thread Jim Bender
immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Jim Bender [EMAIL PROTECTED] To: axis-user@ws.apache.org; Martin Gainty [EMAIL PROTECTED] Sent: Saturday, June 24, 2006 8:47 AM Subject: Re: I am ready to create

I am ready to create a new JIRA issue

2006-06-23 Thread Jim Bender
Unless someone can give a good explanation why I should not, I will create a new JIRA issue about what I am seeing when trying to use a generated stub in my test client: Caught Throwable exception in runPointsCalculator: org.apache.axiom.om.OMException:

Re: WSDL file generation

2006-06-22 Thread Jim Bender
sure that Anne is correct in what she says, as she knows a great deal more than I do about WSDL, but the duplicate complex type is what I wrote the JIRA issue about. Regards, Jim On 6/21/06, Deepal Jayasinghe [EMAIL PROTECTED] wrote: Hi Jim pls see my comments below; Jim Bender wrote

I am still getting the IllegalStateException in the test client

2006-06-21 Thread Jim Bender
I have been working through issues with building the jar file to deploy to Tomcat. I am able to run, with classpath issues solved (seemingly). I am getting an IllegalStateException, again, from the test client, when trying to execute the web service deployed to Embedded Tomcat. Points

More stack on IllegalStateException at runtime

2006-06-21 Thread Jim Bender
I looked down the Eclipse console and saw this, which is relevant to the problem: Caused by: java.lang.IllegalStateException at org.apache.xmlbeans.impl.store.Jsr173$XMLStreamReaderForString.next(Jsr173.java:1110) at

Re: [axis2] Anyone know tricks on NoClassDefFoundError -- commons/logging/LogFactory ?

2006-06-21 Thread Jim Bender
Robert, I suppose that you have tried adding to the run configuration for the test? You probably know all this and tried it already, but here goes. Forgive me for being redundant and obvious. On one TestNG test I have for the end-to-end building of the web service and testing with Embedded

[Axis2] My issue seems to be that the XML Beans classes are not being generated

2006-06-19 Thread Jim Bender
I was not having this problem with the Axis2 0.93 build, but with the latest daily build (and that from a week ago, I am not getting the XML Beans classes generated (such as schemaorg_apache_xmlbeans.system.sD926C795A3FD513AB921640BAE58ADC6.TypeSystemHolder). I thought that I was still doing the

[Axis2] Perhaps I still have a classpath issue

2006-06-19 Thread Jim Bender
I looked into my generated jar, and can see that the TypeSystemHolder is there, but in a different package than the other code expects: schemaorg_apache_xmlbeans.system.s00EEDBA506EBCBE06D4AFD9DBBF45729.TypeSystemHolder. That tells me it is just a classpath issue, and the testclient is pointing

[Axis2] Runtime error

2006-06-19 Thread Jim Bender
I made further progress by fixing my classpath. I am running from a TestNG test class. Now, while trying to run the Axis2 client, in the test, I am seeing this exception thrown with an IllegalStateException: Points Calculation, firing... Caught Throwable exception in runPointsCalculator:

[Axis2] runtime problem with Factory on generated document

2006-06-16 Thread Jim Bender
I am having a good bit of success using the daily build from Monday. I will update to a more recent one, next Monday. In my test client, I am getting an error that I have not seen before: Caught Throwable exception in runPointsCalculator: java.lang.ExceptionInInitializerErrorjava.lang.Ex

[Axis2] WSDL2Java worked for me with a WSDL file generated with this build (after editing)

2006-06-13 Thread Jim Bender
I tried the WSDL2Java generation with a WSDL file that I generated with this build, and it worked. That was only after I edited the file and removed the duplicate complex type definition. Now, I am seem to be getting the full set of generated files. I need to complete the process and see if the

Re: [Axis2]Re: I tried to work around the Java2WSDL issue, but got an non-document/literal service

2006-06-12 Thread Jim Bender
from the imported namespace, I don't understand why you import the namespace. I would assume that you want to reference the element defined in your schema. See my response to one of your other posts for an updated and corrected WSDL file. Anne On 6/8/06, Jim Bender [EMAIL PROTECTED] wrote: Deepal

WSDL file generation

2006-06-12 Thread Jim Bender
It appears that the Axis2 Std 1.0 WSDL file generation from a Java interface is hard-wired to set the elementFormDefault to unqualified. By not setting // java2WsdlBuilder.setSchemaTargetNamespace(); // java2WsdlBuilder.setSchemaTargetNamespacePrefix(); in the Java2WSDLBuilder, I was able to

[Axis2] I really do seem to be getting two definitions for the complex type FoodDescription in the WSDL file

2006-06-12 Thread Jim Bender
I ran the WSDL2Java generator on the WSDL file that I had generated and got an exception thrown that was caught at line 117 in the org.apache.axis2.wsdl.codegen.CodeGenerationEngine. The message in the exception says: Schema for namespace 'http://testexamples/xsd' already contains type

I am trying to run the WSDL2Java with args and have run into a problem

2006-06-12 Thread Jim Bender
I am running the WSDL2Java main with arguments, and CodeGenerationEngine.getBaseUTI(currentURI) is doing bad things to the file URI I have passed as an argument. My URI is generated by using File.toURI(path); This is what I am getting. I have been experimenting, but to no avail. This is the arg

Java2WSDL problem in Axis2 Std 1.0

2006-06-09 Thread Jim Bender
Perhaps part of my issue with being able to generate a parsable WSDL file from Java2WSDL is the parameters I am using. I have attached the generated file, and these are the parameters that I am using in the generator. I also attached (again) the FoodDescription class for this toy example, as well

More about Java2WSDL generation

2006-06-09 Thread Jim Bender
I suspect that I need to regenerate the WSDL file for my toy example and debug the WSDL2Java to find out what the issue is that I had been seeing. I had deleted an element that may need to be there for the WSDL2Java to work. Regards, Jim

Re: [Axis2]Re: I tried to work around the Java2WSDL issue, but got an non-document/literal service

2006-06-08 Thread Jim Bender
, Deepal Jayasinghe [EMAIL PROTECTED] wrote: forward with correct prefix Jim Bender wrote: I hand-edited the wsdl file generated from the Java2WSDL process to remove the duplicate complex type definition and skipped WSDL generation. What I ended up with was a skeleton for a non-document

I am trying to debug this issue with WSDL2Java (probably caused by inexperience with Axis2 Std 1.0)

2006-06-08 Thread Jim Bender
I had been running the WSDL2Java generator from Leafcutter, using the Java Ant task. I switched to building an arg array and running the main(String[]) programmatically, so I can see what is happening. I have been able to make some progress that way, along with trying to get a closer reading of

[Axis2] Java2WSDL problem in Axis2 Std 1.0

2006-06-06 Thread Jim Bender
I am trying to convert my code to use Axis2 Std 1.0 instead of 0.93. The various pieces are all done programmatically, rather than using the plugin, as this is for a product. The Java2WSDL runs without breaking in 1.0, but generates an incorrect file. The toy example I am using uses a complex