Hi Milan,
I encountered the same issue and solved it through the way suggested by
@Rasika and @Thilini. But if you are following the [1] tutorial; you might
encounter another dependency issue with axis2-client (if the libraries are
corrupted or not in the repo). In order to mitigate that issue you can add
the following dependency to the pom.xml as the fourth dependency.
<dependency>
<groupId>org.apache.axis2.wso2</groupId>
<artifactId>axis2-client</artifactId>
<version>1.6.1.wso2v10</version>
</dependency>
<dependency>
[1]
http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
Thank you,
Regards,
Kasun.
On Wed, Mar 25, 2015 at 3:02 PM, Milan Perera <[email protected]> wrote:
> Hi Rasika, Thilini, Thusitha,
>
> @Rasika & Thilini: it worked
> @Thusitha: In order to pick them from the local repo, it has to be
> downloaded prior to that. As Rasika and Thilini mentioned, those
> configuration of the pom.xml solved the problem by downloading relevant
> dependencies from given repositories.
>
> Thank you.
>
> Regards,
>
> On Wed, Mar 25, 2015 at 2:30 PM, Thusitha Thilina Dayaratne <
> [email protected]> wrote:
>
>> Hi Milan,
>>
>> According to the link you are trying to pick them from the local repo
>>
>> *<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>*
>>
>> Check whether those are on your local repository
>>
>> Thanks
>> Best Regards
>> /Thusitha
>>
>> On Wed, Mar 25, 2015 at 2:22 PM, Milan Perera <[email protected]> wrote:
>>
>>> Hi,
>>>
>>> I'm following a tutorial [1] which is about building a Carbon
>>> Component. When I added below mentioned dependencies to my pom.xml, IDE
>>> showed $subject and maven build also failed.
>>> I have cleaned .m2 repo and updated, still the problem remains.
>>>
>>>
>>> <dependencies>
>>> <dependency>
>>> <groupId>org.apache.axis2.wso2</groupId>
>>> <artifactId>axis2</artifactId>
>>> <version>*1.6.1.wso2v10*</version>
>>> </dependency>
>>> <dependency>
>>> <groupId>org.apache.ws.commons.axiom.wso2</groupId>
>>> <artifactId>axiom</artifactId>
>>> <version>*1.2.11.wso2v4*</version>
>>> </dependency>
>>> <dependency>
>>> <groupId>wsdl4j.wso2</groupId>
>>> <artifactId>wsdl4j</artifactId>
>>> <version>*1.6.2.wso2v4*</version>
>>> </dependency>
>>> </dependencies>
>>>
>>> Any help is appreciated to resolve this issue.
>>>
>>> Thank you.
>>>
>>> [1]
>>> http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
>>>
>>>
>>> --
>>> Milan Harindu Perera
>>> Software Engineer
>>> *WSO2, Inc*
>>> (+94) 77 309 7088
>>> lean . enterprise . middleware
>>> <http://lk.linkedin.com/in/milanharinduperera>
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thusitha Dayaratne
>> Software Engineer
>> WSO2 Inc. - lean . enterprise . middleware | wso2.com
>>
>> Mobile +94712756809
>> Blog alokayasoya.blogspot.com
>> About http://about.me/thusithathilina
>>
>>
>
>
> --
> Milan Harindu Perera
> Software Engineer
> *WSO2, Inc*
> (+94) 77 309 7088
> lean . enterprise . middleware
> <http://lk.linkedin.com/in/milanharinduperera>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
--
Kasun Bandara
*Software Engineer*
Mobile : +94 (0) 718 338 360
<%2B94%20%280%29%20773%20451194>
[email protected] <[email protected]>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev