- This topic has 16 replies, 3 voices, and was last updated 20 years, 2 months ago by Riyad Kalla.
-
AuthorPosts
-
Paul KaiserMemberI’m having a problem with a web.xml file being invalid right after it gets generated using the New Web Project wizard.
I’m using Eclipse 3.0.0 on XP SP1 with a clean install of MyEclipse 3.8.1 from the manual install downloaded this morning. Build ID is 200408201200-3.8.1+QF20040825.
I created a new J2EE Web project using the J2EE 1.4 library set. The web.xml that gets created is:
<?xml version=”1.0″ encoding=”UTF-8″?>
<web-app version=”2.4″
xmlns=”http://java.sun.com/xml/ns/j2ee”
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd”></web-app>
There are 7 errors shown in the problems tab.
src-import.0: Failed to read imported schema document ‘file:/c:/webdd/ide/myEclipse3.8.1/eclipse/plugins/com.ibm.webtooling.system.dtds_13.8.1/xsds/xml.xsd’.
src-ct.0.1: Complex Type Definition Representation Error for type ‘descriptionType’. Element ‘attribute’ is invalid, misplaced, or occurs too often.
src-resolve: Cannot resolve the name ‘xml:lang’ to a(n) attribute declaration component.
src-ct.0.1: Complex Type Definition Representation Error for type ‘display-nameType’. Element ‘attribute’ is invalid, misplaced, or occurs too often.
src-resolve: Cannot resolve the name ‘xml:lang’ to a(n) attribute declaration component.
src-ct.0.1: Complex Type Definition Representation Error for type ‘iconType’. Element ‘attribute’ is invalid, misplaced, or occurs too often.
src-resolve: Cannot resolve the name ‘xml:lang’ to a(n) attribute declaration component.
The first one is probably the root cause of all of them. The file referenced in the first error exists. There are no log entries made during the New Project process.
Is there something wrong with my configuration? Is this a known issue?
Thanks,
Paul
Riyad KallaMemberPaul,
There is known problem and I can’t reproduce this on my end… what happens when you right click on the XML file and “validate” it?
snpeMemberI try this file and validation is fine
Your errors are for another fileregards
Paul KaiserMemberI get a validation failure dialog.
Validation Failed
The XML file is not valid. See the Tasks view for a list of the validation errors.
Riyad KallaMemberWell this isn’t good… what is your Eclipse Build ID? This seems like a “broken install” type of error…
Paul KaiserMemberEclipse Platform
Version: 3.0.0
Build id: 200406251208I’ve run with the “-clean” argument also.
Paul KaiserMemberHere is a couple of log entries. They do not show up consistently. That is, I started Eclipse thrice this morning.
1st time just to get the Eclipse build ID.
2nd time to try Validate XML again. (This is when I noticed the log entries and the time stamp would correlate to the second Eclipse invocation.)
3rd time to repeat what I did in the second. No log entries at all.Log:
!SESSION Sep 02, 2004 08:11:33.732 ———————————————
eclipse.buildId=I200406251208
java.version=1.4.2_05
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US!ENTRY org.eclipse.core.runtime 4 1 Sep 02, 2004 08:11:33.732
!MESSAGE Plug-in com.ibm.xsdeditor was unable to load class com.ibm.etools.xml.common.ui.errorinfo.ReferencedFileErrorActionDelegate.
!STACK 0
java.lang.ClassNotFoundException: com.ibm.etools.xml.common.ui.errorinfo.ReferencedFileErrorActionDelegate
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:404)
at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:307)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:336)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1313)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:131)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:124)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:113)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:189)
at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:114)
at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:295)
at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:104)
at org.eclipse.ui.internal.ObjectPluginAction.<init>(ObjectPluginAction.java:36)
at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:217)
at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:135)
at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:74)
at org.eclipse.ui.internal.ObjectActionContributor.createActionDescriptor(ObjectActionContributor.java:144)
at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:145)
at org.eclipse.ui.internal.ObjectActionContributor.readElement(ObjectActionContributor.java:201)
at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:138)
at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:128)
at org.eclipse.ui.internal.ObjectActionContributor.readConfigElement(ObjectActionContributor.java:174)
at org.eclipse.ui.internal.ObjectActionContributor.isApplicableTo(ObjectActionContributor.java:160)
at org.eclipse.ui.internal.ObjectContributorManager.isApplicableTo(ObjectContributorManager.java:249)
at org.eclipse.ui.internal.ObjectActionContributorManager.contributeObjectActions(ObjectActionContributorManager.java:121)
at org.eclipse.ui.internal.PopupMenuExtender.addObjectActions(PopupMenuExtender.java:98)
at org.eclipse.ui.internal.PopupMenuExtender.menuAboutToShow(PopupMenuExtender.java:119)
at org.eclipse.jface.action.MenuManager.fireAboutToShow(MenuManager.java:286)
at org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuManager.java:370)
at org.eclipse.jface.action.MenuManager.access$0(MenuManager.java:367)
at org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager.java:383)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:116)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:820)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:801)
at org.eclipse.swt.widgets.Control.WM_INITMENUPOPUP(Control.java:3320)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:2993)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1391)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3338)
at org.eclipse.swt.internal.win32.OS.TrackPopupMenu(Native Method)
at org.eclipse.swt.widgets.Menu._setVisible(Menu.java:222)
at org.eclipse.swt.widgets.Display.runPopups(Display.java:2798)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2425)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
at org.eclipse.core.launcher.Main.run(Main.java:644)
at org.eclipse.core.launcher.Main.main(Main.java:628)!ENTRY org.eclipse.ui 4 4 Sep 02, 2004 08:11:33.742
!MESSAGE Could not create action delegate for id: com.ibm.etools.xml.common.ui.errorinfo.ReferencedFileErrorActionDelegate!ENTRY org.eclipse.core.runtime 4 1 Sep 02, 2004 08:11:33.742
!MESSAGE Plug-in com.ibm.xsdeditor was unable to load class com.ibm.etools.xml.common.ui.errorinfo.ReferencedFileErrorActionDelegate.
!STACK 0
java.lang.ClassNotFoundException: com.ibm.etools.xml.common.ui.errorinfo.ReferencedFileErrorActionDelegate
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:404)
at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:307)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:336)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1313)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:131)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:124)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:113)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:189)
at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:114)
at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:295)
at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:104)
at org.eclipse.ui.internal.ObjectPluginAction.<init>(ObjectPluginAction.java:36)
at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:217)
at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:135)
at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:74)
at org.eclipse.ui.internal.ObjectActionContributor.createActionDescriptor(ObjectActionContributor.java:144)
at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:145)
at org.eclipse.ui.internal.ObjectActionContributor.readElement(ObjectActionContributor.java:201)
at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:138)
at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:128)
at org.eclipse.ui.internal.ObjectActionContributor.readConfigElement(ObjectActionContributor.java:174)
at org.eclipse.ui.internal.ObjectActionContributor.isApplicableTo(ObjectActionContributor.java:160)
at org.eclipse.ui.internal.ObjectContributorManager.isApplicableTo(ObjectContributorManager.java:249)
at org.eclipse.ui.internal.ObjectActionContributorManager.contributeObjectActions(ObjectActionContributorManager.java:121)
at org.eclipse.ui.internal.PopupMenuExtender.addObjectActions(PopupMenuExtender.java:98)
at org.eclipse.ui.internal.PopupMenuExtender.menuAboutToShow(PopupMenuExtender.java:119)
at org.eclipse.jface.action.MenuManager.fireAboutToShow(MenuManager.java:286)
at org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuManager.java:370)
at org.eclipse.jface.action.MenuManager.access$0(MenuManager.java:367)
at org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager.java:383)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:116)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:820)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:801)
at org.eclipse.swt.widgets.Control.WM_INITMENUPOPUP(Control.java:3320)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:2993)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1391)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3338)
at org.eclipse.swt.internal.win32.OS.TrackPopupMenu(Native Method)
at org.eclipse.swt.widgets.Menu._setVisible(Menu.java:222)
at org.eclipse.swt.widgets.Display.runPopups(Display.java:2798)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2425)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
at org.eclipse.core.launcher.Main.run(Main.java:644)
at org.eclipse.core.launcher.Main.main(Main.java:628)–Paul
Paul KaiserMemberNow that I’ve looked at the log entries some more, it appears that there is a missing package “com.ibm.etools.xml.common” on which the “Plug-in com.ibm.xsdeditor” is depending. I see
com.ibm.etools.xml.gef…
com.ibm.etools.xmlcatalog…
com.ibm.etools.xmlutility…I used the manual install package downloaded on 8/31. Might something be missing from it or should the dependency not exist?
Thanks,
–Paul
Riyad KallaMemberHmm, not that we are aware of (no one else has complain about the manual install that I’ve seen).
I wonder if it was just a fluke disk error. Can you try shutting down Eclipse, and re-unzipping the manual install zip back ontop of your ME dir and say yes to the overwrite questions.
If that doesn’t work, re-download the manual install. Corrupt downloads manifest themselves in the strangest ways and I’d like to rule out those two problems before we go nuts ripping things apart 😉
Paul KaiserMemberOkay. Since my last post, I downloaded the automated installer and ran in against a clean Eclipse install. The J2EE 1.4 web project creation went without a hitch. I prefer the manual install because I’m building a composite Eclipse install that I have to give to another internal group to build an MSI based install. Whew!
Thanks,
–Paul
Riyad KallaMemberHmm, I apprecitae the follow up and will try and do this locally and see what the deal is.
On a side note the automated installed does almost exactly the same thing the manual installer does sans a few InstallSHield registry entries that we don’t need/use. So the end result is as ‘detached’ as the manual install incase you were wondering.
Paul KaiserMemberI diff’d the eclipse tree under the two ME install roots: automated installer (works) and manual install (doesn’t work). There are no differences. Just for grins I re-extracted the manual install and as one would expect, it still does not work. I have a bunch of other plugins that I’m including in the composite that were not included in the auto-installed version that works. I will test to see if installing one of the other plugins is causing the problem.
Thanks,
–Paul
Riyad KallaMemberPaul I just did a fresh install of the manual install here locally (E 3.0 GA, erased the /configuration dir, installed ME 3.8.1) and it worked… how’s that for confusing?
Paul KaiserMemberI just figured out the problem. In my composite install, I was putting the two Xerces jars (XMLParserAPIs.jar and xercesImpl.jar) in the JRE endorsed library directory as a work-around to a problem with one of the other plugins I’m including (PMD 2.0.5). When I remove those JARs and validate, it works.
Does ME have specific parser dependencies?
Is there any way around this? I’d hate to have to drop PMD, but will if need be.Thanks,
–Paul
Paul KaiserMemberSorry for the wild goose chase.
–Paul
-
AuthorPosts