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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]









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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to