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: Tue, 29 Sep 2009 10:05:41 +0200
Hi Norton,
Please don't cross post. This list is for developers contributing code to
Restlet.
We will answer your question in the users discussion list:
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=24012
47
Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founderÂ~ http://www.noelios.com
-----Message d'origine-----
DeÂ: norton borf 
[mailto:woods5242-grizz-/[email protected]] 
EnvoyÃÂ: vendredi 25 septembre 2009 22:51
ÃÂ: code-s0N/[email protected]
ObjetÂ: RE: No target class was defined for this finder ...
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=24003
34
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=7458&dsMessageId=24004
10
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=7458&dsMessageId=2401497
msgmiddle
<Prev in Thread] Current Thread [Next in Thread>
Current Sitemap | © 2012 planetjava | Contact | Privacy Policy