hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jys <...@fr.st>
Subject Re: duplicated module descriptor
Date Wed, 29 Sep 2004 20:26:49 GMT
Howard Lewis Ship wrote:

>Looks like you have WEB-INF/classes on your classpath twice.
>
>When I use Jetty, I DO NOT compile my classes into
>context/WEB-INF/classes.  I complile them into target/classes.  I have
>an Ant task package the .war file from context and target/classes.
>
>What's happening is that the descriptor and classes is on the
>classpath once care of your IDE, then on it a second time, care of
>Jetty (it creates a classloader for WEB-INF/classes). This causes
>duplication of classes (which explains the second message) and of
>descriptors (the first message).
>
>
>On Tue, 28 Sep 2004 02:31:51 +0200, jys <jys@fr.st> wrote:
>  
>
>>Hello,
>>
>>I am trying to use hivemind with tapestry but the the same way of
>>constructing the registry  :
>>
>>        Registry reg = RegistryBuilder.constructDefaultRegistry();
>>        Persistencer pers = (Persistencer)
>>reg.getService("org.jys.jphotowiki.Persistencer", Persistencer.class);
>>
>> is working in a JUnit test, but not within Tapestry and Jetty:
>>
>>Error: Module org.jys.jphotowiki is duplicated!  Definition in
>>file:/home/jys/work/JPhotoWiki/context/WEB-INF/classes/META-INF/hivemodule.xml
>>has been ignored in favor of existing definition from
>>file:/home/jys/work/JPhotoWiki/context/WEB-INF/classes/META-INF/hivemodule.xml.null
>>
>>Service org.jys.jphotowiki.Persistencer does not implement the requested
>>interface (org.jys.jphotowiki.pers.Persistencer). The declared service
>>interface type is org.jys.jphotowiki.pers.Persistencer.
>>
>>Do u have any idea?
>>
>>Thanks.
>>
>>Jean-Yves
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
>>
>>
>>    
>>
>
>
>
>  
>
Thank you i'll try that tonight. In fact i'am using Jetty launcher and 
it worked
for me before, i don't know at what time i did something wrong. Anyway 
thanks
for your help, and for hivemind of course.

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


Mime
View raw message