I did it. But the result is the same. The one problem is the
log4j-Problem. The other problem it seems that the wsdl-file was not found.
It resides in src/main/axis2/service.wsdl like mentioned in the axis2-doc.
The stack-trace:
[INFO] [axis2-wsdl2code:wsdl2code {execution: default}]
log4j:WARN No appenders could be found for logger
(org.apache.axis2.i18n.Project
ResourceBundle).
log4j:WARN Please initialize the log4j system properly.
java.io.FileNotFoundException:
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at
org.apache.axis2.wsdl.codegen.CodegenConfigLoader.loadConfig(CodegenC
onfigLoader.java:161)
at
org.apache.axis2.wsdl.codegen.CodeGenConfiguration.<init>(CodeGenConf
iguration.java:371)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:85)
at
org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.execute(WSDL2CodeMojo
.java:396)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:443)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:480)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:459)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.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(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
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)
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error parsing WSDL
Any help?
Upul Godage schrieb:
Create a jar file out of the log4j.properties file and put it beside the
log4j.jar.
jar cf log4jproperties.jar log4j.properties
Upul
On 10/24/07, *Michael Kopf * <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Hello,
I'm having trouble when I try to generate source from wsdl via the
wsdl2Code-Plugin for maven2. Maven downloads many jars to the local
repository and also the log4J.jar but then I get always the same error:
[INFO] [axis2-wsdl2code:wsdl2code]
log4j:WARN No appenders could be found for logger
(org.apache.axis2.i18n.Project
ResourceBundle).
log4j:WARN Please initialize the log4j system properly.
I've tried to put the log4J.properties as resources in the pom
...
<build>
<resources>
<resource>
<!-- include config for use with jetty -->
<directory>src/main/resources</directory>
<includes>
<include>log4j.properties</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.axis2.maven2</groupId>
<artifactId>axis2-wsdl2code-maven-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>wsdl2code</goal>
</goals>
</execution>
</executions>
<configuration>
<wsdlFile>src/main/wsdl/DPFService.wsdl</wsdlFile>
<packageName>com.foo.myservice</packageName>
</configuration>
...
I also tried to put it beside the log4j.jar.
But the result is the same.
--
--
Kind regards
Michael Kopf
SEAL Systems AG Tel. : +49 (0) 9195-926-0
Lohmuehlweg 4 Fax : +49 (0) 9195-1739
D-91341 Roettenbach mailto: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
Germany WWW: http://www.sealsystems.de
-------------------------------------------------------
PDF/A - eine Norm für die Langzeitarchvierung
Erzeugen - Prüfen - Korrigieren
Werkzeuge, Beratung und Integration von SEAL Systems AG
-------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
--
--
Mit freundlichen Grüßen
Michael Kopf
SEAL Systems AG Tel. : +49 (0) 9195-926-0
Lohmuehlweg 4 Fax : +49 (0) 9195-1739
D-91341 Roettenbach mailto:[EMAIL PROTECTED]
Germany WWW: http://www.sealsystems.de
-------------------------------------------------------
PDF/A - eine Norm für die Langzeitarchvierung
Erzeugen - Prüfen - Korrigieren
Werkzeuge, Beratung und Integration von SEAL Systems AG
-------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]