Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Can't start application with Eclipse 3.3
Can't start application with Eclipse 3.3 [message #98348] Wed, 26 September 2007 22:01 Go to next message
Eclipse UserFriend
Originally posted by: stepper.sympedia.de

Hi,

I'm trying to start an application with Eclipse 3.3 but I keep getting
this error:

osgi> !SESSION 2007-09-26 23:52:38.734
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_12
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Framework arguments: -application org.eclipse.emf.cdo.server.app
Command-line arguments: -application org.eclipse.emf.cdo.server.app
-data C:\Dokumente und
Einstellungen\Stepper\Desktop\test\workspace.server -dev
file:C:/Dokumente und
Einstellungen/Stepper/Desktop/test/workspace/.metadata/.plug ins/org.eclipse.pde.core/CDO
Server/dev.properties -os win32 -ws win32 -arch x86 -consolelog

!ENTRY org.eclipse.osgi 4 0 2007-09-26 23:52:39.921
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service.
Ensure that the org.eclipse.core.runtime bundle is resolved and started
(see config.ini).
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:72)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
at org.eclipse.equinox.launcher.Main.main(Main.java:1144)

The plugin.xml markup is:

<extension
point="org.eclipse.core.runtime.applications"
id="app"
name="CDO Server">
<application cardinality="1" thread="any">
<run
class=" org.eclipse.emf.cdo.internal.server.bundle.CDOServerApplicat ion "/>
</application>
</extension>


And the Java code:

public class CDOServerApplication implements IApplication
{
public CDOServerApplication()
{
}

public Object start(IApplicationContext context) throws Exception
{
return EXIT_OK;
}

public void stop()
{
try
{
((OSGiBundle)OM.BUNDLE).getBundleContext().getBundle().stop( );
}
catch (BundleException ex)
{
OM.LOG.error(ex);
}
}
}

Can you give me advice?

Cheers
/Eike
Re: Can't start application with Eclipse 3.3 [message #98365 is a reply to message #98348] Wed, 26 September 2007 23:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alex_blewitt.yahoo.com

Looks like you've not got org.eclipse.equinox.common and org.eclipse.equinox.app started in addition to yours.

Why is the IApplication#stop method calling the bundle#stop method? That's pretty unusual. Not that it's a cause of this problem (necessarily).

Have a read of http://www.eclipsezone.com/eclipse/forums/t99010.rhtml to see if any of that helps.

Alex.
Re: Can't start application with Eclipse 3.3 [message #98380 is a reply to message #98365] Thu, 27 September 2007 07:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stepper.sympedia.de

This is a multi-part message in MIME format.
--------------060503060603030203010201
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Alex Blewitt schrieb:
> Looks like you've not got org.eclipse.equinox.common and org.eclipse.equinox.app started in addition to yours.
>
But they're checked in the plugins tab of the launch config.
I've attached the launch config this time.

> Why is the IApplication#stop method calling the bundle#stop method? That's pretty unusual. Not that it's a cause of this problem (necessarily).
>
That is just to see what happens. I can comment it out if that would
make it work better. But as you say the problem seems to be before
stop() is being called.

> Have a read of http://www.eclipsezone.com/eclipse/forums/t99010.rhtml to see if any of that helps.
>
Great! I'm going to go through it and come back...

Cheers
/Eike



--------------060503060603030203010201
Content-Type: text/xml;
name="CDOServer.launch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="CDOServer.launch"

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.pde.ui.RuntimeWorkbench">
<booleanAttribute key="append.args" value="true"/>
<stringAttribute key="application" value="org.eclipse.emf.cdo.server.app"/>
<booleanAttribute key="askclear" value="true"/>
<booleanAttribute key="automaticAdd" value="false"/>
<booleanAttribute key="automaticValidate" value="false"/>
<stringAttribute key="bootstrap" value=""/>
<stringAttribute key="checked" value="[NONE]"/>
<booleanAttribute key="clearConfig" value="false"/>
<booleanAttribute key="clearws" value="false"/>
<booleanAttribute key="clearwslog" value="false"/>
<stringAttribute key="configLocation" value=" ${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/CDO Server "/>
<booleanAttribute key="default" value="false"/>
<booleanAttribute key="includeOptional" value="true"/>
<stringAttribute key="location" value="${workspace_loc}.server"/>
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl}&#13;&#10;-consolelog"/>
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dosgi.console"/>
<stringAttribute key="pde.version" value="3.3"/>
<stringAttribute key="product" value="org.eclipse.sdk.ide"/>
<stringAttribute key="selected_target_plugins" value=" javax.servlet,org.eclipse.core.contenttype,org.eclipse.core. jobs,org.eclipse.core.runtime,org.eclipse.core.runtime.compa tibility.auth,org.eclipse.core.runtime.compatibility.registr y,org.eclipse.emf.cdo.protocol,org.eclipse.emf.cdo.server,or g.eclipse.equinox.app,org.eclipse.equinox.common,org.eclipse .equinox.preferences,org.eclipse.equinox.registry,org.eclips e.net4j,org.eclipse.net4j.db,org.eclipse.net4j.db.derby,org. eclipse.net4j.tcp,org.eclipse.net4j.util,org.eclipse.osgi,or g.eclipse.osgi.services,org.eclipse.update.configurator "/>
<stringAttribute key="templateConfig" value="${target_home}\configuration\config.ini"/>
<booleanAttribute key="tracing" value="false"/>
<booleanAttribute key="useDefaultConfig" value="true"/>
<booleanAttribute key="useDefaultConfigArea" value="true"/>
<booleanAttribute key="useProduct" value="false"/>
<booleanAttribute key="usefeatures" value="false"/>
</launchConfiguration>

--------------060503060603030203010201--
Re: Can't start application with Eclipse 3.3 [message #98395 is a reply to message #98365] Thu, 27 September 2007 07:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stepper.sympedia.de

Alex Blewitt schrieb:
> Looks like you've not got org.eclipse.equinox.common and org.eclipse.equinox.app started in addition to yours.
>
I've added -noExit to the launch config:

osgi> ss

Framework is launched.

id State Bundle
0 ACTIVE org.eclipse.osgi_3.3.0.v20070530
1 ACTIVE org.eclipse.equinox.common_3.3.0.v20070426
2 ACTIVE org.eclipse.core.runtime_3.3.100.v20070530
19 ACTIVE org.eclipse.update.configurator_3.2.100.v20070615
20 <<LAZY>> org.eclipse.net4j_0.8.0.v200709261640
21 <<LAZY>> org.eclipse.net4j.db_0.8.0.v200709261640
Fragments=22
22 RESOLVED org.eclipse.net4j.db.derby_0.8.0.v200709261640
Master=21
23 <<LAZY>> org.eclipse.net4j.tcp_0.8.0.v200709261640
24 ACTIVE org.eclipse.net4j.util_0.8.0.v200709261640
25 RESOLVED javax.servlet_2.4.0.v200706111738
26 <<LAZY>> org.eclipse.core.contenttype_3.2.100.v20070319
27 ACTIVE org.eclipse.core.jobs_3.3.0.v20070423
29 ACTIVE
org.eclipse.core.runtime.compatibility.auth_3.2.100.v2007050 2
30 RESOLVED
org.eclipse.core.runtime.compatibility.registry_3.2.100.v200 70316
Master=34
31 ACTIVE org.eclipse.equinox.app_1.0.0.v20070606
33 ACTIVE org.eclipse.equinox.preferences_3.2.100.v20070522
34 ACTIVE org.eclipse.equinox.registry_3.3.0.v20070522
Fragments=30
36 RESOLVED org.eclipse.osgi.services_3.1.200.v20070605
38 <<LAZY>> org.eclipse.emf.cdo.protocol_0.8.0.v200709261705
39 ACTIVE org.eclipse.emf.cdo.server_0.8.0.v200709261705
Re: Can't start application with Eclipse 3.3 [message #98408 is a reply to message #98365] Thu, 27 September 2007 07:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stepper.sympedia.de

Alex,

In debugging mode I've verified the actual order of startup events:
1) The exception appears on the console
2) The bundle containing the application is started (Activator.start()
is called)
3) The application. is started (IApplication.start() is called)

The only two obstacles are:
a) The exception appears
b) Eclipse exits if I don't specify -noExit

Regarding your interesting article on Eclipsezone I noticed that you
start like:
-- Every now and again, questions like "The application cannot be found"
are posted on the newsgroups...

But in the following hints you don't refer anymore to this particular
problem explicitely ;-)

Cheers
/Eike


Alex Blewitt schrieb:
> Looks like you've not got org.eclipse.equinox.common and org.eclipse.equinox.app started in addition to yours.
>
> Why is the IApplication#stop method calling the bundle#stop method? That's pretty unusual. Not that it's a cause of this problem (necessarily).
>
> Have a read of http://www.eclipsezone.com/eclipse/forums/t99010.rhtml to see if any of that helps.
>
> Alex.
>
Re: Can't start application with Eclipse 3.3 [message #98424 is a reply to message #98365] Thu, 27 September 2007 07:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stepper.sympedia.de

A bit more info:

osgi> pt org.eclipse.core.runtime.applications
Extension point: org.eclipse.core.runtime.applications [from
org.eclipse.equinox.app]

Extension(s):
-------------------
org.eclipse.equinox.app.error [from org.eclipse.equinox.app]
org.eclipse.emf.cdo.server.app [from org.eclipse.emf.cdo.server]




Alex Blewitt schrieb:
> Looks like you've not got org.eclipse.equinox.common and org.eclipse.equinox.app started in addition to yours.
>
> Why is the IApplication#stop method calling the bundle#stop method? That's pretty unusual. Not that it's a cause of this problem (necessarily).
>
> Have a read of http://www.eclipsezone.com/eclipse/forums/t99010.rhtml to see if any of that helps.
>
> Alex.
>
Re: Can't start application with Eclipse 3.3 [message #98439 is a reply to message #98365] Thu, 27 September 2007 08:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stepper.sympedia.de

This is a multi-part message in MIME format.
--------------080704060902080705030008
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

I've been debugging a bit and found this place in EclipseAppLauncher:

public Object start(Object defaultContext) throws Exception {
// here we assume that launch has been called by runtime before
we started
// TODO *this may be a bad assumption* but it works for now
because we register the app launcher as a service and runtime
synchronously calls launch on the service
if (failOnNoDefault && runnable == null)
throw new
IllegalStateException(EclipseAdaptorMsg.ECLIPSE_STARTUP_ERRO R_NO_APPLICATION);
....

When I start with -Declipse.application.launchDefault=false I get no
exception and Eclipse keeps running even w/o -noExit.
Everything works w/o probles as you can see:


osgi> ss

Framework is launched.

id State Bundle
0 ACTIVE org.eclipse.osgi_3.3.0.v20070530
1 ACTIVE org.eclipse.equinox.common_3.3.0.v20070426
2 ACTIVE org.eclipse.update.configurator_3.2.100.v20070615
3 ACTIVE org.eclipse.core.runtime_3.3.100.v20070530
4 RESOLVED javax.servlet_2.4.0.v200706111738
5 <<LAZY>> org.eclipse.core.contenttype_3.2.100.v20070319
6 ACTIVE org.eclipse.core.jobs_3.3.0.v20070423
8 ACTIVE
org.eclipse.core.runtime.compatibility.auth_3.2.100.v2007050 2
9 RESOLVED
org.eclipse.core.runtime.compatibility.registry_3.2.100.v200 70316
Master=13
10 ACTIVE org.eclipse.equinox.app_1.0.0.v20070606
12 ACTIVE org.eclipse.equinox.preferences_3.2.100.v20070522
13 ACTIVE org.eclipse.equinox.registry_3.3.0.v20070522
Fragments=9
15 RESOLVED org.eclipse.osgi.services_3.1.200.v20070605
17 <<LAZY>> org.eclipse.emf.cdo.protocol_0.8.0.qualifier
18 <<LAZY>> org.eclipse.emf.cdo.server_0.8.0.qualifier
19 <<LAZY>> org.eclipse.net4j_0.8.0.qualifier
20 <<LAZY>> org.eclipse.net4j.util_0.8.0.qualifier

osgi> apps
org.eclipse.equinox.app.error [not launchable]
org.eclipse.emf.cdo.server.app [launchable]

osgi> activeApps
No active applications found

osgi> startApp org.eclipse.emf.cdo.server.app
Launched application instance: org.eclipse.emf.cdo.server.app.0

osgi> Bundle org.eclipse.emf.cdo.server started
Application org.eclipse.emf.cdo.server.app started

BUT, that's not what I want ;-(
I'd like to have the application started automatically even w/o
interactive console.


Cheers
/Eike


Alex Blewitt schrieb:
> Looks like you've not got org.eclipse.equinox.common and org.eclipse.equinox.app started in addition to yours.
>
> Why is the IApplication#stop method calling the bundle#stop method? That's pretty unusual. Not that it's a cause of this problem (necessarily).
>
> Have a read of http://www.eclipsezone.com/eclipse/forums/t99010.rhtml to see if any of that helps.
>
> Alex.
>

--------------080704060902080705030008
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I've been debugging a bit and found this place in EclipseAppLauncher:<br>
<br>
&nbsp;&nbsp;&nbsp; public Object start(Object defaultContext) throws Exception {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // here we assume that launch has been called by runtime before
we started<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // TODO <b>this may be a bad assumption</b> but it works for
now because we register the app launcher as a service and runtime
synchronously calls launch on the service<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (failOnNoDefault &amp;&amp; runnable == null)<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; throw new
IllegalStateException(EclipseAdaptorMsg.ECLIPSE_STARTUP_ERRO R_NO_APPLICATION); <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; ....<br>
<br>
When I start with -Declipse.application.launchDefault=false I get no
exception and Eclipse keeps running even w/o -noExit.<br>
Everything works w/o probles as you can see:<br>
<br>
<br>
osgi&gt; ss<br>
<br>
Framework is launched.<br>
<br>
id&nbsp;&nbsp;&nbsp; State&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp; Bundle<br>
0&nbsp;&nbsp;&nbsp; ACTIVE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; org.eclipse.osgi_3.3.0.v20070530<br>
1&nbsp;&nbsp;&nbsp; ACTIVE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; org.eclipse.equinox.common_3.3.0.v20070426<br>
2&nbsp;&nbsp;&nbsp; ACTIVE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; org.eclipse.update.configurator_3.2.100.v20070615<br>
3&nbsp;&nbsp;&nbsp; ACTIVE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; org.eclipse.core.runtime_3.3.100.v20070530<br>
4&nbsp;&nbsp;&nbsp; RESOLVED&nbsp;&nbsp;&nbsp; javax.servlet_2.4.0.v200706111738<br>
5&nbsp;&nbsp;&nbsp; &lt;&lt;LAZY&gt;&gt;&nbsp;&nbsp;& ;nbsp;
org.eclipse.core.contenttype_3.2.100.v20070319<br>
6&nbsp;&nbsp;&nbsp; ACTIVE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; org.eclipse.core.jobs_3.3.0.v20070423<br>
8&nbsp;&nbsp;&nbsp; ACTIVE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
org.eclipse.core.runtime.compatibility.auth_3.2.100.v2007050 2 <br>
9&nbsp;&nbsp;&nbsp; RESOLVED&nbsp;&nbsp;&nbsp;
org.eclipse.core.runtime.compatibility.registry_3.2.100.v200 70316 <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Master=13<br>
10&nbsp;&nbsp;&nbsp; ACTIVE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; org.eclipse.equinox.app_1.0.0.v20070606<br>
12&nbsp;&nbsp;&nbsp; ACTIVE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; org.eclipse.equinox.preferences_3.2.100.v20070522<br>
13&nbsp;&nbsp;&nbsp; ACTIVE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; org.eclipse.equinox.registry_3.3.0.v20070522<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Fragments=9<br>
15&nbsp;&nbsp;&nbsp; RESOLVED&nbsp;&nbsp;&nbsp; org.eclipse.osgi.services_3.1.200.v20070605<br>
17&nbsp;&nbsp;&nbsp; &lt;&lt;LAZY&gt;&gt;&nbsp;&nbsp;& ;nbsp;
org.eclipse.emf.cdo.protocol_0.8.0.qualifier<br>
18&nbsp;&nbsp;&nbsp; &lt;&lt;LAZY&gt;&gt;&nbsp;&nbsp;& ;nbsp; org.eclipse.emf.cdo.server_0.8.0.qualifier<br>
19&nbsp;&nbsp;&nbsp; &lt;&lt;LAZY&gt;&gt;&nbsp;&nbsp;& ;nbsp; org.eclipse.net4j_0.8.0.qualifier<br>
20&nbsp;&nbsp;&nbsp; &lt;&lt;LAZY&gt;&gt;&nbsp;&nbsp;& ;nbsp; org.eclipse.net4j.util_0.8.0.qualifier<br>
<br>
osgi&gt; apps<br>
org.eclipse.equinox.app.error [not launchable]<br>
org.eclipse.emf.cdo.server.app [launchable]<br>
<br>
osgi&gt; activeApps<br>
No active applications found<br>
<br>
osgi&gt; startApp org.eclipse.emf.cdo.server.app<br>
Launched application instance: org.eclipse.emf.cdo.server.app.0<br>
<br>
osgi&gt; Bundle org.eclipse.emf.cdo.server started<br>
Application org.eclipse.emf.cdo.server.app started<br>
<br>
BUT, that's not what I want ;-(<br>
I'd like to have the application started automatically even w/o
interactive console.<br>
<br>
<br>
Cheers<br>
/Eike<br>
<br>
<br>
Alex Blewitt schrieb:
<blockquote
cite="mid:430420644.54041190850890130.JavaMail.root@cp9.dzone.com"
type="cite">
<pre wrap="">Looks like you've not got org.eclipse.equinox.common and org.eclipse.equinox.app started in addition to yours.

Why is the IApplication#stop method calling the bundle#stop method? That's pretty unusual. Not that it's a cause of this problem (necessarily).

Have a read of <a class="moz-txt-link-freetext" href="http://www.eclipsezone.com/eclipse/forums/t99010.rhtml">http://www.eclipsezone.com/eclipse/forums/t99010.rhtml</a> to see if any of that helps.

Alex.
</pre>
</blockquote>
</body>
</html>

--------------080704060902080705030008--
Re: Can't start application with Eclipse 3.3 [message #98467 is a reply to message #98439] Thu, 27 September 2007 10:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alex_blewitt.yahoo.com

Calling bundle.stop() means that the bundle's in a stopped state. This may be causing problems when you then re-start. I'd take it out, run it, and see if that makes any difference.

How are you launching it from Eclipse? Are you choosing 'run an application' or 'run a product'? I don't think it's possible to start up a product *and* run an application, if that's what you're trying to do.

Eclipse 3.3 has bugs (fixed for 3.3.1) that prevent 'main' threads starting from the console, and 'non-main' threads starting from the command line, so you need two extension points even if there's only one class if you want to do both. I can't recall what the default is for 'main' or 'any' in the plugin.xml if you don't specify it.

Alex.
Re: Can't start application with Eclipse 3.3 [message #98482 is a reply to message #98439] Thu, 27 September 2007 10:45 Go to previous messageGo to next message
Stephan is currently offline StephanFriend
Messages: 14
Registered: July 2009
Junior Member
Hi Eike

According to the Javadoc of IApplication, the start-method should not return until the application is finished (i.e., block in start). Can you add a sleep/loop to see if it changes anything?

BTW, how does your config.ini look like?

Cheers, Stephan
Re: Can't start application with Eclipse 3.3 [message #98506 is a reply to message #98482] Thu, 27 September 2007 11:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stepper.sympedia.de

This is a multi-part message in MIME format.
--------------090102010809050208060701
Content-Type: multipart/alternative;
boundary="------------090002040404080204050603"


--------------090002040404080204050603
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi Stephan, Alex,

Thanks for your care ;-)

I've solved it with various changes and I not completely sure which
one(s) exactly solved the problem.
The most obvious candidates are:
1) Moved my startup logic from BundleActivator.start() to
IApplication.start()
2) Added -noExit (which is still needed!)
3) Blocking in IApplication.start() on a CountDownLatch which is
countDown() in IApplication.stop()

I've developed an abstract OSGiApplication base class (see attachment)
which does all the lifecycle mnagement/bookkeeping. Of course I should
have read the JavaDoc of IApplication more carefully but since the
IApplication API is very similar to the BundleActivator I really thought
that similar semantics apply ;-(

Anyway, now it seems to work perfectly (with the exception that I don't
understand why -noExit is needed). Starting, stopping and restarting
produces the following stdout (only if you're interested):

Configuration location:
file:/C:/ws/cdo/.metadata/.plugins/org.eclipse.pde.core/CDOS erver/
Configuration file:

file:/C:/ws/cdo/.metadata/.plugins/org.eclipse.pde.core/CDOS erver/config.ini
loaded
Install location:
file:/C:/develop/eclipse/
Framework located:
file:/C:/develop/eclipse/plugins/org.eclipse.osgi_3.3.0.v200 70530.jar
Framework classpath:
file:/C:/develop/eclipse/plugins/org.eclipse.osgi_3.3.0.v200 70530.jar
Debug options:

file:/C:/ws/cdo/.metadata/.plugins/org.eclipse.pde.core/CDOS erver/.options
loaded

osgi> Time to load bundles: 78
app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Starting bundle
org.eclipse.net4j.util
app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Starting bundle
org.eclipse.emf.cdo.server
app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Starting
application org.eclipse.emf.cdo.server.app
app thread - org.eclipse.emf.cdo.server.app.0 [debug] Configuring
repositories from
C:\ws\cdo\org.eclipse.emf.cdo.server-feature\rootfiles\net4j -config\cdo-server.xml
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle]
Activating ManagedContainer
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle.dump]
DUMP PluginContainer@1
ManagedContainer.factoryRegistry = null
ManagedContainer.postProcessors = null
ManagedContainer.elementRegistry =
ManagedContainer.maxElementID = 0
ManagedContainer.elementListener =
org.eclipse.net4j.internal.util.container.ManagedContainer$1@1fddc31

app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle]
Activating {}
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle.dump]
DUMP PluginFactoryRegistry@2
Registry.autoCommit = true
Registry.transaction = null
HashMapRegistry.map =
extensionRegistryListener =
org.eclipse.net4j.internal.util.factory.PluginFactoryRegistr y$1@f4f44a

app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle]
Activating []
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle.dump]
DUMP PluginElementProcessorList@3
processors =
extensionRegistryListener =
org.eclipse.net4j.internal.util.container.PluginElementProce ssorList$1@1fa1bb6

app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Starting bundle
org.eclipse.net4j
app thread - org.eclipse.emf.cdo.server.app.0 [debug.repository]
Configuring repositories from
C:\ws\cdo\org.eclipse.emf.cdo.server-feature\rootfiles\net4j -config\cdo-server.xml
app thread - org.eclipse.emf.cdo.server.app.0 [debug.repository]
Configuring repository repo1 (type=default)
app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Starting bundle
org.eclipse.emf.cdo.protocol
app thread - org.eclipse.emf.cdo.server.app.0 [debug.model] Created
CDOPackage(URI=http://www.eclipse.org/emf/CDO/core/1.0.0, name=cdocore,
dynamic=false, metaIDRange=null)
app thread - org.eclipse.emf.cdo.server.app.0 [debug.model] Created
CDOClass(ID=0, name=CDOObject)
app thread - org.eclipse.emf.cdo.server.app.0 [debug.model] Adding
class: CDOClass(ID=0, name=CDOObject)
app thread - org.eclipse.emf.cdo.server.app.0 [debug.model] Added
package: CDOPackage(URI=http://www.eclipse.org/emf/CDO/core/1.0.0,
name=cdocore, dynamic=false, metaIDRange=null)
app thread - org.eclipse.emf.cdo.server.app.0 [debug.model] Created
CDOPackage(URI=http://www.eclipse.org/emf/CDO/resource/1.0.0,
name=cdoresource, dynamic=false, metaIDRange=null)
app thread - org.eclipse.emf.cdo.server.app.0 [debug.model] Created
CDOClass(ID=0, name=CDOResource)
app thread - org.eclipse.emf.cdo.server.app.0 [debug.model] Created
CDOFeature(ID=8, name=path, type=STRING)
app thread - org.eclipse.emf.cdo.server.app.0 [debug.model] Adding
feature: CDOFeature(ID=8, name=path, type=STRING)
app thread - org.eclipse.emf.cdo.server.app.0 [debug.model] Created
CDOFeature(ID=2, name=contents, type=OBJECT)
app thread - org.eclipse.emf.cdo.server.app.0 [debug.model] Adding
feature: CDOFeature(ID=2, name=contents, type=OBJECT)
app thread - org.eclipse.emf.cdo.server.app.0 [debug.model] Adding
class: CDOClass(ID=0, name=CDOResource)
app thread - org.eclipse.emf.cdo.server.app.0 [debug.model] Added
package: CDOPackage(URI=http://www.eclipse.org/emf/CDO/resource/1.0.0,
name=cdoresource, dynamic=false, metaIDRange=null)
app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Starting bundle
org.eclipse.emf.cdo.server.db
app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Starting bundle
org.eclipse.net4j.db
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle]
Activating Repository[repo1, null]
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle.dump]
DUMP Repository@4
name = repo1
store = DBStore@5
uuid = null
properties =
rememberingKnownTypes=false
supportingAudits=true
verifyingRevisions=false
overrideUUID=1ff5d226-b1f0-40fb-aba2-0c31b38c764f
supportingAudits = true
verifyingRevisions = null
rememberingKnownTypes = null
typeManager = TypeManager@6
packageManager = PackageManager@7
sessionManager = SessionManager@8
resourceManager = ResourceManager@9
revisionManager = RevisionManager@10
elements = [Lorg.eclipse.emf.cdo.server.IRepositoryElement;@203c31
nextMetaIDValue = 1

app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle]
Activating DBStore@5
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle.dump]
DUMP DBStore@5
Store.type = db
Store.repository = Repository[repo1, null]
Store.nextOIDValue = 2
mappingStrategy = horizontal
dbAdapter = derby-10.2.2.0
connectionProvider = org.apache.derby.jdbc.ClientDataSource@105bd58
schema = null
nextPackageID = 0
nextClassID = 0
nextFeatureID = 0

app thread - org.eclipse.emf.cdo.server.app.0 [debug.sql] CREATE TABLE
cdo_classes (id INTEGER, package INTEGER, classifier INTEGER, name
VARCHAR(255), abstract SMALLINT)
app thread - org.eclipse.emf.cdo.server.app.0 [debug.sql] CREATE TABLE
cdo_supertypes (type_id INTEGER, supertype_package VARCHAR(255),
supertype_classifier INTEGER)
app thread - org.eclipse.emf.cdo.server.app.0 [debug.sql] CREATE TABLE
cdo_features (id INTEGER, class INTEGER, feature INTEGER, name
VARCHAR(255), type INTEGER, reference_package VARCHAR(255),
reference_classifier INTEGER, many SMALLINT, containment SMALLINT, idx
INTEGER)
app thread - org.eclipse.emf.cdo.server.app.0 [debug.sql] CREATE TABLE
cdo_repository (name VARCHAR(255), uuid VARCHAR(64), starts BIGINT,
started BIGINT, stopped BIGINT, next_cdoid BIGINT, next_metaid BIGINT)
app thread - org.eclipse.emf.cdo.server.app.0 [debug.sql] CREATE TABLE
cdo_packages (id INTEGER, uri VARCHAR(255), name VARCHAR(255), ecore
LONG VARCHAR, dynamic SMALLINT, range_lb BIGINT, range_ub BIGINT)
app thread - org.eclipse.emf.cdo.server.app.0 [debug.sql] INSERT IGNORE INTO
cdo_repository VALUES ('repo1', '1ff5d226-b1f0-40fb-aba2-0c31b38c764f',
1, 1190893492141, 0, 0, 0)
app thread - org.eclipse.emf.cdo.server.app.0 [debug.model] Setting
server info: CDOClass(ID=0, name=CDOResource) --> -2
app thread - org.eclipse.emf.cdo.server.app.0 [debug.sql] CREATE TABLE
CDOResource_contents_refs (cdo_source BIGINT, cdo_version INTEGER,
cdo_idx INTEGER, cdo_target BIGINT)
app thread - org.eclipse.emf.cdo.server.app.0 [debug.sql] CREATE TABLE
CDOResource (cdo_id BIGINT, cdo_version INTEGER, cdo_class INTEGER,
cdo_created BIGINT, cdo_revised BIGINT, cdo_resource BIGINT,
cdo_container BIGINT, cdo_feature INTEGER, path VARCHAR(32672))
app thread - org.eclipse.emf.cdo.server.app.0 [debug.sql] SELECT MAX(id)
FROM cdo_packages
app thread - org.eclipse.emf.cdo.server.app.0 [debug.sql] SELECT MAX(id)
FROM cdo_classes
app thread - org.eclipse.emf.cdo.server.app.0 [debug.sql] SELECT MAX(id)
FROM cdo_features
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle]
Activating TypeManager@6
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle.dump]
DUMP TypeManager@6
Worker.daemon = false
Worker.activationTimeout = 2000
Worker.deactivationTimeout = 2000
Worker.activationLatch = null
Worker.workerThread = null
QueueWorker.queue = null
QueueWorker.pollMillis = 100
repository = Repository[repo1, 1ff5d226-b1f0-40fb-aba2-0c31b38c764f]
persistent = true
objectTypes =
packageURIMap = null
packageIDMap = null
objectTypeMap = null
metaObjectTypeMap = null
nextPackageID = 0

app thread - org.eclipse.emf.cdo.server.app.0 [debug.types] Repository
state location:
C:\ws\cdo.server\.metadata\.plugins\org.eclipse.emf.cdo.serv er\1ff5d226-b1f0-40fb-aba2-0c31b38c764f
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle]
Activating PackageManager@7
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle.dump]
DUMP PackageManager@7
CDOPackageManagerImpl.packages =

http://www.eclipse.org/emf/CDO/core/1.0.0=CDOPackage(URI=http://www.eclipse.org/emf/CDO/core/1.0.0,
name=cdocore, dynamic=false, metaIDRange=null)

http://www.eclipse.org/emf/CDO/resource/1.0.0=CDOPackage(URI=http://www.eclipse.org/emf/CDO/resource/1.0.0,
name=cdoresource, dynamic=false, metaIDRange=null)
CDOPackageManagerImpl.cdoCorePackage =
CDOPackage(URI=http://www.eclipse.org/emf/CDO/core/1.0.0, name=cdocore,
dynamic=false, metaIDRange=null)
CDOPackageManagerImpl.cdoResourcePackage =
CDOPackage(URI=http://www.eclipse.org/emf/CDO/resource/1.0.0,
name=cdoresource, dynamic=false, metaIDRange=null)
repository = Repository[repo1, 1ff5d226-b1f0-40fb-aba2-0c31b38c764f]

app thread - org.eclipse.emf.cdo.server.app.0 [debug.sql] SELECT uri,
dynamic, range_lb, range_ub FROM cdo_packages
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle]
Activating SessionManager@8
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle.dump]
DUMP SessionManager@8
repository = Repository[repo1, 1ff5d226-b1f0-40fb-aba2-0c31b38c764f]
sessions =
lastSessionID = 0

app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle]
Activating ResourceManager@9
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle.dump]
DUMP ResourceManager@9
repository = Repository[repo1, 1ff5d226-b1f0-40fb-aba2-0c31b38c764f]
idToPathMap =
pathToIDMap =

app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle]
Activating RevisionManager@10
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle.dump]
DUMP RevisionManager@10
CDORevisionResolverImpl.revisions =
repository = Repository[repo1, 1ff5d226-b1f0-40fb-aba2-0c31b38c764f]
cdoPathFeature = CDOFeature(ID=8, name=path, type=STRING)

Application Started: 9250
*apps
org.eclipse.emf.cdo.server.app [running] [not launchable]

osgi> stopApp org.eclipse.emf.cdo.server.app*
app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Stopping
application org.eclipse.emf.cdo.server.app
Stopped application instance: org.eclipse.emf.cdo.server.app.0
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle]
Deactivating Repository[repo1, 1ff5d226-b1f0-40fb-aba2-0c31b38c764f]

osgi> app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle]
Deactivating RevisionManager@10
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle]
Deactivating ResourceManager@9
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle]
Deactivating SessionManager@8
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle]
Deactivating PackageManager@7
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle]
Deactivating TypeManager@6
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle]
Deactivating DBStore@5
app thread - org.eclipse.emf.cdo.server.app.0 [debug.sql] UPDATE
cdo_repository SET stopped=1190893510500, next_cdoid=2, next_metaid=1
*apps
org.eclipse.emf.cdo.server.app [launchable]

osgi> startApp org.eclipse.emf.cdo.server.app*
Launched application instance: org.eclipse.emf.cdo.server.app.1

osgi> app thread - org.eclipse.emf.cdo.server.app.1 [debug.om] Starting
application org.eclipse.emf.cdo.server.app
app thread - org.eclipse.emf.cdo.server.app.1 [debug] Configuring
repositories from
C:\ws\cdo\org.eclipse.emf.cdo.server-feature\rootfiles\net4j -config\cdo-server.xml
app thread - org.eclipse.emf.cdo.server.app.1 [debug.repository]
Configuring repositories from
C:\ws\cdo\org.eclipse.emf.cdo.server-feature\rootfiles\net4j -config\cdo-server.xml
app thread - org.eclipse.emf.cdo.server.app.1 [debug.repository]
Configuring repository repo1 (type=default)
app thread - org.eclipse.emf.cdo.server.app.1 [debug.model] Created
CDOPackage(URI=http://www.eclipse.org/emf/CDO/core/1.0.0, name=cdocore,
dynamic=false, metaIDRange=null)
app thread - org.eclipse.emf.cdo.server.app.1 [debug.model] Created
CDOClass(ID=0, name=CDOObject)
app thread - org.eclipse.emf.cdo.server.app.1 [debug.model] Adding
class: CDOClass(ID=0, name=CDOObject)
app thread - org.eclipse.emf.cdo.server.app.1 [debug.model] Added
package: CDOPackage(URI=http://www.eclipse.org/emf/CDO/core/1.0.0,
name=cdocore, dynamic=false, metaIDRange=null)
app thread - org.eclipse.emf.cdo.server.app.1 [debug.model] Created
CDOPackage(URI=http://www.eclipse.org/emf/CDO/resource/1.0.0,
name=cdoresource, dynamic=false, metaIDRange=null)
app thread - org.eclipse.emf.cdo.server.app.1 [debug.model] Created
CDOClass(ID=0, name=CDOResource)
app thread - org.eclipse.emf.cdo.server.app.1 [debug.model] Created
CDOFeature(ID=8, name=path, type=STRING)
app thread - org.eclipse.emf.cdo.server.app.1 [debug.model] Adding
feature: CDOFeature(ID=8, name=path, type=STRING)
app thread - org.eclipse.emf.cdo.server.app.1 [debug.model] Created
CDOFeature(ID=2, name=contents, type=OBJECT)
app thread - org.eclipse.emf.cdo.server.app.1 [debug.model] Adding
feature: CDOFeature(ID=2, name=contents, type=OBJECT)
app thread - org.eclipse.emf.cdo.server.app.1 [debug.model] Adding
class: CDOClass(ID=0, name=CDOResource)
app thread - org.eclipse.emf.cdo.server.app.1 [debug.model] Added
package: CDOPackage(URI=http://www.eclipse.org/emf/CDO/resource/1.0.0,
name=cdoresource, dynamic=false, metaIDRange=null)
app thread - org.eclipse.emf.cdo.server.app.1 [debug.lifecycle]
Activating Repository[repo1, null]
app thread - org.eclipse.emf.cdo.server.app.1 [debug.lifecycle.dump]
DUMP Repository@11
name = repo1
store = DBStore@12
uuid = null
properties =
rememberingKnownTypes=false
supportingAudits=true
verifyingRevisions=false
overrideUUID=1ff5d226-b1f0-40fb-aba2-0c31b38c764f
supportingAudits = true
verifyingRevisions = null
rememberingKnownTypes = null
typeManager = TypeManager@13
packageManager = PackageManager@14
sessionManager = SessionManager@15
resourceManager = ResourceManager@16
revisionManager = RevisionManager@17
elements = [Lorg.eclipse.emf.cdo.server.IRepositoryElement;@1e808ca
nextMetaIDValue = 1

app thread - org.eclipse.emf.cdo.server.app.1 [debug.lifecycle]
Activating DBStore@12
app thread - org.eclipse.emf.cdo.server.app.1 [debug.lifecycle.dump]
DUMP DBStore@12
Store.type = db
Store.repository = Repository[repo1, null]
Store.nextOIDValue = 2
mappingStrategy = horizontal
dbAdapter = derby-10.2.2.0
connectionProvider = org.apache.derby.jdbc.ClientDataSource@992bae
schema = null
nextPackageID = 0
nextClassID = 0
nextFeatureID = 0

app thread - org.eclipse.emf.cdo.server.app.1 [debug.sql] CREATE TABLE
cdo_classes (id INTEGER, package INTEGER, classifier INTEGER, name
VARCHAR(255), abstract SMALLINT)
app thread - org.eclipse.emf.cdo.server.app.1 [debug.sql] -- Table/View
'CDO_CLASSES' ist bereits in Schema 'APP' vorhanden.
app thread - org.eclipse.emf.cdo.server.app.1 [debug.sql] CREATE TABLE
cdo_supertypes (type_id INTEGER, supertype_package VARCHAR(255),
supertype_classifier INTEGER)
app thread - org.eclipse.emf.cdo.server.app.1 [debug.sql] -- Table/View
'CDO_SUPERTYPES' ist bereits in Schema 'APP' vorhanden.
app thread - org.eclipse.emf.cdo.server.app.1 [debug.sql] CREATE TABLE
cdo_features (id INTEGER, class INTEGER, feature INTEGER, name
VARCHAR(255), type INTEGER, reference_package VARCHAR(255),
reference_classifier INTEGER, many SMALLINT, containment SMALLINT, idx
INTEGER)
app thread - org.eclipse.emf.cdo.server.app.1 [debug.sql] -- Table/View
'CDO_FEATURES' ist bereits in Schema 'APP' vorhanden.
app thread - org.eclipse.emf.cdo.server.app.1 [debug.sql] CREATE TABLE
cdo_repository (name VARCHAR(255), uuid VARCHAR(64), starts BIGINT,
started BIGINT, stopped BIGINT, next_cdoid BIGINT, next_metaid BIGINT)
app thread - org.eclipse.emf.cdo.server.app.1 [debug.sql] -- Table/View
'CDO_REPOSITORY' ist bereits in Schema 'APP' vorhanden.
app thread - org.eclipse.emf.cdo.server.app.1 [debug.sql] CREATE TABLE
cdo_packages (id INTEGER, uri VARCHAR(255), name VARCHAR(255), ecore
LONG VARCHAR, dynamic SMALLINT, range_lb BIGINT, range_ub BIGINT)
app thread - org.eclipse.emf.cdo.server.app.1 [debug.sql] -- Table/View
'CDO_PACKAGES' ist bereits in Schema 'APP' vorhanden.
app thread - org.eclipse.emf.cdo.server.app.1 [debug.sql] SELECT
MAX(next_cdoid) FROM cdo_repository
app thread - org.eclipse.emf.cdo.server.app.1 [debug.sql] SELECT
MAX(next_metaid) FROM cdo_repository
app thread - org.eclipse.emf.cdo.server.app.1 [debug.sql] UPDATE
cdo_repository SET starts=starts+1, started=1190893530813, stopped=0,
next_cdoid=0, next_metaid=0
app thread - org.eclipse.emf.cdo.server.app.1 [debug.sql] SELECT MAX(id)
FROM cdo_packages
app thread - org.eclipse.emf.cdo.server.app.1 [debug.sql] SELECT MAX(id)
FROM cdo_classes
app thread - org.eclipse.emf.cdo.server.app.1 [debug.sql] SELECT MAX(id)
FROM cdo_features
app thread - org.eclipse.emf.cdo.server.app.1 [debug.lifecycle]
Activating TypeManager@13
app thread - org.eclipse.emf.cdo.server.app.1 [debug.lifecycle.dump]
DUMP TypeManager@13
Worker.daemon = false
Worker.activationTimeout = 2000
Worker.deactivationTimeout = 2000
Worker.activationLatch = null
Worker.workerThread = null
QueueWorker.queue = null
QueueWorker.pollMillis = 100
repository = Repository[repo1, null]
persistent = true
objectTypes =
packageURIMap = null
packageIDMap = null
objectTypeMap = null
metaObjectTypeMap = null
nextPackageID = 0

app thread - org.eclipse.emf.cdo.server.app.1 [debug.types] Repository
state location:
C:\ws\cdo.server\.metadata\.plugins\org.eclipse.emf.cdo.serv er\1ff5d226-b1f0-40fb-aba2-0c31b38c764f
app thread - org.eclipse.emf.cdo.server.app.1 [debug.lifecycle]
Activating PackageManager@14
app thread - org.eclipse.emf.cdo.server.app.1 [debug.lifecycle.dump]
DUMP PackageManager@14
CDOPackageManagerImpl.packages =

http://www.eclipse.org/emf/CDO/core/1.0.0=CDOPackage(URI=http://www.eclipse.org/emf/CDO/core/1.0.0,
name=cdocore, dynamic=false, metaIDRange=null)

http://www.eclipse.org/emf/CDO/resource/1.0.0=CDOPackage(URI=http://www.eclipse.org/emf/CDO/resource/1.0.0,
name=cdoresource, dynamic=false, metaIDRange=null)
CDOPackageManagerImpl.cdoCorePackage =
CDOPackage(URI=http://www.eclipse.org/emf/CDO/core/1.0.0, name=cdocore,
dynamic=false, metaIDRange=null)
CDOPackageManagerImpl.cdoResourcePackage =
CDOPackage(URI=http://www.eclipse.org/emf/CDO/resource/1.0.0,
name=cdoresource, dynamic=false, metaIDRange=null)
repository = Repository[repo1, 1ff5d226-b1f0-40fb-aba2-0c31b38c764f]

app thread - org.eclipse.emf.cdo.server.app.1 [debug.sql] SELECT uri,
dynamic, range_lb, range_ub FROM cdo_packages
app thread - org.eclipse.emf.cdo.server.app.1 [debug.lifecycle]
Activating SessionManager@15
app thread - org.eclipse.emf.cdo.server.app.1 [debug.lifecycle.dump]
DUMP SessionManager@15
repository = Repository[repo1, 1ff5d226-b1f0-40fb-aba2-0c31b38c764f]
sessions =
lastSessionID = 0

app thread - org.eclipse.emf.cdo.server.app.1 [debug.lifecycle]
Activating ResourceManager@16
app thread - org.eclipse.emf.cdo.server.app.1 [debug.lifecycle.dump]
DUMP ResourceManager@16
repository = Repository[repo1, 1ff5d226-b1f0-40fb-aba2-0c31b38c764f]
idToPathMap =
pathToIDMap =

app thread - org.eclipse.emf.cdo.server.app.1 [debug.lifecycle]
Activating RevisionManager@17
app thread - org.eclipse.emf.cdo.server.app.1 [debug.lifecycle.dump]
DUMP RevisionManager@17
CDORevisionResolverImpl.revisions =
repository = Repository[repo1, 1ff5d226-b1f0-40fb-aba2-0c31b38c764f]
cdoPathFeature = CDOFeature(ID=8, name=path, type=STRING)

Application Started: 47438

THANKS AGAIN!!
/Eike


Stephan Sigrist schrieb:
> Hi Eike
>
> According to the Javadoc of IApplication, the start-method should not return until the application is finished (i.e., block in start). Can you add a sleep/loop to see if it changes anything?
>
> BTW, how does your config.ini look like?
>
> Cheers, Stephan
>

--------------090002040404080204050603
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Stephan, Alex,<br>
<br>
Thanks for your care ;-)<br>
<br>
I've solved it with various changes and I not completely sure which
one(s) exactly solved the problem.<br>
The most obvious candidates are:<br>
1) Moved my startup logic from BundleActivator.start() to
IApplication.start()<br>
2) Added -noExit (which is still needed!)<br>
3) Blocking in IApplication.start() on a CountDownLatch which is
countDown() in IApplication.stop()<br>
<br>
I've developed an abstract OSGiApplication base class (see attachment)
which does all the lifecycle mnagement/bookkeeping. Of course I should
have read the JavaDoc of IApplication more carefully but since the
IApplication API is very similar to the BundleActivator I really
thought that similar semantics apply ;-( <br>
<br>
Anyway, now it seems to work perfectly (with the exception that I don't
understand why -noExit is needed). Starting, stopping and restarting
produces the following stdout (only if you're interested):<br>
<br>
Configuration location:<br>
&nbsp;&nbsp;&nbsp; <a class="moz-txt-link-freetext" href=" file:/C:/ws/cdo/.metadata/.plugins/org.eclipse.pde.core/CDOS erver/ "> file:/C:/ws/cdo/.metadata/.plugins/org.eclipse.pde.core/CDOS erver/ </a><br>
Configuration file:<br>
&nbsp;&nbsp;&nbsp;
<a class="moz-txt-link-freetext" href=" file:/C:/ws/cdo/.metadata/.plugins/org.eclipse.pde.core/CDOS erver/config.ini "> file:/C:/ws/cdo/.metadata/.plugins/org.eclipse.pde.core/CDOS erver/config.ini </a>
loaded<br>
Install location:<br>
&nbsp;&nbsp;&nbsp; <a class="moz-txt-link-freetext" href="file:/C:/develop/eclipse/">file:/C:/develop/eclipse/ </a><br>
Framework located:<br>
&nbsp;&nbsp;&nbsp;
<a class="moz-txt-link-freetext" href=" file:/C:/develop/eclipse/plugins/org.eclipse.osgi_3.3.0.v200 70530.jar "> file:/C:/develop/eclipse/plugins/org.eclipse.osgi_3.3.0.v200 70530.jar </a><br>
Framework classpath:<br>
&nbsp;&nbsp;&nbsp;
<a class="moz-txt-link-freetext" href=" file:/C:/develop/eclipse/plugins/org.eclipse.osgi_3.3.0.v200 70530.jar "> file:/C:/develop/eclipse/plugins/org.eclipse.osgi_3.3.0.v200 70530.jar </a><br>
Debug options:<br>
&nbsp;&nbsp;&nbsp;
<a class="moz-txt-link-freetext" href=" file:/C:/ws/cdo/.metadata/.plugins/org.eclipse.pde.core/CDOS erver/.options "> file:/C:/ws/cdo/.metadata/.plugins/org.eclipse.pde.core/CDOS erver/.options </a>
loaded<br>
<br>
osgi&gt; Time to load bundles: 78<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Starting
bundle org.eclipse.net4j.util<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Starting
bundle org.eclipse.emf.cdo.server<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Starting
application org.eclipse.emf.cdo.server.app<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug] Configuring
repositories from
C:\ws\cdo\org.eclipse.emf.cdo.server-feature\rootfiles\net4j -config\cdo-server.xml <br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle]
Activating ManagedContainer<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle.dump]
DUMP PluginContainer@1<br>
&nbsp;ManagedContainer.factoryRegistry = null<br>
&nbsp;ManagedContainer.postProcessors = null<br>
&nbsp;ManagedContainer.elementRegistry = <br>
&nbsp;ManagedContainer.maxElementID = 0<br>
&nbsp;ManagedContainer.elementListener =
org.eclipse.net4j.internal.util.container.ManagedContainer$1@1fddc31<br>
<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle]
Activating {}<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle.dump]
DUMP PluginFactoryRegistry@2<br>
&nbsp;Registry.autoCommit = true<br>
&nbsp;Registry.transaction = null<br>
&nbsp;HashMapRegistry.map = <br>
&nbsp;extensionRegistryListener =
org.eclipse.net4j.internal.util.factory.PluginFactoryRegistr y$1@f4f44a<br>
<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle]
Activating []<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle.dump]
DUMP PluginElementProcessorList@3<br>
&nbsp;processors = <br>
&nbsp;extensionRegistryListener =
org.eclipse.net4j.internal.util.container.PluginElementProce ssorList$1@1fa1bb6<br>
<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Starting
bundle org.eclipse.net4j<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.repository]
Configuring repositories from
C:\ws\cdo\org.eclipse.emf.cdo.server-feature\rootfiles\net4j -config\cdo-server.xml <br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.repository]
Configuring repository repo1 (type=default)<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Starting
bundle org.eclipse.emf.cdo.protocol<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.model] Created
CDOPackage(URI=<a class="moz-txt-link-freetext" href="http://www.eclipse.org/emf/CDO/core/1.0.0">http://www.eclipse.org/emf/CDO/core/1.0.0</a>, name=cdocore,
dynamic=false, metaIDRange=null)<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.model] Created
CDOClass(ID=0, name=CDOObject)<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.model] Adding
class: CDOClass(ID=0, name=CDOObject)<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.model] Added
package: CDOPackage(URI=<a class="moz-txt-link-freetext" href="http://www.eclipse.org/emf/CDO/core/1.0.0">http://www.eclipse.org/emf/CDO/core/1.0.0</a>,
name=cdocore, dynamic=false, metaIDRange=null)<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.model] Created
CDOPackage(URI=<a class="moz-txt-link-freetext" href="http://www.eclipse.org/emf/CDO/resource/1.0.0">http://www.eclipse.org/emf/CDO/resource/1.0.0</a>,
name=cdoresource, dynamic=false, metaIDRange=null)<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.model] Created
CDOClass(ID=0, name=CDOResource)<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.model] Created
CDOFeature(ID=8, name=path, type=STRING)<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.model] Adding
feature: CDOFeature(ID=8, name=path, type=STRING)<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.model] Created
CDOFeature(ID=2, name=contents, type=OBJECT)<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.model] Adding
feature: CDOFeature(ID=2, name=contents, type=OBJECT)<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.model] Adding
class: CDOClass(ID=0, name=CDOResource)<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.model] Added
package: CDOPackage(URI=<a class="moz-txt-link-freetext" href="http://www.eclipse.org/emf/CDO/resource/1.0.0">http://www.eclipse.org/emf/CDO/resource/1.0.0</a>,
name=cdoresource, dynamic=false, metaIDRange=null)<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Starting
bundle org.eclipse.emf.cdo.server.db<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Starting
bundle org.eclipse.net4j.db<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle]
Activating Repository[repo1, null]<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle.dump]
DUMP Repository@4<br>
&nbsp;name = repo1<br>
&nbsp;store = DBStore@5<br>
&nbsp;uuid = null<br>
&nbsp;properties = <br>
&nbsp;&nbsp;&nbsp; rememberingKnownTypes=false<br>
&nbsp;&nbsp;&nbsp; supportingAudits=true<br>
&nbsp;&nbsp;&nbsp; verifyingRevisions=false<br>
&nbsp;&nbsp;&nbsp; overrideUUID=1ff5d226-b1f0-40fb-aba2-0c31b38c764f<br>
&nbsp;supportingAudits = true<br>
&nbsp;verifyingRevisions = null<br>
&nbsp;rememberingKnownTypes = null<br>
&nbsp;typeManager = TypeManager@6<br>
&nbsp;packageManager = PackageManager@7<br>
&nbsp;sessionManager = SessionManager@8<br>
&nbsp;resourceManager = ResourceManager@9<br>
&nbsp;revisionManager = RevisionManager@10<br>
&nbsp;elements = [Lorg.eclipse.emf.cdo.server.IRepositoryElement;@203c31<br>
&nbsp;nextMetaIDValue = 1<br>
<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle]
Activating DBStore@5<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle.dump]
DUMP DBStore@5<br>
&nbsp;Store.type = db<br>
&nbsp;Store.repository = Repository[repo1, null]<br>
&nbsp;Store.nextOIDValue = 2<br>
&nbsp;mappingStrategy = horizontal<br>
&nbsp;dbAdapter = derby-10.2.2.0<br>
&nbsp;connectionProvider = org.apache.derby.jdbc.ClientDataSource@105bd58<br>
&nbsp;schema = null<br>
&nbsp;nextPackageID = 0<br>
&nbsp;nextClassID = 0<br>
&nbsp;nextFeatureID = 0<br>
<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.sql] CREATE TABLE
cdo_classes (id INTEGER, package INTEGER, classifier INTEGER, name
VARCHAR(255), abstract SMALLINT)<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.sql] CREATE TABLE
cdo_supertypes (type_id INTEGER, supertype_package VARCHAR(255),
supertype_classifier INTEGER)<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.sql] CREATE TABLE
cdo_features (id INTEGER, class INTEGER, feature INTEGER, name
VARCHAR(255), type INTEGER, reference_package VARCHAR(255),
reference_classifier INTEGER, many SMALLINT, containment SMALLINT, idx
INTEGER)<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.sql] CREATE TABLE
cdo_repository (name VARCHAR(255), uuid VARCHAR(64), starts BIGINT,
started BIGINT, stopped BIGINT, next_cdoid BIGINT, next_metaid BIGINT)<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.sql] CREATE TABLE
cdo_packages (id INTEGER, uri VARCHAR(255), name VARCHAR(255), ecore
LONG VARCHAR, dynamic SMALLINT, range_lb BIGINT, range_ub BIGINT)<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.sql] INSERT INTO
cdo_repository VALUES ('repo1', '1ff5d226-b1f0-40fb-aba2-0c31b38c764f',
1, 1190893492141, 0, 0, 0)<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.model] Setting
server info: CDOClass(ID=0, name=CDOResource) --&gt; -2<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.sql] CREATE TABLE
CDOResource_contents_refs (cdo_source BIGINT, cdo_version INTEGER,
cdo_idx INTEGER, cdo_target BIGINT)<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.sql] CREATE TABLE
CDOResource (cdo_id BIGINT, cdo_version INTEGER, cdo_class INTEGER,
cdo_created BIGINT, cdo_revised BIGINT, cdo_resource BIGINT,
cdo_container BIGINT, cdo_feature INTEGER, path VARCHAR(32672))<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.sql] SELECT
MAX(id) FROM cdo_packages<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.sql] SELECT
MAX(id) FROM cdo_classes<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.sql] SELECT
MAX(id) FROM cdo_features<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle]
Activating TypeManager@6<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle.dump]
DUMP TypeManager@6<br>
&nbsp;Worker.daemon = false<br>
&nbsp;Worker.activationTimeout = 2000<br>
&nbsp;Worker.deactivationTimeout = 2000<br>
&nbsp;Worker.activationLatch = null<br>
&nbsp;Worker.workerThread = null<br>
&nbsp;QueueWorker.queue = null<br>
&nbsp;QueueWorker.pollMillis = 100<br>
&nbsp;repository = Repository[repo1, 1ff5d226-b1f0-40fb-aba2-0c31b38c764f]<br>
&nbsp;persistent = true<br>
&nbsp;objectTypes = <br>
&nbsp;packageURIMap = null<br>
&nbsp;packageIDMap = null<br>
&nbsp;objectTypeMap = null<br>
&nbsp;metaObjectTypeMap = null<br>
&nbsp;nextPackageID = 0<br>
<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.types] Repository
state location:
C:\ws\cdo.server\.metadata\.plugins\org.eclipse.emf.cdo.serv er\1ff5d226-b1f0-40fb-aba2-0c31b38c764f <br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle]
Activating PackageManager@7<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle.dump]
DUMP PackageManager@7<br>
&nbsp;CDOPackageManagerImpl.packages = <br>
&nbsp;&nbsp;&nbsp;
<a class="moz-txt-link-freetext" href="http://www.eclipse.org/emf/CDO/core/1.0.0=CDOPackage(URI=http://www.eclipse.org/emf/CDO/core/1.0.0">http://www.eclipse.org/emf/CDO/core/1.0.0=CDOPackage(URI=http://www.eclipse.org/emf/CDO/core/1.0.0</a>,
name=cdocore, dynamic=false, metaIDRange=null)<br>
&nbsp;&nbsp;&nbsp;
<a class="moz-txt-link-freetext" href="http://www.eclipse.org/emf/CDO/resource/1.0.0=CDOPackage(URI=http://www.eclipse.org/emf/CDO/resource/1.0.0">http://www.eclipse.org/emf/CDO/resource/1.0.0=CDOPackage(URI=http://www.eclipse.org/emf/CDO/resource/1.0.0</a>,
name=cdoresource, dynamic=false, metaIDRange=null)<br>
&nbsp;CDOPackageManagerImpl.cdoCorePackage =
CDOPackage(URI=<a class="moz-txt-link-freetext" href="http://www.eclipse.org/emf/CDO/core/1.0.0">http://www.eclipse.org/emf/CDO/core/1.0.0</a>, name=cdocore,
dynamic=false, metaIDRange=null)<br>
&nbsp;CDOPackageManagerImpl.cdoResourcePackage =
CDOPackage(URI=<a class="moz-txt-link-freetext" href="http://www.eclipse.org/emf/CDO/resource/1.0.0">http://www.eclipse.org/emf/CDO/resource/1.0.0</a>,
name=cdoresource, dynamic=false, metaIDRange=null)<br>
&nbsp;repository = Repository[repo1, 1ff5d226-b1f0-40fb-aba2-0c31b38c764f]<br>
<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.sql] SELECT uri,
dynamic, range_lb, range_ub FROM cdo_packages<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle]
Activating SessionManager@8<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle.dump]
DUMP SessionManager@8<br>
&nbsp;repository = Repository[repo1, 1ff5d226-b1f0-40fb-aba2-0c31b38c764f]<br>
&nbsp;sessions = <br>
&nbsp;lastSessionID = 0<br>
<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle]
Activating ResourceManager@9<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle.dump]
DUMP ResourceManager@9<br>
&nbsp;repository = Repository[repo1, 1ff5d226-b1f0-40fb-aba2-0c31b38c764f]<br>
&nbsp;idToPathMap = <br>
&nbsp;pathToIDMap = <br>
<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle]
Activating RevisionManager@10<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle.dump]
DUMP RevisionManager@10<br>
&nbsp;CDORevisionResolverImpl.revisions = <br>
&nbsp;repository = Repository[repo1, 1ff5d226-b1f0-40fb-aba2-0c31b38c764f]<br>
&nbsp;cdoPathFeature = CDOFeature(ID=8, name=path, type=STRING)<br>
<br>
Application Started: 9250<br>
<font color="#330099"><b>apps<br>
org.eclipse.emf.cdo.server.app [running] [not launchable]<br>
<br>
osgi&gt; stopApp org.eclipse.emf.cdo.server.app</b></font><br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.om] Stopping
application org.eclipse.emf.cdo.server.app<br>
Stopped application instance: org.eclipse.emf.cdo.server.app.0<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle]
Deactivating Repository[repo1, 1ff5d226-b1f0-40fb-aba2-0c31b38c764f]<br>
<br>
osgi&gt; app thread - org.eclipse.emf.cdo.server.app.0
[debug.lifecycle] Deactivating RevisionManager@10<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle]
Deactivating ResourceManager@9<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle]
Deactivating SessionManager@8<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle]
Deactivating PackageManager@7<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle]
Deactivating TypeManager@6<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.lifecycle]
Deactivating DBStore@5<br>
app thread - org.eclipse.emf.cdo.server.app.0 [debug.sql] UPDATE
cdo_repository SET stopped=1190893510500, next_cdoid=2, next_metaid=1<br>
<font color="#000099"><b>apps<br>
org.eclipse.emf.cdo.server.app [launchable]<br>
<br>
osgi&gt; startApp org.eclipse.emf.cdo.server.app</b></font><br>
Launched application instance: org.eclipse.emf.cdo.server.app.1<br>
<br>
osgi&gt; app thread - org.eclipse.emf.cdo.server.app.1 [debug.om]
Starting application org.eclipse.emf.cdo.server.app<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug] Configuring
repositories from
C:\ws\cdo\org.eclipse.emf.cdo.server-feature\rootfiles\net4j -config\cdo-server.xml <br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.repository]
Configuring repositories from
C:\ws\cdo\org.eclipse.emf.cdo.server-feature\rootfiles\net4j -config\cdo-server.xml <br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.repository]
Configuring repository repo1 (type=default)<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.model] Created
CDOPackage(URI=<a class="moz-txt-link-freetext" href="http://www.eclipse.org/emf/CDO/core/1.0.0">http://www.eclipse.org/emf/CDO/core/1.0.0</a>, name=cdocore,
dynamic=false, metaIDRange=null)<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.model] Created
CDOClass(ID=0, name=CDOObject)<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.model] Adding
class: CDOClass(ID=0, name=CDOObject)<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.model] Added
package: CDOPackage(URI=<a class="moz-txt-link-freetext" href="http://www.eclipse.org/emf/CDO/core/1.0.0">http://www.eclipse.org/emf/CDO/core/1.0.0</a>,
name=cdocore, dynamic=false, metaIDRange=null)<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.model] Created
CDOPackage(URI=<a class="moz-txt-link-freetext" href="http://www.eclipse.org/emf/CDO/resource/1.0.0">http://www.eclipse.org/emf/CDO/resource/1.0.0</a>,
name=cdoresource, dynamic=false, metaIDRange=null)<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.model] Created
CDOClass(ID=0, name=CDOResource)<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.model] Created
CDOFeature(ID=8, name=path, type=STRING)<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.model] Adding
feature: CDOFeature(ID=8, name=path, type=STRING)<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.model] Created
CDOFeature(ID=2, name=contents, type=OBJECT)<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.model] Adding
feature: CDOFeature(ID=2, name=contents, type=OBJECT)<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.model] Adding
class: CDOClass(ID=0, name=CDOResource)<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.model] Added
package: CDOPackage(URI=<a class="moz-txt-link-freetext" href="http://www.eclipse.org/emf/CDO/resource/1.0.0">http://www.eclipse.org/emf/CDO/resource/1.0.0</a>,
name=cdoresource, dynamic=false, metaIDRange=null)<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.lifecycle]
Activating Repository[repo1, null]<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.lifecycle.dump]
DUMP Repository@11<br>
&nbsp;name = repo1<br>
&nbsp;store = DBStore@12<br>
&nbsp;uuid = null<br>
&nbsp;properties = <br>
&nbsp;&nbsp;&nbsp; rememberingKnownTypes=false<br>
&nbsp;&nbsp;&nbsp; supportingAudits=true<br>
&nbsp;&nbsp;&nbsp; verifyingRevisions=false<br>
&nbsp;&nbsp;&nbsp; overrideUUID=1ff5d226-b1f0-40fb-aba2-0c31b38c764f<br>
&nbsp;supportingAudits = true<br>
&nbsp;verifyingRevisions = null<br>
&nbsp;rememberingKnownTypes = null<br>
&nbsp;typeManager = TypeManager@13<br>
&nbsp;packageManager = PackageManager@14<br>
&nbsp;sessionManager = SessionManager@15<br>
&nbsp;resourceManager = ResourceManager@16<br>
&nbsp;revisionManager = RevisionManager@17<br>
&nbsp;elements = [Lorg.eclipse.emf.cdo.server.IRepositoryElement;@1e808ca<br >
&nbsp;nextMetaIDValue = 1<br>
<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.lifecycle]
Activating DBStore@12<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.lifecycle.dump]
DUMP DBStore@12<br>
&nbsp;Store.type = db<br>
&nbsp;Store.repository = Repository[repo1, null]<br>
&nbsp;Store.nextOIDValue = 2<br>
&nbsp;mappingStrategy = horizontal<br>
&nbsp;dbAdapter = derby-10.2.2.0<br>
&nbsp;connectionProvider = org.apache.derby.jdbc.ClientDataSource@992bae<br>
&nbsp;schema = null<br>
&nbsp;nextPackageID = 0<br>
&nbsp;nextClassID = 0<br>
&nbsp;nextFeatureID = 0<br>
<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.sql] CREATE TABLE
cdo_classes (id INTEGER, package INTEGER, classifier INTEGER, name
VARCHAR(255), abstract SMALLINT)<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.sql] -- Table/View
'CDO_CLASSES' ist bereits in Schema 'APP' vorhanden.<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.sql] CREATE TABLE
cdo_supertypes (type_id INTEGER, supertype_package VARCHAR(255),
supertype_classifier INTEGER)<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.sql] -- Table/View
'CDO_SUPERTYPES' ist bereits in Schema 'APP' vorhanden.<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.sql] CREATE TABLE
cdo_features (id INTEGER, class INTEGER, feature INTEGER, name
VARCHAR(255), type INTEGER, reference_package VARCHAR(255),
reference_classifier INTEGER, many SMALLINT, containment SMALLINT, idx
INTEGER)<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.sql] -- Table/View
'CDO_FEATURES' ist bereits in Schema 'APP' vorhanden.<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.sql] CREATE TABLE
cdo_repository (name VARCHAR(255), uuid VARCHAR(64), starts BIGINT,
started BIGINT, stopped BIGINT, next_cdoid BIGINT, next_metaid BIGINT)<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.sql] -- Table/View
'CDO_REPOSITORY' ist bereits in Schema 'APP' vorhanden.<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.sql] CREATE TABLE
cdo_packages (id INTEGER, uri VARCHAR(255), name VARCHAR(255), ecore
LONG VARCHAR, dynamic SMALLINT, range_lb BIGINT, range_ub BIGINT)<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.sql] -- Table/View
'CDO_PACKAGES' ist bereits in Schema 'APP' vorhanden.<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.sql] SELECT
MAX(next_cdoid) FROM cdo_repository<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.sql] SELECT
MAX(next_metaid) FROM cdo_repository<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.sql] UPDATE
cdo_repository SET starts=starts+1, started=1190893530813, stopped=0,
next_cdoid=0, next_metaid=0<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.sql] SELECT
MAX(id) FROM cdo_packages<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.sql] SELECT
MAX(id) FROM cdo_classes<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.sql] SELECT
MAX(id) FROM cdo_features<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.lifecycle]
Activating TypeManager@13<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.lifecycle.dump]
DUMP TypeManager@13<br>
&nbsp;Worker.daemon = false<br>
&nbsp;Worker.activationTimeout = 2000<br>
&nbsp;Worker.deactivationTimeout = 2000<br>
&nbsp;Worker.activationLatch = null<br>
&nbsp;Worker.workerThread = null<br>
&nbsp;QueueWorker.queue = null<br>
&nbsp;QueueWorker.pollMillis = 100<br>
&nbsp;repository = Repository[repo1, null]<br>
&nbsp;persistent = true<br>
&nbsp;objectTypes = <br>
&nbsp;packageURIMap = null<br>
&nbsp;packageIDMap = null<br>
&nbsp;objectTypeMap = null<br>
&nbsp;metaObjectTypeMap = null<br>
&nbsp;nextPackageID = 0<br>
<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.types] Repository
state location:
C:\ws\cdo.server\.metadata\.plugins\org.eclipse.emf.cdo.serv er\1ff5d226-b1f0-40fb-aba2-0c31b38c764f <br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.lifecycle]
Activating PackageManager@14<br>
app thread - org.eclipse.emf.cdo.server.app.1 [debug.lifecycle.dump]
DUMP PackageManager@14<br>
&nbsp;CDOPackageManagerImpl.packages = <br>
&nbsp;&nbsp;&nbsp;
<a class="moz-txt-link-freetext" href="http://www.eclipse.org/emf/CDO/core/1.0.0=CDOPackage(URI=http://www.eclipse.org/emf/CDO/core/1.0.0">http://www.eclipse.org/emf/CDO/core/1.0.0=CDOPackage(URI=http://www.eclipse.org/emf/CDO/core/1.0.0</a>,
name=cdocore, dynamic=false, metaIDRange=null)<br>
&nbsp;&nbsp;&nbsp;
<a class="moz-txt-link-freetext" href="

Report message to a moderator

Re: Can't start application with Eclipse 3.3 [message #98638 is a reply to message #98467] Fri, 28 September 2007 17:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stepper.sympedia.de

This is a multi-part message in MIME format.
--------------070709080703080806060403
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi Alex,

[stuff deleted]
> How are you launching it from Eclipse? Are you choosing 'run an application' or 'run a product'? I don't think it's possible to start up a product *and* run an application, if that's what you're trying to do.
>
My **application** is running correctly now when I use a launch config
from my IDE.

Then I thought it'd be nice to provide a **product** as well.
I'm not sure if this is the correct newgroup for products but it does
not work.

This is my markup:

<extension
point="org.eclipse.core.runtime.applications"
id="app"
name="CDO Server">
<application cardinality="1" thread="any">
<run
class=" org.eclipse.emf.cdo.internal.server.bundle.CDOServerApplicat ion "/>
</application>
</extension>

<extension
point="org.eclipse.core.runtime.products">
id="product"
<product
name="CDO Server"
description="An example of a CDO server"
application="org.eclipse.emf.cdo.server.app">
<property
name="appName"
value="CDO Server">
</property>
</product>
</extension>

This is my product definition:

<?xml version="1.0" encoding="UTF-8"?>
<?pde version="3.1"?>

<product name="CDO Server" id="org.eclipse.emf.cdo.server.product"
application="org.eclipse.emf.cdo.server.app" useFeatures="false">

<configIni use="default"/>

<launcherArgs>
<programArgs>-console
-debug
-noExit</programArgs>
<vmArgs>-Dnet4j.config=cdo-config</vmArgs>
<vmArgsMac>-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts</vmArgsMac>
</launcherArgs>

<launcher name="cdo-server.exe">
<solaris/>
<win useIco="false">
<bmp/>
</win>
</launcher>

<vm>
</vm>

<plugins>
<plugin id="org.eclipse.core.contenttype"/>
<plugin id="org.eclipse.core.jobs"/>
<plugin id="org.eclipse.core.runtime"/>
<plugin id="org.eclipse.core.runtime.compatibility.auth"/>
<plugin id="org.eclipse.core.runtime.compatibility.registry"
fragment="true"/>
<plugin id="org.eclipse.emf.cdo.protocol"/>
<plugin id="org.eclipse.emf.cdo.server"/>
<plugin id="org.eclipse.emf.cdo.server.db"/>
<plugin id="org.eclipse.equinox.app"/>
<plugin id="org.eclipse.equinox.common"/>
<plugin id="org.eclipse.equinox.preferences"/>
<plugin id="org.eclipse.equinox.registry"/>
<plugin id="org.eclipse.net4j"/>
<plugin id="org.eclipse.net4j.db"/>
<plugin id="org.eclipse.net4j.db.derby" fragment="true"/>
<plugin id="org.eclipse.net4j.tcp"/>
<plugin id="org.eclipse.net4j.util"/>
<plugin id="org.eclipse.osgi"/>
<plugin id="org.eclipse.osgi.services"/>
<plugin id="org.eclipse.osgi.util"/>
<plugin id="org.eclipse.update.configurator"/>
</plugins>

</product>

The product can be exported to a zip successfully but when I start the
executable, the log shows:

!SESSION 2007-09-28 18:50:19.906
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_02
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Command-line arguments: -os win32 -ws win32 -arch x86 -console -debug

!ENTRY org.eclipse.equinox.app 2007-09-28 18:50:21.156
!MESSAGE Product org.eclipse.emf.cdo.server.product could not be found.

!ENTRY org.eclipse.osgi 4 0 2007-09-28 18:50:21.156
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: No application id has been found.
at
org.eclipse.equinox.internal.app.EclipseAppContainer.startDe faultApp(EclipseAppContainer.java:229)
at
org.eclipse.equinox.internal.app.EclipseAppContainer.start(E clipseAppContainer.java:92)
at
org.eclipse.equinox.internal.app.Activator.addingService(Act ivator.java:129)
at
org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(Ser viceTracker.java:1064)
at
org.osgi.util.tracker.ServiceTracker$Tracked.track(ServiceTr acker.java:1042)
at
org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged( ServiceTracker.java:967)
at
org.eclipse.osgi.framework.internal.core.FilteredServiceList ener.serviceChanged(FilteredServiceListener.java:94)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.d ispatchEvent(BundleContextImpl.java:1224)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:195)
at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEv entSynchronous(ListenerQueue.java:141)
at
org.eclipse.osgi.framework.internal.core.Framework.publishSe rviceEventPrivileged(Framework.java:1603)
at
org.eclipse.osgi.framework.internal.core.Framework.publishSe rviceEvent(Framework.java:1578)
at
org.eclipse.osgi.framework.internal.core.ServiceRegistration Impl. <init>(ServiceRegistrationImpl.java:103)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.c reateServiceRegistration(BundleContextImpl.java:657)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.r egisterService(BundleContextImpl.java:609)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.r egisterService(BundleContextImpl.java:675)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:359)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)

Have I missed anything abvious?

Cheers
/Eike




--------------070709080703080806060403
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Alex,<br>
<br>
[stuff deleted]<br>
<blockquote
cite="mid:520968436.55811190889459955.JavaMail.root@cp9.dzone.com"
type="cite">
<pre wrap="">
How are you launching it from Eclipse? Are you choosing 'run an application' or 'run a product'? I don't think it's possible to start up a product *and* run an application, if that's what you're trying to do.
</pre>
</blockquote>
My *<b>application</b>* is running correctly now when I use a launch
config from my IDE.<br>
<br>
Then I thought it'd be nice to provide a *<b>product</b>* as well. <br>
I'm not sure if this is the correct newgroup for products but it does
not work.<br>
<br>
This is my markup:<br>
<br>
&nbsp;&nbsp;&nbsp; &lt;extension<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; point="org.eclipse.core.runtime.applications"<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; id="app"<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; name="CDO Server"&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;application cardinality="1" thread="any"&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;run
class=" org.eclipse.emf.cdo.internal.server.bundle.CDOServerApplicat ion "/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/application&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp; &lt;extension<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; point="org.eclipse.core.runtime.products"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; id="product"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;product<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name="CDO Server"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; description="An example of a CDO server"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; application="org.eclipse.emf.cdo.server.app"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;property<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; name="appName"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; value="CDO Server"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;/property&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/product&gt;<br>
&nbsp;&nbsp; &lt;/extension&gt;<br>
<br>
This is my product definition:<br>
<br>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br>
&lt;?pde version="3.1"?&gt;<br>
<br>
&lt;product name="CDO Server" id="org.eclipse.emf.cdo.server.product"
application="org.eclipse.emf.cdo.server.app" useFeatures="false"&gt;<br>
<br>
&nbsp;&nbsp; &lt;configIni use="default"/&gt;<br>
<br>
&nbsp;&nbsp; &lt;launcherArgs&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;programArgs&gt;-console<br>
-debug<br>
-noExit&lt;/programArgs&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;vmArgs&gt;-Dnet4j.config=cdo-config&lt;/vmAr gs&gt; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;vmArgsMac&gt;-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts&lt;/vmArgsM ac&gt; <br>
&nbsp;&nbsp; &lt;/launcherArgs&gt;<br>
<br>
&nbsp;&nbsp; &lt;launcher name="cdo-server.exe"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;solaris/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;win useIco="false"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;bmp/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/win&gt;<br>
&nbsp;&nbsp; &lt;/launcher&gt;<br>
<br>
&nbsp;&nbsp; &lt;vm&gt;<br>
&nbsp;&nbsp; &lt;/vm&gt;<br>
<br>
&nbsp;&nbsp; &lt;plugins&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;plugin id="org.eclipse.core.contenttype"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;plugin id="org.eclipse.core.jobs"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;plugin id="org.eclipse.core.runtime"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;plugin id="org.eclipse.core.runtime.compatibility.auth"/&gt;<br >
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;plugin id="org.eclipse.core.runtime.compatibility.registry"
fragment="true"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;plugin id="org.eclipse.emf.cdo.protocol"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;plugin id="org.eclipse.emf.cdo.server"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;plugin id="org.eclipse.emf.cdo.server.db"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;plugin id="org.eclipse.equinox.app"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;plugin id="org.eclipse.equinox.common"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;plugin id="org.eclipse.equinox.preferences"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;plugin id="org.eclipse.equinox.registry"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;plugin id="org.eclipse.net4j"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;plugin id="org.eclipse.net4j.db"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;plugin id="org.eclipse.net4j.db.derby" fragment="true"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;plugin id="org.eclipse.net4j.tcp"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;plugin id="org.eclipse.net4j.util"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;plugin id="org.eclipse.osgi"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;plugin id="org.eclipse.osgi.services"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;plugin id="org.eclipse.osgi.util"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;plugin id="org.eclipse.update.configurator"/&gt;<br>
&nbsp;&nbsp; &lt;/plugins&gt;<br>
<br>
&lt;/product&gt;<br>
<br>
The product can be exported to a zip successfully but when I start the
executable, the log shows:<br>
<br>
!SESSION 2007-09-28 18:50:19.906
-----------------------------------------------<br>
eclipse.buildId=unknown<br>
java.version=1.6.0_02<br>
java.vendor=Sun Microsystems Inc.<br>
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE<br>
Command-line arguments:&nbsp; -os win32 -ws win32 -arch x86 -console -debug<br>
<br>
!ENTRY org.eclipse.equinox.app 2007-09-28 18:50:21.156<br>
!MESSAGE Product org.eclipse.emf.cdo.server.product could not be found.<br>
<br>
!ENTRY org.eclipse.osgi 4 0 2007-09-28 18:50:21.156<br>
!MESSAGE Application error<br>
!STACK 1<br>
java.lang.RuntimeException: No application id has been found.<br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.equinox.internal.app.EclipseAppContainer.startDe faultApp(EclipseAppContainer.java:229) <br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.equinox.internal.app.EclipseAppContainer.start(E clipseAppContainer.java:92) <br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.equinox.internal.app.Activator.addingService(Act ivator.java:129) <br>
&nbsp;&nbsp;&nbsp; at
org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(Ser viceTracker.java:1064) <br>
&nbsp;&nbsp;&nbsp; at
org.osgi.util.tracker.ServiceTracker$Tracked.track(ServiceTr acker.java:1042) <br>
&nbsp;&nbsp;&nbsp; at
org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged( ServiceTracker.java:967) <br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.osgi.framework.internal.core.FilteredServiceList ener.serviceChanged(FilteredServiceListener.java:94) <br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.d ispatchEvent(BundleContextImpl.java:1224) <br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:195) <br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEv entSynchronous(ListenerQueue.java:141) <br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.osgi.framework.internal.core.Framework.publishSe rviceEventPrivileged(Framework.java:1603) <br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.osgi.framework.internal.core.Framework.publishSe rviceEvent(Framework.java:1578) <br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.osgi.framework.internal.core.ServiceRegistration Impl.&lt;init&gt;(ServiceRegistrationImpl.java:103) <br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.c reateServiceRegistration(BundleContextImpl.java:657) <br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.r egisterService(BundleContextImpl.java:609) <br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.r egisterService(BundleContextImpl.java:675) <br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:359) <br>
&nbsp;&nbsp;&nbsp; at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176) <br>
&nbsp;&nbsp;&nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
&nbsp;&nbsp;&nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)<br>
&nbsp;&nbsp;&nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)<br>
&nbsp;&nbsp;&nbsp; at java.lang.reflect.Method.invoke(Unknown Source)<br>
&nbsp;&nbsp;&nbsp; at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 504) <br>
&nbsp;&nbsp;&nbsp; at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)<br >
&nbsp;&nbsp;&nbsp; at org.eclipse.equinox.launcher.Main.run(Main.java:1169)<br>
<br>
Have I missed anything abvious?<br>
<br>
Cheers<br>
/Eike<br>
<br>
<br>
<br>
</body>
</html>

--------------070709080703080806060403--
Re: Can't start application with Eclipse 3.3 [message #98699 is a reply to message #98506] Fri, 28 September 2007 17:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alex_blewitt.yahoo.com

If your app is on the 'main' thread, you don't need -noExit. If it's on the 'any' thread (required in 3.3.0 to launch via the console) then it will automatically close.

Alex.
Re: Can't start application with Eclipse 3.3 (SOLVED) [message #98713 is a reply to message #98638] Fri, 28 September 2007 18:02 Go to previous message
Eclipse UserFriend
Originally posted by: stepper.sympedia.de

I changed the product definition from plugin-based to feature-based and,
all of a sudden, it works ;-)

Thx
/Eike


Eike Stepper schrieb:
> Hi Alex,
>
> [stuff deleted]
>> How are you launching it from Eclipse? Are you choosing 'run an application' or 'run a product'? I don't think it's possible to start up a product *and* run an application, if that's what you're trying to do.
>>
> My **application** is running correctly now when I use a launch config
> from my IDE.
>
> Then I thought it'd be nice to provide a **product** as well.
> I'm not sure if this is the correct newgroup for products but it does
> not work.
>
> This is my markup:
>
> <extension
> point="org.eclipse.core.runtime.applications"
> id="app"
> name="CDO Server">
> <application cardinality="1" thread="any">
> <run
> class=" org.eclipse.emf.cdo.internal.server.bundle.CDOServerApplicat ion "/>
> </application>
> </extension>
>
> <extension
> point="org.eclipse.core.runtime.products">
> id="product"
> <product
> name="CDO Server"
> description="An example of a CDO server"
> application="org.eclipse.emf.cdo.server.app">
> <property
> name="appName"
> value="CDO Server">
> </property>
> </product>
> </extension>
>
> This is my product definition:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <?pde version="3.1"?>
>
> <product name="CDO Server" id="org.eclipse.emf.cdo.server.product"
> application="org.eclipse.emf.cdo.server.app" useFeatures="false">
>
> <configIni use="default"/>
>
> <launcherArgs>
> <programArgs>-console
> -debug
> -noExit</programArgs>
> <vmArgs>-Dnet4j.config=cdo-config</vmArgs>
> <vmArgsMac>-XstartOnFirstThread
> -Dorg.eclipse.swt.internal.carbon.smallFonts</vmArgsMac>
> </launcherArgs>
>
> <launcher name="cdo-server.exe">
> <solaris/>
> <win useIco="false">
> <bmp/>
> </win>
> </launcher>
>
> <vm>
> </vm>
>
> <plugins>
> <plugin id="org.eclipse.core.contenttype"/>
> <plugin id="org.eclipse.core.jobs"/>
> <plugin id="org.eclipse.core.runtime"/>
> <plugin id="org.eclipse.core.runtime.compatibility.auth"/>
> <plugin id="org.eclipse.core.runtime.compatibility.registry"
> fragment="true"/>
> <plugin id="org.eclipse.emf.cdo.protocol"/>
> <plugin id="org.eclipse.emf.cdo.server"/>
> <plugin id="org.eclipse.emf.cdo.server.db"/>
> <plugin id="org.eclipse.equinox.app"/>
> <plugin id="org.eclipse.equinox.common"/>
> <plugin id="org.eclipse.equinox.preferences"/>
> <plugin id="org.eclipse.equinox.registry"/>
> <plugin id="org.eclipse.net4j"/>
> <plugin id="org.eclipse.net4j.db"/>
> <plugin id="org.eclipse.net4j.db.derby" fragment="true"/>
> <plugin id="org.eclipse.net4j.tcp"/>
> <plugin id="org.eclipse.net4j.util"/>
> <plugin id="org.eclipse.osgi"/>
> <plugin id="org.eclipse.osgi.services"/>
> <plugin id="org.eclipse.osgi.util"/>
> <plugin id="org.eclipse.update.configurator"/>
> </plugins>
>
> </product>
>
> The product can be exported to a zip successfully but when I start the
> executable, the log shows:
>
> !SESSION 2007-09-28 18:50:19.906
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.6.0_02
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
> Command-line arguments: -os win32 -ws win32 -arch x86 -console -debug
>
> !ENTRY org.eclipse.equinox.app 2007-09-28 18:50:21.156
> !MESSAGE Product org.eclipse.emf.cdo.server.product could not be found.
>
> !ENTRY org.eclipse.osgi 4 0 2007-09-28 18:50:21.156
> !MESSAGE Application error
> !STACK 1
> java.lang.RuntimeException: No application id has been found.
> at
> org.eclipse.equinox.internal.app.EclipseAppContainer.startDe faultApp(EclipseAppContainer.java:229)
> at
> org.eclipse.equinox.internal.app.EclipseAppContainer.start(E clipseAppContainer.java:92)
> at
> org.eclipse.equinox.internal.app.Activator.addingService(Act ivator.java:129)
> at
> org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(Ser viceTracker.java:1064)
> at
> org.osgi.util.tracker.ServiceTracker$Tracked.track(ServiceTr acker.java:1042)
> at
> org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged( ServiceTracker.java:967)
> at
> org.eclipse.osgi.framework.internal.core.FilteredServiceList ener.serviceChanged(FilteredServiceListener.java:94)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.d ispatchEvent(BundleContextImpl.java:1224)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:195)
> at
> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEv entSynchronous(ListenerQueue.java:141)
> at
> org.eclipse.osgi.framework.internal.core.Framework.publishSe rviceEventPrivileged(Framework.java:1603)
> at
> org.eclipse.osgi.framework.internal.core.Framework.publishSe rviceEvent(Framework.java:1578)
> at
> org.eclipse.osgi.framework.internal.core.ServiceRegistration Impl. <init>(ServiceRegistrationImpl.java:103)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.c reateServiceRegistration(BundleContextImpl.java:657)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.r egisterService(BundleContextImpl.java:609)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.r egisterService(BundleContextImpl.java:675)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:359)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 504)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
>
> Have I missed anything abvious?
>
> Cheers
> /Eike
>
>
>
Previous Topic:Can a dependent bundle trigger activation of a bundle it depends on?
Next Topic:Error log file missing
Goto Forum:
  


Current Time: Tue Apr 23 14:36:02 GMT 2024

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

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

Back to the top