Hello,
I am attempting to convert my regular restlet application to one
integrated with Spring. I followed the standard steps listed here:
http://wiki.restlet.org/docs_2.0/13-restlet/28-restlet/70-restlet/196-restlet.html
I configured my web.xml to get the context directly from my Router
configuration file: springrouter-conf.xml
Haven't defined any top-level beans/routers, and directly attached my router to
the resource I am trying to use.
However I keep getting the "The server has not found anything matching the
request URI" error
Attached my files below. Any help will be appreciated.
Thanks,
Sagar
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2876978
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<bean id="root" class="org.restlet.ext.spring.SpringRouter">
<property name="attachments">
<map>
<entry key="/public/siteKeys" >
<bean class="org.restlet.ext.spring.SpringFinder">
<lookup-method name="create" bean="siteKeysServerResource" />
</bean>
</entry>
</map>
</property>
</bean>
<bean id="siteKeysServerResource"
class="com.main.resources.impl.SiteKeysServerResource" />
</beans>
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>Consumer_Services</display-name>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>file:///var/lib/dmb/conf/springrouter-conf.xml</param-value>
</context-param>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
<servlet>
<servlet-name>RestletServlet</servlet-name>
<servlet-class>
org.restlet.ext.servlet.ServerServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>RestletServlet</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>