RE: [Axis2] NPE trying to use eclipse code-gen plugin

2005-06-11 Thread Chathura Herath

Great... This looks like a First page of the Developer guide to me. Think we
should put this in a wiki until such time we write the things down and make
it a complete developer guide.
Thanks 
Chathura


> 
> You're so right about the deps. I've written down the list of all
> project dependencies and external jar files, so the next newbie can use
> it:
> 
> OM == .xml module.
> 
> OM: (Project org.apache.ws.axis2.xml)
> - Dependency to jsr173_api.jar (javax.namespace..)
> - Dependency to commons-logging.jar (Logging)
> 
> WSDL: (Project org.apache.ws.axis2.wsdl)
> - Dependency to jsr173_api.jar
> - Dependency to wsdl4j-1.5.1.jar
> - Dependency to Project org.apache.ws.axis2.xml (OM)
> 
> CORE: (Project org.apache.ws.axis2.core)
> - Dependency to jsr173_api.jar
> - Dependency to commons-logging.jar
> - Dependency to wsdl4j-1.5.1.jar
> - Dependency to mailapi_1_3_1.jar
> - Dependency to servlet.jar
> - Dependency to Project org.apache.ws.axis2.xml (OM)
> - Dependency to Project org.apache.ws.axis2.wsdl (WSDL)
> 
> Addressing: (Project org.apache.ws.axis2.addressing)
> - Dep. to Project org.apache.ws.axis2.core
> - Dep. to Project org.apache.ws.axis2.xmlö
> - Dep. to jsr173_api.jar
> - Dep. to commons-logging.jar
> 
> SAAJ: (Project org.apache.ws.axis2.saaj)
> - Dep. to jsr173_api.jar
> - Dep. to activation.jar
> - Dep. to Project org.apache.ws.axis2.addressing
> - Dep. to Project org.apache.ws.axis2.core
> - Dep. to Project org.apache.ws.axis2.xml
> 
> Samples: (Project org.apache.ws.axis2.samples)
> - Dep. to Project org.apache.ws.axis2.core
> - Dep. to Project org.apache.ws.axis2.wsdl
> - Dep. to Project org.apache.ws.axis2.xml
> - Dep. to commons-logging.jar
> - Dep. to jsr173_api.jar
> 
> Tool: (project org.apache.ws.axis2.tool.code-gen)
> - Dep. to ant-1.6.jar
> - Dep. to wsdl4j-1.5.1jar
> - Dep. to Project org.apache.ws.axis2.wsdl
> 
> I'm currently on the CodegenWizard and will provide the preferences
> enhancements as patch.
> 
> regards
> Mike
> 
> 
> Chathura Herath schrieb:
> > Hi Mike.
> >
> > First of all thank you for the input
> >
> > I am creating a Eclipse projects for each module and there are no cyclic
> > dependencies. It cannot be the case.
> > I ll list the dependencies ..
> >
> > OM No dependencies
> > WSDL  --> OM
> > CORE --> OM &WSDL
> > Addressing --> CORE &OM
> > SAAJ --> CORE & Addressing & OM
> > Samples --> CORE & WSDL & OM
> > TOOl --> WSDL
> >
> > That's it .. No cyclic references.
> >
> > Moving to Plug-in ...
> >
> > Saving the values in the store/preference definite +1
> >
> > Regarding the check box issue... We might want to generate both server
> side
> > and client side at the same time along with a test case. For the test
> case
> > to work both the server side and the client side should be generated.
> (The
> > test case that is generated will create a dummy implementation of the
> > service and deploy it in a SimpleHttpServer and use the Stubs that was
> > generated to invoke the operations.)
> > That was the idea.
> >
> > If this leads to user confusion then of course we can put a radio button
> and
> > if the test case option is selected we ll generate both server side and
> > client side.
> >
> > Comments??
> >
> >
> >
> > Thanks.
> > Chathura
> >
> > -Original Message-
> > From: Mike Haller [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, June 09, 2005 9:18 PM
> > To: axis-dev@ws.apache.org
> > Subject: Re: [Axis2] NPE trying to use eclipse code-gen plugin
> >
> > Hi Chathura,
> >
> > thanks for working on this so fast!!! That's incredible :-]
> > [AXIS2-25]
> >
> > After trying to recompile Axis2 the last few hours (i tried to use the
> > modules as separated projects in the eclipse workspace, and that wasn't
> > a good idea -> cyclic dependencies and such).
> >
> > The patch worked fine!
> >
> > Comments on the plugin:
> > - please replace the checkbox "Generate serverside code" with a radio
> > button, since only one of client OR server is generated. Checking server
> > checkbox automatically disables generating client stubs. Alternatively
> > change the label to "Generate serverside code instead of clientside
> code" :)
> > - please save the values in a store/preference, so you don't always have
> > to type them in all over again.
> >
> > Again, thanks for the

Re: [Axis2] NPE trying to use eclipse code-gen plugin

2005-06-10 Thread Mike Haller

Chathura, you're the best :-) Like dims, who fixed the bug so fast hehe.

You're so right about the deps. I've written down the list of all
project dependencies and external jar files, so the next newbie can use it:

OM == .xml module.

OM: (Project org.apache.ws.axis2.xml)
- Dependency to jsr173_api.jar (javax.namespace..)
- Dependency to commons-logging.jar (Logging)

WSDL: (Project org.apache.ws.axis2.wsdl)
- Dependency to jsr173_api.jar
- Dependency to wsdl4j-1.5.1.jar
- Dependency to Project org.apache.ws.axis2.xml (OM)

CORE: (Project org.apache.ws.axis2.core)
- Dependency to jsr173_api.jar
- Dependency to commons-logging.jar
- Dependency to wsdl4j-1.5.1.jar
- Dependency to mailapi_1_3_1.jar
- Dependency to servlet.jar
- Dependency to Project org.apache.ws.axis2.xml (OM)
- Dependency to Project org.apache.ws.axis2.wsdl (WSDL)

Addressing: (Project org.apache.ws.axis2.addressing)
- Dep. to Project org.apache.ws.axis2.core
- Dep. to Project org.apache.ws.axis2.xmlö
- Dep. to jsr173_api.jar
- Dep. to commons-logging.jar

SAAJ: (Project org.apache.ws.axis2.saaj)
- Dep. to jsr173_api.jar
- Dep. to activation.jar
- Dep. to Project org.apache.ws.axis2.addressing
- Dep. to Project org.apache.ws.axis2.core
- Dep. to Project org.apache.ws.axis2.xml

Samples: (Project org.apache.ws.axis2.samples)
- Dep. to Project org.apache.ws.axis2.core
- Dep. to Project org.apache.ws.axis2.wsdl
- Dep. to Project org.apache.ws.axis2.xml
- Dep. to commons-logging.jar
- Dep. to jsr173_api.jar

Tool: (project org.apache.ws.axis2.tool.code-gen)
- Dep. to ant-1.6.jar
- Dep. to wsdl4j-1.5.1jar
- Dep. to Project org.apache.ws.axis2.wsdl

I'm currently on the CodegenWizard and will provide the preferences
enhancements as patch.

regards
Mike


Chathura Herath schrieb:

Hi Mike.

First of all thank you for the input

I am creating a Eclipse projects for each module and there are no cyclic
dependencies. It cannot be the case. 
I ll list the dependencies ..


OM No dependencies
WSDL  --> OM
CORE --> OM &WSDL
Addressing --> CORE &OM
SAAJ --> CORE & Addressing & OM
Samples --> CORE & WSDL & OM
TOOl --> WSDL

That's it .. No cyclic references. 


Moving to Plug-in ...

Saving the values in the store/preference definite +1 


Regarding the check box issue... We might want to generate both server side
and client side at the same time along with a test case. For the test case
to work both the server side and the client side should be generated. (The
test case that is generated will create a dummy implementation of the
service and deploy it in a SimpleHttpServer and use the Stubs that was
generated to invoke the operations.) 
That was the idea. 


If this leads to user confusion then of course we can put a radio button and
if the test case option is selected we ll generate both server side and
client side.

Comments??



Thanks.
Chathura

-Original Message-
From: Mike Haller [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 09, 2005 9:18 PM

To: axis-dev@ws.apache.org
Subject: Re: [Axis2] NPE trying to use eclipse code-gen plugin

Hi Chathura,

thanks for working on this so fast!!! That's incredible :-]
[AXIS2-25]

After trying to recompile Axis2 the last few hours (i tried to use the 
modules as separated projects in the eclipse workspace, and that wasn't 
a good idea -> cyclic dependencies and such).


The patch worked fine!

Comments on the plugin:
- please replace the checkbox "Generate serverside code" with a radio 
button, since only one of client OR server is generated. Checking server 
checkbox automatically disables generating client stubs. Alternatively 
change the label to "Generate serverside code instead of clientside code" :)
- please save the values in a store/preference, so you don't always have 
to type them in all over again.


Again, thanks for the fast patch!

regards
Mike

Chathura Herath schrieb:


Hi Mike,
Think this is a problem and I just opened a JIRA issue on this. 
Issue is fixed now. Please take an update and check. Can I check in your

WSDL for a test case???
Thanks.
Chathura

-Original Message-
From: Mike Haller [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 09, 2005 2:32 PM

To: axis-dev@ws.apache.org
Subject: Re: [Axis2] NPE trying to use eclipse code-gen plugin

Hi,

attached you will find my wsdl, the imported schema and the complete 
plugin errorlog. I hope this is not against the axis-dev policies (to 
attach files).


regards
Mike


Chathura Herath schrieb:



Can I have a look at the WSDL???
On 6/8/05, Mike Haller <[EMAIL PROTECTED]> wrote:



Hey,
i was able to compile axis2 src and create an eclipse plugin
Btw, the /modules/tool/maven.xml doesn't create a ".project" file for
the eclipse plugins - any reason? if it would create the .project files,
too, you could import the folder directly as projects. Then, you don't
need to manually create a Plug-In Pro