Hi Jagath, Thank you very much for the quick response. I checked jar files in my local repository. Following jar was *missing*.
<pathelement location="${settings.localRepository}/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/ *axis2-client-1.6.1.wso2v10.jar*" /> I resolved the problem by adding following dependency; <dependency> <groupId>org.apache.axis2.wso2</groupId> <artifactId>axis2-client</artifactId> <version>1.6.1.wso2v10</version> </dependency> Thank you On Mon, Mar 2, 2015 at 4:15 PM, Jagath Sisirakumara Ariyarathne < jaga...@wso2.com> wrote: > Hi Rasika, > > Check whether correct jar files there in below configuration paths as > mentioned in Service Stub pom. > > <path id="wsdl2java.classpath"> > <pathelement > location="${settings.localRepository}/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar"/> > <pathelement > location="${settings.localRepository}/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/axis2-client-1.6.1.wso2v10.jar" > /> > <pathelement > location="${settings.localRepository}/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar" > /> > </path> > > Thanks. > > On Mon, Mar 2, 2015 at 4:06 PM, Rasika Perera <rasi...@wso2.com> wrote: > >> Hi all, >> >> I am following [1] tutorial. I have placed the WSDL on the class-path. >> When trying to create the stub using `wsdl2java` it returns following error. >> >> [INFO] --- maven-antrun-plugin:1.1:run (source-code-generation) @ >> org.wso2.carbon.employee.mgt.stub --- >> [INFO] Executing tasks >> [java] Exception in thread "main" *java.lang.NoClassDefFoundError: >> javax/wsdl/WSDLException* >> [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) >> [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) >> [java] Caused by: java.lang.ClassNotFoundException: >> javax.wsdl.WSDLException >> [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:366) >> [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:355) >> [java] at java.security.AccessController.doPrivileged(Native Method) >> [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:354) >> [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:425) >> [java] at >> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) >> [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:358) >> [java] ... 2 more >> [java] Java Result: 1 >> [INFO] Executed tasks >> >> I have added the dependencies for axis2, axiom and wsdl4j. For further >> reference pom.xml of the sub-project is attached. >> >> Appreciate any help to solve this error. >> >> [1] >> http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/ >> >> >> >> -- >> With Regards, >> >> *Rasika Perera* >> Software Engineer >> M: +94 71 680 9060 E: rasi...@wso2.com >> LinkedIn: http://lk.linkedin.com/in/rasika90 >> >> WSO2 Inc. www.wso2.com >> lean.enterprise.middleware >> >> _______________________________________________ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Jagath Ariyarathne > Technical Lead > WSO2 Inc. http://wso2.com/ > Email: jaga...@wso2.com > Mob : +94 77 386 7048 > > -- With Regards, *Rasika Perera* Software Engineer M: +94 71 680 9060 E: rasi...@wso2.com LinkedIn: http://lk.linkedin.com/in/rasika90 WSO2 Inc. www.wso2.com lean.enterprise.middleware
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev