[ 
http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-34?page=comments#action_12362255
 ] 

Sachin Patel commented on GERONIMODEVTOOLS-34:
----------------------------------------------

The icons didn't get packaged in the zip distribution.  Easy fix.  As far as 
modifying the source editor, you need to using fully qualified elements when 
modifying the xml by hand, otherwise its not a valid xml, and the model editor 
will not be able to parse the resource.

> cannot create a resource reference via plugin GUI
> -------------------------------------------------
>
>          Key: GERONIMODEVTOOLS-34
>          URL: http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-34
>      Project: Geronimo-Devtools
>         Type: Bug
>   Components: eclipse-plugin
>  Environment: WinXP, Eclipse 3.1.1, WTP 1.0RC5, JDK 1.4.2
>     Reporter: Lin Sun

>
> Tried to add a resource reference from the geronimo-web.xml in the simple 
> hello program (in the naming tab page, click on Add.  At resource reference 
> detail page, type resource name and resource link and click Finish.  Got an 
> error in a sec asking me to check error log.  (It would be nice to indicate 
> to the user where the error log is).
> I went to .metadata\.log file, and saw the following exception:
> !ENTRY org.eclipse.jface 4 2 2006-01-09 15:50:16.161
> !MESSAGE Problems occurred when invoking code from plug-in: 
> "org.eclipse.jface".
> !STACK 0
> java.util.MissingResourceException: The image resource 
> 'full/obj16/ResourceRefType' could not be located
>       at 
> org.eclipse.emf.common.EMFPlugin.delegatedGetImage(EMFPlugin.java:319)
>       at org.eclipse.emf.common.EMFPlugin.getImage(EMFPlugin.java:273)
>       at 
> org.apache.geronimo.xml.ns.naming.provider.ResourceRefTypeItemProvider.getColumnImage(ResourceRefTypeItemProvider.java:376)
>       at 
> org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider.getColumnImage(AdapterFactoryLabelProvider.java:229)
>       at 
> org.eclipse.jface.viewers.TableViewer.doUpdateItem(TableViewer.java:473)
>       at 
> org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java:434)
>       at 
> org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java(Inlined
>  Compiled Code))
>       at org.eclipse.core.runtime.Platform.run(Platform.java(Inlined Compiled 
> Code))
>       at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java(Inlined 
> Compiled Code))
>       at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java(Compiled 
> Code))
>       at 
> org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:1763)
>       at 
> org.eclipse.jface.viewers.StructuredViewer.internalUpdate(StructuredViewer.java:1746)
>       at 
> org.eclipse.jface.viewers.StructuredViewer.update(StructuredViewer.java:1697)
>       at 
> org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider$ViewerRefresh.run(AdapterFactoryContentProvider.java:309)
>       at 
> org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider.notifyChanged(AdapterFactoryContentProvider.java:257)
>       at 
> org.eclipse.emf.edit.provider.ChangeNotifier.fireNotifyChanged(ChangeNotifier.java:45)
>       at 
> org.eclipse.emf.edit.provider.ComposedAdapterFactory.fireNotifyChanged(ComposedAdapterFactory.java:451)
>       at 
> org.apache.geronimo.xml.ns.naming.provider.NamingItemProviderAdapterFactory.fireNotifyChanged(NamingItemProviderAdapterFactory.java:530)
>       at 
> org.eclipse.emf.edit.provider.ItemProviderAdapter.fireNotifyChanged(ItemProviderAdapter.java:217)
>       at 
> org.apache.geronimo.xml.ns.naming.provider.ResourceRefTypeItemProvider.notifyChanged(ResourceRefTypeItemProvider.java:319)
>       at 
> org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java(Compiled
>  Code))
>       at 
> org.apache.geronimo.xml.ns.naming.impl.ResourceRefTypeImpl.setResourceLink(ResourceRefTypeImpl.java:461)
>       at 
> org.apache.geronimo.xml.ns.naming.impl.ResourceRefTypeImpl.eSet(ResourceRefTypeImpl.java:574)
>       at 
> org.apache.geronimo.ui.wizards.DynamicAddEditWizard.processEAttributes(DynamicAddEditWizard.java:119)
>       at 
> org.apache.geronimo.ui.wizards.DynamicAddEditWizard.performFinish(DynamicAddEditWizard.java:92)
>       at 
> org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:676)
>       at 
> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:349)
>       at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:556)
>       at 
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java(Compiled 
> Code))
>       at 
> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java(Compiled Code))
>       at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Inlined 
> Compiled Code))
>       at 
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java(Compiled Code))
>       at 
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java(Compiled Code))
>       at org.eclipse.jface.window.Window.runEventLoop(Window.java(Compiled 
> Code))
>       at org.eclipse.jface.window.Window.open(Window.java:787)
>       at 
> org.apache.geronimo.ui.sections.DynamicTableSection$3.widgetSelected(DynamicTableSection.java:300)
>       at 
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java(Compiled 
> Code))
>       at 
> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java(Compiled Code))
>       at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Inlined 
> Compiled Code))
>       at 
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java(Compiled Code))
>       at 
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java(Compiled Code))
>       at 
> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java(Compiled Code))
>       at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
>       at 
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
>       at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
>       at 
> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
>       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:85)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
>       at java.lang.reflect.Method.invoke(Method.java:391)
>       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)
> Since the GUI is not working, I went to the source tab, and pasted my 
> resource ref elements there.  saved it.  However when I tried to reopen the 
> geronimo-web.xml, I got an error opening editor saying "could not open the 
> deployment plan editor, open the default text editor".  

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to