Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [smila-user] classloading errors revisited

Hi,

On 17.09.2012 12:13, Michalis Lazaridis wrote:

Hi all,

 

I’m using some web services from an external jar file and I have, as expected, some classloading errors.

I have followed the workaround described in SMILA/FAQ, under ”I get classloading errors when I try to access an external Web Service using JAX-WS”, which works fine in most of the cases.

In my case, I use several external jars and some calls to one jar use internally other calls to another jar.

So, the context changes several times during my call and this workaround is not enough in this case.

I managed to make everything work through opening all jars, repackaging everything in one jar and using this jar in my pipelet.

Since this is more a hack than a solution, is there a more elegant way to do this?

 

Sorry, without more details and trying to reproduce this myself I don't have any idea. I would have suspected that it should be sufficient to add all single needed JARs to the runtime classpath of the bundle calling the webservice. If the needed classes are in other bundles, adding more Import-package statements (or even using Require-Bundle instead) might help. We do not do things like this often, so unfortunately we don't have much experience with such scenarios.

Cheers,
Juergen.

Back to the top