facebook

servlet wizard cannot update web.xml [Closed]

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

    siderean
    Member

    I’ve just reinstalled Windows XP SP1 on my laptop last night (don’t ask, long story), installed JDK1.4.2 (fresh download from Sun), Eclipse (fresh download) and MyEclipse 3.8GA.

    I create a java project, add Web capabilities and then add a new servlet using the Wizard. If I uncheck Generate/Map web.xml file, the servlet can be created. If I leave it checked (obviously preferred), I get a dialog saying “Creation of element failed, See error log for more details.”.

    Can you tell me where the error log is or do you have any ideas what might be causing the problem?

    #212422 Reply

    siderean
    Member

    Found the log file, here are some of the contents…

    !ENTRY org.eclipse.jdt.ui 4 10001 Aug 17, 2004 16:46:03.187
    !MESSAGE Internal Error
    !STACK 0
    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 com.aston.NewCreationWizard.finishPage(Unknown Source)
    at com.aston.wizards.servlet.NewServletCreationWizard.performFinish(Unknown Source)

    Root exception:
    java.lang.StringIndexOutOfBoundsException
    at java.lang.StringBuffer.insert(StringBuffer.java:905)
    at com.aston.wizards.servlet.NewWebXmlLinkCreationWizardPage.ā(Unknown Source)
    at com.aston.wizards.servlet.NewWebXmlLinkCreationWizardPage.ā(Unknown Source)
    at com.aston.wizards.servlet.NewWebXmlLinkCreationWizardPage.doFinish(Unknown Source)
    at com.aston.WizardPage$A.run(Unknown Source)
    at org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.execute(WorkspaceModifyDelegatingOperation.java:67)
    at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:91)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1673)
    at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:105)
    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 com.aston.NewCreationWizard.finishPage(Unknown Source)
    at com.aston.wizards.servlet.NewServletCreationWizard.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)

    #212661 Reply

    Stockcharts
    Member

    I’m getting the same error message with the same stack trace in /.metadata/.log.

    Steps:
    1.) Create a new “J2EE->Web App” project
    2.) Try to add a new “Servlet” class with the “Update Web.xml” box checked on the second screen.
    3.) Click OK and see the message mentioned above.

    FWIW, This is the first time I’ve tried to create a new servlet since I upgraded to 3.8.0 yesterday.

    Any help or ideas would be appreciated.

    #212664 Reply

    Riyad Kalla
    Member

    Guys this is a bug, thank you for reporting it I will file it right now so it can make it into the maintenecne release.

    #213943 Reply

    vkonda
    Member

    Is there any work around for this until new maintenance release comes?

    #213947 Reply

    Riyad Kalla
    Member

    Unfortunately no I am not aware of one. Certainly unchecking the “Update web.xml” would do it though 😉

    #214023 Reply

    Brian Fernandes
    Moderator

    Hi Guys,

    This was a problem if you used J2EE 1.4 specification for your project instead of 1.3. The servlet creation process works fine for 1.3.

    The bug has been addressed and fixed in ME 3.8.1 – so I would suggest upgrading.

    Hope this helps,

    Brian.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: servlet wizard cannot update web.xml [Closed]

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