[resolved] Problem when deploying on karaf container
Hi,
i can't deploy a tRest service (with tRestRequest and tRestResponse) on Karaf. The service works fine when i deploying on Studio, but when i export the job (.jar for bundle osgi), Karaf can't deploy, here the stack trace (v5.3.0 RC1 and RC2, i need v5.3.0 because i have a problem with trest component in older version):
karaf@trun> Exception in thread "SpringOsgiExtenderThread-2" org.springframework
.beans.factory.BeanCreationException: Error creating bean with name 'service': C
annot resolve reference to bean 'wrongCallHandler' while setting bean property '
providers' with key ; nested exception is org.springframework.beans.factory.B
eanCreationException: Error creating bean with name 'wrongCallHandler' defined i
n URL : Resolution of
declared constructors on bean Class from ClassLoader ] failed;
nested exception is java.lang.LinkageError: loader constraint violation: when r esolving overridden method
I found the solution (by chance)! I work with tRestRequest and tRestResponse components and there is a limitation when you try to deploy on Karaf: you can't recover some son SubJobs you have in your main Job for Rest exposure! So if you have complex job you want split in subjobs, you only can do this with a SOAP job and deploy with a .kar in Karaf. It is a bug? Xavier
I found the solution (by chance)! I work with tRestRequest and tRestResponse components and there is a limitation when you try to deploy on Karaf: you can't recover some son SubJobs you have in your main Job for Rest exposure! So if you have complex job you want split in subjobs, you only can do this with a SOAP job and deploy with a .kar in Karaf. It is a bug? Xavier
Hi, if you use trest components and subjobs to exposure your web service, ... i doesn't know solution! My only solution is to change Rest exposure with SOAP exposure with tesb components to produce a .kar and deploy on Karaf. Only .kar is able to consider subjobs. Did i answered to you?