Hi Abdur, It is really discouraged to cross-post messages to various mailing lists. In addition, you put my personal email to the list, so I confirm I got three copies of your post :)
Let's see if Spring experts in the list are willing to look at your test project to see what is not working properly. 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 : Muhammad Abdur Rasheed [mailto:[email protected]] Envoyé : mercredi 19 août 2009 21:02 À : [email protected]; [email protected]; [email protected] Objet : Help required for restlet-jee-2.0m4 with spring using apache-tomcat-6.0.18 and JDK 1.6.0_13 Hi Everyone, I'm using restlet-jee-2.0m4 using apache-tomcat-6.0.18 and JDK 1.6.0_13 with cglib-nodep-2.2.jar. I'm using all other jars from the distribution of restlet-jee-2.0m4 I'm trying to use Restlet with Spring. Attached is the zip file which contains code and configuration. I'm getting the error "No target class was defined for this finder: org.restlet.ext.spring.springfinder$$enhancerbycglib$$75c4b...@2264da" Following are the details of tomcat terminal step by step. 1- Following is the output on tomcat after startup. Aug 19, 2009 9:07:54 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performanc e in production environments was not found on the java.library.path: D:\tools\jd k1.6.0_13\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;%Comm onPr ogramFiles%\Microsoft Shared\Windows Live;C:\WINDOWS\system32;C:\WINDOWS;C:\WIND OWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\;D:\tools\jdk1.6.0_1 3\bin;D:\tools\apache-ant-1.7.1\bin;C:\Program Files\Rational\common;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files\CVSNT\;C:\Program Files\IDM Computer Solutions\UltraEdit\ ;C:\Program Files\IDM Computer Solutions\UltraCompare\ Aug 19, 2009 9:07:54 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Aug 19, 2009 9:07:54 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 748 ms Aug 19, 2009 9:07:54 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Aug 19, 2009 9:07:54 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.18 Aug 19, 2009 9:07:55 PM com.liferay.portal.kernel.log.Jdk14LogImpl info INFO: Initializing hot deploy manager 3981922 Aug 19, 2009 9:07:55 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Aug 19, 2009 9:07:55 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Aug 19, 2009 9:07:55 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Aug 19, 2009 9:07:56 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Aug 19, 2009 9:07:56 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/47 config=null Aug 19, 2009 9:07:56 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 1854 ms 2- After executing http://localhost:8080/test/example in browser, I got follwing ouput on tomcat terminal. 2009-08-19 21:14:47.744::INFO: Logging to STDERR via org.mortbay.log.StdErrLog * * * * ExampleApplication() Aug 19, 2009 9:14:48 PM org.springframework.context.support.AbstractApplicationC ontext prepareRefresh INFO: Refreshing org.springframework.context.support.ClassPathXmlApplicationCont e...@1a6a1a7: display name [org.springframework.context.support.ClassPathXmlAppli cationcont...@1a6a1a7]; startup date [Wed Aug 19 21:14:48 PKT 2009]; root of con text hierarchy Aug 19, 2009 9:14:48 PM org.springframework.beans.factory.xml.XmlBeanDefinitionR eader loadBeanDefinitions INFO: Loading XML bean definitions from class path resource [application-context .xml] Aug 19, 2009 9:14:49 PM org.springframework.context.support.AbstractApplicationC ontext obtainFreshBeanFactory INFO: Bean factory for application context [org.springframework.context.support. classpathxmlapplicationcont...@1a6a1a7]: org.springframework.beans.factory.suppo rt.defaultlistablebeanfact...@15b123b Aug 19, 2009 9:14:49 PM org.springframework.beans.factory.support.DefaultListabl eBeanFactory preInstantiateSingletons INFO: Pre-instantiating singletons in org.springframework.beans.factory.support. defaultlistablebeanfact...@15b123b: defining beans [exampleResource,restletRoute r,exampleApplication,restletServer,restletComponent]; root of factory hierarchy * * * * ExampleApplication() before starting restletComponent 2009-08-19 21:14:50.447::INFO: jetty-6.1.18 2009-08-19 21:14:50.729::INFO: Started [email protected]:8182 * * * * ExampleApplication() after starting restletComponent Aug 19, 2009 9:14:50 PM org.apache.catalina.core.ApplicationContext log INFO: RestletServlet: [Restlet] Attaching application: example.ExampleApplicatio n...@120b2da to URI: /test Aug 19, 2009 9:14:50 PM org.restlet.engine.log.LogFilter afterHandle INFO: 2009-08-19 21:14:50 127.0.0.1 - 127.0.0.1 8080 GET /test/example - 404 330 - 32 http://l ocalhost:8080 Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; OfficeLiveConnector.1.4; OfficeLivePatch.1.3) - 3- When trying to call the restlet application resource using http://localhost:8182/example in browser, I got following output on tomcat terminal. Aug 19, 2009 9:16:25 PM org.restlet.resource.Finder handle WARNING: No target class was defined for this finder: org.restlet.ext.spring.Spr ingfinder$$enhancerbycglib$$75c4b...@2264da Aug 19, 2009 9:16:29 PM org.restlet.engine.log.LogFilter afterHandle INFO: 2009-08-19 21:16:29 127.0.0.1 - 127.0.0.1 8182 GET /example - 200 0 - 4157 http://l ocalhost:8182 Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; OfficeLiveConnector.1.4; OfficeLivePatch.1.3) - Aug 19, 2009 9:16:29 PM org.restlet.engine.http.HttpServerAdapter commit WARNING: A response with a 200 (Ok) status should have an entity. Make sure that resource "http://localhost:8182/example" returns one or sets the status to 204 (No content). Kindly help me out to identify what I have missed. Looking forward for your replies. Regards M. Abdur Rasheed ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=7458&dsMessageId=23853 30 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2386320

