I had this problem too (and was able to quickly replicate rickcr's error below). The solution I found was to avoid using wsdl2java.sh and instead using the code directly in that shell script:
./axis2.sh org.apache.axis2.wsdl.WSDL2Java (place your params like -uri here) For some reason, that worked for me. Another option--one I would recommend--is to use the Apache Ant task for code generation instead: http://ws.apache.org/axis2/tools/1_1/CodegenToolReference.html#ant Glen Am Donnerstag, den 03.05.2007, 09:46 -0700 schrieb rickcr: > > > Hans-Ulrich Klein wrote: > > > > I wrote a wsdl 2.0 file and tried to generate skeletons with > > wsdl2java.sh (axis2-1.2). After some unsuccessful attempts I used the > > wsdl-file given in the w3c wsdl-primer (example 2-1): > > http://www.w3.org/TR/2007/WD-wsdl20-primer-20070326/#basics-greath-scenario > > (I attached the wsdl-file at the end of this mail.) > > > > > > The first weird error appeared in the axis2.sh: > > > > $ /opt/axis2-1.2/bin/wsdl2java.sh -uri myTest.wsdl -o . -s -d xmlbeans > > -wv 2 -ss -sd > > Using AXIS2_HOME: /opt/axis2-1.2 > > Using JAVA_HOME: /usr/lib/jvm/java-6-sun > > /opt/axis2-1.2/bin/axis2.sh: line 38: [: !=: unary operator expected > > Unrecognized option: -uri > > Could not create the Java virtual machine. > > > > I am receiving an identical error. Just doing wsdl2java.sh -uri will > generate the problem described above. (I'm trying it with just wsdl2java.sh > -uri pathToMyWsdl and getting the same error.) > > Is there a fix for this? Thanks. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
