Jetty 7's Servlet Annotations bundle requires javax.naming 0.0.0 package?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Jetty 7's Servlet Annotations bundle requires javax.naming 0.0.0 package?

Alexei Trebounskikh

Hi all,

 

I am trying to replace Jetty 6 bundle with Jetty 7 in a legacy Eclipse RCP project , but get this error:

Missing requirement: Jetty :: Servlet Annotations requires package ‘javax.naming 0.0.0’ but it could not be found.

 

Does it require a plugin that exports javax.naming? The project uses Java 8.

 

Thanks!


_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users
Reply | Threaded
Open this post in threaded view
|

Re: Jetty 7's Servlet Annotations bundle requires javax.naming 0.0.0 package?

Olivier Lamy
Hi
Please have a look at supported versions here https://www.eclipse.org/jetty/previousversions.html
Jetty 7 is not supported anymore. You should upgrade to at least 9.3.
Cheers
Olivier


On Fri, Mar 30, 2018 at 9:02 AM, Alexei Trebounskikh <[hidden email]> wrote:

Hi all,

 

I am trying to replace Jetty 6 bundle with Jetty 7 in a legacy Eclipse RCP project , but get this error:

Missing requirement: Jetty :: Servlet Annotations requires package ‘javax.naming 0.0.0’ but it could not be found.

 

Does it require a plugin that exports javax.naming? The project uses Java 8.

 

Thanks!


_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users



--
Olivier

_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users
Reply | Threaded
Open this post in threaded view
|

Re: Jetty 7's Servlet Annotations bundle requires javax.naming 0.0.0 package?

Joakim Erdfelt-8
In reply to this post by Alexei Trebounskikh
Jetty 7 is very EOL (End of Life), not recommended for public internet use anymore.

As for the OSGi conflict, you have to diagnose the 'use' behaviors yourself on your collection of bundles.
See http://spring.io/blog/2008/11/22/diagnosing-osgi-uses-conflicts/ for help/advice on diagnosing these kinds of issues.


Joakim Erdfelt / [hidden email]

On Thu, Mar 29, 2018 at 6:02 PM, Alexei Trebounskikh <[hidden email]> wrote:

Hi all,

 

I am trying to replace Jetty 6 bundle with Jetty 7 in a legacy Eclipse RCP project , but get this error:

Missing requirement: Jetty :: Servlet Annotations requires package ‘javax.naming 0.0.0’ but it could not be found.

 

Does it require a plugin that exports javax.naming? The project uses Java 8.

 

Thanks!


_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users


_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users
Reply | Threaded
Open this post in threaded view
|

Re: Jetty 7's Servlet Annotations bundle requires javax.naming 0.0.0 package?

Jan Bartel
In reply to this post by Alexei Trebounskikh
Yes, jetty-annotations in jetty-7 and beyond requires javax.naming to be available. Usually this is available from the jvm and exposed by osgi container. Check the doco for your osgi container version, and look at the boot delegation packages or system packages. If its a really old container then maybe you'll need to find and deploy a javax.naming bundle.

Jan

On 30 March 2018 at 10:02, Alexei Trebounskikh <[hidden email]> wrote:

Hi all,

 

I am trying to replace Jetty 6 bundle with Jetty 7 in a legacy Eclipse RCP project , but get this error:

Missing requirement: Jetty :: Servlet Annotations requires package ‘javax.naming 0.0.0’ but it could not be found.

 

Does it require a plugin that exports javax.naming? The project uses Java 8.

 

Thanks!


_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users



--
Jan Bartel <[hidden email]>
www.webtide.com
Expert assistance from the creators of Jetty and CometD


_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users