Hi all, (especially Lopez, Kondapalli,
Ashley)
Finally, after doing 3 days of brain storming.. I
have come to a solution for WSDL2Java problem where it throws Exception at
different levels.....
It involves two prblems....
1) Your classpath variable limit; which is 1024
characters on Windows Sytems (2k professional and all)...
2) Inclusion of all required .jars files into your
classpath variable that come with Axis.
For the solution... I have made two System
variables... one is CLASSPATH and the other is
CLASSPATH1
Now, when I want to run this command (>java org.apache.axis.wsdl.WSDL2Java
AddressBook.wsdl), I set the CLASSPATH variable
before...like
>set
CLASSPATH=%CLASSPATH%%CLASSPATH1%
My details of both variables are
below:
CLASSPATH=.;%JAVA_HOME%\lib\;%JAVA_HOME%\lib\tools.jar;%JAVA_ENDORSED%\jdbc-ext.jar;%JAVA_ENDORSED%\jta.jar;%JAVA_ENDORSED%\log4j.jar;%JAVA_ENDORSED%\saaj.jar;
CLASSPATH1=%JAVA_ENDORSED%\active.jar;%JAVA_ENDORSED%\ant.jar;%JAVA_ENDORSED%\axis.jar;%JAVA_ENDORSED%\axis-ant.jar;%JAVA_ENDORSED%\com-coll.jar;%JAVA_ENDORSED%\com-disc.jar;%JAVA_ENDORSED%\com-log.jar;%JAVA_ENDORSED%\com-log-api.jar;%JAVA_ENDORSED%\com-pool.jar;%JAVA_ENDORSED%\jaxrpc.jar;%JAVA_ENDORSED%\nam-com.jar;%JAVA_ENDORSED%\nam-fac.jar;%JAVA_ENDORSED%\nam-res.jar;%JAVA_ENDORSED%\xerces.jar;%JAVA_ENDORSED%\xml-apis.jar;%JAVA_ENDORSED%\mail.jar;%JAVA_ENDORSED%\wsdl4j.jar;%JAVA_ENDORSED%\com-disc.jar;%JAVA_ENDORSED%\com-dbcp.jar;%JAVA_ENDORSED%\jas-comp.jar;%JAVA_ENDORSED%\jas-run.jar;%JAVA_ENDORSED%\jdbc-ext.jar;
where
JAVA_ENDORSED=C:\j2sdk1.4.2_03\jre\lib\endorsed
(You can put all the files into lib folder of Java,
but I prefer to put the files in endorsed folder...)
I've shortened the names of all .jars files but
these are still readable....I have made a .bat file which I
exectue before using the WSDL2Java utility...and this .bat
contains the command that I showed earlier... (>set
CLASSPATH=%CLASSPATH%%CLASSPATH1%)
Have fun!!!
Safdar.
|
Title: Message
- RE: WSDL2JAVA problem Han Wang
- RE: WSDL2JAVA problem Agrawal, Anuj (Anuj)** CTR **
- RE: WSDL2JAVA problem Alan Moore
- Re: WSDL2JAVA problem Steve Loughran
- RE: WSDL2JAVA problem Agrawal, Anuj (Anuj)** CTR **
- WSDL2Java problem Safdar Ali
- Re: WSDL2Java problem siva kondapalli
- Re: WSDL2Java problem Ashley Waite
- Re: WSDL2Java problem Safdar Ali
- RE: WSDL2Java problem Ransel Lopez
- WSDL2Java Problem Safdar Ali
- WSDL2Java Problem Ian Baxter
- wsdl2java problem noelamannion
- wsdl2java problem noelamannion
- WSDL2JAVA Problem Conrad
- Re: WSDL2JAVA Problem tony . q . weddle