<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 04/15/2015 11:56 PM, Nick Boldt
wrote:<br>
</div>
<blockquote cite="mid:552EDE7C.7040606@redhat.com" type="cite">
<pre wrap="">Just wondering if anyone knows WHY we include javax.servlet 3.0.0 and
3.1.0 in JBDS.
More importantly... SHOULD we be including both? Or can we just include
3.1.0 and drop 3.0.0?
</pre>
</blockquote>
I have JBDS installed from installer, which basically ran a p2
director. And I get jetty 3.0.0 and jetty 3.1.0. Than means that
while resolving what to installed, p2 has to keep both versions of
javax.servlet. That's definitely a sign that our dependency chain
currently need both (or p2 wouldn't have installed both).<br>
<br>
So I've tried the ultimate test:<br>
$ cd jbdevstudio-9.0.0.Alpha2/studio<br>
$ rm plugins/javax.servlet_3.0.0*<br>
$ ./jbdevstudio<br>
And saw<br>
<br>
!ENTRY org.jboss.tools.ws.ui 4 0 2015-04-16 10:35:49.110<br>
!MESSAGE FrameworkEvent ERROR<br>
!STACK 0<br>
org.osgi.framework.BundleException: Could not resolve module:
org.jboss.tools.ws.ui [967]<br>
Unresolved requirement: Import-Package: javax.servlet;
version="[2.4.0,3.0.0)"<br>
<br>
at org.eclipse.osgi.container.Module.start(Module.java:434)<br>
at
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)<br>
at
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)<br>
at
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)<br>
at
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)<br>
at
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)<br>
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)<br>
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)<br>
<br>
<br>
Fun thing is that the javax.servlet_3.0.0 actually exports packages
in version 2.6.0, whereas javax.servlet_3.1.0 exports them in
version 3.1.0.<br>
<br>
I've put that in a Jira <a class="moz-txt-link-freetext" href="https://issues.jboss.org/browse/JBIDE-19605">https://issues.jboss.org/browse/JBIDE-19605</a><br>
<div class="moz-signature">-- <br>
Mickael Istria<br>
Eclipse developer at <a href="http://www.jboss.org/tools">JBoss,
by Red Hat</a><br>
<a href="http://mickaelistria.wordpress.com">My blog</a> - <a
href="http://twitter.com/mickaelistria">My Tweets</a></div>
</body>
</html>