7 Replies Latest reply on Jun 12, 2008 5:12 AM by Achilleas Mantzios

    Migration from JBossIDE 1.6.0 to JBossTools 2.0.0.cr1 & Pack

    Achilleas Mantzios Newbie

      Hi,
      i am a long time user of Eclipse 3.2.1/JbossIDE1.6.0
      I have setup some really complex packaging configurations.

      Now i realize the new way is through "Project Archives".

      Is there a way or a guideline to migrate from the "packaging configuration" to the new "project Archives" feature?

      I can always run the old packaging-build.xml thru ant, but i am sure there is something better than that!

      I am recovering from a 2 days FreeBSD update marathon, so forgive me if i am missing something obvious.

        • 1. Re: Migration from JBossIDE 1.6.0 to JBossTools 2.0.0.cr1 &
          Max Rydahl Andersen Master

          I feel sorry to have to say that we don't have an automatic upgrade path for you (besides using ant for running it) - but if you post us your .packaging file we might be able to help you get a .packages file.......

          • 2. Re: Migration from JBossIDE 1.6.0 to JBossTools 2.0.0.cr1 &
            Max Rydahl Andersen Master

            btw. http://jira.jboss.com/jira/browse/JBIDE-1394 is for you ;)

            Attach your file there and lets see if we can't get this done.

            • 3. Re: Migration from JBossIDE 1.6.0 to JBossTools 2.0.0.cr1 &
              Achilleas Mantzios Newbie

              Max thanx a lot for your response and for the JIRA entry as well!
              here is my .packaging

              <?xml version="1.0" encoding="UTF-8"?>
              <configurations>
              <archive destination="" exploded="false" name="SMA_SERVER_SIDE.jar" used="true">
              <folder excludes="" includes="com/gatewaynet/misc/*.class,com/gatewaynet/web/util/TMSA_Utils.class,com/gatewaynet/web/util/GPSException.class,com/gatewaynet/web/util/GPSUtils.class,com/gatewaynet/web/util/CrewUtils.class" location="bin" name="bin" prefix="" project="" projectLocation="bin" used="true"/>
              </archive>
              <archive destination="" exploded="false" name="SMA_COMMON.jar" used="true">
              <folder excludes="" includes="com/gatewaynet/graphs/*.class" location="bin" name="bin" prefix="" project="" projectLocation="bin" used="true"/>
              <file location="/usr/local/misc/packages/jcommon-0.6.4.jar" name="jcommon-0.6.4.jar" prefix="" used="true"/>
              <file location="/usr/local/misc/packages/jfreechart-0.9.2.jar" name="jfreechart-0.9.2.jar" prefix="" used="true"/>
              <file location="/usr/local/misc/packages/jfreechart-1.0.5/lib/jfreechart-1.0.5.jar" name="jfreechart-1.0.5.jar" prefix="" used="true"/>
              <file location="/usr/local/misc/packages/jfreechart-1.0.5/lib/jcommon-1.0.9.jar" name="jcommon-1.0.9.jar" prefix="" used="true"/>
              </archive>
              <archive destination="" exploded="false" name="SMA_EJBs.jar" used="true">
              <folder excludes="" includes="com/gatewaynet/ejbs/*.class,com/gatewaynet/ifs/*.class" location="bin" name="bin" prefix="" project="" projectLocation="bin" used="true"/>
              <file location="src/META-INF/ejb-jar.xml" name="ejb-jar.xml" prefix="META-INF" project="" projectLocation="src/META-INF/ejb-jar.xml" used="true"/>
              <file location="src/META-INF/jboss.xml" name="jboss.xml" prefix="META-INF" project="" projectLocation="src/META-INF/jboss.xml" used="true"/>
              <file location="SMA_SERVER_SIDE.jar" name="SMA_SERVER_SIDE.jar" prefix="" project="" projectLocation="SMA_SERVER_SIDE.jar" used="true"/>
              <file location="SMA_COMMON.jar" name="SMA_COMMON.jar" prefix="" project="" projectLocation="SMA_COMMON.jar" used="true"/>
              </archive>
              <archive destination="" exploded="false" name="SMA_EJBs-Client.jar" used="true">
              <folder excludes="" includes="com/gatewaynet/ifs/*.class" location="bin" name="bin" prefix="" project="" projectLocation="bin" used="true"/>
              </archive>
              <archive destination="" exploded="false" name="SMA_APPLETS.jar" used="false">
              <folder excludes="" includes="com/gatewaynet/web/applets/*" location="bin" name="bin" prefix="" project="" projectLocation="bin" used="true"/>
              </archive>
              <archive destination="" exploded="false" name="SMA_WEB.war" used="true">
              <folder excludes="" includes="com/gatewaynet/web/*.class,com/gatewaynet/web/util/*.class,com/gatewaynet/pdf/*.class,com/gatewaynet/web/util/xml/*.class" location="bin" name="bin" prefix="WEB-INF/classes" project="" projectLocation="bin" used="true"/>
              <file location="src/WEB-INF/jboss-web.xml" name="jboss-web.xml" prefix="WEB-INF" project="" projectLocation="src/WEB-INF/jboss-web.xml" used="true"/>
              <file location="src/WEB-INF/web.xml" name="web.xml" prefix="WEB-INF" project="" projectLocation="src/WEB-INF/web.xml" used="true"/>
              <file location="SMA_EJBs-Client.jar" name="SMA_EJBs-Client.jar" prefix="WEB-INF/lib" project="" projectLocation="SMA_EJBs-Client.jar" used="true"/>
              <folder excludes="" includes="" location="docroot" name="docroot" prefix="" project="" projectLocation="docroot" used="true"/>
              <folder excludes="" includes="" location="src/WEB-CONF/taglibs" name="taglibs" prefix="WEB-INF" project="" projectLocation="src/WEB-CONF/taglibs" used="true"/>
              <folder excludes="" includes="" location="src/WEB-CONF/taglibs-jars" name="taglibs-jars" prefix="WEB-INF/lib" project="" projectLocation="src/WEB-CONF/taglibs-jars" used="true"/>
              <file location="SMA_COMMON.jar" name="SMA_COMMON.jar" prefix="WEB-INF/lib" project="" projectLocation="SMA_COMMON.jar" used="true"/>
              <file location="/usr/local/misc/packages/itext-1.3.jar" name="itext-1.3.jar" prefix="WEB-INF/lib" used="true"/>
              <file location="/usr/local/misc/packages/jep212.jar" name="jep212.jar" prefix="WEB-INF/lib" used="true"/>
              <file location="/usr/local/misc/packages/jakarta-poi-1.8.0-dev-20020919.jar" name="jakarta-poi-1.8.0-dev-20020919.jar" prefix="WEB-INF/lib" used="true"/>
              <file location="SMA_APPLETS.jar" name="SMA_APPLETS.jar" prefix="" project="" projectLocation="SMA_APPLETS.jar" used="true"/>
              <file location="/usr/local/misc/packages/commons-codec-1.3/commons-codec-1.3.jar" name="commons-codec-1.3.jar" prefix="" used="true"/>
              <file location="/usr/local/misc/packages/commons-fileupload-1.1.1/commons-fileupload-1.1.1.jar" name="commons-fileupload-1.1.1.jar" prefix="WEB-INF/lib" used="true"/>
              <file location="/usr/local/misc/packages/commons-logging-1.0.4/commons-logging.jar" name="commons-logging.jar" prefix="" used="true"/>
              <file location="commons-httpclient-2.0.2.jar" name="commons-httpclient-2.0.2.jar" prefix="" project="" projectLocation="commons-httpclient-2.0.2.jar" used="true"/>
              <file location="/usr/local/misc/packages/AjaxTAGS/ajaxtags-1.2-beta2/dist/ajaxtags-1.2-beta2.jar" name="ajaxtags-1.2-beta2.jar" prefix="WEB-INF/lib" used="true"/>
              <file location="/usr/local/misc/packages/AjaxTAGS/ajaxtags-1.2-beta2/lib/jstl-1.0.6.jar" name="jstl-1.0.6.jar" prefix="WEB-INF/lib" used="true"/>
              <file location="/usr/local/misc/packages/AjaxTAGS/ajaxtags-1.2-beta2/lib/standard-1.0.6.jar" name="standard-1.0.6.jar" prefix="WEB-INF/lib" used="true"/>
              <file location="/usr/local/misc/packages/AjaxTAGS/ajaxtags-1.2-beta2/lib/commons-lang-2.1.jar" name="commons-lang-2.1.jar" prefix="WEB-INF/lib" used="true"/>
              <file location="/usr/local/misc/packages/commons-httpclient-2.0.2/commons-httpclient-2.0.2.jar" name="commons-httpclient-2.0.2.jar" prefix="WEB-INF/lib" used="true"/>
              <file location="/usr/local/misc/packages/commons-logging-1.0.4/commons-logging.jar" name="commons-logging.jar" prefix="WEB-INF/lib" used="true"/>
              <file location="/usr/local/misc/packages/dwr/be_telio.jar" name="be_telio.jar" prefix="WEB-INF/lib" used="true"/>
              <file location="/usr/local/misc/packages/dwr/commons-io-1.1.jar" name="commons-io-1.1.jar" prefix="WEB-INF/lib" used="true"/>
              <file location="/usr/local/misc/packages/dwr/dwr.jar" name="dwr.jar" prefix="WEB-INF/lib" used="true"/>
              <file location="src/WEB-CONF/dwr.xml" name="dwr.xml" prefix="WEB-INF/" project="" projectLocation="src/WEB-CONF/dwr.xml" used="true"/>
              <file location="/usr/local/misc/packages/jfreechart-1.0.5/lib/jcommon-1.0.9.jar" name="jcommon-1.0.9.jar" prefix="WEB-INF/lib" used="true"/>
              <file location="/usr/local/misc/packages/jfreechart-1.0.5/lib/jfreechart-1.0.5.jar" name="jfreechart-1.0.5.jar" prefix="WEB-INF/lib" used="true"/>
              </archive>
              <archive destination="" exploded="false" name="SMA.ear" used="true">
              <file location="src/META-INF/application.xml" name="application.xml" prefix="META-INF" project="" projectLocation="src/META-INF/application.xml" used="true"/>
              <file location="SMA_EJBs.jar" name="SMA_EJBs.jar" prefix="" project="" projectLocation="SMA_EJBs.jar" used="true"/>
              <file location="SMA_WEB.war" name="SMA_WEB.war" prefix="" project="" projectLocation="SMA_WEB.war" used="true"/>
              </archive>
              <archive destination="" exploded="false" name="SMA_PER.jar" used="true">
              <folder excludes="" includes="com/gatewaynet/periodic/*.class,com/gatewaynet/ifs/StatusRem.class,com/gatewaynet/ifs/StatusRemHome.class,com/gatewaynet/web/util/xml/*.class" location="bin" name="bin" prefix="" project="" projectLocation="bin" used="true"/>
              </archive>
              <archive destination="" exploded="false" name="SMA_UTIL.jar" used="true">
              <folder excludes="" includes="com/gatewaynet/util/*.class,com/gatewaynet/web/util/*.class" location="bin" name="bin" prefix="" project="" projectLocation="bin" used="true"/>
              </archive>
              </configurations>
              


              Again, thanx a lot for your help, lets hope someone deals with this upgradearchiving program.

              • 4. Re: Migration from JBossIDE 1.6.0 to JBossTools 2.0.0.cr1 &
                Max Rydahl Andersen Master

                fyi: if you look at the new file then it is pretty easy to do a manual conversion...

                • 5. Re: Migration from JBossIDE 1.6.0 to JBossTools 2.0.0.cr1 &
                  achill mantzios Newbie

                  Thanx for the fix.
                  i'll try it some time in the near future.

                  • 7. Re: Migration from JBossIDE 1.6.0 to JBossTools 2.0.0.cr1 &
                    Achilleas Mantzios Newbie

                    I tried the program http://download.jboss.org/jbosstools/extras/packaging-convert.zip
                    and it breaks. Output follows:

                    Script started on Thu Jun 12 12:10:21 2008
                    achill4@smadev:~/packaging-convert> java -jar packaging-converter.jar ../workspace/SMA/.packaging
                    Updating Project Builder to 'org.jboss.ide.eclipse.archives.core.archivesBuilder'...
                    Adding 'org.jboss.ide.eclipse.archives.core.archivesNature' nature...
                    Backing up to .project.bak, and saving to .project in ../workspace/SMA...
                     [copy] Copying 1 file to /usr/home/achill/workspace/SMA
                    Converting JBossIDE 1.x packages to JBossTools/RHDS archives...
                    Converting package 'SMA_SERVER_SIDE.jar'...
                    Converting package 'SMA_COMMON.jar'...
                    Converting package 'SMA_EJBs.jar'...
                    Exception in thread "main" org.codehaus.groovy.runtime.InvokerInvocationException: String index out of range: -1
                     at groovy.lang.MetaMethod.invoke(MetaMethod.java:126)
                     at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:713)
                     at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:664)
                     at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:111)
                     at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:111)
                     at groovy.lang.GroovyShell.runMainOrTestOrRunnable(GroovyShell.java:319)
                     at groovy.lang.GroovyShell.run(GroovyShell.java:394)
                     at org.jboss.tools.archives.JBossIDEtoTools.main(JBossIDEtoTools.java:24)
                    Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
                     at java.lang.String.substring(String.java:1768)
                     at gjdk.java.lang.String_GroovyReflector.invoke(Unknown Source)
                     at groovy.lang.MetaMethod.invoke(MetaMethod.java:115)
                     at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:713)
                     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:560)
                     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:450)
                     at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:119)
                     at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:111)
                     at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:187)
                     at org.jboss.tools.archives.PackagingConverter.convertFile(PackaginConverter.groovy:129)
                     at gjdk.org.jboss.tools.archives.PackagingConverter_GroovyReflector.invoke(Unknown Source)
                     at groovy.lang.MetaMethod.invoke(MetaMethod.java:115)
                     at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:713)
                     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:560)
                     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:450)
                     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:525)
                     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:450)
                     at groovy.lang.MetaClass.invokeMethod(MetaClass.java:87)
                     at groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:73)
                     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:541)
                     at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:97)
                     at org.jboss.tools.archives.PackagingConverter$_convertPackaging_closure2_closure4.doCall(PackaginConverter.groovy:103)
                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.codehaus.groovy.runtime.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:69)
                     at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:713)
                     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:560)
                     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:450)
                     at groovy.lang.Closure.call(Closure.java:188)
                     at groovy.lang.Closure.call(Closure.java:201)
                     at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:657)
                     at gjdk.java.util.AbstractList$Itr_GroovyReflector.invoke(Unknown Source)
                     at groovy.lang.MetaMethod.invoke(MetaMethod.java:115)
                     at org.codehaus.groovy.runtime.NewInstanceMetaMethod.invoke(NewInstanceMetaMethod.java:109)
                     at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:713)
                     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:560)
                     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:450)
                     at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:119)
                     at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:111)
                     at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:187)
                     at org.jboss.tools.archives.PackagingConverter$_convertPackaging_closure2.doCall(PackaginConverter.groovy:102)
                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.codehaus.groovy.runtime.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:69)
                     at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:713)
                     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:560)
                     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:450)
                     at groovy.lang.Closure.call(Closure.java:188)
                     at groovy.lang.Closure.call(Closure.java:201)
                     at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:657)
                     at gjdk.java.util.AbstractList$Itr_GroovyReflector.invoke(Unknown Source)
                     at groovy.lang.MetaMethod.invoke(MetaMethod.java:115)
                     at org.codehaus.groovy.runtime.NewInstanceMetaMethod.invoke(NewInstanceMetaMethod.java:109)
                     at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:713)
                     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:560)
                     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:450)
                     at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:119)
                     at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:111)
                     at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:187)
                     at org.jboss.tools.archives.PackagingConverter.convertPackaging(PackaginConverter.groovy:87)
                     at gjdk.org.jboss.tools.archives.PackagingConverter_GroovyReflector.invoke(Unknown Source)
                     at groovy.lang.MetaMethod.invoke(MetaMethod.java:115)
                     at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:713)
                     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:560)
                     at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:97)
                     at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrent0(ScriptBytecodeAdapter.java:129)
                     at org.jboss.tools.archives.PackagingConverter.convert(PackaginConverter.groovy:54)
                     at gjdk.org.jboss.tools.archives.PackagingConverter_GroovyReflector.invoke(Unknown Source)
                     at groovy.lang.MetaMethod.invoke(MetaMethod.java:115)
                     at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:713)
                     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:560)
                     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:450)
                     at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:131)
                     at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:111)
                     at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:187)
                     at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod0(ScriptBytecodeAdapter.java:211)
                     at org.jboss.tools.archives.PackagingConverter.main(PackaginConverter.groovy:181)
                     at gjdk.org.jboss.tools.archives.PackagingConverter_GroovyReflector.invoke(Unknown Source)
                     at groovy.lang.MetaMethod.invoke(MetaMethod.java:115)
                     ... 7 more
                    achill4@smadev:~/packaging-convert> ^D exit
                    
                    Script done on Thu Jun 12 12:10:37 2008