Discussion:
[jetty-users] Jetty 7's Servlet Annotations bundle requires javax.naming 0.0.0 package?
Alexei Trebounskikh
2018-03-29 23:02:53 UTC
Permalink
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!
Olivier Lamy
2018-03-30 11:27:00 UTC
Permalink
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 <
Post by Alexei Trebounskikh
Hi all,
I am trying to replace Jetty 6 bundle with Jetty 7 in a legacy Eclipse RCP
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
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users
--
Olivier
Joakim Erdfelt
2018-03-30 13:10:06 UTC
Permalink
Jetty 7 is very EOL (End of Life)
<https://dev.eclipse.org/mhonarc/lists/jetty-announce/msg00069.html>, 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 / ***@webtide.com

On Thu, Mar 29, 2018 at 6:02 PM, Alexei Trebounskikh <
Post by Alexei Trebounskikh
Hi all,
I am trying to replace Jetty 6 bundle with Jetty 7 in a legacy Eclipse RCP
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
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users
Jan Bartel
2018-04-04 00:24:32 UTC
Permalink
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 <
Post by Alexei Trebounskikh
Hi all,
I am trying to replace Jetty 6 bundle with Jetty 7 in a legacy Eclipse RCP
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
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users
--
Jan Bartel <***@webtide.com>
www.webtide.com
*Expert assistance from the creators of Jetty and CometD*
Loading...