Issue Details (XML | Word | Printable)

Key: OSGI-436
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Costin Leau
Reporter: Gerd Wütherich
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Spring OSGi

Exception whilst trying to uninstall (stop) war-bundle

Created: 14/Apr/08 04:05 PM   Updated: 15/Apr/08 05:15 AM
Component/s: WEB
Affects Version/s: 1.1 M1
Fix Version/s: 1.1 M2

Time Tracking:
Not Specified


 Description  « Hide
Hey Costin,

I'm a little bit confused about an exception that is thrown when I try to stop an started war bundle. In class WarLoaderListener you store the installed war bundles in the managedBundles-Map.

In method WarLoaderListener.maybeDeployWar(Bundle) you put an entry the this the map that is of type Bundle/String. In the DeployTask an entry of type Bundle/Date is added (that overrides the previously set entry).

Subsequently the attempt to retrieve a value of type String in method WarLoaderListener.maybeUndeployWar(Bundle) fails with a ClassCastException (Cannot cast Date to String - Line 310).

The result is, that the stopped war bundle will not be removed from the webapp server. I think this is a bug, or have I missed something?

Nevertheless: the web support works fine for me! Cool work!

 All   Comments   Work Log   Change History   FishEye   Related Builds      Sort Order: Ascending order - Click to sort in descending order
Costin Leau added a comment - 15/Apr/08 05:15 AM
It is indeed a bug Gerd - thanks for reporting. I've fixed this for m2.