Hi Awanthika,

Have you exported the packages you need to use?

Thanks,
Nuwan

On Mon, Feb 29, 2016 at 3:47 PM, Awanthika Senarath <[email protected]>
wrote:

> The issue is,
>
> We are using two jackson jars in our source namely,
>
> jackson-mapper-asl-1.9.3.jar and jackson-mapper-asl-1.8.10.jar,
>
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>
> On Mon, Feb 29, 2016 at 3:41 PM, Awanthika Senarath <[email protected]>
> wrote:
>
>> Hello All,
>>
>> I have a third party dependency in my eclipse RCP plugin to the following
>> jars,
>>
>> jaxb-impl-2.2.4-1.jar,
>> jaxb-xjc-2.2.4-1.jar,
>> jackson-mapper-asl-1.9.3.jar,
>> jackson-core-asl-1.9.3.jar,
>> jackson-annotations-2.1.0.jar
>>
>> I have loaded them through a lib folder, added to eclipse class-path and
>> have the entry [1] in my META-INF file.
>>
>> There are no errors shown in the project explorer or in the java editor
>> of the classes.
>>
>> During runtime all the other libs are loaded fine, the firt jar loaded is
>> jaxb-xjc-2.2.4-1.jar,, "Driver" method. But it throws a runtime error [2]
>> saying method not found. When I cheked the source of the jar [3] I could
>> see that the method exists.
>>
>> Appreciate any help on resolving this.
>>
>>
>> [1]  lib/jaxb-impl-2.2.4-1.jar,
>>  lib/jaxb-xjc-2.2.4-1.jar,
>>  lib/jackson-mapper-asl-1.9.3.jar,
>>  lib/jackson-core-asl-1.9.3.jar,
>>  lib/jackson-annotations-2.1.0.jar
>>
>> [2] java.util.ServiceConfigurationError: com.sun.tools.xjc.Plugin:
>> Provider
>> org.wso2.developerstudio.visualdatamapper.diagram.avro.generators.AvroSchemagenPlugin
>> could not be instantiated
>> at java.util.ServiceLoader.fail(ServiceLoader.java:232)
>> at java.util.ServiceLoader.access$100(ServiceLoader.java:185)
>> at
>> java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:384)
>> at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
>> at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
>> at com.sun.tools.xjc.Options.findServices(Options.java:931)
>> at com.sun.tools.xjc.Options.getAllPlugins(Options.java:367)
>> at com.sun.tools.xjc.Options.parseArgument(Options.java:671)
>> at com.sun.tools.xjc.Driver$OptionsEx.parseArgument(Driver.java:501)
>> at com.sun.tools.xjc.Options.parseArguments(Options.java:781)
>> at com.sun.tools.xjc.Driver.run(Driver.java:239)
>> at com.sun.tools.xjc.Driver.run(Driver.java:199)
>> at com.sun.tools.xjc.Driver._main(Driver.java:122)
>> at com.sun.tools.xjc.Driver.access$000(Driver.java:79)
>> at com.sun.tools.xjc.Driver$1.run(Driver.java:102)
>> Caused by: java.lang.NoSuchMethodError:
>> org.codehaus.jackson.map.introspect.VisibilityChecker.with(Lorg/codehaus/jackson/annotate/JsonAutoDetect$Visibility;)Lorg/codehaus/jackson/map/introspect/VisibilityChecker;
>>
>>
>> [3]
>> http://grepcode.com/file/repo1.maven.org/maven2/org.codehaus.jackson/jackson-mapper-asl/1.9.2/org/codehaus/jackson/map/introspect/VisibilityChecker.java#VisibilityChecker.with%28org.codehaus.jackson.annotate.JsonAutoDetect%29
>>
>> Regards
>>
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>


-- 
----------------------------------------------------------

*Nuwan Chamara Pallewela*


*Software Engineer*

*WSO2, Inc. *http://wso2.com
*lean . enterprise . middleware*

Email   *[email protected] <[email protected]>*
Mobile  *+94719079739@*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to