You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hivemind.apache.org by Nick Stuart <ba...@gmail.com> on 2004/10/29 15:18:34 UTC

A couple of questions

Hi all. I'm trying to use HiveMind in a web-service and am running
into a problem or two

 First, is that I'm using the HiveMindFilter, and it is working and
building the registry just fine. But, when I undeploy the app
something isn't releasing because the hivemind modules still act as
though they are in use and arent delete. Using tomcat 5.0.x if that
matters, and I can only delete the files if I shutdown tomcat.

Second question, how do I get a registry reference besides the
RegistryBuild.constructDefaultRegistry();
This, to me, seems like would rebuild the registry everytime, which I
obviously wouldnt want, ecspecailly since the filter is already doing
it.

Thanks for the help!
-Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Re: A couple of questions

Posted by Howard Lewis Ship <hl...@gmail.com>.
There are very few statics in HiveMind. One possibility is
PropertyUtils, which maintains a static Map keyed on Class.

Hm. That looks like it is it!  Need to invoke
PropertyUtils.clearCache() from somewhere (preferably inside
RegistryInfrastructureImpl.shutdown() ).


On Fri, 29 Oct 2004 16:00:53 +0200, Filip S. Adamsen
<fi...@stubkjaer-adamsen.dk> wrote:
> 
> 
> Filip S. Adamsen wrote:
> > Nick Stuart wrote:
> >
> >> Hi all. I'm trying to use HiveMind in a web-service and am running
> >> into a problem or two
> >>
> >>  First, is that I'm using the HiveMindFilter, and it is working and
> >> building the registry just fine. But, when I undeploy the app
> >> something isn't releasing because the hivemind modules still act as
> >> though they are in use and arent delete. Using tomcat 5.0.x if that
> >> matters, and I can only delete the files if I shutdown tomcat.
> >
> >
> > I have the same problem. For now, since I can't figure out what's wrong,
> > I have asked Tomcat (5.0.28) to not unpack my WAR. For some reason, this
> > seems to work. I'm using Windows XP SP2, BTW. What about you?
> 
> I just tried undeploying my application on a Linux server, and it worked
> just fine. But my Windows one keeps holding a lock on some of my files,
> more specifically all files containing HiveMind code and services.
> 
> How could this be? Perhaps some dangling static references somewhere?
> 
> -Filip
> 
> 
> 


-- 
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind
http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Re: A couple of questions

Posted by "Filip S. Adamsen" <fi...@stubkjaer-adamsen.dk>.

Filip S. Adamsen wrote:
> Nick Stuart wrote:
> 
>> Hi all. I'm trying to use HiveMind in a web-service and am running
>> into a problem or two
>>
>>  First, is that I'm using the HiveMindFilter, and it is working and
>> building the registry just fine. But, when I undeploy the app
>> something isn't releasing because the hivemind modules still act as
>> though they are in use and arent delete. Using tomcat 5.0.x if that
>> matters, and I can only delete the files if I shutdown tomcat.
> 
> 
> I have the same problem. For now, since I can't figure out what's wrong, 
> I have asked Tomcat (5.0.28) to not unpack my WAR. For some reason, this 
> seems to work. I'm using Windows XP SP2, BTW. What about you?

I just tried undeploying my application on a Linux server, and it worked
just fine. But my Windows one keeps holding a lock on some of my files, 
more specifically all files containing HiveMind code and services.

How could this be? Perhaps some dangling static references somewhere?

-Filip

Re: A couple of questions

Posted by Nick Stuart <ba...@gmail.com>.
I found the static method sortly after I e-mailed the list. Thanks for
confirming it though :)

And yes, I'm on XP SP2 as well, so I dont know if this is related to
that or not. I've actually told tomcat to unpack my wars as i need to
for the stuff I'm doing, but ya its causing me problems. Oh well, I'm
just go through first pass stuff right now anyways, so I'll worry
about it later. Unless of course someone has a simple answer to the
problem.


On Fri, 29 Oct 2004 15:26:08 +0200, Filip S. Adamsen
<fi...@stubkjaer-adamsen.dk> wrote:
> Nick Stuart wrote:
> > Hi all. I'm trying to use HiveMind in a web-service and am running
> > into a problem or two
> >
> >  First, is that I'm using the HiveMindFilter, and it is working and
> > building the registry just fine. But, when I undeploy the app
> > something isn't releasing because the hivemind modules still act as
> > though they are in use and arent delete. Using tomcat 5.0.x if that
> > matters, and I can only delete the files if I shutdown tomcat.
> 
> I have the same problem. For now, since I can't figure out what's wrong,
> I have asked Tomcat (5.0.28) to not unpack my WAR. For some reason, this
> seems to work. I'm using Windows XP SP2, BTW. What about you?
> 
> > Second question, how do I get a registry reference besides the
> > RegistryBuild.constructDefaultRegistry();
> > This, to me, seems like would rebuild the registry everytime, which I
> > obviously wouldnt want, ecspecailly since the filter is already doing
> > it.
> 
> Are you talking about the HiveMindFilter? It has a static
> getRegistry(HttpServletRequest) method, if I'm not mistaken. Otherwise,
> we'll need some more info about the 'filter' you're talking about.
> 
> > Thanks for the help!
> > -Nick
> 
> -Filip
> 
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Re: A couple of questions

Posted by "Filip S. Adamsen" <fi...@stubkjaer-adamsen.dk>.
Nick Stuart wrote:
> Hi all. I'm trying to use HiveMind in a web-service and am running
> into a problem or two
> 
>  First, is that I'm using the HiveMindFilter, and it is working and
> building the registry just fine. But, when I undeploy the app
> something isn't releasing because the hivemind modules still act as
> though they are in use and arent delete. Using tomcat 5.0.x if that
> matters, and I can only delete the files if I shutdown tomcat.

I have the same problem. For now, since I can't figure out what's wrong, 
I have asked Tomcat (5.0.28) to not unpack my WAR. For some reason, this 
seems to work. I'm using Windows XP SP2, BTW. What about you?

> Second question, how do I get a registry reference besides the
> RegistryBuild.constructDefaultRegistry();
> This, to me, seems like would rebuild the registry everytime, which I
> obviously wouldnt want, ecspecailly since the filter is already doing
> it.

Are you talking about the HiveMindFilter? It has a static 
getRegistry(HttpServletRequest) method, if I'm not mistaken. Otherwise, 
we'll need some more info about the 'filter' you're talking about.

> Thanks for the help!
> -Nick

-Filip

RE: A couple of questions

Posted by James Carman <ja...@carmanconsulting.com>.
The filter puts the registry on the request as an attribute.  There's a
static helper method in the HiveMindFilter class which allows you to access
it.

-----Original Message-----
From: Nick Stuart [mailto:baredok@gmail.com] 
Sent: Friday, October 29, 2004 9:19 AM
To: hivemind-user@jakarta.apache.org
Subject: A couple of questions

Hi all. I'm trying to use HiveMind in a web-service and am running
into a problem or two

 First, is that I'm using the HiveMindFilter, and it is working and
building the registry just fine. But, when I undeploy the app
something isn't releasing because the hivemind modules still act as
though they are in use and arent delete. Using tomcat 5.0.x if that
matters, and I can only delete the files if I shutdown tomcat.

Second question, how do I get a registry reference besides the
RegistryBuild.constructDefaultRegistry();
This, to me, seems like would rebuild the registry everytime, which I
obviously wouldnt want, ecspecailly since the filter is already doing
it.

Thanks for the help!
-Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org