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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] missing requirement osgi.wiring.package=routines.system.api karaf/fuse

I'm trying to deploy my talend job to Fuse by dropping it in the deploy directory but I can't seem to understand what is wrong with the MANIFEST.MF file. Any idea why I get this error?
10:59:02,268 | WARN | edhat-024/deploy | fileinstall | 7 - org.apache.felix.fileinstall - 3.3.11.redhat-60024 | Error while starting bundle: file:/home2/foo/jboss-fuse-6.0.0.redhat-024/deploy/myApp-bundle-0.1.jar
org.osgi.framework.BundleException: Unresolved constraint in bundle org.talend.myProject.myApp : Unable to resolve 246.0: missing requirement osgi.wiring.package; (osgi.wiring.package=routines.system.api)
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4155)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2055)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1247)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1219)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:508)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:291)
The package in question seems to be included in the jar file as a bunch of class files.
bash-3.00$ la myApp-bundle-0.1/
total 24
drwxr-xr-x 8 foo staff 8 Oct 28 10:24 .
drwxr-xr-x 3 foo staff 7 Oct 28 10:58 ..
drwxr-xr-x 2 foo staff 3 Oct 28 10:58 META-INF
drwxr-xr-x 3 foo staff 3 Oct 25 16:00 OSGI-INF
drwxr-xr-x 3 foo staff 3 Oct 25 16:00 myProject
drwxr-xr-x 3 foo staff 3 Oct 25 16:00 items
drwxr-xr-x 2 foo staff 5 Oct 25 16:00 lib
drwxr-xr-x 3 foo staff 17 Oct 25 16:00 routines
bash-3.00$ la myApp-bundle-0.1/routines
total 151
drwxr-xr-x 3 foo staff 17 Oct 25 16:00 .
drwxr-xr-x 8 foo staff 8 Oct 28 10:24 ..
-rw-r--r-- 1 foo staff 893 Oct 25 15:59 DataOperation.class
-rw-r--r-- 1 foo staff 3.7K Oct 25 15:59 Mathematical.class
-rw-r--r-- 1 foo staff 2.4K Oct 25 15:59 Numeric.class
-rw-r--r-- 1 foo staff 500 Oct 25 15:59 Relational.class
-rw-r--r-- 1 foo staff 2.1K Oct 25 15:59 SQLike.class
-rw-r--r-- 1 foo staff 3.5K Oct 25 15:59 StringHandling.class
-rw-r--r-- 1 foo staff 7.1K Oct 25 15:59 TalendDataGenerator.class
-rw-r--r-- 1 foo staff 1.5K Oct 25 15:59 TalendDate$1.class
-rw-r--r-- 1 foo staff 1.5K Oct 25 15:59 TalendDate$2.class
-rw-r--r-- 1 foo staff 1.5K Oct 25 15:59 TalendDate$3.class
-rw-r--r-- 1 foo staff 1.5K Oct 25 15:59 TalendDate$4.class
-rw-r--r-- 1 foo staff 1.4K Oct 25 15:59 TalendDate$5.class
-rw-r--r-- 1 foo staff 13K Oct 25 15:59 TalendDate.class
-rw-r--r-- 1 foo staff 4.6K Oct 25 15:59 TalendString.class
drwxr-xr-x 3 foo staff 135 Oct 25 16:00 system
bash-3.00$ la myApp-bundle-0.1/routines/system
total 1004
drwxr-xr-x 3 foo staff 135 Oct 25 16:00 .
drwxr-xr-x 3 foo staff 17 Oct 25 16:00 ..
-rw-r--r-- 1 foo staff 661 Oct 25 15:59 AS400Manager.class
-rw-r--r-- 1 foo staff 671 Oct 25 15:59 AccessManager.class
-rw-r--r-- 1 foo staff 2.7K Oct 25 15:59 AssertCatcherUtils$AssertCatcherMessage.class
-rw-r--r-- 1 foo staff 2.0K Oct 25 15:59 AssertCatcherUtils.class
-rw-r--r-- 1 foo staff 3.2K Oct 25 15:59 BufferedOutput.class
-rw-r--r-- 1 foo staff 371 Oct 25 15:59 Constant.class
-rw-r--r-- 1 foo staff 658 Oct 25 15:59 DB2Manager.class
-rw-r--r-- 1 foo staff 1.8K Oct 25 15:59 DBDateParser.class
-rw-r--r-- 1 foo staff 666 Oct 25 15:59 DBMSConstants$1.class
-rw-r--r-- 1 foo staff 715 Oct 25 15:59 DBMSConstants$10.class
-rw-r--r-- 1 foo staff 713 Oct 25 15:59 DBMSConstants$11.class
-rw-r--r-- 1 foo staff 713 Oct 25 15:59 DBMSConstants$12.class
.........<more files>.....
Manifest-Version: 1.0
Bnd-LastModified: 1382742010814
Build-Jdk: 1.6.0_25
Built-By: WilliamMcDonald
Bundle-ClassPath: .,lib/log4j-1.2.16.jar,lib/talend_file_enhanced_200707
24.jar,lib/ini4j-0.5.1.jar
Bundle-ManifestVersion: 2
Bundle-Name: myApp
Bundle-SymbolicName: org.talend.myProject.myApp
Bundle-Version: 0.1
Created-By: Apache Maven Bundle Plugin
Export-Package: myProject.myApp_0_1;uses:="routines.system,routines.syste
m.api,javax.sql";version="0.1"
Export-Service: routines.system.api.TalendJob;name=myApp;type=job
Import-Package: com.ibm.uvm.tools;resolution:=optional,com.sun.jdmk.comm
;resolution:=optional,javax.jmdns;resolution:=optional,javax.jms;resolu
tion:=optional,javax.mail;resolution:=optional,javax.mail.internet;reso
lution:=optional,javax.management;resolution:=optional,javax.naming;res
olution:=optional,javax.sql;resolution:=optional,javax.swing;resolution
:=optional,javax.swing.border;resolution:=optional,javax.swing.event;re
solution:=optional,javax.swing.table;resolution:=optional,javax.swing.t
ext;resolution:=optional,javax.swing.tree;resolution:=optional,javax.xm
l.parsers;resolution:=optional,org.apache.cxf.management.counters,org.d
om4j;resolution:=optional,org.dom4j.io;resolution:=optional,org.dom4j.t
ree;resolution:=optional,org.osgi.service.blueprint;resolution:=optiona
l;version="[1.0.0,2.0.0)",org.w3c.dom;resolution:=optional,org.xml.sax;
resolution:=optional,org.xml.sax.helpers;resolution:=optional,routines;
resolution:=optional,routines.system;resolution:=optional,routines.syst
em.api,sun.security.action;resolution:=optional
Tool: Bnd-1.50.0
I've tried removing the references to it in the import, with no luck. The root directory "." is included in the Bundle-ClassPath so I thought that should pick it up.
Manifest-Version: 1.0
Bnd-LastModified: 1382742010814
Build-Jdk: 1.6.0_25
Built-By: WilliamMcDonald
Bundle-ClassPath: .,lib/log4j-1.2.16.jar,lib/talend_file_enhanced_200707
24.jar,lib/ini4j-0.5.1.jar
Bundle-ManifestVersion: 2
Bundle-Name: myApp
Bundle-SymbolicName: org.talend.myProject.myApp
Bundle-Version: 0.1
Created-By: Apache Maven Bundle Plugin
Export-Package: myProject.myApp_0_1;uses:="javax.sql";version="0.1"
Export-Service: routines.system.api.TalendJob;name=myApp;type=job
Import-Package: com.ibm.uvm.tools;resolution:=optional,com.sun.jdmk.comm
;resolution:=optional,javax.jmdns;resolution:=optional,javax.jms;resolu
tion:=optional,javax.mail;resolution:=optional,javax.mail.internet;reso
lution:=optional,javax.management;resolution:=optional,javax.naming;res
olution:=optional,javax.sql;resolution:=optional,javax.swing;resolution
:=optional,javax.swing.border;resolution:=optional,javax.swing.event;re
solution:=optional,javax.swing.table;resolution:=optional,javax.swing.t
ext;resolution:=optional,javax.swing.tree;resolution:=optional,javax.xm
l.parsers;resolution:=optional,org.apache.cxf.management.counters,org.d
om4j;resolution:=optional,org.dom4j.io;resolution:=optional,org.dom4j.t
ree;resolution:=optional,org.osgi.service.blueprint;resolution:=optiona
l;version="[1.0.0,2.0.0)",org.w3c.dom;resolution:=optional,org.xml.sax;
resolution:=optional,org.xml.sax.helpers;resolution:=optional,sun.secur
ity.action;resolution:=optional
Tool: Bnd-1.50.0
Maybe you can see something I can't...
Labels (4)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi  LYUTOV,
We have replied to your another topic: https://community.talend.com/t5/Design-and-Development/missing-requirement-osgi-wiring-package-routi.... Could you please take a look at it?
Best regards
Sabrina

View solution in original post

8 Replies
Anonymous
Not applicable
Author

Hi,
Is your job working well in talend? How did you deploy it? By war file?
Best regards
Sabrina
Anonymous
Not applicable
Author

It seems that I re-jar'ed the file from the wrong location and got an extra directory in all the paths by mistake.
_AnonymousUser
Specialist III
Specialist III

Hi,
I got the same problem while running my osgi bundle.
Ref: I am using fuseesb 7.1.0 and tos 5.4.1 version.
Projectname = example
Jobname=controlfileload
I am able to install my bundle in fuseesb(karaf). but when i start(osgi:start). It shows following error
"Error executing command: Error starting bundles: Unable to start bundle 286: Unresolved constraint in bundle example.ControlfileLoad : Unable to resolve 286.0: missing requirement osgi.wiring.package; (osgi.wiring.package=routines.system.api)"
'
Talend osgi jobs only run on talendesb not in fuseesb or any jar(systemRoutines.jar) problem or any Class file problem(routines.system.api.talendjob). If not, how to run my bundle in fuseesb after exporting from talend?
Anonymous
Not applicable
Author

Facing the same issue,  Can anyone advise whether Talend bundle jar will run in Fuse server?
Anonymous
Not applicable
Author

Hi  sundaram.krissh,
What's the fuse server version  you are using ? What's your talend version?
Best regards
Sabrina
Anonymous
Not applicable
Author

Hello!
I am using jboss-fuse-6.3.0.redhat-187 and Talend Open Studio for ESB (6.3.0.20161026_1219) and TOS_ESB-6.3.0\Runtime_ESBSE
Bundle for jboss_fuse correct work in TOS_ESB-6.3.0\Runtime_ESBSE
But bundle create in talendesb doesn't work in jboss_fuse.
May be because jboss-fuse used org.apache.felix.framework-4.4.1.jar
and Talend Open Studio for ESB used org.apache.felix.framework-5.4.0.jar  ?

I have this error in jboss-fuse-6.3:

org.osgi.framework.BundleException: Unresolved constraint in bundle data_integration_demos_project.tPreJob : Unable to resolve 222.0: missing requirement osgi.wiring.package; (osgi.wiring.package=routines.system.api)
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:976)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1245)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1217)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startAllBundles(DirectoryWatcher.java:1207)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:504)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:358)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:310)
Anonymous
Not applicable
Author

I can run on clean apache-karaf-4.0.8  (include org.apache.felix.framework-5.6.1.jar  )
But I have this error:
karaf@root()> ERROR: Bundle data_integration_demos_project.tPreJob Error st
arting file:/apache-karaf-4.0.8/deploy/tPreJob-0.1.jar
(org.osgi.framework.BundleException: Unable to resolve data_integration_demos_pr
oject.tPreJob (R 52.0): missing requirement (R 52.0)] osgi.wiring.package; (osgi.wiring.package=routines.system.
api) Unresolved requirements: (R 52
.0)] osgi.wiring.package; (osgi.wiring.package=routines.system.api)])
org.osgi.framework.BundleException: Unable to resolve data_integration_demos_pro
ject.tPreJob (R 52.0): missing requirement (R 52.0)] osgi.wiring.package; (osgi.wiring.package=routines.system.a
pi) Unresolved requirements: (R 52.
0)] osgi.wiring.package; (osgi.wiring.package=routines.system.api)]
        at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:411
1)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2117)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371)
        at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStart
LevelImpl.java:308)
        at java.lang.Thread.run(Thread.java:745)
Anonymous
Not applicable
Author

Hi  LYUTOV,
We have replied to your another topic: https://community.talend.com/t5/Design-and-Development/missing-requirement-osgi-wiring-package-routi.... Could you please take a look at it?
Best regards
Sabrina