leotalero / addjars-maven-plugin

Automatically exported from code.google.com/p/addjars-maven-plugin
Apache License 2.0
0 stars 0 forks source link

Failed to execute goal org.apache.axis2:axis2-java2wsdl-maven-plugin:1.6.2:java2wsdl (default) on project impact: null: MojoExecutionException: NullPointerException #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
<plugin>
    <groupId>org.apache.axis2</groupId>
    <artifactId>axis2-java2wsdl-maven-plugin</artifactId>
    <version>1.6.2</version>
    <configuration>
        <className>us.oh.state.epa.stars2.services.MyService</className>
        <serviceName>MyService</serviceName>
        <schemaTargetNamespace>http://slopjong.de</schemaTargetNamespace>
        <schemaTargetNamespacePrefix>tns</schemaTargetNamespacePrefix>
    </configuration>
    <executions>
        <execution>
            <phase>package</phase>
            <goals>
                <goal>java2wsdl</goal>
            </goals>
        </execution>
    </executions>
</plugin>

pom.xml:

<?xml version="1.0" encoding="UTF-8"?>
<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>us.XX.state.XXX.impact</groupId>
    <artifactId>impact</artifactId>
    <version>0.8.0-SNAPSHOT</version>
    <packaging>pom</packaging>

    <name>Impact</name>

    <modules>
        <module>../impact-core</module>
        <module>web</module>
    </modules>

    <properties>
        <project.build.sourceEncoding>Windows-1252</project.build.sourceEncoding>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>1.7.2</version>
        </dependency>
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>1.2.17</version>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
            <version>1.7.2</version>
        </dependency>
        <dependency>
            <groupId>org.apache.tomcat</groupId>
            <artifactId>jsp-api</artifactId>
            <version>6.0.36</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.tomcat</groupId>
            <artifactId>tomcat-servlet-api</artifactId>
            <version>7.0.34</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.11</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-all</artifactId>
            <version>1.9.5</version>
            <scope>test</scope>
        </dependency>
         <dependency>   
           <groupId>org.apache.ws.commons.axiom</groupId>   
            <artifactId>axiom-api</artifactId>   
            <version>1.2.13</version>   
        </dependency>   
        <dependency>   
            <groupId>org.apache.ws.commons.axiom</groupId>   
            <artifactId>axiom-impl</artifactId>   
            <version>1.2.13</version>   
        </dependency>  
        <dependency>   
            <groupId>org.apache.axis2</groupId>   
            <artifactId>axis2-kernel</artifactId>   
            <version>1.6.2</version>   
        </dependency>
        <dependency>
            <artifactId>axis2-java2wsdl</artifactId>
            <groupId>org.apache.axis2</groupId>
            <version>1.6.2</version>
            <scope>runtime</scope>
        </dependency>
        <dependency>   
            <groupId>org.apache.axis2</groupId>   
            <artifactId>axis2-codegen</artifactId>   
            <version>1.6.2</version>   
        </dependency>   
        <dependency>   
            <groupId>org.apache.axis2</groupId>   
            <artifactId>axis2-adb</artifactId>   
            <version>1.6.2</version>   
        </dependency>  
<!--         <dependency>   
            <groupId>geronimo-spec</groupId>   
            <artifactId>geronimo-spec-javamail</artifactId>   
            <version>1.3.1-rc5</version>   
        </dependency>   
        <dependency>   
            <groupId>geronimo-spec</groupId>   
            <artifactId>geronimo-spec-activation</artifactId>   
            <version>1.0.2-rc4</version>   
        </dependency>  -->  
        <dependency>   
            <groupId>xmlbeans</groupId>   
            <artifactId>xbean</artifactId>   
            <version>2.1.0</version>   
        </dependency>   
        <dependency>   
            <groupId>annogen</groupId>   
            <artifactId>annogen</artifactId>   
            <version>0.1.0</version>   
        </dependency>

    </dependencies>
    <build>
        <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <inherited>true</inherited>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                    <encoding>Windows-1252</encoding>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-resources-plugin</artifactId>
                <configuration>
                    <encoding>Windows-1252</encoding>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.axis2</groupId>
                <artifactId>axis2-java2wsdl-maven-plugin</artifactId>
                 <version>1.6.2</version>
                <configuration>
                    <className>us.oh.state.epa.stars2.services.MyService</className>
                    <serviceName>MyService</serviceName>
                    <schemaTargetNamespace>http://slopjong.de</schemaTargetNamespace>
                    <schemaTargetNamespacePrefix>tns</schemaTargetNamespacePrefix>
                </configuration>
                <executions>
                    <execution>
                    <phase>package</phase>
                        <goals>
                            <goal>java2wsdl</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

        </plugins>
    </build>
    <reporting>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>findbugs-maven-plugin</artifactId>
                <version>2.5.2</version>
            </plugin>
        </plugins>
    </reporting>
    <pluginRepositories>
        <pluginRepository>
            <id>apache.snapshots</id>
            <url>http://repository.apache.org/snapshots/</url>
        </pluginRepository>
    </pluginRepositories>
</project>

What is the expected output? What do you see instead?

Expected WSDL created. but got below exception:

[INFO] ------------------------------------------------------------------------
[INFO] Building Impact 0.8.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- axis2-java2wsdl-maven-plugin:1.6.2:java2wsdl (default) @ impact ---
java.lang.NullPointerException
        at sun.net.util.URLUtil.urlNoFragString(URLUtil.java:47)
        at sun.misc.URLClassPath.getLoader(URLClassPath.java:321)
        at sun.misc.URLClassPath.getResource(URLClassPath.java:194)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:358)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.<init>(DefaultSchemaGenerator.java:140)
        at org.apache.ws.java2wsdl.Java2WSDLBuilder.resolveSchemaGen(Java2WSDLBuilder.java:368)
        at org.apache.ws.java2wsdl.Java2WSDLBuilder.generateWSDL(Java2WSDLBuilder.java:211)
        at org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.generate(Java2WSDLCodegenEngine.java:60)
        at org.apache.axis2.maven2.java2wsdl.Java2WSDLMojo.execute(Java2WSDLMojo.java:335)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Impact ............................................ FAILURE [0.718s]
[INFO] Impact Core Module ................................ SKIPPED
[INFO] Impact Web Modules ................................ SKIPPED
[INFO] Impact Portal Web Module .......................... SKIPPED
[INFO] Impact Web Module ................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.995s
[INFO] Finished at: Wed Mar 27 11:16:59 EDT 2013
[INFO] Final Memory: 9M/122M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.axis2:axis2-java2wsdl-maven-plugin:1.6.2:java2wsdl (default) on 
project impact: null: MojoExecutionException: NullPointerException -> [Help 1]
[ERROR]

What version of the product are you using? On what operating system?
Maven :3.0.4
OS :Windows 7

Please provide any additional information below.

Original issue reported on code.google.com by vgund...@gmail.com on 27 Mar 2013 at 3:29