You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Ivano Luberti <lu...@archicoop.it> on 2004/07/14 09:45:28 UTC
newbie: java2WSDL SOAPFault
Hi, just subscribed to the list but i searched all archived message at
http://marc.theaimsgroup.com/
before making this question:
I installed axis 1.1 on tomcat 4.1.30 correctly, used happyaxis pages and
all the test reported in the "Axis Installation Guide"
I used the AdminClient to deploy some of the services in the samples package.
So AXISCALSSPATH is well set.
Now when a try to use the Jawa2WSDL application i get this error:
Exception in thread "main" java.lang.NoClassDefFoundError:
javax/wsdl/extensions
/soap/SOAPFault
at org.apache.axis.wsdl.Java2WSDL.createEmitter(Java2WSDL.java:236)
at org.apache.axis.wsdl.Java2WSDL.<init>(Java2WSDL.java:228)
at org.apache.axis.wsdl.Java2WSDL.main(Java2WSDL.java:541)
I get the exception both using it without args
java -cp %AXISCLASSPATH% org.apache.axis.wsdl.Java2WSDL
and using the example on the guide:
java org.apache.axis.wsdl.Java2WSDL -o
wp.wsdl -l"http://localhost:8080/axis/services/WidgetPrice"
-n "urn:Example6" -p"samples.userguide.example6"
"urn:Example6" samples.userguide.example6.WidgetPrice
So it not depends on the args but on some configuration problem or it's an
AXIS bug.
Thanks in advance for any suggestion.
Re: newbie: java2WSDL SOAPFault
Posted by Ivano Luberti <lu...@archicoop.it>.
Since i've got no responses i wrote to the dev list, they answered me the
problem i was reporting was caused from the fact i didn't have the
wsdl4j.jar in the classpath: i was misleaded by the fact that in the AXIS
guide these are the library to put in the AXIS PATH:
set AXIS_HOME=c:\tomcat\webapps\axis
set AXIS_LIB=%AXIS_HOME%\lib
set AXISCLASSPATH=%AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery.jar;
%AXIS_LIB%\commons-logging.jar;%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\saaj.jar;
%AXIS_LIB%\log4j-1.2.8.jar;%AXIS_LIB%\xml-apis.jar;%AXIS_LIB%\xercesImpl.jar
as you see the wsdl4j.jar is missing and i didn't know that was the jar
where SOAPFAULT is defined (though i should have argued).
At 09.45 14/07/2004, you wrote:
>Hi, just subscribed to the list but i searched all archived message at
>
>http://marc.theaimsgroup.com/
>
>before making this question:
>
>
>I installed axis 1.1 on tomcat 4.1.30 correctly, used happyaxis pages and
>all the test reported in the "Axis Installation Guide"
>
>I used the AdminClient to deploy some of the services in the samples package.
>So AXISCALSSPATH is well set.
>
>Now when a try to use the Jawa2WSDL application i get this error:
>
>Exception in thread "main" java.lang.NoClassDefFoundError:
>javax/wsdl/extensions
>/soap/SOAPFault
> at org.apache.axis.wsdl.Java2WSDL.createEmitter(Java2WSDL.java:236)
> at org.apache.axis.wsdl.Java2WSDL.<init>(Java2WSDL.java:228)
> at org.apache.axis.wsdl.Java2WSDL.main(Java2WSDL.java:541)
>
>
>I get the exception both using it without args
>
>java -cp %AXISCLASSPATH% org.apache.axis.wsdl.Java2WSDL
>
>and using the example on the guide:
>
>
>
>
>java org.apache.axis.wsdl.Java2WSDL -o
>wp.wsdl -l"http://localhost:8080/axis/services/WidgetPrice"
>-n "urn:Example6" -p"samples.userguide.example6"
>"urn:Example6" samples.userguide.example6.WidgetPrice
>
>
>So it not depends on the args but on some configuration problem or it's an
>AXIS bug.
>
>Thanks in advance for any suggestion.
>
----------
logo.jpg
:: N E W S ::
----------
Archimede Informatica presenta il suo nuovo sistema di biglietteria per musei:
met.jpg
BIGLIETTERIA MUSEALE INTEGRATA
Prenotazione, vendita, prevendita, emissione e stampa biglietti in locale
ed online.
[ <http://www.archicoop.it/met>Per approfondimenti ]
----------
Dott. Ivano Mario Luberti
Archimede Informatica s.c. a r.l.
Sede Operativa
Via Gereschi, 36
56126 Pisa
tel.: +39-050-580959
tel/fax: +39-050-9711344
web: www.archicoop.it
e-mail: archimede@archicoop.it