You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hivemind.apache.org by jys <jy...@fr.st> on 2004/09/28 02:31:51 UTC

duplicated module descriptor

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


Re: duplicated module descriptor

Posted by jys <jy...@fr.st>.
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 <jy...@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


Re: duplicated module descriptor

Posted by Howard Lewis Ship <hl...@gmail.com>.
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 <jy...@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
> 
> 



-- 
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