Both of these recent posts were about the same problem--the java2wsdl maven2 plugin doesn't appear to use the current project's classpath to resolve the class to convert to wsdl.

I'm also having the same problem, and even downloaded the plugin source to look into it (the issue doesn't seem to be explicitly handled). Which means that at the very least the documentation should state that a jar dependency entry in the plugin element is necessary.

Is this the right list to ask about this?

Thanks,

--john

Re:  Classpath Problem using Maven2 plugin java2wsdl
"Kehren, Peter (regio iT)" <Peter.Kehren () regioit-aachen ! de> wrote:
Hi,

I'm trying to generate wsdl informations using the maven2 plugin
java2wsdl under Java 5:

<plugin>
        <groupId>org.apache.axis2.maven2</groupId>
        <artifactId>axis2-java2wsdl-maven-plugin</artifactId>
        <version>1.1</version>
        <executions>
                <execution>
                        <goals>
                                <goal>java2wsdl</goal>
                        </goals>
                </execution>
        </executions>
        <configuration>
                <className>de.regioit.test.DummyService</className>
                ...
        </configuration>
</plugin>

Executing maven I receive always the following exception:

-------------------------------
[INFO] [axis2-java2wsdl:java2wsdl {execution: default}]
java.lang.Exception: java.lang.ClassNotFoundException:
de.regioit.test.DummyService
        at
[snip]
------------------------------------------------------------------------


Why doesn't the plugin use the default classpath of the project? Or
where else could be the problem? Is there someone how can give me a
hint?

Peter


Re: [AXIS2] java2wsdl maven2 plugin problems
"Scot Hale" <scot.hale () gmail ! com> wrote:
Hi all,
I am trying to use the maven java2wsdl 1.1 plugin, and I have run into
several problems.  I am using maven 2.0.5, java 5, and Linux Ubuntu
6.10.

1.) Documentation:  The example snippet on
http://ws.apache.org/axis2/tools/1_1/maven-plugins/maven-java2wsdl-plugin.html
is wrong and won't work.  This part:

          </execution>
          <configuration>
            <className>com.foo.myservice.MyHandler</className>
          </configuration>
        </executions>
      </plugin>
    </plugins>
  </build>

Should be

          </execution>
        </executions>
        <configuration>
          <className>com.foo.myservice.MyHandler</className>
        </configuration>
      </plugin>
    </plugins>
  </build>

2.) Documentation: The example command doesn't work (on the same page).

mvn java2wsdl:java2wsdl

Should be

mvn axis-java2wsdl:java2wsdl

3.) Strangly, a directory gets created in my maven project called
"home".  I think this might be causing other issues as well.  It looks
like it is taking the full path to my project (for example
/home/scot/src/webservice/ ) and lopping off the first "/", then
creating a new directory ( for example
/home/scot/src/webservice/home/scot/src/webservice/target/... ).

4.) When I run the plugin it can't find a class that exists in the
standard maven2 directory src/main/java/ ( for example
src/main/java/com/DummyHandler.java ).  I noticed someone else
complained about this on January 22nd, but I didn't see a reply to his
post to the mailing list.

java.lang.Exception: java.lang.ClassNotFoundException: com.DummyHandler
        at 
org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.generate(Java2WSDLCodegenEng \
                ine.java:58)
[snip]


--
John R. Hover
RHIC/Atlas Computing Facility, Bldg. 510M
Physics Department
Brookhaven National Laboratory
Upton, NY 11793
email: [EMAIL PROTECTED]
tel: 631-344-5828

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to