I'm using Appfuse-2.0-m5 Hibernate/Spring MVC core.
I followed the tutorial and added the model Person, PersonManager etc.
I'm trying to expose PersonManager thru Spring httpInvoker.
My configuration is as follows:
web.xml changes
---------------
<servlet>
<servlet-name>remoting</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>remoting</servlet-name>
<url-pattern>/remoting/*</url-pattern>
</servlet-mapping>
remoting-servlet.xml has a single bean
--------------------------------------
<bean name="/peopleservice"
class="org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter">
<property name="service" ref="personManager"/> <!-- personManager bean
defined in applicationContext.xml -->
<property name="serviceInterface"
value="com.epay.epayapp.service.PersonManager"/>
</bean>
I've verified that my client is attempting to connect correctly to
http://localhost:8080/remoting/peopleservice (not peopleservice.html).
But I get this exception: PageNotFound.noHandlerFound(1041) | No mapping for
[/remoting/peopleservice] in DispatcherServlet with name 'remoting'
I've tried adding '/remoting/*' to the staticFilter includes (somewhere on
google, I came across a thread that indicated that someone had to add /dwr/*
this way to make dwr work):
<filter-name>staticFilter</filter-name>
<filter-class>org.appfuse.webapp.filter.StaticFilter</filter-class>
<init-param>
<param-name>includes</param-name>
<param-value>/scripts/dojo/*,/remoting/*</param-value>
</init-param>
<init-param>
<param-name>servletName</param-name>
<param-value>dispatcher</param-value>
</init-param>
</filter>
I still get the same exception: PageNotFound.noHandlerFound(1041).
Can someone help me figure out what I need to do/undo/add to make this work.
Thanks
satish
--
View this message in context:
http://www.nabble.com/Need-help%3A-exposing-the-PersonManager-%28in-the-tutorial%29-thru-Spring-httpInvoker-tf4215464s2369.html#a11993052
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]