2009/4/23 Gavin Bong <[email protected]>

>
> Hi,
>
> My initial webapp is using Guice 1.0 with:-
>
>        <dependency>
>            <groupId>com.google.code.guice</groupId>
>            <artifactId>guice</artifactId>
>            <version>1.0</version>
>        </dependency>
>        <dependency>
>            <groupId>com.google.code.guice</groupId>
>            <artifactId>assistedinject</artifactId>
>            <version>0.0.1-SNAPSHOT</version>
>        </dependency>
>
> I tried recompiling Guice from trunk and upgrading the webapp.
> Everything is fine except that the webapp does
> not unload properly when I do "mvn tomcat:undeploy". These are the new
> dependencies:
>
>        <dependency>
>            <groupId>com.google.code.guice</groupId>
>            <artifactId>guice</artifactId>
>            <version>20090423</version>
>        </dependency>
>        <dependency>
>            <groupId>com.google.code.guice</groupId>
>            <artifactId>guice-assistedinject</artifactId>
>            <version>20090423</version>
>        </dependency>
>        <dependency>
>            <groupId>com.google.code.guice</groupId>
>            <artifactId>guice-multibindings</artifactId>
>            <version>20090423</version>
>        </dependency>
>        <dependency>
>            <groupId>com.google.code.guice</groupId>
>            <artifactId>guice-servlet</artifactId>
>            <version>20090423</version>
>        </dependency>
>
> Couple of things to note:
>
> 1)  The core guice jar is left behind in /apache-tomcat-5.5.27/webapps/
> mystuff/WEB-INF/lib/guice-20090423.jar
>
> 2) A thread dump shows a stray guice thread is still running
>
> "com.google.inject.internal.Finalizer" daemon prio=6 tid=0x041f3000
> nid=0xf7c in Object.wait() [0x0633f000..0x0633fce8]
>   java.lang.Thread.State: WAITING (on object monitor)
>        at java.lang.Object.wait(Native Method)
>        - waiting on <0x24dcbb18> (a java.lang.ref.ReferenceQueue$Lock)
>        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
>        - locked <0x24dcbb18> (a java.lang.ref.ReferenceQueue$Lock)
>        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
>        at com.google.inject.internal.Finalizer.run(Finalizer.java:114)
>
>   Locked ownable synchronizers:
>        - None
>

it's a known issue:
http://code.google.com/p/google-guice/issues/detail?id=288


> How can I resolve this ?
>

one way is to put Guice on your system classpath rather than inside your
web-app

Thanks
>
> Gavin


-- 
Cheers, Stuart

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to