MyEclipse: Generated web.xml invalid

paulkaiser - Aug 31, 2004 - 06:59 PM
Post subject: Generated web.xml invalid
I'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:


Quote:

<?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.

Quote:

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
support-rkalla - Sep 01, 2004 - 03:56 PM
Post subject:
Paul,
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?
snpe - Sep 01, 2004 - 04:52 PM
Post subject:
I try this file and validation is fine
Your errors are for another file

regards
paulkaiser - Sep 01, 2004 - 09:26 PM
Post subject:
I get a validation failure dialog.

Validation Failed
The XML file is not valid. See the Tasks view for a list of the validation errors.
support-rkalla - Sep 01, 2004 - 09:35 PM
Post subject:
Well this isn't good... what is your Eclipse Build ID? This seems like a "broken install" type of error...
paulkaiser - Sep 02, 2004 - 01:13 PM
Post subject:
Eclipse Platform

Version: 3.0.0
Build id: 200406251208

I've run with the "-clean" argument also.
paulkaiser - Sep 02, 2004 - 01:21 PM
Post subject: Log entry. Unrelated?
Here 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:
Quote:

!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
paulkaiser - Sep 02, 2004 - 01:36 PM
Post subject:
Now 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
support-rkalla - Sep 02, 2004 - 02:50 PM
Post subject:
Hmm, 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 ;)
paulkaiser - Sep 02, 2004 - 02:58 PM
Post subject:
Okay. 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
support-rkalla - Sep 02, 2004 - 03:14 PM
Post subject:
Hmm, 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.
paulkaiser - Sep 02, 2004 - 04:32 PM
Post subject:
I 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
support-rkalla - Sep 02, 2004 - 04:42 PM
Post subject:
Paul 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?
paulkaiser - Sep 02, 2004 - 05:11 PM
Post subject:
I 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
paulkaiser - Sep 02, 2004 - 05:12 PM
Post subject:
Sorry for the wild goose chase.

--Paul
paulkaiser - Sep 02, 2004 - 05:31 PM
Post subject:
A work-around may not be necessary. There is an update to the PMD plug-in that should eliminate the need for the adding the jars to the JRE endorsed library directory.

--Paul
support-rkalla - Sep 02, 2004 - 05:42 PM
Post subject:
Ahh great, let us know if that works out.
All times are GMT - 6 Hours
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits