IIRC this is due to a class loading issue. You might have the same jar in
two places in side the server.

Thanks & Regards
Danushka Fernando
Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729

On Tue, Oct 7, 2014 at 11:16 AM, Dinesh J Weerakkody <[email protected]>
wrote:

> Hi,
>
> I haven't come across this issue. But found this mail thread [1] and just
> give a try..
>
> [1] http://mail.wso2.org/mailarchive/stratos-dev/2011-May/003062.html
>
> On Tue, Oct 7, 2014 at 10:38 AM, Tharindu Dharmarathna <[email protected]
> > wrote:
>
>> Hi all,
>> I have tryed to deploy an Jax-RS app in Application Server .When it
>> deploys, following exception is shown.
>>
>> Is there any work around which solves this issue ?
>>
>>
>> Caused by: java.lang.LinkageError: loader constraint violation: when
>> resolving method
>> "org.wso2.securevault.SecretResolverFactory.create(Lorg/apache/axiom/om/OMElement;Z)Lorg/wso2/securevault/SecretResolver;"
>> the class loader (instance of
>> org/wso2/carbon/webapp/mgt/loader/CarbonWebappClassLoader) of the current
>> class, org/apache/axis2/deployment/AxisConfigBuilder, and the class loader
>> (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for
>> resolved class, org/wso2/securevault/SecretResolverFactory, have different
>> Class objects for the type org/apache/axiom/om/OMElement used in the
>> signature
>> at
>> org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:92)
>> at
>> org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:854)
>> at
>> org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:116)
>> at
>> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
>> at
>> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:210)
>> at
>> org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:150)
>> at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:143)
>> at
>> org.wso2.cpt.db.CustomerproducttracDefault100Stub.<init>(CustomerproducttracDefault100Stub.java:623)
>> at
>> org.wso2.cpt.db.CustomerproducttracDefault100Stub.<init>(CustomerproducttracDefault100Stub.java:609)
>> at
>> org.wso2.cpt.db.CustomerproducttracDefault100Stub.<init>(CustomerproducttracDefault100Stub.java:658)
>> at
>> org.wso2.cpt.db.CustomerproducttracDefault100Stub.<init>(CustomerproducttracDefault100Stub.java:650)
>> at com.wso2.cpt.service.UserServices.getUsers(UserServices.java:33)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>> at
>> org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
>> at
>> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
>>
>>
>>
>> --
>>
>> *Tharindu Dharmarathna*Associate Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94779109091 <%2B94779109091>*
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Dinesh J. Weerakkody*
> Software Engineer
> WSO2 Inc.
> lean | enterprise | middleware
> M : +94 727 361788 | E : [email protected] | W : www.wso2.com
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to