Hi all,

I'm a bit stuck at this point, as I've written a service with the 3 required 
methods for Hivemind (getName, service and getLink) and I have configured the 
service in HiveModule. Wenn I call my application URL 
www.blabla.com/app?service=document&documentId=101 , it just
tries to instantiate my class and throws an error:

Error at context:/WEB-INF/hivemodule.xml, line 21, column 71: Unable to process 
attribute object (of element service): Unable to instantiate instance of class 
de.test.services.DocumentServiceImpl: java.lang.InstantiationException

As you can see, the class can be found, it is configured as such in 
hivemodule.xml

<module id="test" version="1.0.0" package="de.test.services">

 <contribution configuration-id="tapestry.services.ApplicationServices">
 <service name="document" object="instance:DocumentServiceImpl"/>
 </contribution>

I have also tried setting it as a service:

<module id="test" version="1.0.0" package="de.test.services">

 <contribution configuration-id="tapestry.services.ApplicationServices">
 <service name="document" object="service:Document"/>
 </contribution>


 <service-point id="Document" 
interface="org.apache.tapestry.engine.IEngineService">
 <invoke-factory>
 <construct class="DocumentServiceImpl"/>
 <set-object property="exceptionReporter" 
value="infrastructure:requestExceptionReporter"/>
 <set-object property="response" value="infrastructure:response"/>
 <set-object property="linkFactory" value="infrastructure:linkFactory"/>
 </construct>
 </invoke-factory>
 </service-point>


Either way, it fails...

Does anyone have any ideas how to get this working?


Many thanks in advance.

Thomas

Reply via email to