Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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: Tue Jul 22 22:46:31 EDT 2025

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

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

Back to the top