Developing Plug-in for Protege Issue

classic Classic list List threaded Threaded
5 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>
<tel:+390957383019 <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-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Developing Plug-in for Protege Issue

Yevgeny Kazakov
Dear Daniele,

If you speak about a pom file, I assume you develop your plugin in Maven.
Then you need to embed all maven dependencies that are not exported by Protege (i.e., which packages are not present in Protege Manifest files).
I guess jena is one of such dependencies.

Assuming you use apache felix to generate manifest files for your plugin, you can set all dependencies that you want to embed with the scope "provided" and use that in the "Embed-Dependency" with "scope=provided" in the apache felix configuration instructions. See, e.g., example here:

But I must warn you that osgi + maven is an advance subject with a steep learning curve, especially if did not have much experience with either osgi or maven before. The apache felix maven plugin manual can be a good starting pointer for this:


Best regards,

Yevgeny




On Wed, Aug 2, 2017 at 4:18 PM, [hidden email] <[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 <tel:+390957383019>
<tel:<a href="tel:%2B390957383019" value="+390957383019">+390957383019 <tel:<a href="tel:%2B390957383019" value="+390957383019">+390957383019>>
Department of Mathematics and Computer Science,
University of Catania,
Viale A.Doria, 6 - 95125 - Catania, Italy
http://www.dmi.unict.it/~santamaria/
_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev


_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

R: Developing Plug-in for Protege Issue

Daniele Santamaria DMI

Dear Yevgeny and Matthew, before your answer I used “Export-Package” in POM file to include all the libraries required by jena. Now I riceve the same error but with the library com.google.inject.internal.asm.util . I’m not sure that this package is used by Jena but i will try to include also this package.

Thank you.

Cheers,

Daniele

 

 

Daniele Francesco Santamaria, Ph.D. Student
Ufficio 32, Blocco I, +39 095 738 3019
Department of Mathematics and Computer Science,
University of Catania,
Viale A.Doria, 6 - 95125 - Catania, Italy
http://www.dmi.unict.it/~santamaria/

 

Da: [hidden email]
Inviato: mercoledì 2 agosto 2017 21:00
A: [hidden email]
Oggetto: Re: [protege-dev] Developing Plug-in for Protege Issue

 

Dear Daniele,

If you speak about a pom file, I assume you develop your plugin in Maven.
Then you need to embed all maven dependencies that are not exported by Protege (i.e., which packages are not present in Protege Manifest files).
I guess jena is one of such dependencies.

Assuming you use apache felix to generate manifest files for your plugin, you can set all dependencies that you want to embed with the scope "provided" and use that in the "Embed-Dependency" with "scope=provided" in the apache felix configuration instructions. See, e.g., example here:

 

But I must warn you that osgi + maven is an advance subject with a steep learning curve, especially if did not have much experience with either osgi or maven before. The apache felix maven plugin manual can be a good starting pointer for this:

 

 

Best regards,

 

Yevgeny

 

 

 

 

On Wed, Aug 2, 2017 at 4:18 PM, [hidden email] <[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 <tel:+390957383019>

<tel:<a href="tel:%2B390957383019">+390957383019 <tel:<a href="tel:%2B390957383019">+390957383019>>
Department of Mathematics and Computer Science,
University of Catania,
Viale A.Doria, 6 - 95125 - Catania, Italy
http://www.dmi.unict.it/~santamaria/
_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev

 

 


_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: R: Developing Plug-in for Protege Issue

Yevgeny Kazakov
Hi Daniele,

actually Mathew is right. Jena seems to be available as an OSGI bundle:


Then, in principle, it should be enough to copy this jar to the Protege plugin directory, without modifying the POM file.

Best regards,

- Yevgeny

On Wed, Aug 2, 2017 at 9:53 PM, Daniele Francesco Santamaria <[hidden email]> wrote:

Dear Yevgeny and Matthew, before your answer I used “Export-Package” in POM file to include all the libraries required by jena. Now I riceve the same error but with the library com.google.inject.internal.asm.util . I’m not sure that this package is used by Jena but i will try to include also this package.

Thank you.

Cheers,

Daniele

 

 

Daniele Francesco Santamaria, Ph.D. Student
Ufficio 32, Blocco I, <a href="tel:+39%20095%20738%203019" value="+390957383019" target="_blank">+39 095 738 3019
Department of Mathematics and Computer Science,
University of Catania,
Viale A.Doria, 6 - 95125 - Catania, Italy
http://www.dmi.unict.it/~santamaria/

 

Da: [hidden email]
Inviato: mercoledì 2 agosto 2017 21:00
A: [hidden email]
Oggetto: Re: [protege-dev] Developing Plug-in for Protege Issue

 

Dear Daniele,

If you speak about a pom file, I assume you develop your plugin in Maven.
Then you need to embed all maven dependencies that are not exported by Protege (i.e., which packages are not present in Protege Manifest files).
I guess jena is one of such dependencies.

Assuming you use apache felix to generate manifest files for your plugin, you can set all dependencies that you want to embed with the scope "provided" and use that in the "Embed-Dependency" with "scope=provided" in the apache felix configuration instructions. See, e.g., example here:

 

But I must warn you that osgi + maven is an advance subject with a steep learning curve, especially if did not have much experience with either osgi or maven before. The apache felix maven plugin manual can be a good starting pointer for this:

 

 

Best regards,

 

Yevgeny

 

 

 

 

On Wed, Aug 2, 2017 at 4:18 PM, [hidden email] <[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, <a href="tel:+39%20095%20738%203019" value="+390957383019" target="_blank">+39 095 738 3019 <tel:<a href="tel:+39%20095%20738%203019" value="+390957383019" target="_blank">+390957383019>

<tel:<a href="tel:%2B390957383019" target="_blank">+390957383019 <tel:<a href="tel:%2B390957383019" target="_blank">+390957383019>>
Department of Mathematics and Computer Science,
University of Catania,
Viale A.Doria, 6 - 95125 - Catania, Italy
http://www.dmi.unict.it/~santamaria/
_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev

 

 


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



_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

R: R: Developing Plug-in for Protege Issue

Daniele Santamaria DMI

I will try.

Many thanks,

Daniele

 

Inviato da Posta per Windows 10

 

Da: [hidden email]
Inviato: giovedì 3 agosto 2017 09:29
A: [hidden email]
Oggetto: Re: [protege-dev] R: Developing Plug-in for Protege Issue

 

Hi Daniele,

 

actually Mathew is right. Jena seems to be available as an OSGI bundle:

 

 

Then, in principle, it should be enough to copy this jar to the Protege plugin directory, without modifying the POM file.

 

Best regards,

 

- Yevgeny

 

On Wed, Aug 2, 2017 at 9:53 PM, Daniele Francesco Santamaria <[hidden email]> wrote:

Dear Yevgeny and Matthew, before your answer I used “Export-Package” in POM file to include all the libraries required by jena. Now I riceve the same error but with the library com.google.inject.internal.asm.util . I’m not sure that this package is used by Jena but i will try to include also this package.

Thank you.

Cheers,

Daniele

 

 

Daniele Francesco Santamaria, Ph.D. Student
Ufficio 32, Blocco I, <a href="tel:+39%20095%20738%203019" target="_blank">+39 095 738 3019
Department of Mathematics and Computer Science,
University of Catania,
Viale A.Doria, 6 - 95125 - Catania, Italy
http://www.dmi.unict.it/~santamaria/

 

Da: [hidden email]
Inviato: mercoledì 2 agosto 2017 21:00
A: [hidden email]
Oggetto: Re: [protege-dev] Developing Plug-in for Protege Issue

 

Dear Daniele,

If you speak about a pom file, I assume you develop your plugin in Maven.
Then you need to embed all maven dependencies that are not exported by Protege (i.e., which packages are not present in Protege Manifest files).
I guess jena is one of such dependencies.

Assuming you use apache felix to generate manifest files for your plugin, you can set all dependencies that you want to embed with the scope "provided" and use that in the "Embed-Dependency" with "scope=provided" in the apache felix configuration instructions. See, e.g., example here:

 

But I must warn you that osgi + maven is an advance subject with a steep learning curve, especially if did not have much experience with either osgi or maven before. The apache felix maven plugin manual can be a good starting pointer for this:

 

 

Best regards,

 

Yevgeny

 

 

 

 

On Wed, Aug 2, 2017 at 4:18 PM, [hidden email] <[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, <a href="tel:+39%20095%20738%203019" target="_blank">+39 095 738 3019 <tel:<a href="tel:+39%20095%20738%203019" target="_blank">+390957383019>

<tel:<a href="tel:%2B390957383019" target="_blank">+390957383019 <tel:<a href="tel:%2B390957383019" target="_blank">+390957383019>>
Department of Mathematics and Computer Science,
University of Catania,
Viale A.Doria, 6 - 95125 - Catania, Italy
http://www.dmi.unict.it/~santamaria/
_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev

 

 


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

 

 


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