<servlet>  
     <servlet-name>techRestApi</servlet-name>  
        
<servlet-class>com.noelios.restlet.ext.spring.SpringServerServlet</servlet-class>
  
      <init-param>  
                         <param-name>org.restlet.component</param-name>  
                         <param-value>restletComponent</param-value>  
          </init-param>  
        </servlet>  
        <servlet-mapping>  
         <servlet-name>techRestApi</servlet-name>  
         <url-pattern>/techIssueRestResource/*</url-pattern>  
        </servlet-mapping> 
    <servlet>  
      <servlet-name>RestletServlet</servlet-name>  
      <servlet-class>  
         com.noelios.restlet.ext.servlet.ServerServlet   
      </servlet-class>  
   </servlet> 

And in spring bean xml file
component is declared as follow

<bean id="restletComponent" class="org.restlet.ext.spring.SpringComponent">  
                                <property name="defaultTarget" 
ref="techRestletApplication" />  
     </bean>

It keeps throwing 
SEVERE: techriskRestApi: [Noelios Restlet Engine] - The ServerServlet
couldn't find the target class. Please check that your classpath includes
restletComponent
java.lang.ClassNotFoundException: restletComponent
        at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)

For some reason it's not able to lookup this "restletComponent" bean from
spring context. 

Any idea?

Thanks,
-- 
View this message in context: 
http://n2.nabble.com/Spring-Restlet-not-working-tp4665282p4665282.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2454223

Reply via email to