| Product export error - please help. [message #445832] |
Wed, 08 March 2006 16:47  |
Eclipse User |
|
|
|
Originally posted by: steve.bayer.hci.utah.edu
My product works fine from within Eclipse, but I cannot execute after
exporting, either with Plug-ins or Features. Here is the error that is
written to the log file:
===========================
!MESSAGE An error occurred while automatically activating bundle
org.bernard.analysis.client (3).
!STACK 0
org.osgi.framework.BundleException: The activator
org.bernard.analysis.client.ClientPlugin for bundle
org.bernard.analysis.client is invalid
...
Caused by: java.lang.ClassNotFoundException:
org.bernard.analysis.client.ClientPlugin
...
Root exception:
java.lang.ClassNotFoundException: org.bernard.analysis.client.ClientPlugin
...
!MESSAGE Application error
org.eclipse.core.runtime.CoreException[1]:
java.lang.ClassNotFoundException: org.bernard.analysis.client.Application
===========================
I've tried everything I can think of to correct this. The classes in
question DO appear in the Plug-in within the product directory.
Any suggestions? Thanks in advance.
|
|
|
| Re: Product export error - please help. [message #445835 is a reply to message #445832] |
Wed, 08 March 2006 21:43   |
Eclipse User |
|
|
|
Originally posted by: kwpeck.mersoft.com
Export is rather fickle to say the least. First, do you have everything
set up properly on every tab for the plugin.xml.
On the first page is the _Class:_ fully qualified
(org.bernard.analysis.client.ClientPlugin) I would assume it is due to
the error.
Next up on the Dependencies tab are all dependencies in there? I know
the product will build and run without all of them but it will not
export if you are missing some.
On the Runtime tab do you export all of your packages in each of your
plugins / rcp? Maybe Eclipse can not see the class if it is not exported
here for external use.
Still on the Runtime tab is . in the classpath (lower right corner)? It
needs to be for the classes to show up to the outside world - this ties
into something on another tab...
I would guess Extensions and Extension Points are fine.
Now to the Build tab. Do you have . in the runtime information? If you
have a named lib here then what you have here must match what is on the
Runtime tab classpath.
For the Binary Build are you including META-INF, icons, plugin.xml and
any LIB directories?
Do you need any buddy policies set up? Not many do but if you do make
sure they are all set in the MANIFEST.MF tab.
The plugin.xml tab is general built by Eclipse so it should be fine.
Build.properties - does it look pretty normal? I had one today where
some strange things were in there that had nothing to do with my
project, a spare jar file and what not. It should look something like this:
source.. = src/
output.. = bin/
bin.includes = META-INF/,\
.,\
plugin.xml,\
icons/
If you Run your product from within Eclipse, (drop the Run v down, then
Run...) select the plug-ins tab. Choose the last radio button (choose
plugins and fragments to launch). Select your project plug-ins here then
press the add required plug-ins button. That should give you a solid
list of plugins required by your RCP. Make sure all of them appear in
the export directory. If not, get them added to a dependency / feature
so they will build.
Hopefully one of these items will do it. Since it appears you are
getting the export to complete and just can't run you are doing better
than a lot of folks. The final stages are very picky. Let me know if you
need any other help. I have to try and keep our multiple plug-in RCP
building and it can be quite a chore. If need be send the full error log
as that can be a huge help in diagnosing stuff. Sometimes you cut other
things that don't appear to mean much to you but might mean a lot to me.
Steve Bayer wrote:
> My product works fine from within Eclipse, but I cannot execute after
> exporting, either with Plug-ins or Features. Here is the error that is
> written to the log file:
> ===========================
> !MESSAGE An error occurred while automatically activating bundle
> org.bernard.analysis.client (3).
> !STACK 0
> org.osgi.framework.BundleException: The activator
> org.bernard.analysis.client.ClientPlugin for bundle
> org.bernard.analysis.client is invalid
> ...
> Caused by: java.lang.ClassNotFoundException:
> org.bernard.analysis.client.ClientPlugin
> ...
> Root exception:
> java.lang.ClassNotFoundException: org.bernard.analysis.client.ClientPlugin
> ...
> !MESSAGE Application error
> org.eclipse.core.runtime.CoreException[1]:
> java.lang.ClassNotFoundException: org.bernard.analysis.client.Application
> ===========================
> I've tried everything I can think of to correct this. The classes in
> question DO appear in the Plug-in within the product directory.
> Any suggestions? Thanks in advance.
>
>
>
|
|
|
| Re: Product export error - please help. [message #445840 is a reply to message #445835] |
Thu, 09 March 2006 00:53   |
Eclipse User |
|
|
|
Originally posted by: aimdliu.sina.com
Hi,Kevin:
I also have a problem, could you help me?
I have done everything as your idea, but when i run the exe file, the log
file is:
!SESSION 2006-03-09 13:46:05.390
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.4.2_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN
Command-line arguments: -os win32 -ws win32 -arch x86 -clean
!ENTRY initial@reference:file:plugins/org.eclipse.core.runtime_3.1.0/ 0 0
2006-03-09 13:46:05.937
!MESSAGE FrameworkEvent.ERROR
!STACK 0
org.osgi.framework.BundleException: The activator
org.eclipse.core.internal.runtime.PlatformActivator for bundle
org.eclipse.core.runtime is invalid
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:151)
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:321)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resu me(AbstractBundle.java:339)
at
org.eclipse.osgi.framework.internal.core.Framework.resumeBun dle(Framework.java:1024)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.r esumeBundles(StartLevelManager.java:576)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.i ncFWSL(StartLevelManager.java:498)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d oSetStartLevel(StartLevelManager.java:275)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d ispatchEvent(StartLevelManager.java:458)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:189)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread .run(EventManager.java:291)
Caused by: java.lang.ClassNotFoundException:
org.eclipse.core.internal.runtime.PlatformActivator
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:403)
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(Unknown Source)
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:144)
... 10 more
Root exception:
java.lang.ClassNotFoundException:
org.eclipse.core.internal.runtime.PlatformActivator
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:403)
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(Unknown Source)
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: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:321)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resu me(AbstractBundle.java:339)
at
org.eclipse.osgi.framework.internal.core.Framework.resumeBun dle(Framework.java:1024)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.r esumeBundles(StartLevelManager.java:576)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.i ncFWSL(StartLevelManager.java:498)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d oSetStartLevel(StartLevelManager.java:275)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d ispatchEvent(StartLevelManager.java:458)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:189)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread .run(EventManager.java:291)
!ENTRY
initial@reference:file:plugins/org.eclipse.update.configurator_3.1.0/ 0 0
2006-03-09 13:46:05.953
!MESSAGE FrameworkEvent.ERROR
!STACK 0
org.osgi.framework.BundleException: The activator
org.eclipse.update.internal.configurator.ConfigurationActiva tor for bundle
org.eclipse.update.configurator is invalid
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:151)
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:321)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resu me(AbstractBundle.java:339)
at
org.eclipse.osgi.framework.internal.core.Framework.resumeBun dle(Framework.java:1024)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.r esumeBundles(StartLevelManager.java:576)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.i ncFWSL(StartLevelManager.java:498)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d oSetStartLevel(StartLevelManager.java:275)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d ispatchEvent(StartLevelManager.java:458)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:189)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread .run(EventManager.java:291)
Caused by: java.lang.ClassNotFoundException:
org.eclipse.update.internal.configurator.ConfigurationActiva tor
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:403)
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(Unknown Source)
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:144)
... 10 more
Root exception:
java.lang.ClassNotFoundException:
org.eclipse.update.internal.configurator.ConfigurationActiva tor
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:403)
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(Unknown Source)
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: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:321)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resu me(AbstractBundle.java:339)
at
org.eclipse.osgi.framework.internal.core.Framework.resumeBun dle(Framework.java:1024)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.r esumeBundles(StartLevelManager.java:576)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.i ncFWSL(StartLevelManager.java:498)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d oSetStartLevel(StartLevelManager.java:275)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d ispatchEvent(StartLevelManager.java:458)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:189)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread .run(EventManager.java:291)
!ENTRY org.eclipse.osgi 2006-03-09 13:46:05.968
!MESSAGE Startup error
!STACK 1
java.lang.IllegalStateException: Bundle
initial@reference:file:plugins/org.eclipse.core.runtime_3.1.0/ [1] is not
active.
at
org.eclipse.core.runtime.adaptor.EclipseStarter.ensureBundle sActive(EclipseStarter.java:410)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.startup(Ecli pseStarter.java:297)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:159)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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)
Then, i find there are only the dircetory but jar package in the product
plugin directory, so i copy the org.eclipse.update.configurator_3.1.0.jar
and org.eclipse.core.runtime_3.1.0.jar to the plugin directory, the lgo
file is:
!SESSION 2006-03-09 13:46:38.109
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.4.2_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN
Command-line arguments: -os win32 -ws win32 -arch x86 -clean
!ENTRY org.eclipse.core.runtime 2006-03-09 13:46:39.531
!MESSAGE Product com.ibm.crl.bok.ui.bokid could not be found.
!ENTRY org.eclipse.osgi 2006-03-09 13:46:39.531
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: No application id has been found.
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:204)
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(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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 2006-03-09 13:46:39.546
!MESSAGE Bundle update@plugins/com.ibm.crl.bok.ui_1.0.0.jar [3] was not
resolved.
!SUBENTRY 1 org.eclipse.osgi 2006-03-09 13:46:39.546
!MESSAGE Missing required bundle org.eclipse.jface.text_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2006-03-09 13:46:39.546
!MESSAGE Missing required bundle
org.eclipse.birt.report.data.oda.flatfile_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2006-03-09 13:46:39.546
!MESSAGE Missing required bundle org.apache.derby.core_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2006-03-09 13:46:39.546
!MESSAGE Missing required bundle org.eclipse.rcp_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2006-03-09 13:46:39.546
!MESSAGE Missing required bundle org.eclipse.update.scheduler_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2006-03-09 13:46:39.546
!MESSAGE Missing required bundle
org.eclipse.datatools.connectivity.oda.flatfile_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2006-03-09 13:46:39.546
!MESSAGE Missing required bundle org.eclipse.emf_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2006-03-09 13:46:39.546
!MESSAGE Missing required bundle org.eclipse.ui.console_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2006-03-09 13:46:39.546
!MESSAGE Missing required bundle org.eclipse.text_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2006-03-09 13:46:39.546
!MESSAGE Missing required bundle org.eclipse.ui.workbench.texteditor_0.0.0.
thank advance
|
|
|
|
| Re: Product export error - please help. [message #445860 is a reply to message #445835] |
Thu, 09 March 2006 12:28  |
Eclipse User |
|
|
|
Originally posted by: steve.bayer.hci.utah.edu
Thanks very much. This is all rather arcane; I'm not sure why export has
to be so complicated. I added . to both places and, with some fiddling,
it worked; but I don't quite understand why.
Thanks again.
bayer
|
|
|
Powered by
FUDForum. Page generated in 0.04000 seconds