Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Place Routines in Container

Hello,

I have a Talend job that will be built as a .jar file to be placed in a container. Unfortunately it uses routines, and I believe this is whats causing the error whenever I try to place the .jar in the container - it doesnt get created, but shows a failure instead.

How can I include or export my routines such that I can include them in my Talend job or be placed in the container so my Talend job can successfully be created?

Best Regards,
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hello and thanks for the suggestion. Unfortunately that was already set up before I posted this question. The above error messages already had all the routines in the job's routine dependencies.

EDIT 1:

I have tried extracting the built .jar file and I noticed that in the UserRoutines.jar inside, it is missing one of the routines, MRZInfo to be exact. In the job's routine dependencies there are 4, but in the UserRoutines.jar, there are only 3. Please see attached screenshots. Hope these help.

Job Routine Dependencies:

      0683p000009MGTv.png

UserRoutines.jar extracted:

      0683p000009MGvi.png

EDIT 2:

I have tried setting the routine dependencies one at a time and building the job again and again until it shows less missing routine errors. For some weird reason, I now have 4 classes in the UserRoutines.jar.

Job has now been successfully deployed in the Karaf, thanks for the help.

View solution in original post

4 Replies
Anonymous
Not applicable
Author

You will need to show us the logs you get from your container (I am assuming Apache Karaf). Routines will be compiled inside the Jar, so I don't think it is the routines.
Anonymous
Not applicable
Author

I see, here is a snippet of the log that shows the error:

05:50:38,926 | INFO  | container/deploy | ?                                   ? | 6 - org.apache.felix.fileinstall - 3.4.2 | Uninstalling bundle 405 (demo_esb.ValidateMRZ)
05:50:38,927 | INFO  | container/deploy | nt.container.BlueprintExtender$3  299 | 7 - org.apache.aries.blueprint.core - 1.4.0 | Destroying BlueprintContainer for bundle demo_esb.ValidateMRZ05:51:27,061 | INFO  | container/deploy | ?                                   ? | 6 - org.apache.felix.fileinstall - 3.4.2 | Installing bundle demo_esb.ValidateMRZ / 1.2.005:51:27,187 | INFO  | container/deploy | r.internal.JobTracker$Customizer  106 | 199 - org.talend.esb.job.controller - 5.6.1 | Service with reference {routines.system.api


To see the whole post, download it here
OriginalPost.pdf
Anonymous
Not applicable
Author

Ah, I see. I may have been wrong saying that it is not the routines. Try right clicking on the closed Job in your Studio and selecting "Setup routine dependencies". Then select each of the routines you use in the job and rebuild the job. Delete the old job from the Karaf deploy folder and add the new one. That should at least change the error message if it doesn't work.
Anonymous
Not applicable
Author

Hello and thanks for the suggestion. Unfortunately that was already set up before I posted this question. The above error messages already had all the routines in the job's routine dependencies.

EDIT 1:

I have tried extracting the built .jar file and I noticed that in the UserRoutines.jar inside, it is missing one of the routines, MRZInfo to be exact. In the job's routine dependencies there are 4, but in the UserRoutines.jar, there are only 3. Please see attached screenshots. Hope these help.

Job Routine Dependencies:

      0683p000009MGTv.png

UserRoutines.jar extracted:

      0683p000009MGvi.png

EDIT 2:

I have tried setting the routine dependencies one at a time and building the job again and again until it shows less missing routine errors. For some weird reason, I now have 4 classes in the UserRoutines.jar.

Job has now been successfully deployed in the Karaf, thanks for the help.