java.lang.Error: Unresolved compilation problems: The import org.eclipse.jst.j2ee.internal cannot be resolved The import org.eclipse.jst.j2ee.internal cannot be resolved CreateServletTemplateModel cannot be resolved to a type CreateServletTemplateModel cannot be resolved to a type CreateJavaEEArtifactTemplateModel cannot be resolved CreateServletTemplateModel cannot be resolved CreateServletTemplateModel cannot be resolved CreateServletTemplateModel cannot be resolved Constructor cannot be resolved to a type Constructor cannot be resolved to a type Method cannot be resolved to a type

Coderanch | bryan lim | 8 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    i can't create servlet in eclipse.

    Coderanch | 8 years ago | bryan lim
    java.lang.Error: Unresolved compilation problems: The import org.eclipse.jst.j2ee.internal cannot be resolved The import org.eclipse.jst.j2ee.internal cannot be resolved CreateServletTemplateModel cannot be resolved to a type CreateServletTemplateModel cannot be resolved to a type CreateJavaEEArtifactTemplateModel cannot be resolved CreateServletTemplateModel cannot be resolved CreateServletTemplateModel cannot be resolved CreateServletTemplateModel cannot be resolved Constructor cannot be resolved to a type Constructor cannot be resolved to a type Method cannot be resolved to a type

    Root Cause Analysis

    1. java.lang.Error

      Unresolved compilation problems: The import org.eclipse.jst.j2ee.internal cannot be resolved The import org.eclipse.jst.j2ee.internal cannot be resolved CreateServletTemplateModel cannot be resolved to a type CreateServletTemplateModel cannot be resolved to a type CreateJavaEEArtifactTemplateModel cannot be resolved CreateServletTemplateModel cannot be resolved CreateServletTemplateModel cannot be resolved CreateServletTemplateModel cannot be resolved Constructor cannot be resolved to a type Constructor cannot be resolved to a type Method cannot be resolved to a type

      at org.eclipse.jst.j2ee.web.ServletTemplate.<init>()
    2. org.eclipse.jst
      ServletTemplate.<init>
      1. org.eclipse.jst.j2ee.web.ServletTemplate.<init>(ServletTemplate.java:4)
      1 frame
    3. Java RT
      Class.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
      4. java.lang.reflect.Constructor.newInstance(Unknown Source)
      5. java.lang.Class.newInstance0(Unknown Source)
      6. java.lang.Class.newInstance(Unknown Source)
      6 frames
    4. org.eclipse.emf
      JETEmitter.setMethod
      1. org.eclipse.emf.codegen.jet.JETEmitter.setMethod(JETEmitter.java:291)
      1 frame
    5. J2EE Component
      NewJavaEEArtifactClassOperation.generateTemplateSource
      1. org.eclipse.jst.j2ee.internal.project.WTPJETEmitter.loadClass(WTPJETEmitter.java:368)
      2. org.eclipse.jst.j2ee.internal.project.WTPJETEmitter.initialize(WTPJETEmitter.java:233)
      3. org.eclipse.jst.j2ee.internal.project.WTPJETEmitter.<init>(WTPJETEmitter.java:113)
      4. org.eclipse.jst.j2ee.internal.common.operations.NewJavaEEArtifactClassOperation.generateTemplateSource(NewJavaEEArtifactClassOperation.java:159)
      4 frames
    6. Web Plug-in
      NewWebClassOperation.generateUsingTemplates
      1. org.eclipse.jst.j2ee.internal.web.operations.NewWebClassOperation.generateUsingTemplates(NewWebClassOperation.java:129)
      1 frame
    7. J2EE Component
      AddJavaEEArtifactOperation.createClass
      1. org.eclipse.jst.j2ee.internal.common.operations.NewJavaEEArtifactClassOperation.doExecute(NewJavaEEArtifactClassOperation.java:93)
      2. org.eclipse.jst.j2ee.internal.common.operations.NewJavaEEArtifactClassOperation.execute(NewJavaEEArtifactClassOperation.java:63)
      3. org.eclipse.jst.j2ee.internal.common.operations.AddJavaEEArtifactOperation.createClass(AddJavaEEArtifactOperation.java:70)
      3 frames
    8. Web Plug-in
      AddWebClassOperation.doExecute
      1. org.eclipse.jst.j2ee.internal.web.operations.AddWebClassOperation.doExecute(AddWebClassOperation.java:63)
      1 frame
    9. J2EE Component
      AddJavaEEArtifactOperation$1.run
      1. org.eclipse.jst.j2ee.internal.common.operations.AddJavaEEArtifactOperation$1.run(AddJavaEEArtifactOperation.java:47)
      1 frame
    10. JEE common Plug-in
      Web25MergedModelProvider.modify
      1. org.eclipse.jst.jee.model.internal.JEE5ModelProvider.modify(JEE5ModelProvider.java:237)
      2. org.eclipse.jst.jee.model.internal.Web25MergedModelProvider.modify(Web25MergedModelProvider.java:81)
      2 frames
    11. J2EE Component
      AddJavaEEArtifactOperation.execute
      1. org.eclipse.jst.j2ee.internal.common.operations.AddJavaEEArtifactOperation.execute(AddJavaEEArtifactOperation.java:53)
      1 frame
    12. Common Frameworks
      DataModelPausibleOperationImpl$1.run
      1. org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl$1.run(DataModelPausibleOperationImpl.java:376)
      1 frame
    13. Core Resource Management
      Workspace.run
      1. org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
      1 frame
    14. Common Frameworks
      DataModelPausibleOperationImpl.execute
      1. org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.runOperation(DataModelPausibleOperationImpl.java:401)
      2. org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.runOperation(DataModelPausibleOperationImpl.java:352)
      3. org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.doExecute(DataModelPausibleOperationImpl.java:242)
      4. org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.executeImpl(DataModelPausibleOperationImpl.java:214)
      5. org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.cacheThreadAndContinue(DataModelPausibleOperationImpl.java:89)
      6. org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.execute(DataModelPausibleOperationImpl.java:202)
      6 frames
    15. WTP UI Plug-in
      DataModelWizard$1$CatchThrowableRunnableWithProgress.run
      1. org.eclipse.wst.common.frameworks.internal.datamodel.ui.DataModelWizard$1$CatchThrowableRunnableWithProgress.run(DataModelWizard.java:219)
      1 frame
    16. JFace
      WizardDialog.run
      1. org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:458)
      2. org.eclipse.jface.operation.ModalContext.run(ModalContext.java:366)
      3. org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934)
      3 frames
    17. WTP UI Plug-in
      DataModelWizard.performFinish
      1. org.eclipse.wst.common.frameworks.internal.datamodel.ui.DataModelWizard.runOperations(DataModelWizard.java:228)
      2. org.eclipse.wst.common.frameworks.internal.datamodel.ui.DataModelWizard.performFinish(DataModelWizard.java:186)
      2 frames
    18. JFace
      Dialog$2.widgetSelected
      1. org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:742)
      2. org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:373)
      3. org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
      3 frames
    19. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
      2. org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      3. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
      4. org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
      5. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
      5 frames
    20. JFace
      Window.open
      1. org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
      2. org.eclipse.jface.window.Window.open(Window.java:801)
      2 frames
    21. Common Navigator View
      WizardShortcutAction.run
      1. org.eclipse.ui.internal.navigator.wizards.WizardShortcutAction.run(WizardShortcutAction.java:94)
      1 frame
    22. JFace
      ActionContributionItem$5.handleEvent
      1. org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
      2. org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
      3. org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
      4. org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
      4 frames
    23. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      2. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
      3. org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
      4. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
      4 frames
    24. Eclipse UI
      Workbench$5.run
      1. org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
      2. org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
      3. org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
      4. org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
      4 frames
    25. Databinding
      Realm.runWithDefault
      1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
      1 frame
    26. Eclipse UI
      Workbench.createAndRunWorkbench
      1. org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
      1 frame
    27. Eclipse UI
      PlatformUI.createAndRunWorkbench
      1. org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      1 frame
    28. Eclipse IDE
      IDEApplication.start
      1. org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
      1 frame
    29. Equinox Container
      EclipseAppHandle.run
      1. org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
      1 frame
    30. Eclipse OSGi
      EclipseStarter.run
      1. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      2. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      3. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
      4. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
      4 frames
    31. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    32. Equinox
      Main.run
      1. org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
      2. org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
      3. org.eclipse.equinox.launcher.Main.run(Main.java:1236)
      3 frames