[virgo kernel] ExtensionsHookConfigurator breaks resource loading in Pax Web/Felix Webconsole [message #641824] |
Sun, 28 November 2010 14:56 |
Peter ardfj 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
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03237 seconds