facebook

Creation of element failed when creating servlet

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #216815 Reply

    matteclipse
    Member

    – System Setup ——————————-
    Operating System and version:
    Eclipse version: 3.0
    Eclipse build id: I200406251208
    Fresh Eclipse install (y/n): y
    If not, was it upgraded to its current version using the update manager?
    Other installed external plugins: Tomcat from sysdeo
    Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*: 8
    MyEclipse version: 3.0
    Eclipse JDK version:eclipse-SDK-3.0-win32
    Application Server JDK version: j2re1.4.2_05
    Are there any exceptions in the Eclipse log file?
    Error Oct 04, 2004 14:38:41.312 Internal Error
    Internal Error org.eclipse.jdt.ui

    – Message Body ——————————-
    I am following along Part I number 8 of the Web Develpment tutorial found in the Eclipse help. In am trying to make a Servlet. I can make a JSP, but when making a Servlet when I click ‘Finish’ in the xml wizard I get an error box stating that ‘Creation of element failed. See error log.’ In the error log files there is ‘Internal error org.eclipse.jdt.ui’ . The following was in the error log. :

    Error Oct 05, 2004 08:48:45.796 Plug-in com.ibm.wtp.common.ui was unable to load class com.ibm.wtp.common.ui.UITesterImpl.
    java.lang.ClassNotFoundException: com.ibm.wtp.common.ui.UITesterImpl
    atorg.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:404)
    atorg.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:93)at java.lang.ClassLoader.loadClass(Unknown Source)
    atorg.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:307)
    atorg.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:336)
    atorg.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1313)
    atorg.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:131)
    atorg.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:124)
    atorg.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:113)
    atcom.ibm.wtp.common.UIContextDetermination$UITesterRegistryReader.readElement(UIContextDetermination.java:153)
    atcom.ibm.wtp.common.RegistryReader.internalReadElement(RegistryReader.java:61)at com.ibm.wtp.common.RegistryReader.readRegistry(RegistryReader.java:99)
    atcom.ibm.wtp.common.UIContextDetermination.getCurrentContext(UIContextDetermination.java:69)
    atcom.ibm.etools.validate.internal.EventManager.isHeadless(EventManager.java:431)
    atcom.ibm.etools.validate.internal.EventManager.shutdown(EventManager.java:323)
    atcom.ibm.etools.validate.plugin.ValidationPlugin.shutdown(ValidationPlugin.java:137)
    atorg.eclipse.core.internal.compatibility.PluginActivator.stop(PluginActivator.java:74)
    atorg.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:994)
    at java.security.AccessController.doPrivileged(Native Method)
    atorg.eclipse.osgi.framework.internal.core.BundleContextImpl.stop(BundleContextImpl.java:990)
    atorg.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:502)
    atorg.eclipse.osgi.framework.internal.core.AbstractBundle.stop(AbstractBundle.java:437)
    atorg.eclipse.core.runtime.adaptor.BundleStopper.basicStopBundles(BundleStopper.java:75)
    atorg.eclipse.core.runtime.adaptor.BundleStopper.stopBundles(BundleStopper.java:62)
    atorg.eclipse.core.runtime.adaptor.EclipseAdaptor.frameworkStopping(EclipseAdaptor.java:551)
    atorg.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:457)
    atorg.eclipse.osgi.framework.internal.core.SystemBundle$1.run(SystemBundle.java:182)
    at java.lang.Thread.run(Unknown Source)

    MyEclipse version – 3.8.0
    build ID – 200408061200-3.8

    #216828

    Riyad Kalla
    Member

    What version of MyEclipse are you running? (Window > Preferences > MyEclipse)

    #230286

    stumiller
    Member

    I also get this error using the wizard to create a new Message Driven Bean. In the error log I have one InternalError, with the following stack trace. I use Windows XP (SP2), Eclipse 3.0.1 (build 200409161125), and MyEclipseIDE v3.8.4, and JRE 1.5.0_01-b08. The file itself is actually created (though I have to refresh my project to see it and open it myself), and with the i/f methods required for an MDB, but missing the ejbCreate() method it was supposed to have added.

    java.lang.reflect.InvocationTargetException
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:314)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:253)
    at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:752)
    at org.jboss.ide.eclipse.jdt.ui.wizards.BaseWizard.performFinish(Unknown Source)
    at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:609)
    at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:305)
    at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:506)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
    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.Display.runDeferredEvents(Display.java:2772)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:668)
    at org.eclipse.jface.window.Window.open(Window.java:648)
    at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.java:163)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:915)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:866)
    at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContributionItem.java:785)
    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.Display.runDeferredEvents(Display.java:2772)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
    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(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
    at org.eclipse.core.launcher.Main.run(Main.java:704)
    at org.eclipse.core.launcher.Main.main(Main.java:688)
    Caused by: java.lang.NullPointerException
    at org.jboss.ide.eclipse.jdt.j2ee.ui.wizards.ejb.NewMessageDrivenEJBWizardPage.addContent(Unknown Source)
    at org.jboss.ide.eclipse.jdt.ui.wizards.DOMClassWizardPage.generate(Unknown Source)
    at org.jboss.ide.eclipse.jdt.ui.wizards.DOMClassWizardPage.generate(Unknown Source)
    at org.jboss.ide.eclipse.jdt.ui.wizards.ClassWizard.finishPage(Unknown Source)
    at org.jboss.ide.eclipse.jdt.ui.wizards.BaseWizard$1.run(Unknown Source)
    at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:34)
    at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:700)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1673)
    at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:3246)
    at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:65)
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:303)
    ... 37 more
    Root exception:
    java.lang.NullPointerException
    at org.jboss.ide.eclipse.jdt.j2ee.ui.wizards.ejb.NewMessageDrivenEJBWizardPage.addContent(Unknown Source)
    at org.jboss.ide.eclipse.jdt.ui.wizards.DOMClassWizardPage.generate(Unknown Source)
    at org.jboss.ide.eclipse.jdt.ui.wizards.DOMClassWizardPage.generate(Unknown Source)
    at org.jboss.ide.eclipse.jdt.ui.wizards.ClassWizard.finishPage(Unknown Source)
    at org.jboss.ide.eclipse.jdt.ui.wizards.BaseWizard$1.run(Unknown Source)
    at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:34)
    at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:700)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1673)
    at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:3246)
    at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:65)
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:303)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:253)
    at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:752)
    at org.jboss.ide.eclipse.jdt.ui.wizards.BaseWizard.performFinish(Unknown Source)
    at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:609)
    at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:305)
    at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:506)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
    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.Display.runDeferredEvents(Display.java:2772)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:668)
    at org.eclipse.jface.window.Window.open(Window.java:648)
    at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.java:163)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:915)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:866)
    at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContributionItem.java:785)
    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.Display.runDeferredEvents(Display.java:2772)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
    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(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
    at org.eclipse.core.launcher.Main.run(Main.java:704)
    at org.eclipse.core.launcher.Main.main(Main.java:688)
    #230289

    Riyad Kalla
    Member

    matt,
    we highly suggest you upgrade MyEclipse to version 3.8.4 and see if the problem clears up.

    stumiller,
    Please install JDK 1.4.2_08 and try and run Eclipse with that instead, that release of 1.5 had bugs in it that did seem to effect Eclipse/MyEclipse, also the Eclipse platform is not ceritfied on JDK 1.5 yet. (3.1 will be).

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Creation of element failed when creating servlet

You must be logged in to post in the forum log in