Hi everyone,
I'm just starting with Restlet 2.0-M3. I apologize if this is a simple issue,
but I am trying to just execute a simple Spring integration with Restlet per
http://restlet.org/learn/guide/2.1/introduction/getting-started/maven-spring.
Here's what I have:
web.xml
<servlet>
<servlet-name>rest</servlet-name>
<servlet-class>
org.restlet.ext.spring.SpringServerServlet
</servlet-class>
<init-param>
<param-name>org.restlet.component</param-name>
<param-value>helloComponent</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>rest</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
applicationContext.xml
<bean id="helloComponent" class="org.restlet.ext.spring.SpringComponent">
<property name="defaultTarget" ref="helloApplication" />
</bean>
<bean id="helloApplication" class="MyApplication">
<property name="root" ref="router" />
</bean>
<!-- Define the router -->
<bean name="router" class="org.restlet.ext.spring.SpringBeanRouter">
</bean>
<!-- Define all the routes -->
<bean name="/hello" id="helloResource" class="MyResource" scope="prototype"
autowire="byName" />
Log output:
Oct 13, 2013 8:22:51 PM org.restlet.engine.log.LogFilter afterHandle
INFO: 2013-10-13 20:22:51 127.0.0.1 - 127.0.0.1
8080 GET /myContext/hello/Eric - 404 330 - 4
http://localhost:8080 Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0)
Gecko/20100101 Firefox/24.0 -
Unfortunately, I just keep getting the 404 error mentioned in the log message.
Can someone please point out my issue?
Thanks,
Eric
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3066323