Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » [virgo kernel] ExtensionsHookConfigurator breaks resource loading in Pax Web/Felix Webconsole
[virgo kernel] ExtensionsHookConfigurator breaks resource loading in Pax Web/Felix Webconsole [message #641824] Sun, 28 November 2010 14:56 Go to next message
Peter  ardfj is currently offline Peter ardfjFriend
Messages: 19
Registered: July 2009
Junior Member
Hello,

I've been trying to get Apache Felix webconsole going in a bare Virgo kernel distribuion but I have been puzzled by that the appearance is not the same as when executed in a "naked" Equinox setup. More specifically, in the Virgo kernel the webconsole's stylesheets and javascripts don't seem to be handled correctly. Digging deeper, I found that it is the ExtensionsHookConfigurator that seems to be causing problems since when taken out of the equation the webconsole displays as it should.

How to reproduce?
First, you need to download the following bundle files and add them under lib/kernel
https://ebr.springsource.com/repository/app/bundle/version/d ownload?name=com.springsource.javax.servlet&version=2.5. 0&type=binary
http://repo2.maven.org/maven2/org/ops4j/pax/web/pax-web-jett y-bundle/0.8.1/pax-web-jetty-bundle-0.8.1.jar
http://apache.dataphone.se//felix/org.apache.felix.webconsol e-3.1.6.jar

Then make the following configuration changes:

First, add the bundles to the lib/org.eclipse.virgo.kernel.launch.properties file.

  file:lib/kernel/org.eclipse.virgo.kernel.deployer-2.1.0.RELEASE.jar@start,\
  file:lib/kernel/org.eclipse.virgo.kernel.model-2.1.0.RELEASE.jar@start,\
  file:lib/kernel/org.eclipse.virgo.kernel.kerneldmfragment-2.1.0.RELEASE.jar,\
- file:lib/kernel/org.eclipse.virgo.kernel.shell-2.1.0.RELEASE.jar@start
+ file:lib/kernel/org.eclipse.virgo.kernel.shell-2.1.0.RELEASE.jar@start,\
+  file:lib/kernel/com.springsource.javax.servlet-2.5.0.jar@start,\
+  file:lib/kernel/pax-web-jetty-bundle-0.8.1.jar@start,\
+  file:lib/kernel/org.apache.felix.webconsole-3.1.6.jar@start
 


Second, we turn off the user region for these tests.
In config/org.eclipse.virgo.kernel.userregion.properties comment out the following lines:

-baseBundles = \
- file:lib/kernel/org.eclipse.virgo.kernel.userregion-2.1.0.RELEASE.jar@start,\
- file:lib/kernel/org.eclipse.virgo.kernel.osgicommand-2.1.0.RELEASE.jar@start
+# baseBundles = \
+#  file:lib/kernel/org.eclipse.virgo.kernel.userregion-2.1.0.RELEASE.jar@start,\
+#  file:lib/kernel/org.eclipse.virgo.kernel.osgicommand-2.1.0.RELEASE.jar@start


Now, start Virgo via the startup script (NOTE: ExtensionsHookConfigurator is enabled) and go to http://localhost:8080/system/console.
Note that the page appearance is quite bleak.

Now, try the same thing with the ExtensionsHookConfigurator disbabled:
Comment out the following line in lib/org.eclipse.virgo.kernel.launch.properties and then restart Virgo.

-osgi.hook.configurators.include=org.eclipse.virgo.osgi.extensions.equinox.hooks.ExtensionsHookConfigurator
+#osgi.hook.configurators.include=org.eclipse.virgo.osgi.extensions.equinox.hooks.ExtensionsHookConfigurator


Now, the appearance of the webconsole page is a lot more sophisticated.
Is this a bug in the ExtensionsHookConfigurator?

[Updated on: Sun, 28 November 2010 15:33]

Report message to a moderator

Re: [virgo kernel] ExtensionsHookConfigurator breaks resource loading in Pax Web/Felix Webconsole [message #641927 is a reply to message #641824] Mon, 29 November 2010 09:41 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn NormingtonFriend
Messages: 1222
Registered: July 2009
Senior Member
Well, it's either a bug or a subtle interaction between Virgo's Equinox hooks and this particular application.

We'll need to carve out some time to delve into this. This week we have a Virgo F2F meeting and the week after we have some urgent work to do on the tooling, so this will have to go into the backlog.

On the assumption that there is a bug, please would you raise a bugzilla so we don't lose track of this. Thanks.
Re: [virgo kernel] ExtensionsHookConfigurator breaks resource loading in Pax Web/Felix Webconsole [message #642090 is a reply to message #641824] Mon, 29 November 2010 18:46 Go to previous messageGo to next message
Peter  ardfj is currently offline Peter ardfjFriend
Messages: 19
Registered: July 2009
Junior Member
Filed a bug:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=331370

best regards, Peter
Re: [virgo kernel] ExtensionsHookConfigurator breaks resource loading in Pax Web/Felix Webconsole [message #642921 is a reply to message #642090] Fri, 03 December 2010 10:44 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn NormingtonFriend
Messages: 1222
Registered: July 2009
Senior Member
Excellent. Thanks Peter.
Re: [virgo kernel] ExtensionsHookConfigurator breaks resource loading in Pax Web/Felix Webconsole [message #649704 is a reply to message #642090] Thu, 20 January 2011 11:48 Go to previous message
Chris Frost is currently offline Chris FrostFriend
Messages: 230
Registered: January 2010
Location: Southampton, England
Senior Member

Just for anyone that comes along looking for answers. I am looking in to this and documenting progressing the bug Peter raised.

------------------------------------------------
Chris Frost, Twitter @cgfrost
Springsource, a divison of VMware.
Previous Topic:File not found
Next Topic:Create a web bundle project, and deploy it within Eclipse
Goto Forum:
  


Current Time: Fri Dec 06 04:57:03 GMT 2024

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

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

Back to the top