3 Replies Latest reply on May 6, 2007 3:12 PM by 3004

    HELP: Which command line args to launch Workshop 9.2 on Mac OS X 10.4?

    666705
      hi all,

      i have successfully installed weblogic server 9.2 mp1 (wls) onto my powermac g4 with os x 10.4.9. i used bea's "generic" installer to do this. the generic installer is an executable jar file that contains the bea weblogic installation wizard. unlike other bea wls 9.2 distributions, the generic installer does not come bundled with the workshop for weblogic platform ide (wlw). bea does not support wlw on the mac. they don't support wlw on aix either; aix is the os bea's generic installer is originally targeted for.

      i happen to have a working installation of wls & wlw on my sun microsystem's sunblade 100 with solaris 9 (installed using bea's solaris_sparc-specific .bin installer; which does come bundled with the wlw ide). so, i copied the wlw-related stuff (everything in $bea_home/workshop92 & everything in $bea_home/common/eclipse) from my solaris box to the appropriate folders on my mac. btw, java.version=1.5.0 on both my solaris box and my mac.

      wlw successfully launches on the solaris box using the bea-supplied solaris-specific launcher ($WLW_HOME/workshop4WP) and the launcher's associated co-located .ini file. but there is no launcher for the "hacked" wlw install on the mac. and obviously the solaris-specific launcher won't run on a mac. so instead i'm trying to launch wlw on the mac using the $WLW_HOME/startup.jar:
      java -Xms384m \
      -Xmx512m  -XX:MaxPermSize=256m  -DprodMode=production \
      -Dcom.bea.workshop=true
      -Dweblogic.home=/Applications/bea/weblogic92 \
      -Dosgi.install.area=/Applications/bea/workshop92/eclipse \       
      -Dosgi.instance.area.default=/Applications/bea/user_projects/w4WP_workspaces/Untitled\
      -Dosgi.configuration.area=/Applications/bea/workshop92/workshop4WP/eclipse/configuration\
      -Declipse.product=com.bea.wlw.product.workshop \ 
      -Declipse.vm=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java\
      -cp $CLASSPATH:$WLW_HOME/startup.jar org.eclipse.core.launcher.Main \
      -application org.eclipse.ui.ide.workbench \
      -vm 
      /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java  \
      -vmargs \
      -ea \
      -da:org.apache.xbeans... \
      -os macos -arch ppc -showsplash 600 \
      -launcher $WLW_HOME/startup.jar \
      $OSGI_INSTALL_AREA/plugins/com.bea.wlw.product_9.2.1/splash.bmp           
      -exitdata 0 \
      -jar $WLW_HOME/startup.jar
      that fails with the stacktrace logged to the osgi.configuration.area. my specific questions are to do with the following lines from the stacktrace (see bottom of this post for full stacktrace):
          ...
          Caused by: java.lang.NoClassDefFoundError: org/eclipse/swt/SWTError
          ...
          Root exception:
          java.lang.NoClassDefFoundError: org/eclipse/swt/SWTError
          ...
          Caused by:   java.lang.NoClassDefFoundError:org/eclipse/ui/plugin/AbstractUIPlugin
          ...
          Root exception:
          java.lang.NoClassDefFoundError: org/eclipse/ui/plugin/AbstractUIPlugin
          ...
          java.lang.ClassNotFoundException: org.eclipse.ui.internal.ide.IDEApplication
          ....
          Bundle update@plugins/org.eclipse.swt.gtk.solaris.sparc_3.1.1.jar [429] was not resolved.
          ...
      in my experience, a NoClassDefFoundError usually suggests that there are 2 or more versions of the reported class somewhere on the classpath. but the only place i have been able to find org.eclipse.swt.SWTError is in $OSGI_INSTALL_AREA/plugins/org.eclipse.swt.gtk.solaris.sparc_3.1.1.jar. and the only place i have been able to find org.eclipse.ui.plugin.AbstractUIPlugin is in $OSGI_INSTALL_AREA/plugins/org.eclipse.ui.workbench_3.1.2.jar. i can see that org.eclipse.ui.internal.ide.IDEApplication is in $OSGI_INSTALL_AREA/plugins/org.eclipse.ui.ide_3.1.1.jar. i have added all three of these jars - plus others - to the classpath listed at the bottom of this post.

      NOTE: curiously, even if i omit the above classpath from the startup.jar command, or even if i set $CLASSPATH to "", i get the same stacktrace.

      so my questions at this point are (please, number your answers to correspond to the specific questions if you can):

      1. exactly which classes|jars does startup.jar need in its classpath?
      2. what jars might duplicate versions of the above mentioned classes be in?
      3. if NoClassDefFoundError is not due to duplicate class versions, then what might be causing it?
      4. why can't org.eclipse.ui.internal.ide.IDEApplication class be found when i know it is in /Applications/bea/workshop92//eclipse/plugins/org.eclipse.ui.ide_3.1.1.jar; and that jar is in the classpath that is set when i run startup.jar?
      5. exactly what command line args should i pass to startup.jar?
      6. what do i have to do to have org.eclipse.swt.gtk.solaris.sparc_3.1.1.jar be successfully resolved?

      thanks in advance for your help.

      ================================================================
      i have set $CLASSPATH to the following:
      /Applications/bea/utils/bsu/wlw-plaf.jar:
      /Applications/bea/weblogic92/common/lib/upgrade/wlw-plugin.jar:
      /Applications/bea/weblogic92/common/lib/wlw-plaf.jar:
      /Applications/bea/weblogic92/common/lib/wlw-util.jar:
      /Applications/bea/weblogic92/javelin/autoload/wlw-langx.jar:
      /Applications/bea/weblogic92/server/lib/wlw-lang81-COM.jar:
      /Applications/bea/weblogic92/server/lib/wlw-langx.jar:
      /Applications/bea/weblogic92/server/lib/wlw-system.jar:
      /Applications/bea/weblogic92/server/lib/wlw-wsee-soapfault.jar:
      /Applications/bea/weblogic92/workshop/lib/wlw-antlib.jar:
      /Applications/bea/weblogic92/workshop/lib/wlw-libmodules.jar:
      /Applications/bea/weblogic92/workshop/lib/wlw-splitsrc.jar:
      /Applications/bea/weblogic92/workshop/lib/wlw-util.jar:
      /Applications/bea/workshop92/eclipse/plugins/org.eclipse.swt.gtk.solaris.sparc_3.1.1.jar:
      /Applications/bea/workshop92/eclipse/plugins/org.eclipse.swt_3.1.0.jar:
      /Applications/bea/workshop92/eclipse/plugins/org.eclipse.ui.workbench_3.1.2.jar:
      /Applications/bea/workshop92//eclipse/plugins/org.eclipse.ui.ide_3.1.1.jar
      ================================================================
      !SESSION 2007-05-05 15:05:35.388
      -----------------------------------------------
      eclipse.buildId=M20060118-1600
      java.version=1.5.0_07
      java.vendor=Apple Computer, Inc.
      BootLoader constants: OS=macosx, ARCH=ppc, WS=gtk, NL=en_US
      Framework arguments:  -application org.eclipse.ui.ide.workbench
      Command-line arguments:  -application org.eclipse.ui.ide.workbench

      !ENTRY org.eclipse.osgi 2007-05-05 15:05:50.467
      !MESSAGE An error occurred while automatically activating bundle org.eclipse.ui.workbench (280).
      !STACK 0
      org.osgi.framework.BundleException: The activator org.eclipse.ui.internal.WorkbenchPlugin for bundle org.eclipse.ui.workbench is invalid
           at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:149)
           at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:965)
           at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:316)
           at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:264)
           at org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:116)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:337)
           at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackage.java:37)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:386)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:350)
           at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:78)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
           at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
           at java.lang.ClassLoader.defineClass1(Native Method)
           at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
           at org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.defineClass(DefaultClassLoader.java:370)
           at org.eclipse.core.runtime.adaptor.EclipseClassLoader.defineClass(EclipseClassLoader.java:233)
           at org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.findClassImpl(DefaultClassLoader.java:343)
           at org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.findClass(DefaultClassLoader.java:235)
           at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.findLocalClass(AbstractClassLoader.java:183)
           at org.eclipse.core.runtime.adaptor.EclipseClassLoader.basicFindLocalClass(EclipseClassLoader.java:141)
           at org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:82)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:337)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:389)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:350)
           at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:78)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:275)
           at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
           at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:142)
           at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:965)
           at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:316)
           at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:264)
           at org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:116)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:337)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:389)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:350)
           at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:78)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:275)
           at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
           at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1248)
           at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:152)
           at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:142)
           at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:129)
           at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:48)
           at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:222)
           at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
           at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
           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.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
           at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
           at org.eclipse.core.launcher.Main.run(Main.java:973)
           at org.eclipse.core.launcher.Main.main(Main.java:948)
      Caused by: java.lang.NoClassDefFoundError: org/eclipse/swt/SWTError
           at java.lang.Class.getDeclaredConstructors0(Native Method)
           at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
           at java.lang.Class.getConstructor0(Class.java:2640)
           at java.lang.Class.newInstance0(Class.java:321)
           at java.lang.Class.newInstance(Class.java:303)
           at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:144)
           ... 55 more
      Root exception:
      java.lang.NoClassDefFoundError: org/eclipse/swt/SWTError
           at java.lang.Class.getDeclaredConstructors0(Native Method)
           at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
           at java.lang.Class.getConstructor0(Class.java:2640)
           at java.lang.Class.newInstance0(Class.java:321)
           at java.lang.Class.newInstance(Class.java:303)
           at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:144)
           at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:965)
           at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:316)
           at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:264)
           at org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:116)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:337)
           at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackage.java:37)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:386)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:350)
           at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:78)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
           at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
           at java.lang.ClassLoader.defineClass1(Native Method)
           at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
           at org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.defineClass(DefaultClassLoader.java:370)
           at org.eclipse.core.runtime.adaptor.EclipseClassLoader.defineClass(EclipseClassLoader.java:233)
           at org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.findClassImpl(DefaultClassLoader.java:343)
           at org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.findClass(DefaultClassLoader.java:235)
           at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.findLocalClass(AbstractClassLoader.java:183)
           at org.eclipse.core.runtime.adaptor.EclipseClassLoader.basicFindLocalClass(EclipseClassLoader.java:141)
           at org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:82)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:337)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:389)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:350)
           at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:78)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:275)
           at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
           at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:142)
           at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:965)
           at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:316)
           at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:264)
           at org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:116)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:337)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:389)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:350)
           at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:78)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:275)
           at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
           at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1248)
           at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:152)
           at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:142)
           at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:129)
           at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:48)
           at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:222)
           at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
           at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
           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.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
           at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
           at org.eclipse.core.launcher.Main.run(Main.java:973)
           at org.eclipse.core.launcher.Main.main(Main.java:948)

      !ENTRY org.eclipse.osgi 2007-05-05 15:05:50.543
      !MESSAGE An error occurred while automatically activating bundle org.eclipse.ui.ide (273).
      !STACK 0
      org.osgi.framework.BundleException: The activator org.eclipse.ui.internal.ide.IDEWorkbenchPlugin for bundle org.eclipse.ui.ide is invalid
           at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:149)
           at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:965)
           at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:316)
           at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:264)
           at org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:116)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:337)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:389)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:350)
           at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:78)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:275)
           at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
           at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1248)
           at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:152)
           at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:142)
           at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:129)
           at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:48)
           at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:222)
           at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
           at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
           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.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
           at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
           at org.eclipse.core.launcher.Main.run(Main.java:973)
           at org.eclipse.core.launcher.Main.main(Main.java:948)
      Caused by: java.lang.NoClassDefFoundError: org/eclipse/ui/plugin/AbstractUIPlugin
           at java.lang.ClassLoader.defineClass1(Native Method)
           at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
           at org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.defineClass(DefaultClassLoader.java:370)
           at org.eclipse.core.runtime.adaptor.EclipseClassLoader.defineClass(EclipseClassLoader.java:233)
           at org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.findClassImpl(DefaultClassLoader.java:343)
           at org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.findClass(DefaultClassLoader.java:235)
           at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.findLocalClass(AbstractClassLoader.java:183)
           at org.eclipse.core.runtime.adaptor.EclipseClassLoader.basicFindLocalClass(EclipseClassLoader.java:141)
           at org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:82)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:337)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:389)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:350)
           at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:78)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:275)
           at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
           at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:142)
           ... 27 more
      Root exception:
      java.lang.NoClassDefFoundError: org/eclipse/ui/plugin/AbstractUIPlugin
           at java.lang.ClassLoader.defineClass1(Native Method)
           at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
           at org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.defineClass(DefaultClassLoader.java:370)
           at org.eclipse.core.runtime.adaptor.EclipseClassLoader.defineClass(EclipseClassLoader.java:233)
           at org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.findClassImpl(DefaultClassLoader.java:343)
           at org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.findClass(DefaultClassLoader.java:235)
           at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.findLocalClass(AbstractClassLoader.java:183)
           at org.eclipse.core.runtime.adaptor.EclipseClassLoader.basicFindLocalClass(EclipseClassLoader.java:141)
           at org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:82)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:337)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:389)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:350)
           at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:78)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:275)
           at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
           at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:142)
           at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:965)
           at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:316)
           at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:264)
           at org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:116)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:337)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:389)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:350)
           at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:78)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:275)
           at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
           at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1248)
           at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:152)
           at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:142)
           at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:129)
           at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:48)
           at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:222)
           at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
           at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
           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.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
           at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
           at org.eclipse.core.launcher.Main.run(Main.java:973)
           at org.eclipse.core.launcher.Main.main(Main.java:948)

      !ENTRY org.eclipse.osgi 2007-05-05 15:05:50.559
      !MESSAGE Application error
      !STACK 1
      org.eclipse.core.runtime.CoreException[1]: java.lang.ClassNotFoundException: org.eclipse.ui.internal.ide.IDEApplication
           at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:405)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:350)
           at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:78)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
           at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:275)
           at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
           at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1248)
           at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:152)
           at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:142)
           at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:129)
           at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:48)
           at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:222)
           at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
           at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
           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.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
           at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
           at org.eclipse.core.launcher.Main.run(Main.java:973)
           at org.eclipse.core.launcher.Main.main(Main.java:948)

      !ENTRY org.eclipse.osgi 2007-05-05 15:05:50.598
      !MESSAGE Bundle update@plugins/org.eclipse.swt.gtk.solaris.sparc_3.1.1.jar [429] was not resolved.
        • 1. Re: HELP: Which command line args to launch Workshop 9.2 on Mac OS X 10.4?
          666705
          i've been able to resolve the exceptions from the first stacktrace i posted earlier by adding the following to the command line:

           -Dosgi.frameworkClassPath=$CLASSPATH \
          i have also added the following to the $CLASSPATH"
          /Applications/bea/workshop92//eclipse/plugins/org.eclipse.osgi_3.1.2.jar
          the above jar contains org.eclipse.core.runtime.adaptor.EclipseStarter:
           $ jar -tvf /Applications/bea/workshop92//eclipse/plugins/org.eclipse.osgi_3.1.2.jar | grep EclipseStarter
             686 Wed Jan 18 17:19:16 GMT 2006 org/eclipse/core/runtime/adaptor/EclipseStarter$1.class
             924 Wed Jan 18 17:19:16 GMT 2006 org/eclipse/core/runtime/adaptor/EclipseStarter$2.class
             925 Wed Jan 18 17:19:16 GMT 2006 org/eclipse/core/runtime/adaptor/EclipseStarter$3.class
            1186 Wed Jan 18 17:19:16 GMT 2006 org/eclipse/core/runtime/adaptor/EclipseStarter$4.class
             744 Wed Jan 18 17:19:16 GMT 2006 org/eclipse/core/runtime/adaptor/EclipseStarter$InitialBundle.class
             36233 Wed Jan 18 17:19:16 GMT 2006 org/eclipse/core/runtime/adaptor/EclipseStarter.class
          but now attempts to launch wlw fails with:
          !SESSION Sat May 05 20:18:01 BST 2007 ------------------------------------------
          !ENTRY org.eclipse.core.launcher 4 0 2007-05-05 20:18:02.440
          !MESSAGE Exception launching the Eclipse Platform:
          !STACK
          java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
               at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
               at java.security.AccessController.doPrivileged(Native Method)
               at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
               at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
               at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
               at org.eclipse.core.launcher.Main.invokeFramework(Main.java:331)
               at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
               at org.eclipse.core.launcher.Main.run(Main.java:973)
               at org.eclipse.core.launcher.Main.main(Main.java:948)
          so, my next question is:

          7. why can't org.eclipse.core.runtime.adaptor.EclipseStarter class be found when i _know_ it is in/Applications/bea/workshop92//eclipse/plugins/org.eclipse.osgi_3.1.2.jar; and that jar _is_ in the classpath that is set when i run startup.jar?
          • 2. Re: HELP: Which command line args to launch Workshop 9.2 on Mac OS X 10.4?
            666705
            hi again,

            i have now resolved most of the issues i originally asked about:

            1. exactly which classes|jars does startup.jar need in its classpath?
            so far, this is the classpath i've set to resolve the first set of NoClassDefFoundErrors & ClassNotFoundExceptions that i originally posted:
               export CLASSPATH=/Applications/bea/workshop92/eclipse/plugins/org.eclipse.osgi_3.1.2.jar:/Applications/bea/workshop92/eclipse/plugins/org.eclipse.swt.gtk.solaris.sparc_3.1.1.jar:/Applications/bea/workshop92/eclipse/plugins/org.eclipse.swt_3.1.0.jar:/Applications/bea/workshop92/eclipse/plugins/org.eclipse.ui.workbench_3.1.2.jar:/Applications/bea/workshop92//eclipse/plugins/org.eclipse.ui.ide_3.1.1.jar:/Applications/bea/workshop92//eclipse/plugins/org.eclipse.core.runtime_3.1.2.jar:/Applications/bea/workshop92//eclipse/plugins/org.eclipse.jface_3.1.1.jar
            2. what jars might duplicate versions of the above mentioned classes be in?
            i wrote a perl script that trawls my plugin directory and examines all the jars. it did not find duplicates for SWTError nor AbstractUIPlugin

            3. if NoClassDefFoundError is not due to duplicate class versions, then what might be causing it?
            even though the jars were on the system classpath, as far as the eclipse framework was concerned, they didn't exist until i added the "-DframeworkClassPath=$CLASSPATH" property

            4 & 7. why can't org.eclipse.ui.internal.ide.IDEApplication | org.eclipse.core.runtime.adaptor.EclipseStarter class be found...?
            see answer to 3

            5. exactly what command line args should i pass to startup.jar?
            this is the command that i have arrived at for the time being:
              java -Xms384m \
            -Xmx512m  -XX:MaxPermSize=256m  -DprodMode=production \
            -Dcom.bea.workshop=true  -Dweblogic.home=/Applications/bea/weblogic92 \
            -Dosgi.install.area=/Applications/bea/workshop92/eclipse \
            -Dosgi.instance.area.default=/Applications/bea/user_projects/w4WP_workspaces/Untitled \
            -Dosgi.configuration.area=/Applications/bea/workshop92/workshop4WP/eclipse/configuration \
            -Dosgi.parentClassloader=app \
            -Declipse.product=com.bea.wlw.product.workshop \
            -Declipse.vm=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java \
            -Dosgi.framework=/Applications/bea/workshop92/eclipse/plugins/org.eclipse.osgi_3.1.2.jar \
            -Dosgi.frameworkClassPath=$CLASSPATH \
            -Dosgi.syspath=/Applications/bea/workshop92/eclipse/plugins \
            -cp $CLASSPATH:/Applications/bea/workshop92/workshop4WP/startup.jar org.eclipse.core.launcher.Main \
            -application org.eclipse.ui.ide.workbench \
            -launcher /Applications/bea/workshop92/workshop4WP/startup.jar  \
            -framework \
            -vm  /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java \
            -nosplash \
            -vmargs \
            -ea \
            -da:org.apache.xbeans... \
            -os macos -arch ppc
            although i have resolved the first issues with the above classpath changes and command line changes, i have progressed to a new issue...:
            !SESSION 2007-05-06 11:47:19.447 -----------------------------------------------
            eclipse.buildId=M20060118-1600
            java.version=1.5.0_07
            java.vendor=Apple Computer, Inc.
            BootLoader constants: OS=macosx, ARCH=ppc, WS=gtk, NL=en_US
            Framework arguments:  -application org.eclipse.ui.ide.workbench -framework
            Command-line arguments:  -application org.eclipse.ui.ide.workbench -framework

            !ENTRY org.eclipse.osgi 2007-05-06 11:47:32.916
            !MESSAGE Application error
            !STACK 1
            java.lang.NullPointerException
                 at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:379)
                 at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:155)
                 at org.eclipse.ui.internal.ide.IDEApplication.createDisplay(IDEApplication.java:128)
                 at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:79)
                 at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
                 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
                 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
                 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.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
                 at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
                 at org.eclipse.core.launcher.Main.run(Main.java:973)
                 at org.eclipse.core.launcher.Main.main(Main.java:948)

            !ENTRY org.eclipse.osgi 2007-05-06 11:47:32.963
            !MESSAGE Bundle update@plugins/org.eclipse.swt.gtk.solaris.sparc_3.1.1.jar [429] was not resolved.
            does this ring any bells with anybody? something is obviously missing from somewhere. any suggestions? and once again:

            6. what do i have to do to have org.eclipse.swt.gtk.solaris.sparc_3.1.1.jar be successfully resolved?

            thanks in advance for your help.
            • 3. Re: HELP: Which command line args to launch Workshop 9.2 on Mac OS X 10.4?
              3004
              William,
              This is fantastic! We've been trying to get funding for the Mac port
              internally for a while, and your experience will be very helpful.

              Could you send me an email at broth at bea dot com? I would like to talk to
              you about this directly.

              br

              william boyd wrote:
              hi again,

              i have now resolved most of the issues i originally asked about:

              1. exactly which classes|jars does startup.jar need in its classpath?
              so far, this is the classpath i've set to resolve the first set of NoClassDefFoundErrors & ClassNotFoundExceptions that i originally posted:
                 export CLASSPATH=/Applications/bea/workshop92/eclipse/plugins/org..eclipse.osgi_3.1.2.jar:/Applications/bea/workshop92/eclipse/plugins/org.eclipse.swt.gtk.solaris.sparc_3.1.1.jar:/Applications/bea/workshop92/eclipse/plugins/org.eclipse.swt_3.1.0.jar:/Applications/bea/workshop92/eclipse/plugins/org.eclipse.ui.workbench_3.1.2.jar:/Applications/bea/workshop92//eclipse/plugins/org.eclipse.ui.ide_3.1.1.jar:/Applications/bea/workshop92//eclipse/plugins/org.eclipse.core.runtime_3.1.2.jar:/Applications/bea/workshop92//eclipse/plugins/org.eclipse.jface_3.1.1.jar
              2. what jars might duplicate versions of the above mentioned classes be in?
              i wrote a perl script that trawls my plugin directory and examines all the jars. it did not find duplicates for SWTError nor AbstractUIPlugin

              3. if NoClassDefFoundError is not due to duplicate class versions, then what might be causing it?
              even though the jars were on the system classpath, as far as the eclipse framework was concerned, they didn't exist until i added the "-DframeworkClassPath=$CLASSPATH" property

              4 & 7. why can't org.eclipse.ui.internal.ide.IDEApplication | org.eclipse.core.runtime.adaptor.EclipseStarter class be found...?
              see answer to 3

              5. exactly what command line args should i pass to startup.jar?
              this is the command that i have arrived at for the time being:
              java -Xms384m \
              -Xmx512m  -XX:MaxPermSize=256m  -DprodMode=production \
              -Dcom.bea.workshop=true  -Dweblogic.home=/Applications/bea/weblogic92 \
              -Dosgi.install.area=/Applications/bea/workshop92/eclipse \
              -Dosgi.instance.area.default=/Applications/bea/user_projects/w4WP_workspaces/Untitled \
              -Dosgi.configuration.area=/Applications/bea/workshop92/workshop4WP/eclipse/configuration \
              -Dosgi.parentClassloader=app \
              -Declipse.product=com.bea.wlw.product.workshop \
              -Declipse.vm=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java \
              -Dosgi.framework=/Applications/bea/workshop92/eclipse/plugins/org.eclipse..osgi_3.1.2.jar \
              -Dosgi.frameworkClassPath=$CLASSPATH \
              -Dosgi.syspath=/Applications/bea/workshop92/eclipse/plugins \
              -cp $CLASSPATH:/Applications/bea/workshop92/workshop4WP/startup.jar org.eclipse.core.launcher.Main \
              -application org.eclipse.ui.ide.workbench \
              -launcher /Applications/bea/workshop92/workshop4WP/startup.jar  \
              -framework \
              -vm  /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java \
              -nosplash \
              -vmargs \
              -ea \
              -da:org.apache.xbeans... \
              -os macos -arch ppc
              although i have resolved the first issues with the above classpath changes and command line changes, i have progressed to a new issue...:
              !SESSION 2007-05-06 11:47:19.447 -----------------------------------------------
              eclipse.buildId=M20060118-1600
              java.version=1.5.0_07
              java.vendor=Apple Computer, Inc.
              BootLoader constants: OS=macosx, ARCH=ppc, WS=gtk, NL=en_US
              Framework arguments:  -application org.eclipse.ui.ide.workbench -framework
              Command-line arguments:  -application org.eclipse.ui.ide.workbench -framework

              !ENTRY org.eclipse.osgi 2007-05-06 11:47:32.916
              !MESSAGE Application error
              !STACK 1
              java.lang.NullPointerException
                   at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:379)
                   at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:155)
                   at org.eclipse.ui.internal.ide.IDEApplication.createDisplay(IDEApplication.java:128)
                   at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:79)
                   at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
                   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
                   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
                   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.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
                   at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
                   at org.eclipse.core.launcher.Main.run(Main.java:973)
                   at org.eclipse.core.launcher.Main.main(Main.java:948)

              !ENTRY org.eclipse.osgi 2007-05-06 11:47:32.963
              !MESSAGE Bundle update@plugins/org.eclipse.swt.gtk.solaris.sparc_3.1.1.jar [429] was not resolved.
              does this ring any bells with anybody? something is obviously missing from somewhere. any suggestions? and once again:

              6. what do i have to do to have org.eclipse.swt.gtk.solaris.sparc_3.1.1.jar be successfully resolved?

              thanks in advance for your help.