Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Clean doesn't work as expected(running startup -clean still give the old index for new bundles)
Clean doesn't work as expected [message #900458] Tue, 07 August 2012 07:54 Go to next message
Chen Fliesher is currently offline Chen FliesherFriend
Messages: 8
Registered: July 2012
Junior Member
I am trying to clean Virgo 3.5 on Tomcat and it appears it doesn't do a full clean.

The clean does remove serviceablity and work directory. However, the indication that clean doesn't work is for 2 reasons:

1. The index of bundles after start up is 0,38,63... 160
2. On OSGI console use of packages brings bundles with unrelevant index, see below.



org.osgi.util.tracker; version="1.5.1"<org.eclipse.osgi_3.8.0.v20120508-2119 [0]>
  org.eclipse.equinox.simpleconfigurator_1.0.300.v20110815-1744 [1] imports
  org.apache.felix.gogo.command_0.8.0.v201108120515 [9] imports
  org.apache.felix.gogo.runtime_0.8.0.v201108120515 [10] imports
  org.apache.felix.gogo.shell_0.8.0.v201110170705 [11] imports
  org.eclipse.equinox.cm_1.0.400.v20120319-2029 [14] imports
  org.eclipse.equinox.common_3.6.100.v20120509-1351 [15] imports
  org.eclipse.equinox.console_1.0.0.v20120511-0559 [16] imports
  org.eclipse.equinox.console.ssh_1.0.0.v20120430-1356 [17] imports
  org.eclipse.equinox.ds_1.4.0.v20120112-1400 [18] imports
  org.eclipse.equinox.event_1.2.100.v20111010-1614 [19] imports
  org.eclipse.equinox.region_1.1.0.v20120319-1602 [20] imports
  org.eclipse.equinox.util_1.0.300.v20111010-1614 [21] imports


osgi> ss
"Framework is launched."


id      State       Bundle
0       ACTIVE      org.eclipse.osgi_3.8.0.v20120508-2119
38      ACTIVE      org.eclipse.virgo.kernel.userregionfactory_3.5.0.RELEASE
63      ACTIVE      org.eclipse.equinox.cm_1.0.400.v20120319-2029
64      ACTIVE      org.eclipse.virgo.kernel.userregion_3.5.0.RELEASE
65      ACTIVE      org.eclipse.virgo.kernel.osgicommand_3.5.0.RELEASE
66      ACTIVE      org.eclipse.osgi.services_3.3.0.v20120307-2102
67      RESOLVED    osgi.enterprise_4.2.0.v201108120515
68      ACTIVE      org.eclipse.gemini.management_1.0.2.RELEASE
                    Fragments=69
69      RESOLVED    org.eclipse.virgo.management.fragment_3.5.0.RELEASE
                    Master=68
70      ACTIVE      org.apache.mina.core_2.0.2.v201108120515
71      ACTIVE      org.apache.felix.gogo.command_0.8.0.v201108120515
72      ACTIVE      org.apache.felix.gogo.runtime_0.8.0.v201108120515
73      ACTIVE      org.apache.felix.gogo.shell_0.8.0.v201110170705



Any idea, how to clean virgo otherwise ?
Re: Clean doesn't work as expected [message #900472 is a reply to message #900458] Tue, 07 August 2012 08:44 Go to previous messageGo to next message
Borislav Kapukaranov is currently offline Borislav KapukaranovFriend
Messages: 80
Registered: September 2010
Member
Hi,

Actually the clean does work. The behaviour you're observing is because you are using the console in the user region.
There visibility rules are applied over the framework so that you can only list the bundles located in the user region.
The fact that the "packages" command leaks bundles from the kernel region is another matter and might be a bug in the region implementation that allows the user region console bundle to "see" kernel bundles.

Re: Clean doesn't work as expected [message #900545 is a reply to message #900458] Tue, 07 August 2012 13:19 Go to previous messageGo to next message
Chen Fliesher is currently offline Chen FliesherFriend
Messages: 8
Registered: July 2012
Junior Member
My bad,
There are 2 OSGI instances, Kernel & User Region. The above is the Use Region.
Re: Clean doesn't work as expected [message #900602 is a reply to message #900472] Tue, 07 August 2012 17:54 Go to previous message
Chen Fliesher is currently offline Chen FliesherFriend
Messages: 8
Registered: July 2012
Junior Member
Thanks Borislav,
I even corrected my findings half an hour before I recieved your message.
Thanks anyway.
Previous Topic:Bean factory post processors
Next Topic:Configure Virgo to identify Web Context correct path
Goto Forum:
  


Current Time: Wed Nov 26 15:44:34 GMT 2014

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

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