Hi,

Also check whether the correct jar file is available in below configured
path.

<pathelement
location="${settings.localRepository}/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar"
/>

Thanks.

On Fri, Feb 20, 2015 at 12:47 PM, Udara Liyanage <[email protected]> wrote:

> Hi,
>
> Could you try adding wsdl4j as a dependency and check.
>
> [1] http://grepcode.com/search/?query=javax/wsdl
>
> On Fri, Feb 20, 2015 at 12:33 PM, Shenavi de Mel <[email protected]> wrote:
>
>> Hi Team,
>>
>> I am currently following the tutorial [1] on building a carbon component,
>> After creating the stub components and building, the build is successful
>> but it generates the error below. Is there anything to be done to resolve
>> this error?
>> I have also attached the pom file of the stub module and the WSDL file
>> for your reference.
>>
>>
>> [INFO] --- maven-antrun-plugin:1.1:run (source-code-generation) @
>> org.wso2.carbon.student.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
>>
>> [1]
>> http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
>>
>> Thanks & Best Regards
>> *Shenavi de Mel*
>> Software Engineer
>> WSO2 Inc: http://wso2.com
>> email: [email protected]
>> mobile:+94771244470
>>
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> phone: +94 71 443 6897
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Jagath Ariyarathne
Technical Lead
WSO2 Inc.  http://wso2.com/
Email: [email protected]
Mob  : +94 77 386 7048
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to