Developing Plug-in for Protege Issue

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Developing Plug-in for Protege Issue

Daniele Santamaria DMI
Dear all,
I'm writing a Protege plugin and everything seems go well. But when i
load the plug-in on Protege, i receive the following error:


org.osgi.framework.BundleException: Unresolved constraint in bundle
dmi.protege.YASPP [30]: Unable to resolve 30.0: missing requirement
[30.0] osgi.wiring.package;
(&(osgi.wiring.package=com.hp.hpl.jena.assembler)(version>=2.6.4))
        at
org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
~[org.apache.felix.main.jar:na]
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
~[org.apache.felix.main.jar:na]
        at
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
~[org.apache.felix.main.jar:na]
        at
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
[org.apache.felix.main.jar:na]
        at java.lang.Thread.run(Thread.java:745) [na:1.8.0_40]


It seems that a requested jar (com.hp.hpl.jena.assembler.assemblers) is
missed. How can I edit the pom file of the project in order to get rid
of this error ? I'm using aldo Jena in the plug-in.
Best,
Daniele

--
Daniele Francesco Santamaria, Ph.D. Student
Ufficio 32, Blocco I, +39 095 738 3019 <tel:+390957383019>
Department of Mathematics and Computer Science,
University of Catania,
Viale A.Doria, 6 - 95125 - Catania, Italy
http://www.dmi.unict.it/~santamaria/
_______________________________________________
protege-user mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Developing Plug-in for Protege Issue

Matthew Horridge-2
Administrator
Hi Daniele,

This happens because the Jena packages cannot be found at runtime.  You need to make these available to Protege somehow.  To do this you can either try to supply the Jena jars as OSGi bundles and put them in the Protege plugins directory (not so easy because you don’t have control over these jars - that’s if they aren’t already bundles, I would need to check this though), or you could embed the Jena jars in your plugin.  To do this you need to add an embed declaration in your pom.  You can take a look at how the RDF library (not Jena) does this here:


Cheers,

Matthew



On 2 Aug 2017, at 02:42, Daniele Santamaria DMI <[hidden email]> wrote:

Dear all,
I'm writing a Protege plugin and everything seems go well. But when i
load the plug-in on Protege, i receive the following error:


org.osgi.framework.BundleException: Unresolved constraint in bundle
dmi.protege.YASPP [30]: Unable to resolve 30.0: missing requirement
[30.0] osgi.wiring.package;
(&(osgi.wiring.package=com.hp.hpl.jena.assembler)(version>=2.6.4))
at
org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
~[org.apache.felix.main.jar:na]
at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
~[org.apache.felix.main.jar:na]
at
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
~[org.apache.felix.main.jar:na]
at
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
[org.apache.felix.main.jar:na]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_40]


It seems that a requested jar (com.hp.hpl.jena.assembler.assemblers) is
missed. How can I edit the pom file of the project in order to get rid
of this error ? I'm using aldo Jena in the plug-in.
Best,
Daniele

--
Daniele Francesco Santamaria, Ph.D. Student
Ufficio 32, Blocco I, +39 095 738 3019 <<a href="tel:&#43;390957383019" class="">tel:+390957383019>
Department of Mathematics and Computer Science,
University of Catania,
Viale A.Doria, 6 - 95125 - Catania, Italy
http://www.dmi.unict.it/~santamaria/
_______________________________________________
protege-user mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-user


_______________________________________________
protege-user mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-user
Loading...