PlanetJava
Custom Search

java-restlet-devel
[Top] [All Lists]

RE: No target class was defined for this finder ...

Subject: RE: No target class was defined for this finder ...
Date: Fri, 25 Sep 2009 13:51:18 -0700 (PDT)
Hi, 
I am running the 2.0 JEE Jars from the unstable URL you sent out earlier today 
(http://www.restlet.org/downloads/2.0/restlet-jee-2.0snapshot.zip) and am 
getting this error still today. I've been working on trying to get this working 
all day and am about to throw in the towel. I tried the earlier poster's 
suggestions for a fix using the targetClass solution, but then I cannot inject 
beans into my UserResource.
Error: 
Message ID
No target class was defined for this finder
Complete Message
o[email protected]5e0f81b1
-----------
my config
-----------
 <bean id="router" class="org.restlet.ext.spring.SpringRouter">
     <constructor-arg ref="feedbackRestApp" />
     <property name="attachments">
         <map>
             <entry key="/users">
                 <bean class="org.restlet.ext.spring.SpringFinder"> 
                        <lookup-method name="createResource" 
bean="userResource"/> 
                        </bean>
                 </entry>
             <entry key="/users/{email}">
                 <bean class="org.restlet.ext.spring.SpringFinder"> 
                        <lookup-method name="createResource" 
bean="userResource"/> 
                        </bean>
                 </entry>
         </map>
     </property>
 </bean>
        <bean id="userResource" autowire="byName" scope="prototype" 
                class="com.my.package.rest.v1.resource.UserResource">
                <property name="userService" ref="userService"/>
        </bean>
Also was getting a simular error using the SpringBeanRouter posted about here 
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2400334
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=7458&dsMessageId=2400410
msgmiddle
<Prev in Thread] Current Thread [Next in Thread>
Current Sitemap | © 2012 planetjava | Contact | Privacy Policy