One final issue:
When dm starts up with slices, you can see a message for com.springsource.server.web plan - Install failed. Is that because slices pull in classes from com.springsource.server.web plan and bundles are started by the time com.springsource.server.web is processed?
I tried changing the order in com.springsource.kernel.properties, but the same message in the logs. Everything works, but just not pretty.
Code:
deployer.systemArtifacts= repository:plan/com.springsource.server.web,repository:plan/com.springsource.osgi.slices
and
Code:
deployer.systemArtifacts=repository:plan/com.springsource.osgi.slices, repository:plan/com.springsource.server.web
Code:
[2009-10-16 16:44:34.922] startup-tracker <KE0001I> Kernel starting.
[2009-10-16 16:44:40.965] startup-tracker <KE0002I> Kernel started.
[2009-10-16 16:44:41.542] Thread-2 <SH0001I> dm Kernel ssh shell available on port 2402.
[2009-10-16 16:44:41.774] system-artifacts <DE0056I> Installing plan 'com.springsource.osgi.slices' version '2.0.0'.
[2009-10-16 16:44:44.035] system-artifacts <TC0000I> Starting Tomcat.
[2009-10-16 16:44:44.124] system-artifacts <TC0001I> Creating HTTP/1.1 connector with scheme http on port 8080.
[2009-10-16 16:44:44.142] system-artifacts <TC0001I> Creating HTTP/1.1 connector with scheme https on port 8443.
[2009-10-16 16:44:44.151] system-artifacts <TC0001I> Creating AJP/1.3 connector with scheme http on port 8009.
[2009-10-16 16:44:44.389] system-artifacts <DE0057I> Installed bundle 'com.springsource.osgi.slices.api' version '1.0.0.BUILD-20091016165239'.
[2009-10-16 16:44:44.454] system-artifacts <DE0057I> Installed bundle 'com.springsource.osgi.slices.core' version '1.0.0.BUILD-20091016165239'.
[2009-10-16 16:44:44.475] system-artifacts <DE0057I> Installed plan 'com.springsource.osgi.slices' version '2.0.0'.
[2009-10-16 16:44:44.632] system-artifacts <DE0059I> Starting plan 'com.springsource.osgi.slices' version '2.0.0'.
[2009-10-16 16:44:44.645] system-artifacts <DE0059I> Starting bundle 'com.springsource.osgi.slices.api' version '1.0.0.BUILD-20091016165239'.
[2009-10-16 16:44:44.662] system-artifacts <DE0060I> Started bundle 'com.springsource.osgi.slices.api' version '1.0.0.BUILD-20091016165239'.
[2009-10-16 16:44:44.700] system-artifacts <DE0059I> Starting bundle 'com.springsource.osgi.slices.core' version '1.0.0.BUILD-20091016165239'.
[2009-10-16 16:44:44.870] Thread-3 <DE0060I> Started bundle 'com.springsource.osgi.slices.core' version '1.0.0.BUILD-20091016165239'.
[2009-10-16 16:44:44.882] Thread-3 <DE0060I> Started plan 'com.springsource.osgi.slices' version '2.0.0'.
[2009-10-16 16:44:45.021] system-artifacts <DE0056I> Installing plan 'com.springsource.server.web' version '2.0.0'.
[2009-10-16 16:44:45.394] system-artifacts <DE0058E> Install failed for plan 'com.springsource.server.web' version '2.0.0'.