You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Dong Liu <ed...@gmail.com> on 2006/01/16 19:04:28 UTC
[Axis2] unwanted package name "src" generated in .94 Eclipse code generator plugin generator 1.1.0
Hi, folks,
When I generate java code using 0.94 axis2 Eclipse code generator plugin
generator 1.1.0, an unwanted "src" created as the first hierarchy of my
package name. E.g. instead of generating the code in /pName, it generates
/src/pName .
Should I put it in JIRA?
Cheers,
Don
Re: [Axis2] unwanted package name "src" generated in .94 Eclipse code generator plugin generator 1.1.0
Posted by Ajith Ranabahu <aj...@gmail.com>.
I kind of like the way where you get the generated source inside src,
resources such as services.xml (and schema*.xsb files in the case of
XMLbeans) inside resources and so on.
It makes things neat and easy to work with. besides we generate a build XML
which by executing would compile the code :)
On 1/17/06, Sanjiva Weerawarana <sa...@opensource.lk> wrote:
>
> On Mon, 2006-01-16 at 19:41 -0500, Davanum Srinivas wrote:
> > Sanjiva,
> >
> > FYI, the changes in codegen enables a complete directory structure
> > (maven-like) with separate src, resource and test trees and a
> > build.xml in the root. build.xml reuses the directory structure and
> > adds a build directory with classes under it as necessary.
>
> +1 .. but I don't think we should be forcing it on people. I'd like to
> see the default behavior being "create a stub here and now" or "create a
> skeleton here and now" with an option to generate a full scale
> maven-like project structure.
>
> Thoughts?
>
> Sanjiva.
>
>
>
--
Ajith Ranabahu
Re: [Axis2] unwanted package name "src" generated in .94 Eclipse
code generator plugin generator 1.1.0
Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
On Mon, 2006-01-16 at 19:41 -0500, Davanum Srinivas wrote:
> Sanjiva,
>
> FYI, the changes in codegen enables a complete directory structure
> (maven-like) with separate src, resource and test trees and a
> build.xml in the root. build.xml reuses the directory structure and
> adds a build directory with classes under it as necessary.
+1 .. but I don't think we should be forcing it on people. I'd like to
see the default behavior being "create a stub here and now" or "create a
skeleton here and now" with an option to generate a full scale
maven-like project structure.
Thoughts?
Sanjiva.
Re: [Axis2] unwanted package name "src" generated in .94 Eclipse code generator plugin generator 1.1.0
Posted by Davanum Srinivas <da...@gmail.com>.
Sanjiva,
FYI, the changes in codegen enables a complete directory structure
(maven-like) with separate src, resource and test trees and a
build.xml in the root. build.xml reuses the directory structure and
adds a build directory with classes under it as necessary.
thanks,
dims
On 1/16/06, Sanjiva Weerawarana <sa...@opensource.lk> wrote:
> On Mon, 2006-01-16 at 12:18 -0600, Dong Liu wrote:
> > The same behavior found for the command line.
> >
> > On 1/16/06, Dong Liu <ed...@gmail.com> wrote:
> > Hi, folks,
> >
> > When I generate java code using 0.94 axis2 Eclipse code
> > generator plugin generator 1.1.0, an unwanted "src" created as
> > the first hierarchy of my package name. E.g. instead of
> > generating the code in /pName, it generates /src/pName .
> >
> > Should I put it in JIRA?
>
> +1.
>
> Sanjiva.
>
>
>
>
--
Davanum Srinivas : http://wso2.com/blogs/
Re: [Axis2] unwanted package name "src" generated in .94 Eclipse
code generator plugin generator 1.1.0
Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
On Mon, 2006-01-16 at 12:18 -0600, Dong Liu wrote:
> The same behavior found for the command line.
>
> On 1/16/06, Dong Liu <ed...@gmail.com> wrote:
> Hi, folks,
>
> When I generate java code using 0.94 axis2 Eclipse code
> generator plugin generator 1.1.0, an unwanted "src" created as
> the first hierarchy of my package name. E.g. instead of
> generating the code in /pName, it generates /src/pName .
>
> Should I put it in JIRA?
+1.
Sanjiva.
Re: [Axis2] unwanted package name "src" generated in .94 Eclipse code generator plugin generator 1.1.0
Posted by Dong Liu <ed...@gmail.com>.
Thank you, Ajith,
I just checked the stylesheet, and found the line you mentioned. The error
is fixed when I changed the DatabindingTemplate.xsl. By the way, the place
is at line 157 in my editor without word-wrap.
On 1/16/06, Ajith Ranabahu <aj...@gmail.com> wrote:
>
> Hi Dong,
> I just checked the templates and yes, there's an extra ")" in the template
> for the databinding =none case. I just made the fix and commited.
> For you to make this work look for the xsl template
> DatabindingTemplate.xsl in org.apache.axis2.wsdl.template.java package.
> Remove the extra parenthesis at line 228. No recompilation is needed.
>
> Sorry for the trouble.
>
> Ajith
> --
> Ajith Ranabahu
Re: [Axis2] unwanted package name "src" generated in .94 Eclipse code generator plugin generator 1.1.0
Posted by Ajith Ranabahu <aj...@gmail.com>.
Hi Dong,
I just checked the templates and yes, there's an extra ")" in the template
for the databinding =none case. I just made the fix and commited.
For you to make this work look for the xsl template DatabindingTemplate.xslin
org.apache.axis2.wsdl.template.java package. Remove the extra parenthesis
at line 228. No recompilation is needed.
Sorry for the trouble.
Ajith
On 1/17/06, Dong Liu <ed...@gmail.com> wrote:
>
> The generated code has syntax errors. In my case, one more ")" appears in
> the line
>
> > private org.apache.axis2.soap.SOAPEnvelope toEnvelope(
> > org.apache.axis2.soap.SOAPFactory factory, org.apache.axis2.om.OMElementparam){
> > org.apache.axis2.soap.SOAPEnvelope envelope =
> > factory.getDefaultEnvelope ();
> > envelope.getBody().addChild(param));
> > return envelope;
> > }
> >
>
>
> On 1/16/06, Dong Liu <ed...@gmail.com> wrote:
> >
> > The same behavior found for the command line.
> >
> > On 1/16/06, Dong Liu < edongliu@gmail.com> wrote:
> > >
> > > Hi, folks,
> > >
> > > When I generate java code using 0.94 axis2 Eclipse code generator
> > > plugin generator 1.1.0, an unwanted "src" created as the first
> > > hierarchy of my package name. E.g. instead of generating the code in
> > > /pName, it generates /src/pName .
> > >
> > > Should I put it in JIRA?
> > >
> > > Cheers,
> > >
> > > Don
> > >
> >
> >
>
--
Ajith Ranabahu
Re: [Axis2] unwanted package name "src" generated in .94 Eclipse
code generator plugin generator 1.1.0
Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
On Mon, 2006-01-16 at 12:23 -0600, Dong Liu wrote:
> The generated code has syntax errors. In my case, one more ")" appears
> in the line
> private org.apache.axis2.soap.SOAPEnvelope
> toEnvelope(org.apache.axis2.soap.SOAPFactory factory,
> org.apache.axis2.om.OMElement param){
> org.apache.axis2.soap.SOAPEnvelope envelope =
> factory.getDefaultEnvelope ();
> envelope.getBody().addChild(param));
> return envelope;
> }
Can you open a JIRA with the WSDL that shows the error please?
Thanks,
Sanjiva.
Re: [Axis2] unwanted package name "src" generated in .94 Eclipse
code generator plugin generator 1.1.0
Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
On Mon, 2006-01-16 at 14:52 -0600, Dong Liu wrote:
> I found now <operation/> entries are not in the generated services.xml
> by WSDL2Java which used to be there in .93 and .92. Is this designed
> change?
Yes .. if the WSDL is around the operations come from there. You need to
list it in services.xml IFF you want to do something with that operation
(engage a module, have a different message receiver etc.).
Motivating principle was DRY: Don't Repeat Yourself.
Sanjiva.
Re: [Axis2] unwanted package name "src" generated in .94 Eclipse
code generator plugin generator 1.1.0
Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
On Mon, 2006-01-16 at 15:58 -0600, Dong Liu wrote:
> When I changed the generated services.xml by adding an entry for an
> operation like the follows, the deployment on axis2 failed, and the
> errors were something like class cannot be found.
>
> <operation name="opName">
> <messageReceiver class="theMessageReceiver" />
> </operation>
>
> However, everything is OK with the original generated services.xml .
Do you have the class "theMessageReceiver" in your aar or is it one of
the standard ones? Please post the error ..
Sanjiva.
Re: [Axis2] unwanted package name "src" generated in .94 Eclipse code generator plugin generator 1.1.0
Posted by Dong Liu <ed...@gmail.com>.
Hi, Ajith,
I rechecked my services.xml that I have changed and put into the aar, and
found that I made a mistake to type "TheMessageReceiver" as "
theMessageReceiver". Therefore the errors are reasonable. After I fixed
that, everything works just as the aar with the generated services.xml
Thank you,
Don
On 1/16/06, Ajith Ranabahu <aj...@gmail.com> wrote:
>
> Hmmm...
> this is weird. Please make sure that "theMessageReceiver" class is in the
> class path. If you can post the stack trace, it'll be quite helpful.
>
> On 1/17/06, Dong Liu <ed...@gmail.com> wrote:
> >
> > When I changed the generated services.xml by adding an entry for an
> > operation like the follows, the deployment on axis2 failed, and the errors
> > were something like class cannot be found.
> >
> > <operation name="opName">
> > > <messageReceiver class="theMessageReceiver" />
> > > </operation>
> >
> >
> > However, everything is OK with the original generated services.xml .
> >
> >
> >
> --
> Ajith Ranabahu
Re: [Axis2] unwanted package name "src" generated in .94 Eclipse code generator plugin generator 1.1.0
Posted by Ajith Ranabahu <aj...@gmail.com>.
Hmmm...
this is weird. Please make sure that "theMessageReceiver" class is in the
class path. If you can post the stack trace, it'll be quite helpful.
On 1/17/06, Dong Liu <ed...@gmail.com> wrote:
>
> When I changed the generated services.xml by adding an entry for an
> operation like the follows, the deployment on axis2 failed, and the errors
> were something like class cannot be found.
>
> <operation name="opName">
> > <messageReceiver class="theMessageReceiver" />
> > </operation>
>
>
> However, everything is OK with the original generated services.xml .
>
>
>
>
> On 1/16/06, Dong Liu <ed...@gmail.com> wrote:
> >
> > I found now <operation/> entries are not in the generated services.xmlby WSDL2Java which used to be there in .93 and .92. Is this designed change?
> >
> >
> > On 1/16/06, Dong Liu <ed...@gmail.com> wrote:
> > >
> > > The generated code has syntax errors. In my case, one more ")" appears
> > > in the line
> > >
> > > > private org.apache.axis2.soap.SOAPEnvelope toEnvelope(
> > > > org.apache.axis2.soap.SOAPFactory factory,
> > > > org.apache.axis2.om.OMElement param){
> > > > org.apache.axis2.soap.SOAPEnvelope envelope =
> > > > factory.getDefaultEnvelope ();
> > > > envelope.getBody().addChild(param));
> > > > return envelope;
> > > > }
> > > >
> > >
> > >
> > > On 1/16/06, Dong Liu <ed...@gmail.com> wrote:
> > > >
> > > > The same behavior found for the command line.
> > > >
> > > > On 1/16/06, Dong Liu < edongliu@gmail.com> wrote:
> > > > >
> > > > > Hi, folks,
> > > > >
> > > > > When I generate java code using 0.94 axis2 Eclipse code generator
> > > > > plugin generator 1.1.0, an unwanted "src" created as the first
> > > > > hierarchy of my package name. E.g. instead of generating the code
> > > > > in /pName, it generates /src/pName .
> > > > >
> > > > > Should I put it in JIRA?
> > > > >
> > > > > Cheers,
> > > > >
> > > > > Don
> > > > >
> > > >
> > > >
> > >
> >
>
--
Ajith Ranabahu
Re: [Axis2] unwanted package name "src" generated in .94 Eclipse code generator plugin generator 1.1.0
Posted by Dong Liu <ed...@gmail.com>.
When I changed the generated services.xml by adding an entry for an
operation like the follows, the deployment on axis2 failed, and the errors
were something like class cannot be found.
<operation name="opName">
> <messageReceiver class="theMessageReceiver" />
> </operation>
However, everything is OK with the original generated services.xml.
On 1/16/06, Dong Liu <ed...@gmail.com> wrote:
>
> I found now <operation/> entries are not in the generated services.xml by
> WSDL2Java which used to be there in .93 and .92. Is this designed change?
>
> On 1/16/06, Dong Liu <ed...@gmail.com> wrote:
> >
> > The generated code has syntax errors. In my case, one more ")" appears
> > in the line
> >
> > > private org.apache.axis2.soap.SOAPEnvelope toEnvelope(
> > > org.apache.axis2.soap.SOAPFactory factory,
> > > org.apache.axis2.om.OMElement param){
> > > org.apache.axis2.soap.SOAPEnvelope envelope =
> > > factory.getDefaultEnvelope ();
> > > envelope.getBody().addChild(param));
> > > return envelope;
> > > }
> > >
> >
> >
> > On 1/16/06, Dong Liu <ed...@gmail.com> wrote:
> > >
> > > The same behavior found for the command line.
> > >
> > > On 1/16/06, Dong Liu < edongliu@gmail.com> wrote:
> > > >
> > > > Hi, folks,
> > > >
> > > > When I generate java code using 0.94 axis2 Eclipse code generator
> > > > plugin generator 1.1.0, an unwanted "src" created as the first
> > > > hierarchy of my package name. E.g. instead of generating the code in
> > > > /pName, it generates /src/pName .
> > > >
> > > > Should I put it in JIRA?
> > > >
> > > > Cheers,
> > > >
> > > > Don
> > > >
> > >
> > >
> >
>
Re: [Axis2] unwanted package name "src" generated in .94 Eclipse code generator plugin generator 1.1.0
Posted by Dong Liu <ed...@gmail.com>.
I found now <operation/> entries are not in the generated services.xml by
WSDL2Java which used to be there in .93 and .92. Is this designed change?
On 1/16/06, Dong Liu <ed...@gmail.com> wrote:
>
> The generated code has syntax errors. In my case, one more ")" appears in
> the line
>
> > private org.apache.axis2.soap.SOAPEnvelope toEnvelope(
> > org.apache.axis2.soap.SOAPFactory factory, org.apache.axis2.om.OMElementparam){
> > org.apache.axis2.soap.SOAPEnvelope envelope =
> > factory.getDefaultEnvelope ();
> > envelope.getBody().addChild(param));
> > return envelope;
> > }
> >
>
>
> On 1/16/06, Dong Liu <ed...@gmail.com> wrote:
> >
> > The same behavior found for the command line.
> >
> > On 1/16/06, Dong Liu < edongliu@gmail.com> wrote:
> > >
> > > Hi, folks,
> > >
> > > When I generate java code using 0.94 axis2 Eclipse code generator
> > > plugin generator 1.1.0, an unwanted "src" created as the first
> > > hierarchy of my package name. E.g. instead of generating the code in
> > > /pName, it generates /src/pName .
> > >
> > > Should I put it in JIRA?
> > >
> > > Cheers,
> > >
> > > Don
> > >
> >
> >
>
Re: [Axis2] unwanted package name "src" generated in .94 Eclipse code generator plugin generator 1.1.0
Posted by Dong Liu <ed...@gmail.com>.
The generated code has syntax errors. In my case, one more ")" appears in
the line
> private org.apache.axis2.soap.SOAPEnvelope toEnvelope(
> org.apache.axis2.soap.SOAPFactory factory, org.apache.axis2.om.OMElementparam){
> org.apache.axis2.soap.SOAPEnvelope envelope =
> factory.getDefaultEnvelope();
> envelope.getBody().addChild(param));
> return envelope;
> }
>
On 1/16/06, Dong Liu <ed...@gmail.com> wrote:
>
> The same behavior found for the command line.
>
> On 1/16/06, Dong Liu <ed...@gmail.com> wrote:
> >
> > Hi, folks,
> >
> > When I generate java code using 0.94 axis2 Eclipse code generator plugin
> > generator 1.1.0, an unwanted "src" created as the first hierarchy of my
> > package name. E.g. instead of generating the code in /pName, it
> > generates /src/pName .
> >
> > Should I put it in JIRA?
> >
> > Cheers,
> >
> > Don
> >
>
>
Re: [Axis2] unwanted package name "src" generated in .94 Eclipse code generator plugin generator 1.1.0
Posted by Dong Liu <ed...@gmail.com>.
The same behavior found for the command line.
On 1/16/06, Dong Liu <ed...@gmail.com> wrote:
>
> Hi, folks,
>
> When I generate java code using 0.94 axis2 Eclipse code generator plugin
> generator 1.1.0, an unwanted "src" created as the first hierarchy of my
> package name. E.g. instead of generating the code in /pName, it generates
> /src/pName .
>
> Should I put it in JIRA?
>
> Cheers,
>
> Don
>