[jbosstools-issues] [JBoss JIRA] (JBDS-4183) Installing from an update site into rpm install causes duplicate IUs to be installed - use constraint violations ensue

Lukáš Valach (JIRA) issues at jboss.org
Mon Nov 21 10:15:00 EST 2016


    [ https://issues.jboss.org/browse/JBDS-4183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13325736#comment-13325736 ] 

Lukáš Valach commented on JBDS-4183:
------------------------------------

I tried to verified this ticket in 10.2-0.20161121.0756. I am able to install *Maven Integration for Eclipse JDT APT (m2e-apt)* and restart eclipse without errors. 

I also tried to verify this as Nick wrote in his guide but I have had problems here. Shoud this fix only solves problem with "Maven Integration for Eclipse JDT APT"? Is expected that I can't go throught all ten steps of Nick's guide without errors?

There are results of my attempt to do it as Nick wrote:

# install from latest rpm (/) (10.2-0.20161121.0756)
# Help > Install New > https://devstudio.redhat.com/10.0/snapshots/updates/ NOT from STABLE or Central (/)
# uncheck "group items by category" (/)
# select cordovasim feature (v20161115 or newer) (/)
# restart when prompted (/)
*no errors in the log*
# ll ~/.eclipse/org.eclipse.platform_*_linux_gtk_x86_64/plugins

{code:java}
[lvalach at localhost ldd]$  ll ~/.eclipse/org.eclipse.platform_*_linux_gtk_x86_64/plugins
total 1392
-rw-rw-r--. 1 lvalach lvalach  42200 Nov 21 13:17 org.eclipse.jetty.rewrite_9.3.9.v20160517.jar
-rw-rw-r--. 1 lvalach lvalach 216212 Nov 21 13:17 org.eclipse.thym.core_2.1.0.201611071511.jar
-rw-rw-r--. 1 lvalach lvalach  73577 Nov 21 13:17 org.jboss.tools.cordovasim_3.8.2.v20160920-1359.jar
-rw-rw-r--. 1 lvalach lvalach  86891 Nov 21 13:17 org.jboss.tools.cordovasim.eclipse_3.8.2.v20161115-2204.jar
-rw-rw-r--. 1 lvalach lvalach 996680 Nov 21 13:17 org.jboss.tools.cordovasim.ripple_3.8.2.v20160920-1359.jar
{code}

Should not see anything from java.servlet(.api)(/), org.apache.httpcomponents.httpclient(.cache)(/)
But will likely see org.slf4j.api 1.7.2 (x), which is probably OK as it's needed by other slf4j jars in the devstudio rpm install
  
7. install the rpm feature to update everything in devstudio to latest snapshot version from https://devstudio.redhat.com/10.0/snapshots/updates/


Then I restarted eclipse and I got errors. I noticed the restart is not mentioned in the quide. Was it intended?
 [^RPM_Fratures_and_restart.txt] 

When I tried it without restart between steps 7 and 8. I got this output after eighth step:
{code}
[lvalach at localhost ldd]$ ls ~/.eclipse/org.eclipse.platform_*_linux_gtk_x86_64/{plugins,features} | egrep -v "org.jboss.tools|org.eclipse.thym|org.jboss.ide|hibernate|com.jboss.devstudio"
/home/lvalach/.eclipse/org.eclipse.platform_283378046_linux_gtk_x86_64/features:
org.eclipse.linuxtools.vagrant.feature_2.1.0.201609141916

/home/lvalach/.eclipse/org.eclipse.platform_283378046_linux_gtk_x86_64/plugins:
org.apache.commons.lang_2.6.0.v201404270220.jar
org.apache.xml.resolver_1.2.0.v201005080400.jar
org.apache.xml.serializer_2.7.1.v201005080400.jar
org.eclipse.jetty.rewrite_9.3.9.v20160517.jar
org.eclipse.linuxtools.vagrant.core_2.0.0.201609141916.jar
org.eclipse.linuxtools.vagrant.docs_2.0.0.201609141916.jar
org.eclipse.linuxtools.vagrant.ui_2.0.0.201609141916.jar
{code}
 [^After step 8.txt] 

There isn't org.slf4j.api package as we wanted. 

> Installing from an update site into rpm install causes duplicate IUs to be installed - use constraint violations ensue
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBDS-4183
>                 URL: https://issues.jboss.org/browse/JBDS-4183
>             Project: Red Hat JBoss Developer Studio (devstudio)
>          Issue Type: Bug
>          Components: rpm
>    Affects Versions: 10.2.0.AM3
>            Reporter: Nick Boldt
>            Assignee: Nick Boldt
>            Priority: Blocker
>             Fix For: 10.2.0.GA
>
>         Attachments: After step 8.txt, RPM_Fratures_and_restart.txt, install-thym.png, rh-eclipse46-devstudio10.2.log.20161116-1226_strict.txt
>
>
> Steps to repro:
> 1. install from latest rpm, eg., 10.2.0.20161116.1342.el7
> 2. open Central > Software/Update, scroll down until you find the *Maven Integration for Eclipse JDT APT (m2e-apt)* connector
> 3. Install it. When prompted to restart, shut down Eclipse and check in your ~/.eclipse folder:
> {code}
> $➔ ll ~/.eclipse/org.eclipse.platform_*_linux_gtk_x86_64/plugins/
> total 36K
> -rw-rw-r-- 1 nboldt nboldt 34K Nov 16 10:54 org.slf4j.api_1.7.2.v20121108-1250.jar
> {code}
> But this plugin is already installed here:
> {code}/opt/rh/rh-java-common/root/usr/share/java/slf4j/slf4j-api.jar
> /opt/rh/rh-eclipse46/root/usr/share/eclipse/droplets/egit-mylyn/eclipse/plugins/slf4j.api_1.7.4.jar{code}
> So even though the connector install doesn't install any new m2e-apt stuff (it's already installed too):
> {code}
> /opt/rh/rh-eclipse46/root/usr/share/eclipse/droplets/devstudio/eclipse/plugins/org.jboss.tools.maven.apt.ui_1.3.0.201610261805.jar
> /opt/rh/rh-eclipse46/root/usr/share/eclipse/droplets/devstudio/eclipse/plugins/org.jboss.tools.maven.apt.core_1.3.0.201610261805.jar
> /opt/rh/rh-eclipse46/root/usr/share/eclipse/droplets/devstudio/eclipse/features/org.jboss.tools.maven.apt.feature_1.3.0.201610261805
> {code}
> ... the result of this install is to cause use constrain violations and break the devstudio install.
> A bigger problem occurs in JBDS-4150 when installing Thym or Aerogear features, since a second version of org.apache.httpcomponents.httpclient_4.3.6.v201511171540.jar is installed even though there's already one in the /opt/rh/ install footprint.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)



More information about the jbosstools-issues mailing list