axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lahiru Gunathilake (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (AXIS2-3878) Trying to generate WSDL
Date Mon, 26 Apr 2010 11:30:35 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-3878?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Lahiru Gunathilake reassigned AXIS2-3878:
-----------------------------------------

    Assignee: Lahiru Gunathilake

> Trying to generate WSDL 
> ------------------------
>
>                 Key: AXIS2-3878
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3878
>             Project: Axis2
>          Issue Type: Bug
>            Reporter: Prashant Pandit
>            Assignee: Lahiru Gunathilake
>
> I am trying to generate wsdl using axis2 :java2wsdl,I get the following error
> [INFO] Scanning for projects...
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Webservice interfaces For Project Liberate
> [INFO] 
> [INFO] Id: com.cwi.liberate:webservicesinterfaces:POM:1.0-SNAPSHOT
> [INFO] task-segment: [install]
> [INFO] ------------------------------------------------------------------------
> [INFO] [axis2-java2wsdl:java2wsdl]
> java.lang.Exception: java.lang.NullPointerException
> 	at org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.generate(Java2WSDLCodegenEngine.java:62)
> 	at org.apache.axis2.maven2.java2wsdl.Java2WSDLMojo.execute(Java2WSDLMojo.java:335)
> 	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:579)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:265)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:191)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149)
> 	at org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223)
> 	at org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)
> 	at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.java:904)
> 	at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(MavenEmbedder.java:304)
> 	at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1)
> 	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:63)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:52)
> Caused by: 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:306)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> 	at java.lang.Class.forName0(Native Method)
> 	at java.lang.Class.forName(Class.java:242)
> 	at org.apache.axis2.description.java2wsdl.Java2WSDLUtils.namespaceFromClassName(Java2WSDLUtils.java:65)
> 	at org.apache.axis2.description.java2wsdl.Java2WSDLUtils.schemaNamespaceFromClassName(Java2WSDLUtils.java:84)
> 	at org.apache.ws.java2wsdl.Java2WSDLBuilder.getSchemaTargetNamespace(Java2WSDLBuilder.java:114)
> 	at org.apache.ws.java2wsdl.Java2WSDLBuilder.generateWSDL(Java2WSDLBuilder.java:205)
> 	at org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.generate(Java2WSDLCodegenEngine.java:60)
> 	... 15 more
> [ERROR] 
> The following mojo encountered an error while executing:
> Group-Id: org.apache.axis2
> Artifact-Id: axis2-java2wsdl-maven-plugin
> Version: 1.4
> Mojo: java2wsdl
> brought in via: POM
> While building project:
> Group-Id: com.cwi.liberate
> Artifact-Id: webservicesinterfaces
> Version: 1.0-SNAPSHOT
> From file: C:\liberateProj\workspace\webservicesinterfaces\pom.xml
> Reason: java.lang.NullPointerException
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run with the -e flag
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILED
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 8 seconds
> [INFO] Finished at: Mon Jun 30 13:06:05 BST 2008
> [INFO] Final Memory: 2M/12M
> [INFO] ------------------------------------------------------------------------
> Here is the pom.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>   <modelVersion>4.0.0</modelVersion>
>   <parent>
>     	<groupId>com.cwi.liberate</groupId>
>       	<artifactId>bootstrap-pom</artifactId>      	
>       	<version>1.0-SNAPSHOT</version>
>   </parent>
>   <groupId>com.cwi.liberate</groupId>
>   <artifactId>webservicesinterfaces</artifactId>
>   <version>1.0-SNAPSHOT</version>
>    <packaging>POM</packaging> 
>   <name>Webservice interfaces For Project Liberate </name>
>  <scm>
>   	<connection>scm:svn:http://148.185.168.55/svn/repo-liberate/trunk/LiberateAppWebServices/webservicesinterfaces</connection>
>   </scm>  
> <ciManagement>
> 	<system>continuum</system>
> 	<notifiers>
> 	<notifier>
> 	<type>mail</type>
> 	<configuration>
> 	  <address>prashant.pandit@patni.com</address>
> 	</configuration>
> 	</notifier>
> 	</notifiers>
> </ciManagement> 
>  <dependencies>
>         <dependency>
>             <groupId>javax.servlet</groupId>
>             <artifactId>servlet-api</artifactId>
>             <version>2.3</version>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.ws.commons.axiom</groupId>
>             <artifactId>axiom-api</artifactId>
>             <version>1.2.5</version>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.ws.commons.axiom</groupId>
>             <artifactId>axiom-impl</artifactId>
>             <version>1.2.5</version>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.ws.commons.schema</groupId>
>             <artifactId>XmlSchema</artifactId>
>             <version>1.3.2</version>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.neethi</groupId>
>             <artifactId>neethi</artifactId>
>             <version>2.0.2</version>
>         </dependency>
>         <dependency>
>             <groupId>commons-logging</groupId>
>             <artifactId>commons-logging</artifactId>
>             <version>1.1</version>
>         </dependency>
>         <dependency>
>             <groupId>commons-httpclient</groupId>
>             <artifactId>commons-httpclient</artifactId>
>             <version>3.0.1</version>
>         </dependency>
>         <dependency>
>             <groupId>commons-codec</groupId>
>             <artifactId>commons-codec</artifactId>
>             <version>1.3</version>
>         </dependency>
>         <dependency>
>             <groupId>org.codehaus.woodstox</groupId>
>             <artifactId>wstx-asl</artifactId>
>             <version>3.2.1</version>
>         </dependency>
>         <dependency>
>             <groupId>stax</groupId>
>             <artifactId>stax-api</artifactId>
>             <version>1.0.1</version>
>         </dependency>
>         <dependency>
>             <groupId>wsdl4j</groupId>
>             <artifactId>wsdl4j</artifactId>
>             <version>1.6.2</version>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.geronimo.specs</groupId>
>             <artifactId>geronimo-activation_1.1_spec</artifactId>
>             <version>1.0-M1</version>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.geronimo.specs</groupId>
>             <artifactId>geronimo-javamail_1.4_spec</artifactId>
>             <version>1.0-M1</version>
>         </dependency>
>         <dependency>
>             <groupId>xmlbeans</groupId>
>             <artifactId>xbean</artifactId>
>             <version>2.2.0</version>
>         </dependency>
>         <dependency>
>             <groupId>jaxen</groupId>
>             <artifactId>jaxen</artifactId>
>             <version>1.1.1</version>
>         </dependency>
>         <dependency>
>             <groupId>backport-util-concurrent</groupId>
>             <artifactId>backport-util-concurrent</artifactId>
>             <version>2.2</version>
>         </dependency>
>         <dependency>
>             <groupId>annogen</groupId>
>             <artifactId>annogen</artifactId>
>             <version>0.1.0</version>
>         </dependency>
>     <dependency>
>       <groupId>axis</groupId>
>       <artifactId>axis</artifactId>
>       <version>1.3</version>
>     </dependency>
>   </dependencies>
>    <build>    	
>      <directory>target</directory>
> 	<outputDirectory>target/classes</outputDirectory>
> 	<!--  finalName>${project.artifactId}-${project.version}</finalName -->
> 	<finalName>webserviceinterfaces</finalName>	
> 	<sourceDirectory>com</sourceDirectory>		 
> 	 <plugins>
> 	    <plugin>
> 			    <groupId>org.apache.axis2</groupId>
>         		<artifactId>axis2-java2wsdl-maven-plugin</artifactId>
>         		<version>1.4</version>
> 			 <configuration>
> 			 	<className>com.cwi.liberate.ciswebservices.CisApiServices</className>
		 	
> 			 	<outputFileName>target/generated-sources/axis2//wsdl/CisApiServices.wsdl</outputFileName>
> 				<serviceName>CisApiServices</serviceName>			 	
> 			 </configuration>
> 			 <executions>
> 			 	<execution>
> 			 		<goals>
> 			 		<goal>java2wsdl</goal>
> 					 </goals>
> 			 	</execution>
> 			 </executions>
> 		 </plugin>
> 		 			<plugin>
> 		       <groupId>org.apache.maven.plugins</groupId>
> 		       <artifactId>maven-compiler-plugin</artifactId>
> 		       <configuration>  
> 		       	<source>1.5</source>
> 				<target>1.5</target>    	
> 		         <verbose>true</verbose>
> 		         <fork>true</fork> 
> 		         <executable>${JAVA_1_5_HOME}/bin/javac.exe</executable>      
          
> 		         <compilerVersion>1.5</compilerVersion>
> 		       </configuration>
> 		       <dependencies>
> 						<dependency>
> 						<groupId>org.codehaus.plexus</groupId>
> 						<artifactId>plexus-utils</artifactId>
> 						<version>1.5.1</version>
> 					</dependency>		
> 				</dependencies>       
>   		  </plugin>
>     </plugins>      
>   </build>
>       <repositories>
>         <repository>
>             <id>ibiblio</id>
>             <name>ibiblio maven repository</name>
>             <url>http://repo1.maven.org/maven2/</url>
>         </repository>
>         <repository>
>             <id>apache</id>
>             <name>Apache maven repository</name>
>             <url>http://people.apache.org/repo/m2-ibiblio-rsync-repository/</url>
>         </repository>
>         <repository>
>             <id>apache-snapshot</id>
>             <name>Apache maven repository</name>
>             <url>http://people.apache.org/repo/m2-snapshot-repository/</url>
>         </repository>
>     </repositories>    
> </project>

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message