Sounds like the hivemind-lib.jar is not in your classpath.
Can you check that?

Achim

Jean-Yves Sironneau wrote:
Hello,

I'am getting into an issue and i guess it's a design problem, but i can't see why :

I have an interface that services should implement  :

public interface IContentProcessor {
public boolean isDocumentClassSupported(Class<? extends IDocument> documentClass);

public boolean isContentClassSupported(Class<? extends IDocument> contentClass);
     public void process(IDocument document);
}

And i have several implementations of this interface, so basically my module definition looks like :

<service-point id="ThumbnailCreator" interface="org.jys.jphotowiki.content.IContentProcessor">
   <invoke-factory>
     <construct class="org.jys.jphotowiki.content.ThumbnailProcessor">
         <set property="thumbnailSize" value="50"/>
     </construct>
   </invoke-factory>
 </service-point>

<service-point id="MetaDataExtractor" interface="org.jys.jphotowiki.content.IContentProcessor">
   <invoke-factory>
     <construct class="org.jys.jphotowiki.content.MetaDataExtractor"/>
   </invoke-factory>
 </service-point>

<service-point id="RotateLeftProcessor" interface="org.jys.jphotowiki.content.IContentProcessor">
   <invoke-factory>
     <construct class="org.jys.jphotowiki.content.RotateProcessor">
         <set property="clockwise" value="false"/>
     </construct>
   </invoke-factory>
 </service-point>

<service-point id="RotateRightProcessor" interface="org.jys.jphotowiki.content.IContentProcessor"> <create-instance class="org.jys.jphotowiki.content.RotateProcessor,clockwise"/>
 </service-point>


So i would like to dynamically get all of the services that implements the interface, so i tried to call getRegistry().getServiceIds(IContentProcessor.class) and i'am getting a lots of errors :

#2005-08-11 02:03:20,138 ERROR org.apache.hivemind.impl.DefaultErrorHandler.error(DefaultErrorHandler.java:37) - Error at jar:file:/home/jys/work/JPhotoWiki/src/java/lib/compile/tapestry-4.0-beta-3.jar!/META-INF/hivemodule.xml, line 23, column 57: Required module hivemind.lib does not exist. #2005-08-11 02:03:20,353 ERROR org.apache.hivemind.impl.DefaultErrorHandler.error(DefaultErrorHandler.java:37) - Error at jar:file:/home/jys/work/JPhotoWiki/src/java/lib/compile/tapestry-4.0-beta-3.jar!/META-INF/tapestry.props.xml, line 24, column 94: Unable to resolve reference to schema 'hivemind.lib.ChainContribution'. #2005-08-11 02:03:20,356 ERROR org.apache.hivemind.impl.DefaultErrorHandler.error(DefaultErrorHandler.java:37) - Error at jar:file:/home/jys/work/JPhotoWiki/src/java/lib/compile/tapestry-4.0-beta-3.jar!/META-INF/tapestry.props.xml, line 105, column 99: Unable to resolve reference to schema 'hivemind.lib.ChainContribution'. #2005-08-11 02:03:20,357 ERROR org.apache.hivemind.impl.DefaultErrorHandler.error(DefaultErrorHandler.java:37) - Error at jar:file:/home/jys/work/JPhotoWiki/src/java/lib/compile/tapestry-4.0-beta-3.jar!/META-INF/tapestry.enhance.xml, line 58, column 91: Unable to resolve reference to schema 'hivemind.lib.ChainContribution'. #2005-08-11 02:03:20,359 ERROR org.apache.hivemind.impl.DefaultErrorHandler.error(DefaultErrorHandler.java:37) - Error at jar:file:/home/jys/work/JPhotoWiki/src/java/lib/compile/tapestry-4.0-beta-3.jar!/META-INF/tapestry.listener.xml, line 36, column 79: Unable to resolve reference to schema 'hivemind.lib.Pipeline'. #2005-08-11 02:03:20,361 ERROR org.apache.hivemind.impl.DefaultErrorHandler.error(DefaultErrorHandler.java:37) - Error at jar:file:/home/jys/work/JPhotoWiki/src/java/lib/compile/tapestry-4.0-beta-3.jar!/META-INF/tapestry.asset.xml, line 83, column 95: Unable to resolve reference to schema 'hivemind.lib.StrategyRegistry'. #2005-08-11 02:03:20,363 ERROR org.apache.hivemind.impl.DefaultErrorHandler.error(DefaultErrorHandler.java:37) - Error at jar:file:/home/jys/work/JPhotoWiki/src/java/lib/compile/tapestry-4.0-beta-3.jar!/META-INF/tapestry.form.translator.xml, line 23, column 90: Unable to resolve reference to schema 'hivemind.lib.BeanFactoryContribution'. #2005-08-11 02:03:20,376 ERROR org.apache.hivemind.impl.DefaultErrorHandler.error(DefaultErrorHandler.java:37) - Error at jar:file:/home/jys/work/JPhotoWiki/src/java/lib/compile/tapestry-4.0-beta-3.jar!/META-INF/tapestry.init.xml, line 32, column 96: Unable to resolve reference to schema 'hivemind.lib.ChainContribution'. #2005-08-11 02:03:20,378 ERROR org.apache.hivemind.impl.DefaultErrorHandler.error(DefaultErrorHandler.java:37) - Error at jar:file:/home/jys/work/JPhotoWiki/src/java/lib/compile/tapestry-4.0-beta-3.jar!/META-INF/tapestry.request.xml, line 91, column 94: Unable to resolve reference to schema 'hivemind.lib.Pipeline'. #2005-08-11 02:03:20,379 ERROR org.apache.hivemind.impl.DefaultErrorHandler.error(DefaultErrorHandler.java:37) - Error at jar:file:/home/jys/work/JPhotoWiki/src/java/lib/compile/tapestry-4.0-beta-3.jar!/META-INF/tapestry.request.xml, line 122, column 90: Unable to resolve reference to schema 'hivemind.lib.Pipeline'. #2005-08-11 02:03:20,381 ERROR org.apache.hivemind.impl.DefaultErrorHandler.error(DefaultErrorHandler.java:37) - Error at jar:file:/home/jys/work/JPhotoWiki/src/java/lib/compile/tapestry-4.0-beta-3.jar!/META-INF/tapestry.valid.xml, line 23, column 90: Unable to resolve reference to schema 'hivemind.lib.BeanFactoryContribution'. #2005-08-11 02:03:20,382 ERROR org.apache.hivemind.impl.DefaultErrorHandler.error(DefaultErrorHandler.java:37) - Error at jar:file:/home/jys/work/JPhotoWiki/src/java/lib/compile/tapestry-4.0-beta-3.jar!/META-INF/tapestry.describe.xml, line 22, column 92: Unable to resolve reference to schema 'hivemind.lib.StrategyRegistry'. #2005-08-11 02:03:20,384 ERROR org.apache.hivemind.impl.DefaultErrorHandler.error(DefaultErrorHandler.java:37) - Error at jar:file:/home/jys/work/JPhotoWiki/src/java/lib/compile/tapestry-4.0-beta-3.jar!/META-INF/tapestry.describe.xml, line 73, column 87: Unable to resolve reference to schema 'hivemind.lib.StrategyRegistry'. #2005-08-11 02:03:20,388 ERROR org.apache.hivemind.impl.DefaultErrorHandler.error(DefaultErrorHandler.java:37) - Error at jar:file:/home/jys/work/JPhotoWiki/src/java/lib/compile/tapestry-4.0-beta-3.jar!/META-INF/tapestry.page.xml, line 139, column 95: Unable to resolve reference to schema 'hivemind.lib.ChainContribution'. #2005-08-11 02:03:20,394 ERROR org.apache.hivemind.impl.DefaultErrorHandler.error(DefaultErrorHandler.java:37) - Error at jar:file:/home/jys/work/JPhotoWiki/src/java/lib/compile/tapestry-4.0-beta-3.jar!/META-INF/tapestry.page.xml, line 188, column 100: Unable to resolve reference to schema 'hivemind.lib.ChainContribution'. org.apache.hivemind.ApplicationRuntimeException: Unable to find interface org.apache.hivemind.lib.BeanFactory (for service tapestry.valid.ValidatorBeanFactory). [jar:file:/home/jys/work/JPhotoWiki/src/java/lib/compile/tapestry-4.0-beta-3.jar!/META-INF/tapestry.valid.xml, line 33, column 92]

So i think there are some issues regarding the tapestry hivemind modules, and as every module is processed i think i'am trying to do something that do not make sense at all.

What do you think ? Doesn't an interface can be implemented by several services ?

Thanks

Jean-Yves

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to