Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » servlet creation failure
servlet creation failure [message #133611] Thu, 18 August 2005 16:07 Go to next message
Eclipse UserFriend
Originally posted by: tonymq.aol.com

When I attempt to create a new servlet in a Dynamic Web Project, the
servlet.java file is not being created. Here is the error:

*** ERROR ***: Thu Aug 18 15:45:01 EDT 2005
org.eclipse.wst.common.frameworks.internal.enablement.nonui. WFTWrappedException
org.eclipse.emf.codegen.jet.JETException[0]:
org.eclipse.core.internal.resources.ResourceException: The project
description file (.project) for .JETEmitters is missing. This file
contains important information about the project. The project will not
function properly until this file is restored.
at
org.eclipse.core.internal.localstore.FileSystemResourceManag er.read(FileSystemResourceManager.java:568)
at
org.eclipse.core.internal.resources.SaveManager.restoreMetaI nfo(SaveManager.java:767)
at
org.eclipse.core.internal.resources.SaveManager.restore(Save Manager.java:674)
at
org.eclipse.core.internal.resources.Project.open(Project.jav a:805)
at
org.eclipse.core.internal.resources.Project.open(Project.jav a:839)
at
org.eclipse.jst.j2ee.internal.project.WTPJETEmitter.initiali ze(WTPJETEmitter.java:184)
at
org.eclipse.emf.codegen.jet.JETEmitter.generate(JETEmitter.j ava:592)
at
org.eclipse.jst.j2ee.internal.web.operations.NewServletClass Operation.generateTemplateSource(NewServletClassOperation.ja va:287)
at
org.eclipse.jst.j2ee.internal.web.operations.NewServletClass Operation.generateUsingTemplates(NewServletClassOperation.ja va:194)
at
org.eclipse.jst.j2ee.internal.web.operations.NewServletClass Operation.execute(NewServletClassOperation.java:138)
at
org.eclipse.wst.common.frameworks.internal.operations.WTPOpe ration.doRun(WTPOperation.java:336)
at
org.eclipse.wst.common.frameworks.internal.operations.WTPOpe ration$1.run(WTPOperation.java:248)
at
org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1719)
at
org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1739)
at
org.eclipse.wst.common.frameworks.internal.operations.WTPOpe ration.run(WTPOperation.java:266)
at
org.eclipse.jst.j2ee.internal.web.operations.AddServletOpera tion.createServletClass(AddServletOperation.java:122)
at
org.eclipse.jst.j2ee.internal.web.operations.AddServletOpera tion.execute(AddServletOperation.java:99)
at
org.eclipse.wst.common.frameworks.internal.operations.WTPOpe ration.doRun(WTPOperation.java:336)
at
org.eclipse.wst.common.frameworks.internal.operations.WTPOpe ration$1.run(WTPOperation.java:248)
at
org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1719)
at
org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1739)
at
org.eclipse.wst.common.frameworks.internal.operations.WTPOpe ration.run(WTPOperation.java:266)
at
org.eclipse.wst.common.frameworks.internal.ui.RunnableWithPr ogressWrapper.run(RunnableWithProgressWrapper.java:65)
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:346)
at
org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:291)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 830)
at
org.eclipse.wst.common.frameworks.internal.ui.WTPWizard.perf ormFinish(WTPWizard.java:241)
at
org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:676)
at
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:349)
at
org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:556)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2867)
at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2572)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:809 )
at org.eclipse.jface.window.Window.open(Window.java:787)
at
org.eclipse.wst.common.navigator.internal.actions.WizardShor tcutAction.run(WizardShortcutAction.java:114)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:996 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:538)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2867)
at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2572)
at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at
org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
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)
Re: servlet creation failure [message #133624 is a reply to message #133611] Thu, 18 August 2005 16:24 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

It is referring to .project file but I am not sure that is the source of
error, any way have a look at .project file under your project root, you
may have to open Navigator view for it. mine looks like this

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>addrDoctor</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name> org.eclipse.wst.common.modulecore.ComponentStructuralBuilder </name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>

<name> org.eclipse.wst.common.modulecore.ComponentStructuralBuilder DependencyResolver </name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.modulecore.DependencyGraphBuilder </name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature >
</natures>
</projectDescription>



Tony Homer wrote:
> When I attempt to create a new servlet in a Dynamic Web Project, the
> servlet.java file is not being created. Here is the error:
>
> *** ERROR ***: Thu Aug 18 15:45:01 EDT 2005
> org.eclipse.wst.common.frameworks.internal.enablement.nonui. WFTWrappedException
>
> org.eclipse.emf.codegen.jet.JETException[0]:
> org.eclipse.core.internal.resources.ResourceException: The project
> description file (.project) for .JETEmitters is missing. This file
> contains important information about the project. The project will not
> function properly until this file is restored.
> at
> org.eclipse.core.internal.localstore.FileSystemResourceManag er.read(FileSystemResourceManager.java:568)
>
> at
> org.eclipse.core.internal.resources.SaveManager.restoreMetaI nfo(SaveManager.java:767)
>
> at
> org.eclipse.core.internal.resources.SaveManager.restore(Save Manager.java:674)
>
> at
> org.eclipse.core.internal.resources.Project.open(Project.jav a:805)
> at
> org.eclipse.core.internal.resources.Project.open(Project.jav a:839)
> at
> org.eclipse.jst.j2ee.internal.project.WTPJETEmitter.initiali ze(WTPJETEmitter.java:184)
>
> at
> org.eclipse.emf.codegen.jet.JETEmitter.generate(JETEmitter.j ava:592)
> at
> org.eclipse.jst.j2ee.internal.web.operations.NewServletClass Operation.generateTemplateSource(NewServletClassOperation.ja va:287)
>
> at
> org.eclipse.jst.j2ee.internal.web.operations.NewServletClass Operation.generateUsingTemplates(NewServletClassOperation.ja va:194)
>
> at
> org.eclipse.jst.j2ee.internal.web.operations.NewServletClass Operation.execute(NewServletClassOperation.java:138)
>
> at
> org.eclipse.wst.common.frameworks.internal.operations.WTPOpe ration.doRun(WTPOperation.java:336)
>
> at
> org.eclipse.wst.common.frameworks.internal.operations.WTPOpe ration$1.run(WTPOperation.java:248)
>
> at
> org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1719)
> at
> org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1739)
> at
> org.eclipse.wst.common.frameworks.internal.operations.WTPOpe ration.run(WTPOperation.java:266)
>
> at
> org.eclipse.jst.j2ee.internal.web.operations.AddServletOpera tion.createServletClass(AddServletOperation.java:122)
>
> at
> org.eclipse.jst.j2ee.internal.web.operations.AddServletOpera tion.execute(AddServletOperation.java:99)
>
> at
> org.eclipse.wst.common.frameworks.internal.operations.WTPOpe ration.doRun(WTPOperation.java:336)
>
> at
> org.eclipse.wst.common.frameworks.internal.operations.WTPOpe ration$1.run(WTPOperation.java:248)
>
> at
> org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1719)
> at
> org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1739)
> at
> org.eclipse.wst.common.frameworks.internal.operations.WTPOpe ration.run(WTPOperation.java:266)
>
> at
> org.eclipse.wst.common.frameworks.internal.ui.RunnableWithPr ogressWrapper.run(RunnableWithProgressWrapper.java:65)
>
> at
> org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:346)
>
> at
> org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:291)
> at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 830)
> at
> org.eclipse.wst.common.frameworks.internal.ui.WTPWizard.perf ormFinish(WTPWizard.java:241)
>
> at
> org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:676)
> at
> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:349)
> at
> org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:556)
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
> at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2867)
> at
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2572)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:809 )
> at org.eclipse.jface.window.Window.open(Window.java:787)
> at
> org.eclipse.wst.common.navigator.internal.actions.WizardShor tcutAction.run(WizardShortcutAction.java:114)
>
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:996 )
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:538)
>
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
>
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
> at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2867)
> at
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2572)
> at
> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
> at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
> at
> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:324)
> 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)
>
>
Re: servlet creation failure [message #133637 is a reply to message #133624] Thu, 18 August 2005 16:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tonymq.aol.com

Thank you for answering, but I don't think the problem is with MY project.
The error below occurs even if I create a brand new Dynamic Web Project,
then attempt to do New->Servlet. I think the stack trace is referring to
the .project file for the .JETEmitters project, which I believe is
something itself created by eclipse. I did not create the .JETEmitters
project.

Thanks!
Tony

haroon wrote:

> Hi,

> It is referring to .project file but I am not sure that is the source of
> error, any way have a look at .project file under your project root, you
> may have to open Navigator view for it. mine looks like this

> <?xml version="1.0" encoding="UTF-8"?>
> <projectDescription>
> <name>addrDoctor</name>
> <comment></comment>
> <projects>
> </projects>
> <buildSpec>
> <buildCommand>
> <name> org.eclipse.wst.common.modulecore.ComponentStructuralBuilder </name>
> <arguments>
> </arguments>
> </buildCommand>
> <buildCommand>
> <name>org.eclipse.jdt.core.javabuilder</name>
> <arguments>
> </arguments>
> </buildCommand>
> <buildCommand>
> <name>org.eclipse.wst.validation.validationbuilder</name>
> <arguments>
> </arguments>
> </buildCommand>
> <buildCommand>

>
<name> org.eclipse.wst.common.modulecore.ComponentStructuralBuilder DependencyResolver </name>
> <arguments>
> </arguments>
> </buildCommand>
> <buildCommand>
> <name>org.eclipse.wst.common.modulecore.DependencyGraphBuilder </name>
> <arguments>
> </arguments>
> </buildCommand>
> </buildSpec>
> <natures>
> <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
> <nature>org.eclipse.jdt.core.javanature</nature>
> <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature >
> </natures>
> </projectDescription>



> Tony Homer wrote:
>> When I attempt to create a new servlet in a Dynamic Web Project, the
>> servlet.java file is not being created. Here is the error:
>>
>> *** ERROR ***: Thu Aug 18 15:45:01 EDT 2005
>>
org.eclipse.wst.common.frameworks.internal.enablement.nonui. WFTWrappedException
>>
>> org.eclipse.emf.codegen.jet.JETException[0]:
>> org.eclipse.core.internal.resources.ResourceException: The project
>> description file (.project) for .JETEmitters is missing. This file
>> contains important information about the project. The project will not
>> function properly until this file is restored.
>> at
>>
org.eclipse.core.internal.localstore.FileSystemResourceManag er.read(FileSystemResourceManager.java:568)
>>
>> at
>>
org.eclipse.core.internal.resources.SaveManager.restoreMetaI nfo(SaveManager.java:767)
>>
>> at
>>
org.eclipse.core.internal.resources.SaveManager.restore(Save Manager.java:674)
>>
>> at
>> org.eclipse.core.internal.resources.Project.open(Project.jav a:805)
>> at
>> org.eclipse.core.internal.resources.Project.open(Project.jav a:839)
>> at
>>
org.eclipse.jst.j2ee.internal.project.WTPJETEmitter.initiali ze(WTPJETEmitter.java:184)
>>
>> at
>> org.eclipse.emf.codegen.jet.JETEmitter.generate(JETEmitter.j ava:592)
>> at
>>
org.eclipse.jst.j2ee.internal.web.operations.NewServletClass Operation.generateTemplateSource(NewServletClassOperation.ja va:287)
>>
>> at
>>
org.eclipse.jst.j2ee.internal.web.operations.NewServletClass Operation.generateUsingTemplates(NewServletClassOperation.ja va:194)
>>
>> at
>>
org.eclipse.jst.j2ee.internal.web.operations.NewServletClass Operation.execute(NewServletClassOperation.java:138)
>>
>> at
>>
org.eclipse.wst.common.frameworks.internal.operations.WTPOpe ration.doRun(WTPOperation.java:336)
>>
>> at
>>
org.eclipse.wst.common.frameworks.internal.operations.WTPOpe ration$1.run(WTPOperation.java:248)
>>
>> at
>> org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1719)
>> at
>> org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1739)
>> at
>>
org.eclipse.wst.common.frameworks.internal.operations.WTPOpe ration.run(WTPOperation.java:266)
>>
>> at
>>
org.eclipse.jst.j2ee.internal.web.operations.AddServletOpera tion.createServletClass(AddServletOperation.java:122)
>>
>> at
>>
org.eclipse.jst.j2ee.internal.web.operations.AddServletOpera tion.execute(AddServletOperation.java:99)
>>
>> at
>>
org.eclipse.wst.common.frameworks.internal.operations.WTPOpe ration.doRun(WTPOperation.java:336)
>>
>> at
>>
org.eclipse.wst.common.frameworks.internal.operations.WTPOpe ration$1.run(WTPOperation.java:248)
>>
>> at
>> org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1719)
>> at
>> org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1739)
>> at
>>
org.eclipse.wst.common.frameworks.internal.operations.WTPOpe ration.run(WTPOperation.java:266)
>>
>> at
>>
org.eclipse.wst.common.frameworks.internal.ui.RunnableWithPr ogressWrapper.run(RunnableWithProgressWrapper.java:65)
>>
>> at
>>
org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:346)
>>
>> at
>> org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:291)
>> at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 830)
>> at
>>
org.eclipse.wst.common.frameworks.internal.ui.WTPWizard.perf ormFinish(WTPWizard.java:241)
>>
>> at
>> org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:676)
>> at
>> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:349)
>> at
>> org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:556)
>> at
>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
>> at
>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2867)
>> at
>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2572)
>> at org.eclipse.jface.window.Window.runEventLoop(Window.java:809 )
>> at org.eclipse.jface.window.Window.open(Window.java:787)
>> at
>>
org.eclipse.wst.common.navigator.internal.actions.WizardShor tcutAction.run(WizardShortcutAction.java:114)
>>
>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:996 )
>> at
>>
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:538)
>>
>> at
>>
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
>>
>> at
>>
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>>
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
>> at
>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2867)
>> at
>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2572)
>> at
>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
>> at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
>> at
>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
>> at
>> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
>> at
>>
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
>>
>> at
>>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
>>
>> at
>>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
>>
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>
>> at
>>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>
>> at java.lang.reflect.Method.invoke(Method.java:324)
>> 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)
>>
>>
Re: servlet creation failure [message #133700 is a reply to message #133637] Thu, 18 August 2005 22:02 Go to previous message
Eclipse UserFriend
Originally posted by: tonymq.aol.com

I have additional information about this. To reiterate the issue, when I
use the Create Servlet wizard, web.xml is updated, but no SERVLET.java
file is generated. At the same time, eclipse generates an ERROR message
(relevant portion pasted below).

It seems that for some reason my
$WORKSPACE/.metadata/.plugins/org.eclipse.core.resources/.pr ojects/.JETEmitters
project (generated by eclipse) has become invalid. I'm not sure of
exactly what is invalid about it, but when I create a new workspace, the
Create Servlet wizard behaves as expected (SERVLET.java is created).

When I renamed $WORKSPACE/.../.JETEmitters, a new
$WORKSPACE/.../.JETEmitters was generated, but creating new servlets still
does not work correctly. I think I can work around this by copying all my
projects to the new workspace and importing them.

Here is the relevant portion of the stacktrace:
*** ERROR ***: Thu Aug 18 21:52:45 EDT 2005
org.eclipse.wst.common.frameworks.internal.enablement.nonui. WFTWrappedException
org.eclipse.emf.codegen.jet.JETException[0]:
org.eclipse.core.internal.resources.ResourceException: The project
description file (.project) for .JETEmitters is missing. This file
contains important information about the project. The project will not
function properly until this file is restored.
at
org.eclipse.core.internal.localstore.FileSystemResourceManag er.read(FileSystemResourceManager.java:568)
at
org.eclipse.core.internal.resources.SaveManager.restoreMetaI nfo(SaveManager.java:767)
at
org.eclipse.core.internal.resources.SaveManager.restore(Save Manager.java:674)
at
org.eclipse.core.internal.resources.Project.open(Project.jav a:805)
at
org.eclipse.core.internal.resources.Project.open(Project.jav a:839)
at
org.eclipse.jst.j2ee.internal.project.WTPJETEmitter.initiali ze(WTPJETEmitter.java:184)
at
org.eclipse.emf.codegen.jet.JETEmitter.generate(JETEmitter.j ava:592)
at
org.eclipse.jst.j2ee.internal.web.operations.NewServletClass Operation.generateTemplateSource(NewServletClassOperation.ja va:287)
at
org.eclipse.jst.j2ee.internal.web.operations.NewServletClass Operation.generateUsingTemplates(NewServletClassOperation.ja va:194)
at
org.eclipse.jst.j2ee.internal.web.operations.NewServletClass Operation.execute(NewServletClassOperation.java:138)
at
org.eclipse.wst.common.frameworks.internal.operations.WTPOpe ration.doRun(WTPOperation.java:336)
Previous Topic:Can't get WebSphere to work with WTP
Next Topic:how integrate struts in eclipse 3.1
Goto Forum:
  


Current Time: Sat Jul 19 05:39:23 EDT 2025

Powered by FUDForum. Page generated in 0.04330 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top