- This topic has 6 replies, 5 voices, and was last updated 20 years, 9 months ago by
Brian Fernandes.
-
AuthorPosts
-
sidereanMemberI’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?
August 17, 2004 at 3:47 pm #212422
sidereanMemberFound 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)August 18, 2004 at 3:49 pm #212661
StockchartsMemberI’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.
August 18, 2004 at 3:58 pm #212664
Riyad KallaMemberGuys this is a bug, thank you for reporting it I will file it right now so it can make it into the maintenecne release.
August 30, 2004 at 7:39 am #213943
vkondaMemberIs there any work around for this until new maintenance release comes?
August 30, 2004 at 9:45 am #213947
Riyad KallaMemberUnfortunately no I am not aware of one. Certainly unchecking the “Update web.xml” would do it though 😉
August 31, 2004 at 1:43 am #214023
Brian FernandesModeratorHi 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.
-
AuthorPosts