Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Error Log view not loaded by RCP app
Error Log view not loaded by RCP app [message #452179] Tue, 04 July 2006 06:24 Go to next message
Keith Harrison-Broninski is currently offline Keith Harrison-BroninskiFriend
Messages: 33
Registered: July 2009
Member
My RCP app shows the Error Log view, but renames it to "Messages" so as
not to frighten users. This is done via the following extension in
plugin.xml:

<extension
point="org.eclipse.ui.views">
<view
name="%views.messages.name"
icon="icons/obj16/info.gif"
category="org.eclipse.pde.runtime"
class="org.eclipse.pde.internal.runtime.logview.LogView"
id="org.eclipse.pde.runtime.LogView">
</view>
</extension>

This works fine when launching the app from a workbench. But when
packaged for export and run externally, the Error Log view is not loaded.

The plugin containing the LogView class,
org.eclipse.pde.runtime_3.2.0.v20060329-1600.jar, is packaged with the
RCP app. Yet when the app runs the part is not displayed; instead you
get an error "Unable to create view: Plug-in
com.rolemodellers.rim.humanedj was unable to load class
org.eclipse.pde.internal.runtime.logview.LogView.", with the class
loader failure stack shown below.

I have tried editing MANIFEST.MF in the pde runtime plugin jar, removing
the x-friends qualifier on the package in question; i.e., changing this:

Export-Package: org.eclipse.pde.internal.runtime;x-internal:=true,org.
eclipse.pde.internal.runtime.logview;x-friends:="org.eclipse.pde.ui ",
org.eclipse.pde.internal.runtime.registry;x-internal:=true

to this:

Export-Package: org.eclipse.pde.internal.runtime,org.
eclipse.pde.internal.runtime.logview,
org.eclipse.pde.internal.runtime.registry

but it doesn't make any difference.

Any ideas, anyone?

Thanks!
All the best
Keith

java.lang.ClassNotFoundException:
org.eclipse.pde.internal.runtime.logview.LogView
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:406)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:351)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
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:1245)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:144)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
at
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:234)
at
org.eclipse.ui.internal.registry.ViewDescriptor.createView(V iewDescriptor.java:69)
at
org.eclipse.ui.internal.ViewReference.createPartHelper(ViewR eference.java:292)
at org.eclipse.ui.internal.ViewReference.createPart(ViewReferen ce.java:197)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:566)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:29 0)
at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:52 5)
at
org.eclipse.ui.internal.presentations.PresentablePart.setVis ible(PresentablePart.java:140)
at
org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.select(PresentablePartFolder.java:266)
at
org.eclipse.ui.internal.presentations.util.LeftToRightTabOrd er.select(LeftToRightTabOrder.java:65)
at
org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation.selectPart(TabbedStackPresentation.java:394)
at
org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1147)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1100)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:13 19)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.ja va:603)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.ja va:531)
at
org.eclipse.ui.internal.PartSashContainer.createControl(Part SashContainer.java:562)
at
org.eclipse.ui.internal.PerspectiveHelper.activate(Perspecti veHelper.java:244)
at org.eclipse.ui.internal.Perspective.onActivate(Perspective.j ava:832)
at
org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPa ge.java:2344)
at org.eclipse.ui.internal.WorkbenchWindow$6.run(WorkbenchWindo w.java:2585)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.ui.internal.WorkbenchWindow.setActivePage(Workbe nchWindow.java:2566)
at
org.eclipse.ui.internal.WorkbenchWindow.busyOpenPage(Workben chWindow.java:657)
at
org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow(Wo rkbench.java:795)
at
org.eclipse.ui.internal.Workbench.doOpenFirstTimeWindow(Work bench.java:1437)
at
org.eclipse.ui.internal.Workbench.openFirstTimeWindow(Workbe nch.java:1388)
at
org.eclipse.ui.internal.WorkbenchConfigurer.openFirstTimeWin dow(WorkbenchConfigurer.java:190)
at
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:708)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:1085)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1847)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at com.rolemodellers.rim.humanedj.Application.run(Application.j ava:18)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:169)
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:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Re: Error Log view not loaded by RCP app [message #452225 is a reply to message #452179] Tue, 04 July 2006 17:47 Go to previous messageGo to next message
Keith Harrison-Broninski is currently offline Keith Harrison-BroninskiFriend
Messages: 33
Registered: July 2009
Member
Got it working, but no idea why. All I did was deploy the Application
plugin unpacked (i.e., as a directory rather than a jar). Now the Error
Log view loads fine, even without modification to the manifest in
org.eclipse.pde.runtime.

?!

Keith


Keith Harrison-Broninski wrote:
> My RCP app shows the Error Log view, but renames it to "Messages" so as
> not to frighten users. This is done via the following extension in
> plugin.xml:
>
> <extension
> point="org.eclipse.ui.views">
> <view
> name="%views.messages.name"
> icon="icons/obj16/info.gif"
> category="org.eclipse.pde.runtime"
> class="org.eclipse.pde.internal.runtime.logview.LogView"
> id="org.eclipse.pde.runtime.LogView">
> </view>
> </extension>
>
> This works fine when launching the app from a workbench. But when
> packaged for export and run externally, the Error Log view is not loaded.
>
> The plugin containing the LogView class,
> org.eclipse.pde.runtime_3.2.0.v20060329-1600.jar, is packaged with the
> RCP app. Yet when the app runs the part is not displayed; instead you
> get an error "Unable to create view: Plug-in
> com.rolemodellers.rim.humanedj was unable to load class
> org.eclipse.pde.internal.runtime.logview.LogView.", with the class
> loader failure stack shown below.
>
> I have tried editing MANIFEST.MF in the pde runtime plugin jar, removing
> the x-friends qualifier on the package in question; i.e., changing this:
>
> Export-Package: org.eclipse.pde.internal.runtime;x-internal:=true,org.
> eclipse.pde.internal.runtime.logview;x-friends:="org.eclipse.pde.ui ",
> org.eclipse.pde.internal.runtime.registry;x-internal:=true
>
> to this:
>
> Export-Package: org.eclipse.pde.internal.runtime,org.
> eclipse.pde.internal.runtime.logview,
> org.eclipse.pde.internal.runtime.registry
>
> but it doesn't make any difference.
>
> Any ideas, anyone?
>
> Thanks!
> All the best
> Keith
Re: Error Log view not loaded by RCP app [message #452227 is a reply to message #452225] Tue, 04 July 2006 21:34 Go to previous messageGo to next message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
Sounds like a caching issue that didn't take place until you re-deployed it as a packed jar. You'll probably find if you switch it back it continues working ...

Alex.
Re: Error Log view not loaded by RCP app [message #452471 is a reply to message #452227] Thu, 06 July 2006 15:30 Go to previous message
Keith Harrison-Broninski is currently offline Keith Harrison-BroninskiFriend
Messages: 33
Registered: July 2009
Member
You're right. It did. Thanks for this!
Keith

Alex Blewitt wrote:
> Sounds like a caching issue that didn't take place until you re-deployed it as a packed jar. You'll probably find if you switch it back it continues working ...
>
> Alex.
Previous Topic:Export of deployable plugin fails for long classpath
Next Topic:how to close a View Part
Goto Forum:
  


Current Time: Fri Apr 26 10:25:46 GMT 2024

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

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

Back to the top