Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Virgo hangs when stopping web bundle(Virgo hangs when stopping web bundle using Spring DM, Apache Shiro and web filter)
Virgo hangs when stopping web bundle [message #871405] Sun, 13 May 2012 11:57 Go to next message
Roman Janusz is currently offline Roman JanuszFriend
Messages: 2
Registered: May 2012
Junior Member

I have an annoying problem with Virgo 3.0.2.RELEASE. I have an application with a dozen of bundles deployed as a Virgo plan. I'm using Spring DM and Apache Shiro for security. Shiro is configured in Spring application context and declares a web filter.

The problem is that when trying to redeploy my application by refreshing plan file, Virgo hangs for about a minute or two while stopping the web bundle:

[2012-05-13 13:30:34.720] fs-watcher                   <WE0002I> Stopping web bundle 'ares.plan-1.0.0.SNAPSHOT-gui-core' version '1.0.0.SNAPSHOT' with context path '/ares-gui'.

With jconsole I found out that the hanging thread is this one:

Name: stop children - Catalina:j2eeType=WebModule,name=//localhost/ares-gui,J2EEApplication=none,J2EEServer=none
State: TIMED_WAITING on java.lang.Object@5110d623
Total blocked: 0  Total waited: 1

Stack trace: 
 java.lang.Object.wait(Native Method)
$Proxy200.destroy(Unknown Source)
   - locked java.util.HashMap@48a2cd4e

Here's my web.xml (shiroFilter is from Spring application context and is imported as OSGi service through Spring DM):

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="(removed link)"
	xmlns="(removed link)" xmlns:web="(removed link)"
	id="WebApp_ID" version="2.5">

	<display-name>Academic Repository Environment for Students

		<description>Vaadin production mode</description>








Does anyone have any idea?
Re: Virgo hangs when stopping web bundle [message #872262 is a reply to message #871405] Tue, 15 May 2012 19:45 Go to previous message
Roman Janusz is currently offline Roman JanuszFriend
Messages: 2
Registered: May 2012
Junior Member
OK, I found out what's wrong.
The web filter was defined in different bundle than the web bundle and was imported into the web bundle as an OSGi service through Spring DM and thus, it was a Proxy, which caused trouble.
Previous Topic:Spring OSGI version in virgo 3.5.0.M4
Next Topic:Issue with Version range in Import package
Goto Forum:

Current Time: Tue Apr 07 14:35:11 GMT 2020

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

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

Back to the top