facebook

2 versions of same jar file in deployment

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #347481 Reply

    tim5901
    Participant

    I have a Maven project that has a dependency on a spring-security-web artifact version 3.1.2. The spring-security-web artifact has a dependency on spring-web 3.0.7. I want to use spring-web 3.1.2 in my project so I have a dependency in my project on spring-web 3.1.2 to force it to the new version. This looks fine in the IDE but when I deploy it to my IDEs Websphere server it deploys both spring-web jars; the 3.1.2 jar and the 3.0.7 jar. The server picks up the 3.0.7 jar which causes issues such as NoSuchMethodError exceptions.

    I have tried putting exclusions on the spring-security-web dependency to prevent it from referencing the 3.0.7 spring-web artifact but this does not resolve the deployment issue.

    Why does the deployment process deploy both versions of the artifact and how can I prevent this?

    #347507 Reply

    support-swapna
    Moderator

    Tim,

    Sorry that you are seeing this issue. I could not replicate the issue at my end.

    1. Can you please share the MyEclipse Installation Details from MyEclipse > Installation Summary > Installation Details? Also share the version of Websphere you are working with.

    2. Which deployment mode are you using? Is it possible for you to create a sample project which exhibits the issue and attach it to help us replicate the issue at our end?

    3. Is it a Maven web project ? Do you see the same issue when the project is deployed to MyEclipse Tomcat?

    #347541 Reply

    tim5901
    Participant

    Here is the installation summary.

    *** Date:
    Tuesday, February 25, 2014 5:54:50 PM EST

    *** System properties:
    OS=WindowsVista
    OS version=6.1.0
    OS arch=amd64
    Profile arch=x86_64
    Window system=win32
    Java version=1.6.0_13
    Workspace=file:/C:/Users/tmcginnis/Workspaces/Prod RQ/
    VM Args=-Xmx2048m
    -XX:MaxPermSize=1024m
    -XX:ReservedCodeCacheSize=64m
    -Dosgi.nls.warnings=ignore
    -jar
    C:\Users\TMCGIN~1\AppData\Local\MYECLI~1.0\MYECLI~1\../Common/plugins/ORB7B5~1.JAR

    *** Subscription information
    Product Id: E3BS (MyEclipse Bling Subscription)
    License version: 3.0
    Full Maintenance Included
    Subscription expiration date (YYYYMMDD): 20140504
    Number of users: 10

    *** Eclipse details:
    MyEclipse Blue Edition

    Version: 10.6 Blue
    Build id: 10.6-Blue-20120727

    Blueprint: MyEclipse Bling Edition 10

    com.genuitec.myeclipse.blue.feature – 10.6.0.me201207261914
    com.genuitec.myeclipse.database – 10.6.0.me201207261914
    com.genuitec.myeclipse.db2 – 10.6.0.me201207261914
    com.genuitec.myeclipse.desktop – 10.6.0.me201207261914
    com.genuitec.myeclipse.editor – 10.6.0.me201207261914
    com.genuitec.myeclipse.geronimo – 10.6.0.me201207261914
    com.genuitec.myeclipse.glassfish – 10.6.0.me201207261914
    com.genuitec.myeclipse.icefaces.feature – 10.6.0.me201207261914
    com.genuitec.myeclipse.iedebugger – 10.6.0.me201207261914
    com.genuitec.myeclipse.imageeditor – 10.6.0.me201207261914
    com.genuitec.myeclipse.jboss – 10.6.0.me201207261914
    com.genuitec.myeclipse.jetty – 10.6.0.me201207261914
    com.genuitec.myeclipse.jonas – 10.6.0.me201207261914
    com.genuitec.myeclipse.jrun – 10.6.0.me201207261914
    com.genuitec.myeclipse.jsf – 10.6.0.me201207261914
    com.genuitec.myeclipse.matisse – 10.6.0.me201207261914
    com.genuitec.myeclipse.maven – 10.6.0.me201207261914
    com.genuitec.myeclipse.oracle – 10.6.0.me201207261914
    com.genuitec.myeclipse.orion – 10.6.0.me201207261914
    com.genuitec.myeclipse.persistence – 10.6.0.me201207261914
    com.genuitec.myeclipse.pulse – 10.6.0.me201207261914
    com.genuitec.myeclipse.reports – 10.6.0.me201207261914
    com.genuitec.myeclipse.resin – 10.6.0.me201207261914
    com.genuitec.myeclipse.struts – 10.6.0.me201207261914
    com.genuitec.myeclipse.sun – 10.6.0.me201207261914
    com.genuitec.myeclipse.tomcat – 10.6.0.me201207261914
    com.genuitec.myeclipse.uml2 – 10.6.0.me201207261914
    com.genuitec.myeclipse.visualvm – 10.6.0.me201207261914
    com.genuitec.myeclipse.visualvm.server – 10.6.0.me201207261914
    com.genuitec.myeclipse.weblogic – 10.6.0.me201207261914
    com.genuitec.myeclipse.ws – 10.6.0.me201207261914
    com.genuitec.myeclipse.ws.blue – 10.6.0.me201207261914
    com.skyway.myeclipseforspring.feature – 10.0.0.201111091436
    org.eclipse.birt – 2.6.1.me201207261914
    org.eclipse.datatools.connectivity.feature – 1.9.0.me201207261914
    org.eclipse.datatools.enablement.feature – 1.9.0.me201207261914
    org.eclipse.datatools.modelbase.feature – 1.9.0.v201106031100-77078CcNBHCBYKYEbNV
    org.eclipse.datatools.sqldevtools.feature – 1.9.0.me201207261914
    org.eclipse.emf – 2.7.0.v20110606-0949
    org.eclipse.gef – 3.7.0.v20110425-2050-777D-81B2Bz0685C3A6E34272
    org.eclipse.graphiti.feature – 0.8.0.v20110607-1252
    org.eclipse.jpt.jpa.feature – 3.0.0.me201207261914
    org.eclipse.jpt.jpadiagrameditor.feature – 1.0.0.me201207261914
    org.eclipse.jst.common.fproj.enablement.jdt – 3.3.0.me201207261914
    org.eclipse.jst.enterprise_ui.feature – 3.3.0.me201207261914
    org.eclipse.jst.server_adapters.ext.feature – 3.3.0.me201207261914
    org.eclipse.jst.server_adapters.feature – 3.2.100.me201207261914
    org.eclipse.jst.server_ui.feature – 3.3.0.me201207261914
    org.eclipse.jst.ws.axis2tools.feature – 1.1.200.me201207261914
    org.eclipse.m2e.feature – 1.0.0.me201207261914
    org.eclipse.sapphire.platform – 0.3.0.201106221325
    org.eclipse.wst.common.fproj – 3.3.0.me201207261914
    org.eclipse.wst.server_adapters.feature – 3.2.100.me201207261914
    org.eclipse.xsd – 2.7.0.v20110606-0949
    org.springframework.ide.eclipse.feature – 2.9.1.me201207261914

    com.collabnet.subversion.merge.feature – 3.0.9
    fr.obeo.acceleo.bridge.feature – 2.6.0.200906261742
    net.java.dev.jna – 3.4.0.t20120117_1605
    org.apache.directory.studio.ldapbrowser.feature – 1.5.3.v20100330
    org.apache.directory.studio.schemaeditor.feature – 1.5.3.v20100330
    org.eclipse.cvs – 1.3.100.v20110520-0800-7B78FHl9VF7BD7KBM4GP9C
    org.eclipse.draw2d – 3.7.0.v20110425-2050-46-7w3122153603161
    org.eclipse.egit – 2.0.0.201206130900-r
    org.eclipse.egit.psf – 2.0.0.201206130900-r
    org.eclipse.equinox.p2.core.feature – 1.0.1.v20110906-1605-8290FZ9FVKHVRKtmx3fpNuo02129
    org.eclipse.equinox.p2.extras.feature – 1.0.1.v20110906-1605-7A4FD4DiVOMap8cHSc6vPuny4gqO
    org.eclipse.equinox.p2.rcp.feature – 1.0.1.v20110906-1605-782EqBqNKGVkiV-PUsgz-uny4gqO
    org.eclipse.equinox.p2.user.ui – 2.1.2.R37x_v20110815-1155-6-Bk8pYWZz0qUTX5I15GZWwbXkrl
    org.eclipse.help – 1.3.0.v20110530-0844-7i7uFFmFFl8nvqbDpEqTvx
    org.eclipse.jdt – 3.7.2.v20120120-1414-7z8gFcuFMP7BW5XTz0jLTnz0l9B1
    org.eclipse.jgit – 2.0.0.201206130900-r
    org.eclipse.jsf.feature – 3.3.0.me201207261914
    org.eclipse.ocl – 3.1.0.v20110606-1427
    org.eclipse.pde – 3.7.2.v20120120-1420-7b7rFUOFEx2Xnqafnpz0E–0
    org.eclipse.platform – 3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q
    org.eclipse.rcp – 3.7.2.v20120120-1424-9DB5FmnFq5JCf1UA38R-kz0S0272
    org.sonatype.m2e.subclipse.feature – 0.14.0.201204121509
    org.tigris.subversion.clientadapter.feature – 1.8.3
    org.tigris.subversion.clientadapter.javahl.feature – 1.7.5.2
    org.tigris.subversion.subclipse – 1.8.14
    org.tigris.subversion.subclipse.graph.feature – 1.1.1
    org.tmatesoft.svnkit – 1.7.5.r9306_v20120621_1817

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86_64
    -showsplash
    -launcher
    C:\Users\tmcginnis\AppData\Local\MyEclipse Bling Edition 10.0\MyEclipse Bling Edition 10\myeclipse-blue.exe
    -name
    Myeclipse-blue
    –launcher.library
    C:\Users\tmcginnis\AppData\Local\MyEclipse Bling Edition 10.0\MyEclipse Bling Edition 10\../Common/plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_64_4.2.0.v201201111650\eclipse_4201.dll
    -startup
    C:\Users\tmcginnis\AppData\Local\MyEclipse Bling Edition 10.0\MyEclipse Bling Edition 10\../Common/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
    -exitdata
    2060_5c
    -install
    C:\Users\tmcginnis\AppData\Local\MyEclipse Bling Edition 10.0\MyEclipse Bling Edition 10
    -configuration
    C:\Users\tmcginnis\AppData\Local\MyEclipse Bling Edition 10.0\MyEclipse Bling Edition 10\configuration
    -vm
    C:\Users\tmcginnis\AppData\Local\MyEclipse Bling Edition 10.0\Common\binary\com.sun.java.jdk.win32.x86_64_1.6.0.013\bin\javaw.exe

    I will create a sample project and send it to you.[/quote]

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: 2 versions of same jar file in deployment

You must be logged in to post in the forum log in