Troubleshooting
Problem
When using the product without the Eclipse user interface, such as using Ant tasks or JUnit which start from the command prompt, during the server start process an illegal state exception occurs stating that the workbench has not been created.
Symptom
An example of the IllegalStateException message thrown in the console output:
java.lang.IllegalStateException: Workbench has not been created yet.
at org.eclipse.ui.PlatformUI.getWorkbench(PlatformUI.java:92)
at org.eclipse.wst.server.ui.internal.SaveEditorPrompter.saveAllEditors(SaveEditorPrompter.java:26)
at org.eclipse.wst.server.core.internal.Server.start(Server.java:1788)
...
Tip: Alternatively, the exception message is written in the .log file available in the .metadata directory of your workspace directory.
Cause
A validator fails when using the product without the Eclipse user interface. The validator prevents loading of unnecessary code and incorrectly returns that the user interface is available.
Resolving The Problem
In the below Related Information section, you can find the link to download the fix.
Related Information
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21460043