i fixed it in SVN yesterday, we will use AXIS2_HOME from now on.

On 1/13/06, Dong Liu <[EMAIL PROTECTED]> wrote:
> I agree.
>
> However, in my cases, I have both axis 1 and axis2 installed. AXIS_HOME is
> already defined for axis 1, and I had to change the tool .bat files when I
> wanted to use them.
>
> Cheers,
>
> Don
>
>
>  On 1/13/06, Ajith Ranabahu <[EMAIL PROTECTED]> wrote:
> > Hi Dong,all
> > My guess is users would find a bat/sh script very useful if they want to
> get into business directly. take the tomcat example. There's nothing to do
> other than dbl clicking the bat file (or the sh equivalent) to start the
> tomcat server (which I, as a user, find very useful and convenient)
> > We need to provide similar experience to Axis2 users as well.
> >
> >
> >
> > On 1/13/06, Dong Liu < [EMAIL PROTECTED]> wrote:
> > > The same idea is appliable to testing all the samples instead supply the
> .bat and .sh scripts.
> > >
> > > Don
> > >
> > >
> > >
> > >
> > > On 1/13/06, Dong Liu < [EMAIL PROTECTED]> wrote:
> > > > I still think it is better to supply a document to suggest the user to
> create proper classpath definitions in their systems. And run the utils by
> calling the class directly. What do you think?
> > > >
> > > > Cheers,
> > > >
> > > > Don
> > > >
> > > >
> > > >
> > > > On 1/13/06, Davanum Srinivas <[EMAIL PROTECTED] > wrote:
> > > > > hmm, we should switch to "%*" instead of listing "%1 %2..."
> > > > >
> > > > > Ruben can u please try editing the bat file and do that?
> > > > >
> > > > > thanks,
> > > > > -- dims
> > > > >
> > > > > On 1/13/06, Ajith Ranabahu < [EMAIL PROTECTED]> wrote:
> > > > > > Hi,
> > > > > >  This is not really a bug in the codegen but in the script. If you
> have a
> > > > > > look at the shell script you'll see that it takes only the first 9
> arguments
> > > > > > and not the rest! Same issue is with the bat file.
> > > > > >
> > > > > >
> > > > > > On 1/13/06, Davanum Srinivas <[EMAIL PROTECTED] > wrote:
> > > > > > > Rubén,
> > > > > > >
> > > > > > > Please log a jira issue and upload your wsdl.
> > > > > > >
> > > > > > > thanks,
> > > > > > > dims
> > > > > > >
> > > > > > > On 1/13/06, Rubén Naranjo Izquierdo < [EMAIL PROTECTED]>
> wrote:
> > > > > > > >   Hi all,
> > > > > > > >
> > > > > > > >   I've been using Axis2-0.94 wsdl2java this last two days and
> I've
> > > > > > realized that "-p" and "-pn" options have no efect when compiling
> my wsdl. I
> > > > > > mean, they have no effect.
> > > > > > > >
> > > > > > > >   But the real weird thing comes when I change the order of
> the
> > > > > > parameters in wsdl2java call. With the following call:
> > > > > > > >
> > > > > > > > ./WSDL2Java.sh -uri $HOME/project/wsdl/mywsdl.wsdl -ss -sd -t
> -d
> > > > > > xmlbeans -o $HOME/project/ -p org.objectweb.service -sn MyService
> -pn
> > > > > > MySecondPortType
> > > > > > > >
> > > > > > > >   I get the code generated (in default package) and this
> output:
> > > > > > > >
> > > > > > > > Warning - Multiple endpoints found - picking the first
> endpoint!
> > > > > > > >
> > > > > > > >
> > > > > > > >   But with the following call (note that is the same call, but
> with the
> > > > > > parameters's order canged):
> > > > > > > >
> > > > > > > > ./WSDL2Java.sh -uri $HOME/project/wsdl/mywsdl.wsdl -o
> $HOME/project/ -p
> > > > > > org.objectweb.service -t -ss -sd -d xmlbeans -sn MyService -pn
> > > > > > MySecondPortType
> > > > > > > >
> > > > > > > >  I get the following exception with no code generated:
> > > > > > > >
> > > > > > > > Exception in thread "main"
> > > > > >
> org.apache.axis2.wsdl.codegen.CodeGenerationException:
> > > > > > java.lang.RuntimeException :
> > > > > > java.lang.IllegalArgumentException: Local part
> not allowed
> > > > > > to be null
> > > > > > > >         at
> > > > > >
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:118)
> > > > > > > >         at
> org.apache.axis2.wsdl.WSDL2Code.main
> > > > > > (WSDL2Code.java:31)
> > > > > > > >         at
> > > > > >
> org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> > > > > > > > Caused by: java.lang.RuntimeException:
> > > > > > java.lang.IllegalArgumentException: Local part
> not allowed
> > > > > > to be null
> > > > > > > >         at
> > > > > >
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:152)
> > > > > > > >         at
> > > > > >
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:80)
> > > > > > > >         ... 2 more
> > > > > > > > Caused by:
> java.lang.IllegalArgumentException: Local
> > > > > > part not allowed to be null
> > > > > > > >         at javax.xml.namespace.QName.<init>(QName.java:85)
> > > > > > > >         at javax.xml.namespace.QName.<init>( QName.java:70)
> > > > > > > >         at
> > > > > >
> org.apache.ws.commons.schema.XmlSchemaType.getQName
> (XmlSchemaType.java:91)
> > > > > > > >         at
> > > > > >
> org.apache.ws.commons.schema.SchemaBuilder.handleElement(SchemaBuilder.java:1496)
> > > > > > > >         at
> > > > > >
> org.apache.ws.commons.schema.SchemaBuilder.handleSequence
> (SchemaBuilder.java:979)
> > > > > > > >         at
> > > > > >
> org.apache.ws.commons.schema.SchemaBuilder.handleComplexContentExtension(SchemaBuilder.java:895)
> > > > > > > >         at
> > > > > >
> org.apache.ws.commons.schema.SchemaBuilder.handleComplexContent
> > > > > > (SchemaBuilder.java:684)
> > > > > > > >         at
> > > > > >
> org.apache.ws.commons.schema.SchemaBuilder.handleComplexType(SchemaBuilder.java:592)
> > > > > > > >         at
> > > > > >
> org.apache.ws.commons.schema.SchemaBuilder.handleElement
> (SchemaBuilder.java
> > > > > > :1501)
> > > > > > > >         at
> > > > > >
> org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:107)
> > > > > > > >         at
> > > > > >
> org.apache.ws.commons.schema.XmlSchemaCollection.read
> (XmlSchemaCollection.java:233)
> > > > > > > >         at
> > > > > >
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:86)
> > > > > > > >         ... 3 more
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Davanum Srinivas : http://wso2.com/blogs/
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Ajith Ranabahu
> > > > >
> > > > >
> > > > > --
> > > > > Davanum Srinivas : http://wso2.com/blogs/
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
> >
> > --
> > Ajith Ranabahu
>
>


--
Davanum Srinivas : http://wso2.com/blogs/

Reply via email to