[Axis2] - java2wsdl - Url Classpath null
Bonjour,
j'ai un souci avec la génération de wsdl avec axis2 et maven.
Exemple de mon pom:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
<plugin>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-java2wsdl-maven-plugin</artifactId>
<version>1.6.1</version>
<configuration>
<className>fr.societe.si.projet.webservices.UserManager</className>
<outputFileName>target/generated-sources/axis2/code2wsdl/ProjetServices.wsdl</outputFileName>
<serviceName>ProjetServices</serviceName>
</configuration>
<executions>
<execution>
<goals>
<goal>java2wsdl</goal>
</goals>
</execution>
</executions>
</plugin> |
Ma classe UserManager est dans "src/main/java/fr/societe/si/projet/webservices/UserManager.java"
J'exécute le code: mvn axis2-java2wsdl:java2wsdl -X
Résultat:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
[DEBUG] (f) className = fr.societe.si.projet.webservices.UserManager
[DEBUG] (f) extraClasses = []
[DEBUG] (f) outputFileName = target/generated-sources/axis2/code2wsdl/ProjetServices.wsdl
[DEBUG] (f) package2Namespace = {}
[DEBUG] (f) project = MavenProject: projet:projet-webservices:0.5-SNAPSHOT @ C:\SVNproject\xxxxxx\j2ee\serveurside\projet\trunk\projet-webservices\pom.xml
[DEBUG] (f) serviceName = ProjetServices
[DEBUG] -- end configuration --
java.lang.NullPointerException
at sun.misc.URLClassPath$3.run(URLClassPath.java:316)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:313)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:290)
at sun.misc.URLClassPath.getResource(URLClassPath.java:160)
at java.net.URLClassLoader$1.run(URLClassLoader.java:192)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
..........
Failed to execute goal org.apache.axis2:axis2-java2wsdl-maven-plugin:1.6.1:java2wsdl (default-cli) on project projet-webservices: null: MojoExecutionException: NullPointerException -> [Help 1] |
Voilà, j'ai cherché partout sans réponse...
Est-ce que quelqu'un pourrait m'aider à résoudre mon problème ?
Merci