You are not logged in.

Unanswered posts



Important! This site has been replaced. All content here is read-only. Please visit our brand-new community at https://community.talend.com/. We look forward to hearing from you there!



#1 2016-09-02 16:33:45

thuongnht
Member
3 posts

thuongnht said:

[resolved] [Problem] Runtime_ESBSE can't deploy a service,

Hi all,

I created a web service which will call a child job during the process, as the snapshots

Parent:
mini_parent.png

Child:
mini_child.png


I did some test and they worked very well when I start web service from TOS for ESB 6.2.

Then I deployed web service to "[Path_to_Runtime_ESBSE]\container\deploy\filename.kar" successfully. But when I start the Karaf on Windows 10, it can't deploy such service. I did some research but I don't know why. Below shows the error

org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=PriceAPIUpdateService-feature; type=karaf.feature; version="[0.1.0,0.1.0]"; filter:="(&(osgi.identity=PriceAPIUpdateService-feature)(type=karaf.feature)(version>=0.1.0)(version<=0.1.0))" [caused by: Unable to resolve PriceAPIUpdateService-feature/0.1.0: missing requirement [PriceAPIUpdateService-feature/0.1.0] osgi.identity; osgi.identity=PriceAPIUpdateService-control-bundle; type=osgi.bundle; version="[0.1.0,0.1.0]"; resolution:=mandatory [caused by: Unable to resolve PriceAPIUpdateService-control-bundle/0.1.0: missing requirement [PriceAPIUpdateService-control-bundle/0.1.0] osgi.wiring.package; filter:="(osgi.wiring.package=org.talend.esb.job.controller)"]]
	at org.apache.felix.resolver.ResolutionError.toException(ResolutionError.java:42)[9:org.apache.karaf.features.core:4.0.5]
	at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:235)[9:org.apache.karaf.features.core:4.0.5]
	at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:158)[9:org.apache.karaf.features.core:4.0.5]
	at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:216)[9:org.apache.karaf.features.core:4.0.5]
	at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:263)[9:org.apache.karaf.features.core:4.0.5]
	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1152)[9:org.apache.karaf.features.core:4.0.5]
	at org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:1048)[9:org.apache.karaf.features.core:4.0.5]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_101]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_101]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_101]
	at java.lang.Thread.run(Thread.java:745)[:1.8.0_101]

I really need some helps. Please!

Thanks,
Scott.

Last edited by thuongnht (2016-09-02 22:39:03)

Offline

#2 2016-09-03 10:22:55

thuongnht
Member
3 posts

thuongnht said:

Re: [resolved] [Problem] Runtime_ESBSE can't deploy a service,

It seem that the problem with tRunjob (call child job). I tried to deploy a service without trunjob. It worked well in runtime_esbse/karaf.
Now I have also the error in log file when I deploy service with trunjob:
... org.fire.wiring=routimes.system.api
Anybody can help? Please.

Tks,
Scott.

Last edited by thuongnht (2016-09-03 10:24:10)

Offline

#3 2016-09-03 15:03:22

thuongnht
Member
3 posts

thuongnht said:

Re: [resolved] [Problem] Runtime_ESBSE can't deploy a service,

Resolved:
Because I call a child job in parent (with service), it means that the deployed service has dependency:

<dependency>
      <groupId>org.talend.job.[project_name]</groupId>
      <artifactId>[job_name]</artifactId>
      <version>[version]</version>
</dependency>

Therefore, I need to build this child job 

Right click on Job -> Build Job -> choose "OSGI Bundle for ESB" -> choose the save dir "[Runtime_ESBSE/container/deploy/[name].jar)

This one must be deployed at first before the service. Then, I can deploy my service and it worked perfectly.

Many thanks to the related answer from Tony (http://stackoverflow.com/questions/2001 … ng-package)

Do you have this bundle installed in your container (Felix) as well?
<dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate</artifactId>
        <version>3.2.6.ga</version>
</dependency>
If not install it and then see what happens when you start your bundle.

Tks,
Scott.

Last edited by thuongnht (2016-09-03 15:06:42)

Offline

Board footer

Talend Contributor Agreement - Talend Website Privacy Policy