Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Can't start second workbench
Can't start second workbench [message #414586] Wed, 14 November 2007 04:03 Go to next message
David Shaw is currently offline David ShawFriend
Messages: 3
Registered: July 2009
Junior Member
I'm trying out EMF for the very first time, so apologies if I've missed
something obvious. I'm following the "Generating an EMF Model" tutorial
and I've created my first model from annotated Java. Everything seems all
right and the model, edit, editor and tests all generated without error.

I'm now up to: "Step 4: Run the Generated Editor. In order to test the new
plug-ins, a second instance of Eclipse must be launched. The plug-ins will
run in this workbench. Select one of the projects and then choose "Run
As/Eclipse Application" from the "Run" menu or toolbar drop-down."

When I do this nothing happens. The second workbench doesn't launch. I
don't get any error dialogs, nothing in the console, nothing in the .log
file. Any suggestions?
Re: Can't start second workbench [message #414588 is a reply to message #414586] Wed, 14 November 2007 08:19 Go to previous messageGo to next message
Rafael Chaves is currently offline Rafael ChavesFriend
Messages: 362
Registered: July 2009
Senior Member
Does the second VM process stay up or die instantly?

Note that the log for the second instance (target) is separate from the
dev instance, and that depending on how early startup fails, the log
file for the second instance is stored either under the configuration
area for that target instance, or under the target workspace metadata
directory. The best thing to do is to add -consolelog as an application
argument on the launch configuration, so you don't have to hunt for the
log file and can easily see any errors logged on the Console view.

Rafael

David Shaw wrote:
> I'm trying out EMF for the very first time, so apologies if I've missed
> something obvious. I'm following the "Generating an EMF Model" tutorial
> and I've created my first model from annotated Java. Everything seems
> all right and the model, edit, editor and tests all generated without
> error.
>
> I'm now up to: "Step 4: Run the Generated Editor. In order to test the
> new plug-ins, a second instance of Eclipse must be launched. The
> plug-ins will run in this workbench. Select one of the projects and then
> choose "Run As/Eclipse Application" from the "Run" menu or toolbar
> drop-down."
>
> When I do this nothing happens. The second workbench doesn't launch. I
> don't get any error dialogs, nothing in the console, nothing in the .log
> file. Any suggestions?
>
Re: Can't start second workbench [message #414608 is a reply to message #414588] Wed, 14 November 2007 21:17 Go to previous messageGo to next message
David Shaw is currently offline David ShawFriend
Messages: 3
Registered: July 2009
Junior Member
Rafael Chaves wrote:
> Does the second VM process stay up or die instantly?

It appears to die instantly. I can't see anything in the list of
processes. There's no sign of any windows being created.

> Note that the log for the second instance (target) is separate from the
> dev instance, and that depending on how early startup fails, the log
> file for the second instance is stored either under the configuration
> area for that target instance, or under the target workspace metadata
> directory. The best thing to do is to add -consolelog as an application
> argument on the launch configuration, so you don't have to hunt for the
> log file and can easily see any errors logged on the Console view.

I added -consoleLog to the args and still nothing appeared.

I've just had the idea to shutdown and restart the IDE and retry. This
seems to have made a difference. I'm now getting console output and error
messages. It seems the running program can't find the workbench
application.
Re: Can't start second workbench [message #414610 is a reply to message #414608] Wed, 14 November 2007 23:43 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
David,

I'm not sure what to suggest. These aren't really EMF specific
problems... Maybe try to delete the launcher and create a new one...


David Shaw wrote:
> Rafael Chaves wrote:
>> Does the second VM process stay up or die instantly?
>
> It appears to die instantly. I can't see anything in the list of
> processes. There's no sign of any windows being created.
>
>> Note that the log for the second instance (target) is separate from
>> the dev instance, and that depending on how early startup fails, the
>> log file for the second instance is stored either under the
>> configuration area for that target instance, or under the target
>> workspace metadata directory. The best thing to do is to add
>> -consolelog as an application argument on the launch configuration,
>> so you don't have to hunt for the log file and can easily see any
>> errors logged on the Console view.
>
> I added -consoleLog to the args and still nothing appeared.
>
> I've just had the idea to shutdown and restart the IDE and retry. This
> seems to have made a difference. I'm now getting console output and
> error messages. It seems the running program can't find the workbench
> application.
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Can't start second workbench [message #414640 is a reply to message #414610] Thu, 15 November 2007 22:18 Go to previous message
David Shaw is currently offline David ShawFriend
Messages: 3
Registered: July 2009
Junior Member
Ed Merks wrote:
> I'm not sure what to suggest. These aren't really EMF specific
> problems... Maybe try to delete the launcher and create a new one...

I eventually did get it to work. Once I had error messages I could that
some plugins could not be found. Eventually I justed added every single
plugin to the target platform and I was able to move on. So, as you
suggested, it wasn't an EMF specific problem.

I started with a fairly small target platform. I then upgraded my IDE to
get the latest EMF, GMF, etc. This added many, many plug-ins to the target
platform, but it seems not enough.

Thanks to those who repsonded, it was enough to get me there.
Previous Topic:'PropertyChangeListener' = Notification ?
Next Topic:EMF Book 2nd Edition?
Goto Forum:
  


Current Time: Fri Apr 26 17:33:14 GMT 2024

Powered by FUDForum. Page generated in 0.03449 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top