hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Knut Wannheden <knut.wannhe...@gmail.com>
Subject Re: Problem with loading services
Date Wed, 27 Oct 2004 07:32:02 GMT
Kurt,

Could it be a classloader issue?  I can't think of anything else... 
What if you make your print statement print out the classloader of the
service implementation object and the service interface?

--knut

On Tue, 26 Oct 2004 17:30:06 -0400, Kurt R. Hoehn <khoehn@etranscor.com> wrote:
>  
>  
> 
> Hello, 
> 
>   
> 
> I've been having problems loading services with Hive Mind 1.1-alpha 1 here
> is the error I'm getting 
> 
>   
> 
> org.apache.hivemind.ApplicationRuntimeException: Service
> etranscor.portal.RequestFactory does not implement the requested interface
> (com.etranscor.portal.services.container.ContainerRequestFactory).  The
> declared service interface type is
> com.etranscor.portal.services.container.ContainerRequestFactory 
> 
>   
> 
> and here is my configuration 
> 
>   
> 
> <?xml version="1.0" encoding="UTF-8"?> 
> 
> <module id="etranscor.portal" version="1.0.0"> 
> 
>     <service-point id="RequestFactory"
> interface="com.etranscor.portal.services.container.ContainerRequestFactory">
> 
>         <invoke-factory service-id="hivemind.BuilderFactory"> 
> 
>             <construct
> class="com.etranscor.portal.services.container.impl.ContainerRequestFactoryImpl"
> 
>                        log-property="logger"> 
> 
>                 <set property="containerRequest"
> value="com.etranscor.portal.services.container.impl.ContainerRequestImpl"/> 
> 
>             </construct> 
> 
>         </invoke-factory> 
> 
>     </service-point> 
> 
> </module> 
> 
>   
> 
> It seems to find it but when it does the isAssignable in
> org.apache.hivemind.impl.ServicePointImpl.getService it blows up.  I added a
> print statement to see what it is comparing and here was the result. 
> 
>   
> 
> ServiceInterface:  interface
> com.etranscor.portal.services.container.ContainerRequestFactory,  Result
> Object:  <SingletonProxy for
> etranscor.portal.RequestFactory(com.etranscor.portal.services.container.ContainerRequestFactory)>
> 
>   
> 
> Am I doing something wrong, I'm having this same error in a couple of other
> projects too. 
> 
>   
> 
> TIA, 
> 
>   
> 
> -kurt

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