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 |
Eclipse User |
|
|
|
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 #98380 is a reply to message #98365] |
Thu, 27 September 2007 07:06 |
Eclipse User |
|
|
|
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} -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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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>
public Object start(Object defaultContext) throws Exception {<br>
// here we assume that launch has been called by runtime before
we started<br>
// 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>
if (failOnNoDefault && runnable == null)<br>
throw new
IllegalStateException(EclipseAdaptorMsg.ECLIPSE_STARTUP_ERRO R_NO_APPLICATION); <br>
....<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> ss<br>
<br>
Framework is launched.<br>
<br>
id State & nbsp; Bundle<br>
0 ACTIVE org.eclipse.osgi_3.3.0.v20070530<br>
1 ACTIVE org.eclipse.equinox.common_3.3.0.v20070426<br>
2 ACTIVE org.eclipse.update.configurator_3.2.100.v20070615<br>
3 ACTIVE org.eclipse.core.runtime_3.3.100.v20070530<br>
4 RESOLVED javax.servlet_2.4.0.v200706111738<br>
5 <<LAZY>> & ;nbsp;
org.eclipse.core.contenttype_3.2.100.v20070319<br>
6 ACTIVE org.eclipse.core.jobs_3.3.0.v20070423<br>
8 ACTIVE
org.eclipse.core.runtime.compatibility.auth_3.2.100.v2007050 2 <br>
9 RESOLVED
org.eclipse.core.runtime.compatibility.registry_3.2.100.v200 70316 <br>
Master=13<br>
10 ACTIVE org.eclipse.equinox.app_1.0.0.v20070606<br>
12 ACTIVE org.eclipse.equinox.preferences_3.2.100.v20070522<br>
13 ACTIVE org.eclipse.equinox.registry_3.3.0.v20070522<br>
Fragments=9<br>
15 RESOLVED org.eclipse.osgi.services_3.1.200.v20070605<br>
17 <<LAZY>> & ;nbsp;
org.eclipse.emf.cdo.protocol_0.8.0.qualifier<br>
18 <<LAZY>> & ;nbsp; org.eclipse.emf.cdo.server_0.8.0.qualifier<br>
19 <<LAZY>> & ;nbsp; org.eclipse.net4j_0.8.0.qualifier<br>
20 <<LAZY>> & ;nbsp; org.eclipse.net4j.util_0.8.0.qualifier<br>
<br>
osgi> apps<br>
org.eclipse.equinox.app.error [not launchable]<br>
org.eclipse.emf.cdo.server.app [launchable]<br>
<br>
osgi> activeApps<br>
No active applications found<br>
<br>
osgi> startApp org.eclipse.emf.cdo.server.app<br>
Launched application instance: org.eclipse.emf.cdo.server.app.0<br>
<br>
osgi> 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 |
Eclipse User |
|
|
|
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 #98506 is a reply to message #98482] |
Thu, 27 September 2007 11:56 |
Eclipse User |
|
|
|
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>
<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>
<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>
<a class="moz-txt-link-freetext" href="file:/C:/develop/eclipse/">file:/C:/develop/eclipse/ </a><br>
Framework located:<br>
<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>
<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>
<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> 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>
ManagedContainer.factoryRegistry = null<br>
ManagedContainer.postProcessors = null<br>
ManagedContainer.elementRegistry = <br>
ManagedContainer.maxElementID = 0<br>
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>
Registry.autoCommit = true<br>
Registry.transaction = null<br>
HashMapRegistry.map = <br>
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>
processors = <br>
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>
name = repo1<br>
store = DBStore@5<br>
uuid = null<br>
properties = <br>
rememberingKnownTypes=false<br>
supportingAudits=true<br>
verifyingRevisions=false<br>
overrideUUID=1ff5d226-b1f0-40fb-aba2-0c31b38c764f<br>
supportingAudits = true<br>
verifyingRevisions = null<br>
rememberingKnownTypes = null<br>
typeManager = TypeManager@6<br>
packageManager = PackageManager@7<br>
sessionManager = SessionManager@8<br>
resourceManager = ResourceManager@9<br>
revisionManager = RevisionManager@10<br>
elements = [Lorg.eclipse.emf.cdo.server.IRepositoryElement;@203c31<br>
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>
Store.type = db<br>
Store.repository = Repository[repo1, null]<br>
Store.nextOIDValue = 2<br>
mappingStrategy = horizontal<br>
dbAdapter = derby-10.2.2.0<br>
connectionProvider = org.apache.derby.jdbc.ClientDataSource@105bd58<br>
schema = null<br>
nextPackageID = 0<br>
nextClassID = 0<br>
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) --> -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>
Worker.daemon = false<br>
Worker.activationTimeout = 2000<br>
Worker.deactivationTimeout = 2000<br>
Worker.activationLatch = null<br>
Worker.workerThread = null<br>
QueueWorker.queue = null<br>
QueueWorker.pollMillis = 100<br>
repository = Repository[repo1, 1ff5d226-b1f0-40fb-aba2-0c31b38c764f]<br>
persistent = true<br>
objectTypes = <br>
packageURIMap = null<br>
packageIDMap = null<br>
objectTypeMap = null<br>
metaObjectTypeMap = null<br>
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>
CDOPackageManagerImpl.packages = <br>
<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>
<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>
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>
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>
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>
repository = Repository[repo1, 1ff5d226-b1f0-40fb-aba2-0c31b38c764f]<br>
sessions = <br>
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>
repository = Repository[repo1, 1ff5d226-b1f0-40fb-aba2-0c31b38c764f]<br>
idToPathMap = <br>
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>
CDORevisionResolverImpl.revisions = <br>
repository = Repository[repo1, 1ff5d226-b1f0-40fb-aba2-0c31b38c764f]<br>
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> 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> 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> startApp org.eclipse.emf.cdo.server.app</b></font><br>
Launched application instance: org.eclipse.emf.cdo.server.app.1<br>
<br>
osgi> 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>
name = repo1<br>
store = DBStore@12<br>
uuid = null<br>
properties = <br>
rememberingKnownTypes=false<br>
supportingAudits=true<br>
verifyingRevisions=false<br>
overrideUUID=1ff5d226-b1f0-40fb-aba2-0c31b38c764f<br>
supportingAudits = true<br>
verifyingRevisions = null<br>
rememberingKnownTypes = null<br>
typeManager = TypeManager@13<br>
packageManager = PackageManager@14<br>
sessionManager = SessionManager@15<br>
resourceManager = ResourceManager@16<br>
revisionManager = RevisionManager@17<br>
elements = [Lorg.eclipse.emf.cdo.server.IRepositoryElement;@1e808ca<br >
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>
Store.type = db<br>
Store.repository = Repository[repo1, null]<br>
Store.nextOIDValue = 2<br>
mappingStrategy = horizontal<br>
dbAdapter = derby-10.2.2.0<br>
connectionProvider = org.apache.derby.jdbc.ClientDataSource@992bae<br>
schema = null<br>
nextPackageID = 0<br>
nextClassID = 0<br>
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>
Worker.daemon = false<br>
Worker.activationTimeout = 2000<br>
Worker.deactivationTimeout = 2000<br>
Worker.activationLatch = null<br>
Worker.workerThread = null<br>
QueueWorker.queue = null<br>
QueueWorker.pollMillis = 100<br>
repository = Repository[repo1, null]<br>
persistent = true<br>
objectTypes = <br>
packageURIMap = null<br>
packageIDMap = null<br>
objectTypeMap = null<br>
metaObjectTypeMap = null<br>
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>
CDOPackageManagerImpl.packages = <br>
<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>
<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 |
Eclipse User |
|
|
|
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>
<extension<br>
point="org.eclipse.core.runtime.applications"<br>
id="app"<br>
name="CDO Server"><br>
<application cardinality="1" thread="any"><br>
<run
class=" org.eclipse.emf.cdo.internal.server.bundle.CDOServerApplicat ion "/><br>
</application><br>
</extension><br>
<br>
<extension<br>
point="org.eclipse.core.runtime.products"><br>
id="product"<br>
<product<br>
name="CDO Server"<br>
description="An example of a CDO server"<br>
application="org.eclipse.emf.cdo.server.app"><br>
<property<br>
name="appName"<br>
value="CDO Server"><br>
</property><br>
</product><br>
</extension><br>
<br>
This is my product definition:<br>
<br>
<?xml version="1.0" encoding="UTF-8"?><br>
<?pde version="3.1"?><br>
<br>
<product name="CDO Server" id="org.eclipse.emf.cdo.server.product"
application="org.eclipse.emf.cdo.server.app" useFeatures="false"><br>
<br>
<configIni use="default"/><br>
<br>
<launcherArgs><br>
<programArgs>-console<br>
-debug<br>
-noExit</programArgs><br>
<vmArgs>-Dnet4j.config=cdo-config</vmAr gs> <br>
<vmArgsMac>-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts</vmArgsM ac> <br>
</launcherArgs><br>
<br>
<launcher name="cdo-server.exe"><br>
<solaris/><br>
<win useIco="false"><br>
<bmp/><br>
</win><br>
</launcher><br>
<br>
<vm><br>
</vm><br>
<br>
<plugins><br>
<plugin id="org.eclipse.core.contenttype"/><br>
<plugin id="org.eclipse.core.jobs"/><br>
<plugin id="org.eclipse.core.runtime"/><br>
<plugin id="org.eclipse.core.runtime.compatibility.auth"/><br >
<plugin id="org.eclipse.core.runtime.compatibility.registry"
fragment="true"/><br>
<plugin id="org.eclipse.emf.cdo.protocol"/><br>
<plugin id="org.eclipse.emf.cdo.server"/><br>
<plugin id="org.eclipse.emf.cdo.server.db"/><br>
<plugin id="org.eclipse.equinox.app"/><br>
<plugin id="org.eclipse.equinox.common"/><br>
<plugin id="org.eclipse.equinox.preferences"/><br>
<plugin id="org.eclipse.equinox.registry"/><br>
<plugin id="org.eclipse.net4j"/><br>
<plugin id="org.eclipse.net4j.db"/><br>
<plugin id="org.eclipse.net4j.db.derby" fragment="true"/><br>
<plugin id="org.eclipse.net4j.tcp"/><br>
<plugin id="org.eclipse.net4j.util"/><br>
<plugin id="org.eclipse.osgi"/><br>
<plugin id="org.eclipse.osgi.services"/><br>
<plugin id="org.eclipse.osgi.util"/><br>
<plugin id="org.eclipse.update.configurator"/><br>
</plugins><br>
<br>
</product><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: -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>
at
org.eclipse.equinox.internal.app.EclipseAppContainer.startDe faultApp(EclipseAppContainer.java:229) <br>
at
org.eclipse.equinox.internal.app.EclipseAppContainer.start(E clipseAppContainer.java:92) <br>
at
org.eclipse.equinox.internal.app.Activator.addingService(Act ivator.java:129) <br>
at
org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(Ser viceTracker.java:1064) <br>
at
org.osgi.util.tracker.ServiceTracker$Tracked.track(ServiceTr acker.java:1042) <br>
at
org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged( ServiceTracker.java:967) <br>
at
org.eclipse.osgi.framework.internal.core.FilteredServiceList ener.serviceChanged(FilteredServiceListener.java:94) <br>
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.d ispatchEvent(BundleContextImpl.java:1224) <br>
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:195) <br>
at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEv entSynchronous(ListenerQueue.java:141) <br>
at
org.eclipse.osgi.framework.internal.core.Framework.publishSe rviceEventPrivileged(Framework.java:1603) <br>
at
org.eclipse.osgi.framework.internal.core.Framework.publishSe rviceEvent(Framework.java:1578) <br>
at
org.eclipse.osgi.framework.internal.core.ServiceRegistration Impl.<init>(ServiceRegistrationImpl.java:103) <br>
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.c reateServiceRegistration(BundleContextImpl.java:657) <br>
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.r egisterService(BundleContextImpl.java:609) <br>
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.r egisterService(BundleContextImpl.java:675) <br>
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:359) <br>
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176) <br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)<br>
at java.lang.reflect.Method.invoke(Unknown Source)<br>
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 504) <br>
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)<br >
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 (SOLVED) [message #98713 is a reply to message #98638] |
Fri, 28 September 2007 18:02 |
Eclipse User |
|
|
|
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
>
>
>
|
|
|
Goto Forum:
Current Time: Tue Apr 23 14:36:02 GMT 2024
Powered by FUDForum. Page generated in 0.04959 seconds
|