[
https://jira.jboss.org/jira/browse/JBIDE-4046?page=com.atlassian.jira.plu...
]
Ondrej Medek commented on JBIDE-4046:
-------------------------------------
So more to the 1): I thing I have found what causes the error. I think it does not matter
what's inside the EAR. Just make new a JBoss server in Eclipse. Deploy some EAR
project into it. Start it and stop it. Delete the JBoss server. Make a new JBoss server
with the same environment as the deleted server (i.e. the same "deploy"
directory, where is still deployed the EAR project.". Try to add the same EAR into
this new JBoss server.
New server wizard, "Next >" and "Finish"
buttons disabled after an error.
-------------------------------------------------------------------------
Key: JBIDE-4046
URL:
https://jira.jboss.org/jira/browse/JBIDE-4046
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: JBossAS
Affects Versions: 3.0.0.GA
Environment: eclipse.buildId=M20090211-1700
Reporter: Ondrej Medek
Assignee: Rob Stryker
Priority: Minor
Fix For: 3.1.0
Hi,
I have created a new JBoss 5.0 server in the JBoss Server in the new server wizard. I
have chosen to add existing EARs to the server in the wizard. I have added them and
clicked "Finish". Then i see an error message "Could not save because the
file has been modified since the start of the editing". I click "OK" to
dissmiss this error message. So i am back in the wizard.
So far its good, the problem is somewhere else then in the JBoss tools.
But if I click "< Back" button, the "Next >" and "Finish:
button are disabled, so I cannot change values and finish. I can only cancel the wizard.
A piece of the eclipse log:
!ENTRY org.eclipse.jst.j2ee 4 0 2009-03-18 11:11:14.296
!MESSAGE Exception thrown.
!STACK 0
java.lang.NullPointerException: No IModelProvider exists for project P/PrinsBeansEAR of
version: EAR 5.0
at
org.eclipse.jst.j2ee.model.ModelProviderManager.getModelProvider(ModelProviderManager.java:99)
at
org.eclipse.jst.j2ee.model.ModelProviderManager.getModelProvider(ModelProviderManager.java:267)
at
org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathContainer.getEARLibDir(J2EEComponentClasspathContainer.java:491)
at
org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathContainer.update(J2EEComponentClasspathContainer.java:208)
at
org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathContainer.getClasspathEntries(J2EEComponentClasspathContainer.java:419)
at
org.eclipse.jdt.internal.core.JavaModelManager.containerPutIfInitializingWithSameEntries(JavaModelManager.java:564)
at
org.eclipse.jdt.internal.core.SetContainerOperation.executeOperation(SetContainerOperation.java:49)
at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:716)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
at
org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:782)
at org.eclipse.jdt.core.JavaCore.setClasspathContainer(JavaCore.java:4616)
at
org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathContainer.install(J2EEComponentClasspathContainer.java:385)
at
org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathInitializer.initialize(J2EEComponentClasspathInitializer.java:29)
at
org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:2483)
at
org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:1702)
at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore.java:2553)
at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2611)
at
org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:1872)
at
org.eclipse.jdt.internal.core.JavaProject.computePackageFragmentRoots(JavaProject.java:596)
at
org.eclipse.jdt.internal.core.JavaProject.computePackageFragmentRoots(JavaProject.java:665)
at
org.eclipse.jdt.internal.core.JavaProject.computePackageFragmentRoots(JavaProject.java:629)
at
org.eclipse.jdt.internal.core.JavaProject.getAllPackageFragmentRoots(JavaProject.java:1347)
at
org.eclipse.jdt.internal.core.JavaProjectElementInfo.getProjectCache(JavaProjectElementInfo.java:205)
at
org.eclipse.jdt.internal.core.JavaProjectElementInfo.newNameLookup(JavaProjectElementInfo.java:288)
at org.eclipse.jdt.internal.core.JavaProject.newNameLookup(JavaProject.java:2240)
at
org.eclipse.jdt.internal.core.SearchableEnvironment.<init>(SearchableEnvironment.java:53)
at
org.eclipse.jdt.internal.core.SearchableEnvironment.<init>(SearchableEnvironment.java:60)
at
org.eclipse.jdt.internal.core.CancelableNameEnvironment.<init>(CancelableNameEnvironment.java:26)
at
org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:158)
at
org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:243)
at
org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:190)
at
org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:89)
at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:716)
at
org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:777)
at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1230)
at
org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:124)
at
org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.access$0(JavaReconcilingStrategy.java:108)
at
org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:89)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at
org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:87)
at
org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.initialReconcile(JavaReconcilingStrategy.java:176)
at
org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.initialReconcile(CompositeReconcilingStrategy.java:114)
at
org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.initialReconcile(JavaCompositeReconcilingStrategy.java:133)
at
org.eclipse.jface.text.reconciler.MonoReconciler.initialProcess(MonoReconciler.java:105)
at
org.eclipse.jdt.internal.ui.text.JavaReconciler.initialProcess(JavaReconciler.java:388)
at
org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:173)
!ENTRY org.eclipse.wst.server.ui 4 0 2009-03-18 11:13:12.843
!MESSAGE Error finishing task wizard
!STACK 0
java.lang.reflect.InvocationTargetException
at
org.eclipse.wst.server.ui.internal.wizard.page.WorkspaceRunnableAdapter.run(WorkspaceRunnableAdapter.java:37)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: org.eclipse.core.runtime.CoreException: Could not save because the file has
been modified since the start of editing.
at
org.eclipse.wst.server.core.internal.WorkingCopyHelper.validateTimestamp(WorkingCopyHelper.java:118)
at
org.eclipse.wst.server.core.internal.ServerWorkingCopy.save(ServerWorkingCopy.java:398)
at
org.eclipse.wst.server.ui.internal.wizard.WizardTaskUtil.saveServer(WizardTaskUtil.java:112)
at
org.eclipse.wst.server.ui.internal.wizard.WizardTaskUtil$2.performFinish(WizardTaskUtil.java:53)
at
org.eclipse.wst.server.ui.internal.wizard.TaskWizard.executeTask(TaskWizard.java:256)
at org.eclipse.wst.server.ui.internal.wizard.TaskWizard$2.run(TaskWizard.java:213)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1782)
at
org.eclipse.wst.server.ui.internal.wizard.page.WorkspaceRunnableAdapter.run(WorkspaceRunnableAdapter.java:35)
... 1 more
Root exception:
org.eclipse.core.runtime.CoreException: Could not save because the file has been modified
since the start of editing.
at
org.eclipse.wst.server.core.internal.WorkingCopyHelper.validateTimestamp(WorkingCopyHelper.java:118)
at
org.eclipse.wst.server.core.internal.ServerWorkingCopy.save(ServerWorkingCopy.java:398)
at
org.eclipse.wst.server.ui.internal.wizard.WizardTaskUtil.saveServer(WizardTaskUtil.java:112)
at
org.eclipse.wst.server.ui.internal.wizard.WizardTaskUtil$2.performFinish(WizardTaskUtil.java:53)
at
org.eclipse.wst.server.ui.internal.wizard.TaskWizard.executeTask(TaskWizard.java:256)
at org.eclipse.wst.server.ui.internal.wizard.TaskWizard$2.run(TaskWizard.java:213)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1782)
at
org.eclipse.wst.server.ui.internal.wizard.page.WorkspaceRunnableAdapter.run(WorkspaceRunnableAdapter.java:35)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira