Eclipse项目搭建时出现Invalid input URL错误:无法解析Seam图标资源
Fix for "Unable to resolve plug-in 'platform:/plugin/org.jboss.tools.seam.ui/icons/seam16.png'" Error in Eclipse
First, let's look at the full error trace you're hitting in Eclipse:
java.io.IOException: Unable to resolve plug-in "platform:/plugin/org.jboss.tools.seam.ui/icons/seam16.png". at org.eclipse.core.internal.runtime.PlatformURLPluginConnection.parse(PlatformURLPluginConnection.java:61) at org.eclipse.core.internal.runtime.FindSupport.find(FindSupport.java:290) at org.eclipse.core.runtime.FileLocator.find(FileLocator.java:152) at org.eclipse.jface.resource.URLImageDescriptor.getStream(URLImageDescriptor.java:152) at org.eclipse.jface.resource.URLImageDescriptor.getImageData(URLImageDescriptor.java:120) at org.eclipse.jface.resource.URLImageDescriptor.access$3(URLImageDescriptor.java:118) at org.eclipse.jface.resource.URLImageDescriptor$URLImageDataProvider.getImageData(URLImageDescriptor.java:74) at org.eclipse.swt.internal.DPIUtil.validateAndGetImageDataAtZoom(DPIUtil.java:393) at org.eclipse.swt.graphics.Image.<init>(Image.java:731) at org.eclipse.jface.resource.URLImageDescriptor.createImage(URLImageDescriptor.java:271) at org.eclipse.jface.resource.ImageDescriptor.createImage(ImageDescriptor.java:240) at org.eclipse.jface.resource.ImageDescriptor.createImage(ImageDescriptor.java:218) at org.eclipse.ui.internal.dialogs.ViewLabelProvider.getImage(ViewLabelProvider.java:93) at org.eclipse.jface.viewers.ColumnLabelProvider.update(ColumnLabelProvider.java:35) at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn.java:141) at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:946) at org.eclipse.jface.viewers.AbstractTreeViewer$UpdateItemSafeRunnable.run(AbstractTreeViewer.java:117) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.JFaceUtil.lambda$0(JFaceUtil.java:44) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173) at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:1025) at org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java:475) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.JFaceUtil.lambda$0(JFaceUtil.java:44) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173) at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:2159) at org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem(AbstractTreeViewer.java:840) at org.eclipse.jface.viewers.AbstractTreeViewer.lambda$0(AbstractTreeViewer.java:817) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:792) at org.eclipse.jface.viewers.TreeViewer.createChildren(TreeViewer.java:595) at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:763) at org.eclipse.jface.viewers.AbstractTreeViewer.setExpandedState(AbstractTreeViewer.java:2459) at org.eclipse.ui.dialogs.FilteredTree$1.recursiveExpand(FilteredTree.java:586) at org.eclipse.ui.dialogs.FilteredTree$1.runInUIThread(FilteredTree.java:529) at org.eclipse.ui.progress.UIJob.lambda$0(UIJob.java:95) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:37) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:182) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4213) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3820) at org.eclipse.jface.window.Window.runEventLoop(Window.java:818) at org.eclipse.jface.window.Window.open(Window.java:794) at org.eclipse.ui.handlers.ShowViewHandler.openOther(ShowViewHandler.java:102) at org.eclipse.ui.handlers.ShowViewHandler.execute(ShowViewHandler.java:77) at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:291) at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:92) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55) at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:305) at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:239) at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132) at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:152) at org.eclipse.core.commands.Command.executeWithChecks(Command.java:494) at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:487) at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210) at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:
The core issue here is that Eclipse can't locate the seam16.png icon from the org.jboss.tools.seam.ui plugin. This usually happens when the plugin is missing, corrupted, or not properly configured. Let's walk through the fixes step by step:
1. Check if JBoss Tools Seam Plugin is Installed
- Open Eclipse and go to
Help > About Eclipse IDE > Installation Details - Switch to the
Installed Softwaretab and search for "JBoss Tools Seam". If it's not listed, you'll need to install it:- Head to
Help > Install New Software - Add the JBoss Tools update site matching your Eclipse version (e.g., for Eclipse 2023-09, use
https://download.jboss.org/jbosstools/photon/stable/updates/) - Select the "Seam" components from the list, complete the installation, then restart Eclipse
- Head to
2. Repair or Reinstall the Plugin
If the plugin is already installed but you're still getting the error:
- First, try updating it: Go to
Help > Check for Updatesand install any available updates for JBoss Tools - If updates don't work, uninstall and reinstall:
- From
Installation Details, select the JBoss Tools Seam components and clickUninstall - Restart Eclipse, then repeat the installation steps above to get a fresh copy
- From
3. Clean Eclipse Workspace and Caches
- Close Eclipse, then navigate to your workspace directory and delete the
.metadata/.plugins/org.eclipse.core.resources/.projectsfolder (this clears project-specific cached data) - Reopen Eclipse and run
Project > Clean, select "Clean all projects" and check "Start a build immediately" - Alternatively, restart Eclipse with the
-cleanflag: open a terminal, go to your Eclipse installation directory, and runeclipse.exe -clean(Windows) or./eclipse -clean(Linux/macOS)
4. Verify Target Platform Configuration (If Using Custom Target)
If you're working with a custom Target Platform:
- Go to
Window > Preferences > Plug-in Development > Target Platform - Select your active target platform and click
Edit - Make sure the
org.jboss.tools.seam.uiplugin is included in the target definition and marked as active. If not, add it from the available plugins, save the configuration, then restart Eclipse
These steps should resolve the missing plugin resource error. If you hit any snags with any of these steps, feel free to follow up!
内容的提问来源于stack exchange,提问作者Mehul Jain
相关产品推荐
相关产品推荐

