[
https://issues.apache.org/jira/browse/AXIS2-1726?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Davanum Srinivas updated AXIS2-1726:
------------------------------------
Assignee: Sanka Samaranayake
> Error when trying to execute generate-sources because of "
> java.lang.NoClassDefFoundError: javax/wsdl/WSDLException"
> --------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-1726
> URL: https://issues.apache.org/jira/browse/AXIS2-1726
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: Tools
> Affects Versions: 1.1
> Environment: Mac OS X, Windows 2000
> JDK 1.5
> maven-2.0.4
> axis 2 1.1
> Reporter: Eduardo de Vera
> Assigned To: Sanka Samaranayake
> Priority: Minor
>
> When executing the axis2-wsdl2code-maven-plugin version 1.1 downloaded from
> repo1.maven.org,
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
> <modelVersion>4.0.0</modelVersion>
> <groupId>org.edvera</groupId>
> <artifactId>examplews</artifactId>
> <packaging>jar</packaging>
> <version>1.0-SNAPSHOT</version>
> <name>Maven Quick Start Archetype</name>
> <url>http://maven.apache.org</url>
> <dependencies>
> <dependency>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> <version>3.8.1</version>
> <scope>test</scope>
> </dependency>
> </dependencies>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.axis2.maven2</groupId>
> <artifactId>axis2-wsdl2code-maven-plugin</artifactId>
> <version>1.1</version>
> <executions>
> <execution>
> <goals>
> <goal>wsdl2code</goal>
> </goals>
> </execution>
> </executions>
> <configuration>
> <packageName>com.foo.myservice</packageName>
> </configuration>
> </plugin>
> </plugins>
> </build>
> </project>
> this is what i get:
> ibook-g4-de-etux:~/Documents/desarrollo/examplews etux$ mvn generate-sources
> -e
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building Maven Quick Start Archetype
> [INFO] task-segment: [generate-sources]
> [INFO]
> ----------------------------------------------------------------------------
> [WARNING] POM for 'org.apache.axis2:axis2-kernel:pom:1.1:runtime' is invalid.
> It will be ignored for artifact resolution. Reason: Failed to validate POM
> [WARNING] POM for 'org.apache.axis2:axis2-kernel:pom:1.1:runtime' is invalid.
> It will be ignored for artifact resolution. Reason: Failed to validate POM
> [WARNING] POM for 'org.apache.axis2:axis2-kernel:pom:1.1:runtime' is invalid.
> It will be ignored for artifact resolution. Reason: Failed to validate POM
> [WARNING] POM for 'org.apache.axis2:axis2-kernel:pom:1.1:runtime' is invalid.
> It will be ignored for artifact resolution. Reason: Failed to validate POM
> Downloading: http://repo1.maven.org/maven//jaxen/poms/jaxen-1.1-beta-10.pom
> [WARNING] Unable to get resource from repository maven-repo1
> (http://repo1.maven.org/maven/)
> Downloading:
> http://ws.zones.apache.org/repository//jaxen/poms/jaxen-1.1-beta-10.pom
> [WARNING] Unable to get resource from repository ws-zones
> (http://ws.zones.apache.org/repository/)
> Downloading:
> http://repo1.maven.org/maven2/jaxen/jaxen/1.1-beta-10/jaxen-1.1-beta-10.pom
> [WARNING] Unable to get resource from repository central
> (http://repo1.maven.org/maven2)
> Downloading: http://repo1.maven.org/maven//woodstox/poms/wstx-asl-3.0.1.pom
> [WARNING] Unable to get resource from repository maven-repo1
> (http://repo1.maven.org/maven/)
> Downloading:
> http://ws.zones.apache.org/repository//woodstox/poms/wstx-asl-3.0.1.pom
> [WARNING] Unable to get resource from repository ws-zones
> (http://ws.zones.apache.org/repository/)
> Downloading:
> http://repo1.maven.org/maven2/woodstox/wstx-asl/3.0.1/wstx-asl-3.0.1.pom
> [WARNING] Unable to get resource from repository central
> (http://repo1.maven.org/maven2)
> [INFO] [axis2-wsdl2code:wsdl2code {execution: default}]
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] javax/wsdl/WSDLException
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.NoClassDefFoundError: javax/wsdl/WSDLException
> at
> org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.execute(WSDL2CodeMojo.java:396)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
> 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: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]
> ------------------------------------------------------------------------
> [INFO] Total time: 31 seconds
> [INFO] Finished at: Thu Nov 16 23:09:55 CET 2006
> [INFO] Final Memory: 3M/8M
> [INFO]
> ------------------------------------------------------------------------
> If I add wsdl4j as a dependency inside the plugin tag of my project's pom.xml
> file this issue gets fixed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]