Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Workshop for Weblogic Platform 9.2 on Mac OS X 10.4
Workshop for Weblogic Platform 9.2 on Mac OS X 10.4 [message #192132] Sat, 05 May 2007 14:38 Go to next message
Eclipse User
Originally posted by: eclipse.newsgroups.javafreelancer.net

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/works hop4WP/eclipse/configuration
\
-Declipse.product=com.bea.wlw.product.workshop \
-Declipse.vm=/System/Library/Frameworks/JavaVM.framework/Ver sions/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/H ome/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/Abstrac tUIPlugin
...
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.ja r. 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. i have set
$CLASSPATH to the following:


/Applications/bea/utils/bsu/wlw-plaf.jar:/Applications/bea/w eblogic92/common/lib/upgrade/wlw-plugin.jar:/Applications/be a/weblogic92/common/lib/wlw-plaf.jar:/Applications/bea/weblo gic92/common/lib/wlw-util.jar:/Applications/bea/weblogic92/j avelin/autoload/wlw-langx.jar:/Applications/bea/weblogic92/s erver/lib/wlw-lang81-COM.jar:/Applications/bea/weblogic92/se rver/lib/wlw-langx.jar:/Applications/bea/weblogic92/server/l ib/wlw-system.jar:/Applications/bea/weblogic92/server/lib/wl w-wsee-soapfault.jar:/Applications/bea/weblogic92/workshop/l ib/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/or g.eclipse.swt.gtk.solaris.sparc_3.1.1.jar:/Applications/bea/ workshop92/eclipse/plugins/org.eclipse.swt_3.1.0.jar:/Applic ations/bea/workshop92/eclipse/plugins/org.eclipse.ui.workben ch_3.1.2.jar:/Applications/bea/workshop92//eclipse/plugins/o rg.eclipse.ui.ide_3.1.1.jar

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.



============================================================ ====
!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.load BundleActivator(AbstractBundle.java:149)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:965)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:316)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:264)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseClassLoader.java:116)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:337)
at
org.eclipse.osgi.framework.internal.core.SingleSourcePackage .loadClass(SingleSourcePackage.java:37)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:386)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(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.d efineClass(DefaultClassLoader.java:370)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.defineCl ass(EclipseClassLoader.java:233)
at
org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.f indClassImpl(DefaultClassLoader.java:343)
at
org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.f indClass(DefaultClassLoader.java:235)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. findLocalClass(AbstractClassLoader.java:183)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.basicFin dLocalClass(EclipseClassLoader.java:141)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseClassLoader.java:82)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:337)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:389)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(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.loadCl ass(BundleLoader.java:275)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:142)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:965)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:316)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:264)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseClassLoader.java:116)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:337)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:389)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(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.loadCl ass(BundleLoader.java:275)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1248)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:152)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:142)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:129)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 48)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:222)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.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:23 28)
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.load BundleActivator(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:23 28)
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.load BundleActivator(AbstractBundle.java:144)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:965)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:316)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:264)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseClassLoader.java:116)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:337)
at
org.eclipse.osgi.framework.internal.core.SingleSourcePackage .loadClass(SingleSourcePackage.java:37)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:386)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(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.d efineClass(DefaultClassLoader.java:370)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.defineCl ass(EclipseClassLoader.java:233)
at
org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.f indClassImpl(DefaultClassLoader.java:343)
at
org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.f indClass(DefaultClassLoader.java:235)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. findLocalClass(AbstractClassLoader.java:183)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.basicFin dLocalClass(EclipseClassLoader.java:141)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseClassLoader.java:82)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:337)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:389)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(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.loadCl ass(BundleLoader.java:275)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:142)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:965)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:316)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:264)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseClassLoader.java:116)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:337)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:389)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(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.loadCl ass(BundleLoader.java:275)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1248)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:152)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:142)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:129)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 48)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:222)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.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.load BundleActivator(AbstractBundle.java:149)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:965)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:316)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:264)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseClassLoader.java:116)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:337)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:389)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(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.loadCl ass(BundleLoader.java:275)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1248)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:152)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:142)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:129)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 48)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:222)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.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.d efineClass(DefaultClassLoader.java:370)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.defineCl ass(EclipseClassLoader.java:233)
at
org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.f indClassImpl(DefaultClassLoader.java:343)
at
org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.f indClass(DefaultClassLoader.java:235)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. findLocalClass(AbstractClassLoader.java:183)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.basicFin dLocalClass(EclipseClassLoader.java:141)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseClassLoader.java:82)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:337)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:389)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(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.loadCl ass(BundleLoader.java:275)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(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.d efineClass(DefaultClassLoader.java:370)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.defineCl ass(EclipseClassLoader.java:233)
at
org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.f indClassImpl(DefaultClassLoader.java:343)
at
org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.f indClass(DefaultClassLoader.java:235)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. findLocalClass(AbstractClassLoader.java:183)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.basicFin dLocalClass(EclipseClassLoader.java:141)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseClassLoader.java:82)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:337)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:389)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(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.loadCl ass(BundleLoader.java:275)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:142)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:965)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:316)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:264)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseClassLoader.java:116)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:337)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:389)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(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.loadCl ass(BundleLoader.java:275)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1248)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:152)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:142)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:129)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 48)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:222)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.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.findCl ass(BundleLoader.java:405)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(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.loadCl ass(BundleLoader.java:275)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1248)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:152)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:142)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:129)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 48)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:222)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.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.
Re: Workshop for Weblogic Platform 9.2 on Mac OS X 10.4 [message #192140 is a reply to message #192132] Sat, 05 May 2007 19:43 Go to previous messageGo to next message
Eclipse User
Originally posted by: eclipse.newsgroups.javafreelancer.net

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.os gi_3.1.2.jar



the above jar contains org.eclipse.core.runtime.adaptor.EclipseStarter:


$ jar -tvf
/Applications/bea/workshop92//eclipse/plugins/org.eclipse.os gi_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$InitialBundl e.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?
Re: Workshop for Weblogic Platform 9.2 on Mac OS X 10.4 [message #192154 is a reply to message #192132] Sun, 06 May 2007 12:03 Go to previous message
Eclipse User
Originally posted by: eclipse.newsgroups.javafreelancer.net

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.e clipse.osgi_3.1.2.jar:/Applications/bea/workshop92/eclipse/p lugins/org.eclipse.swt.gtk.solaris.sparc_3.1.1.jar:/Applicat ions/bea/workshop92/eclipse/plugins/org.eclipse.swt_3.1.0.ja r:/Applications/bea/workshop92/eclipse/plugins/org.eclipse.u i.workbench_3.1.2.jar:/Applications/bea/workshop92//eclipse/ plugins/org.eclipse.ui.ide_3.1.1.jar:/Applications/bea/works hop92//eclipse/plugins/org.eclipse.core.runtime_3.1.2.jar:/A pplications/bea/workshop92//eclipse/plugins/org.eclipse.jfac e_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/works hop4WP/eclipse/configuration
\
-Dosgi.parentClassloader=app \
-Declipse.product=com.bea.wlw.product.workshop \
-Declipse.vm=/System/Library/Frameworks/JavaVM.framework/Ver sions/1.5.0/Home/bin/java
\
-Dosgi.framework=/Applications/bea/workshop92/eclipse/plugin s/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/H ome/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.ja va:379)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:155)
at
org.eclipse.ui.internal.ide.IDEApplication.createDisplay(IDE Application.java:128)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:79)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.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.
Previous Topic:setting Tomcat 6 in server selection
Next Topic:Debugging Axis2 Web Service on Tomcat with Eclipse
Goto Forum:
  


Current Time: Tue Sep 23 16:32:08 GMT 2014

Powered by FUDForum. Page generated in 0.12639 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software