Hi,

sorry if this has already been discussed in the mailing list. There have
been so many related messages, that I might overlooked it.

OK, here's my problem. After following the steps described in the
installation guide, I successfully tried the examples mentioned in the user
guide with Axis 1.1. But I'm running into problems when I try the samples of
section "Using WSDL with Axis". I also tried using Axis 1.2 RC2, but it
didn't help. BTW, I'm using Windows XP, Tomcat 5.0 and JDK 1.4.

Here's the error message for the AddressBook example (WSDL2Java) with Axis
1.2 RC2:

------------
D:\ptme\install\Axis\axis-1_2RC2\samples\addr>java
org.apache.axis.wsdl.WSDL2Jav
a AddressBook.wsdl
log4j:WARN No appenders could be found for logger
(org.apache.axis.i18n.ProjectR
esourceBundle).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" java.lang.NoClassDefFoundError:
javax.wsdl.Definition

        at
org.apache.axis.wsdl.toJava.JavaGeneratorFactory.class$(JavaGenerator
Factory.java:71)
        at
org.apache.axis.wsdl.toJava.JavaGeneratorFactory.addDefinitionGenerat
ors(JavaGeneratorFactory.java:182)
        at
org.apache.axis.wsdl.toJava.JavaGeneratorFactory.addGenerators(JavaGe
neratorFactory.java:136)
        at
org.apache.axis.wsdl.toJava.JavaGeneratorFactory.<init>(JavaGenerator
Factory.java:114)
        at org.apache.axis.wsdl.toJava.Emitter.<init>(Emitter.java:142)
        at org.apache.axis.wsdl.WSDL2Java.createParser(WSDL2Java.java:202)
        at org.apache.axis.wsdl.gen.WSDL2.<init>(WSDL2.java:96)
        at org.apache.axis.wsdl.WSDL2Java.<init>(WSDL2Java.java:187)
        at org.apache.axis.wsdl.WSDL2Java.main(WSDL2Java.java:356)
------------

And here comes the error message for sample 6 (Java2WSDL) with Axis 1.2 RC2:

------------
D:\ptme\install\Axis\axis-1_2RC2>java org.apache.axis.wsdl.Java2WSDL -o
wp.wsdl
 -l"http://localhost:8080/axis/services/WidgetPrice"; -n
 "urn:Example6" -p"sampl
es.userguide.example6" "urn:Example6"
samples.userguide.example6.WidgetPrice
log4j:WARN No appenders could be found for logger
(org.apache.axis.i18n.ProjectR
esourceBundle).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" java.lang.NoClassDefFoundError:
javax/wsdl/extensions
/ExtensibilityElement
        at org.apache.axis.wsdl.Java2WSDL.createEmitter(Java2WSDL.java:263)
        at org.apache.axis.wsdl.Java2WSDL.<init>(Java2WSDL.java:254)
        at org.apache.axis.wsdl.Java2WSDL.main(Java2WSDL.java:627)
------------

OK, with Axis 1.1 I did not had the log4j warnings, but that's not the real
problem right now. ;-)

Do you have any idea? It's probably a stupid mistake of mine, because nobody
else has mentioned anything similar. But I just don't see it!

Many thanks in advance!
Dave


Reply via email to