Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » WAB and Bundle-ClassPath(WAB and Bundle-ClassPath)
WAB and Bundle-ClassPath [message #693039] Tue, 05 July 2011 12:51 Go to next message
Vladimir Stevanovic is currently offline Vladimir Stevanovic
Messages: 29
Registered: March 2010
Junior Member
Hi,
I'm trying to create a simple WAB (Web Application Bundle) and to deploy it in Virgo server.
The structure of bundle is very simple:

->package.containing.servlet.implementation
->META-INF
-->MANIFEST.MF
->WEB-INF
-->web.xml


Web.xml just defines and maps the servlet.

This WAR only works if manifest contains manifest header Bundle-ClassPath, even the "." value was sufficient. If class path is not defined, the web.xml is processed, but the implementation class could not be loaded.
In the OSGi spec it is stated that "The dot is the default value for a bundle or fragment if no Bundle-ClassPath header is specified".

So, is this a bug?

Re: WAB and Bundle-ClassPath [message #693305 is a reply to message #693039] Wed, 06 July 2011 04:38 Go to previous messageGo to next message
Vladimir Stevanovic is currently offline Vladimir Stevanovic
Messages: 29
Registered: March 2010
Junior Member
It looks like it was a bug. I downloaded M6 release and everything is fine now.
Re: WAB and Bundle-ClassPath [message #693325 is a reply to message #693305] Wed, 06 July 2011 05:14 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn Normington
Messages: 1222
Registered: July 2009
Senior Member
I'm not aware of anything in M06 which fixes that apparent bug, so please keep your eyes peeled and if you see it again, please let us know.
Re: WAB and Bundle-ClassPath [message #693343 is a reply to message #693325] Wed, 06 July 2011 05:46 Go to previous messageGo to next message
Vladimir Stevanovic is currently offline Vladimir Stevanovic
Messages: 29
Registered: March 2010
Junior Member
I think I know what had happened. In the M05(and prior) version the WAB manifest headers have the same defaults as WARs, as it is stated in M06 release notes. So the Bundle-ClassPath got the wrong (according to the OSGi enterprise spec) default value.
Re: WAB and Bundle-ClassPath [message #693348 is a reply to message #693343] Wed, 06 July 2011 05:51 Go to previous message
Glyn Normington is currently offline Glyn Normington
Messages: 1222
Registered: July 2009
Senior Member
I see. That makes sense. Thanks.
Previous Topic:Virgo Maya (3.0) Milestone 6
Next Topic:ClassNotFoundException after update from M5 to M6
Goto Forum:
  


Current Time: Fri Aug 29 01:45:32 EDT 2014

Powered by FUDForum. Page generated in 0.01735 seconds