Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Build Virgo Kernel 3.0.0.M05 testing with a bundle
Build Virgo Kernel 3.0.0.M05 testing with a bundle [message #677620] Thu, 09 June 2011 01:16 Go to next message
Ming Qin is currently offline Ming QinFriend
Messages: 22
Registered: July 2009
Junior Member
Virgo Team:
I dropped helloworld.jar( a spring-dm-tested bunlder) into C:\Tools\virgo-kernel-3.0.0.M05\pickup folder, then Virgo was fired up. The problem was missing "Hello World, I'm being created" in both virgo equinox console and virgo startup console.


I attached helloworld.jar with this message.
helloworld.jar contained one java class as shown in below.
package com.manning.sdmia;

public class HelloWorld {

  public HelloWorld() {
	System.out.println("Hello world, I'm being created!");
  }

}


From Virgo equinox console, there were a few missed bundles compared with bundles in Spring-dm console.



org.springframework.osgi.core_2.0.0.M1
org.springframework.osgi.extender_2.0.0.M1
org.springframework.osgi.io_2.0.0.M1
com.springsource.org.aopalliance_1.0.0
com.springsource.slf4j.api_1.5.6
com.springsource.slf4j.nop_1.5.6
com.springsource.slf4j.org.apache.commons.logging_1.5.6


Can your guys provide me a virgo version jar of hello world ?

Next two screenshots were generated with virgo kernel 3.0.0.M5 to deploy helloworld.jar

http://members.cox.net/jbuilder/virgo-2.jpg

http://members.cox.net/jbuilder/virgo-1.jpg

The following screen showed what messages were displayed in spring-dm .
http://members.cox.net/jbuilder/springdm.jpg
Re: Build Virgo Kernel 3.0.0.M05 testing with a bundle [message #677662 is a reply to message #677620] Thu, 09 June 2011 05:46 Go to previous messageGo to next message
Borislav Kapukaranov is currently offline Borislav KapukaranovFriend
Messages: 80
Registered: September 2010
Member
Hi,

If you check the log.log file in serviceability/logs you'll find that your System.out message is in there.
It should be something like: [2011-06-09 08:44:14.785] region-dm-11 System.out Hello world, I'm being created!


Best Regards
Borislav
Re: Build Virgo Kernel 3.0.0.M05 testing with a bundle [message #681743 is a reply to message #677662] Thu, 09 June 2011 18:35 Go to previous message
Ming Qin is currently offline Ming QinFriend
Messages: 22
Registered: July 2009
Junior Member
Borislav:
Thank you for explicit answer.

I added logback console appender at file ( C:\Tools\virgo-kernel-3.0.0.M05\config\serviceablity.xml), console showed messages created by System.out.println......
   ......
   ......
   <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
	    <!-- encoders are assigned the type
	         ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
	    <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
	                      <Pattern>[%d{yyyy-MM-dd HH:mm:ss.SSS}] %-28.28thread &lt;%X{medic.eventCode}&gt; %msg %ex%n</Pattern>
	    </encoder>
   </appender>

    .....
    .....
   <root level="INFO">
	        .....
                .....
		<appender-ref ref="STDOUT" />
   </root>






Following is console displaying:

[2011-06-09 11:32:52.472] OSGi Console <DE0010I> Stopping bundle 'com.manning.sdmia.helloworld' version '1.0.0'.
[2011-06-09 11:32:57.581] region-dm-4 <> Unpublishing application context OSGi service for bundle Spring DM Hello World (com.manning.
sdmia.helloworld)
[2011-06-09 11:32:57.582] region-dm-4 <> Closing OsgiBundleXmlApplicationContext(bundle=com.manning.sdmia.helloworld, config=osgibund
le:/META-INF/spring/*.xml): startup date [Thu Jun 09 11:23:46 PDT 2011]; root of context hierarchy
[2011-06-09 11:32:57.587] region-dm-4 <> Processing ContextClosedEvent 'org.springframework.context.event.ContextClosedEvent[source=O
sgiBundleXmlApplicationContext(bundle=com.manning.sdmia.helloworld, config=osgibundle:/META-INF/spring/*.xml): startup date [Thu Jun 09 11:23:46 PDT 2
011]; root of context hierarchy]'
[2011-06-09 11:32:57.589] region-dm-4 <> Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactor
y@17fe0dcb: defining beans [helloWorld]; root of factory hierarchy
[2011-06-09 11:32:57.591] region-dm-4 <> Sending event to topic 'org/osgi/service/blueprint/container/DESTROYED' with properties '{bu
ndle.version=1.0.0, bundle=com.manning.sdmia.helloworld_1.0.0 [59], bundle.symbolicName=com.manning.sdmia.helloworld, type=4, timestamp=1307644377590,
bundle.id=59}'
[2011-06-09 11:32:57.593] region-dm-4 <> Handling event 'org.osgi.service.event.Event [topic=org/osgi/service/blueprint/container/DES
TROYED]'
[2011-06-09 11:32:57.594] region-dm-4 <> Application context succesfully closed (OsgiBundleXmlApplicationContext(bundle=com.manning.s
dmia.helloworld, config=osgibundle:/META-INF/spring/*.xml))
[2011-06-09 11:32:57.598] OSGi Console <> Bundle 'com.manning.sdmia.helloworld_1.0.0 [59]' has stopped. Removing its related tracking
state.
[2011-06-09 11:32:57.600] OSGi Console <> No atomic parent of bundle 'com.manning.sdmia.helloworld' version '1.0.0' in scope 'null' to
propagate stopped event to
[2011-06-09 11:32:57.602] OSGi Console <DE0011I> Stopped bundle 'com.manning.sdmia.helloworld' version '1.0.0'.
[2011-06-09 11:32:57.617] OSGi Console <> No atomic parent of bundle 'com.manning.sdmia.helloworld' version '1.0.0' in scope 'null' to
propagate starting event to
[2011-06-09 11:32:57.618] OSGi Console <DE0004I> Starting bundle 'com.manning.sdmia.helloworld' version '1.0.0'.
[2011-06-09 11:32:57.621] OSGi Console <> Adding signal 'org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$St
ateMonitorSignal@3f3471d' for bundle 'com.manning.sdmia.helloworld_1.0.0 [59]'
[2011-06-09 11:32:57.623] OSGi Console <> Discovered configurations {osgibundle:/META-INF/spring/*.xml} in bundle [Spring DM Hello Wor
ld (com.manning.sdmia.helloworld)]
[2011-06-09 11:32:57.625] region-dm-5 <> Refreshing OsgiBundleXmlApplicationContext(bundle=com.manning.sdmia.helloworld, config=osgib
undle:/META-INF/spring/*.xml): startup date [Thu Jun 09 11:32:57 PDT 2011]; root of context hierarchy
[2011-06-09 11:32:57.626] region-dm-5 <> Application Context service already unpublished
[2011-06-09 11:32:57.629] region-dm-5 <> Loading XML bean definitions from URL [bundleentry://59.fwk597295774/META-INF/spring/hello-w
orld-context.xml]
[2011-06-09 11:32:57.643] region-dm-5 <> Load-time weaving not enabled for bundle 'com.manning.sdmia.helloworld_1.0.0 [59]',
[2011-06-09 11:32:57.644] region-dm-5 <> MBean exporting not enabled for bundle 'com.manning.sdmia.helloworld_1.0.0 [59]',
[2011-06-09 11:32:57.646] region-dm-5 <> No outstanding OSGi service dependencies, completing initialization for OsgiBundleXmlApplica
tionContext(bundle=com.manning.sdmia.helloworld, config=osgibundle:/META-INF/spring/*.xml)
[2011-06-09 11:32:57.648] region-dm-6 <> Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBea
nFactory@1b9f9088: defining beans [helloWorld]; root of factory hierarchy
[2011-06-09 11:32:57.650] region-dm-6 <> Hello world, I'm being created!
[2011-06-09 11:32:57.651] region-dm-6 <> Publishing application context as OSGi service with properties {org.springframework.context.
service.name=com.manning.sdmia.helloworld, Bundle-SymbolicName=com.manning.sdmia.helloworld, Bundle-Version=1.0.0}
[2011-06-09 11:32:57.653] region-dm-6 <> Sending event to topic 'org/osgi/service/blueprint/container/CREATED' with properties '{bund
le.version=1.0.0, bundle=com.manning.sdmia.helloworld_1.0.0 [59], bundle.symbolicName=com.manning.sdmia.helloworld, type=1, timestamp=1307644377652, b
undle.id=59}'
[2011-06-09 11:32:57.654] region-dm-6 <> Handling event 'org.osgi.service.event.Event [topic=org/osgi/service/blueprint/container/CRE
ATED]'
[2011-06-09 11:32:57.654] region-dm-6 <> Recording created application context for bundle 'com.manning.sdmia.helloworld_1.0.0 [59]'
[2011-06-09 11:32:57.655] region-dm-6 <> Application context successfully refreshed (OsgiBundleXmlApplicationContext(bundle=com.manni
ng.sdmia.helloworld, config=osgibundle:/META-INF/spring/*.xml))
[2011-06-09 11:32:57.655] start-signalling-3 <> Driving signal 'org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$S
tateMonitorSignal@3f3471d'
[2011-06-09 11:32:57.656] start-signalling-3 <> Thread context class loader 'BundleDelegatingClassLoader for [spring-osgi-extender (org.spri
ngframework.osgi.extender)]' pushed and set to 'KernelBundleClassLoader: [bundle=com.manning.sdmia.helloworld_1.0.0]'
[2011-06-09 11:32:57.658] start-signalling-3 <DE0005I> Started bundle 'com.manning.sdmia.helloworld' version '1.0.0'.
[2011-06-09 11:32:57.659] start-signalling-3 <> Thread context class loader 'KernelBundleClassLoader: [bundle=com.manning.sdmia.helloworld_1
.0.0]' popped and set to 'BundleDelegatingClassLoader for [spring-osgi-extender (org.springframework.osgi.extender)]'

Previous Topic:Problem registering service
Next Topic: Virgo Kernel 3.0.0.M05 is employing Spring DM extender version 1.2.1
Goto Forum:
  


Current Time: Tue Mar 19 11:30:44 GMT 2024

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

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

Back to the top