Je souhaite utiliser ce plugin pour generer mon code WebService de plusieur wsdl present dans mon repertoire src/main/wsdl et j'ai cette erreur lorsque je lance mvn compile

Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
 
[DEBUG] -- end configuration --
[INFO] [axistools:wsdl2java {execution: default}]
[INFO] about to add compile source root
[INFO] processing wsdl: C:\WorkspacePROJET\PROJETWs_AXIS\src\main\wsdl\toto_PROJET.wsdl
26 sept. 2007 10:04:51 org.apache.axis.utils.JavaUtils isAttachmentSupported
ATTENTION: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
[DEBUG] argslist: [-o, C:\WorkspacePROJET\PROJETWs_AXIS\src\main\generated, -w, C:\WorkspacePROJET\PROJETWs_AXIS\src\main\wsdl\toto_PROJET.wsdl]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] error executing plugin
 
Embedded error: WSDL2Java execution failed
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: error executing plugin
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: error executing plugin
	at org.codehaus.mojo.axistools.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:335)
	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
	... 16 more
Caused by: org.codehaus.mojo.axistools.axis.AxisPluginException: WSDL2Java execution failed
	at org.codehaus.mojo.axistools.wsdl2java.DefaultWSDL2JavaPlugin.execute(DefaultWSDL2JavaPlugin.java:316)
	at org.codehaus.mojo.axistools.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:331)
	... 18 more
Caused by: org.codehaus.mojo.axistools.axis.AxisPluginException: java.lang.NullPointerException
	at org.codehaus.mojo.axistools.wsdl2java.WSDL2JavaWrapper.execute(WSDL2JavaWrapper.java:84)
	at org.codehaus.mojo.axistools.wsdl2java.DefaultWSDL2JavaPlugin.execute(DefaultWSDL2JavaPlugin.java:305)
	... 19 more
Caused by: java.lang.NullPointerException
	at org.apache.crimson.tree.ElementNode2.getAttributeNodeNS(ElementNode2.java:432)
	at com.ibm.wsdl.util.xml.DOMUtils.getAttributeNS(Unknown Source)
	at com.ibm.wsdl.util.xml.DOMUtils.getNamespaceURIFromPrefix(Unknown Source)
	at com.ibm.wsdl.util.xml.DOMUtils.getQName(Unknown Source)
	at com.ibm.wsdl.util.xml.DOMUtils.getQualifiedAttributeValue(Unknown Source)
	at com.ibm.wsdl.xml.WSDLReaderImpl.getQualifiedAttributeValue(Unknown Source)
	at com.ibm.wsdl.xml.WSDLReaderImpl.parsePort(Unknown Source)
	at com.ibm.wsdl.xml.WSDLReaderImpl.parseService(Unknown Source)
	at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
	at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
	at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
	at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
	at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:516)
	at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
	at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
	at java.lang.Thread.run(Thread.java:534)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Wed Sep 26 10:04:51 CEST 2007
[INFO] Final Memory: 5M/1016M
[INFO] ------------------------------------------------------------------------

mon pom :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 
<plugin>
	<groupId>org.codehaus.mojo</groupId>
	<artifactId>axistools-maven-plugin</artifactId>
	<configuration>
		<sourceDirectory>main/wsdl</sourceDirectory>
		<outputDirectory>main/generated</outputDirectory>
	</configuration>
	<executions>
		<execution>
			<goals>
				<goal>wsdl2java</goal>
			</goals>
		</execution>
	</executions>
</plugin>