Hi,
I've been through everything I can find, but still can't seem to get this Http remoting to work - I always get a FileNotFoundException.
I have in my web.xml:
and in my remoting-servlet.xml:Code:<servlet> <servlet-name>remoting</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <load-on-startup>3</load-on-startup> </servlet> <servlet-mapping> <servlet-name>remoting</servlet-name> <url-pattern>/remoting/*</url-pattern> </servlet-mapping>
In my application_context.xml I have:Code:<beans> <!-- declare it using httpinvoker --> <bean name="/DiscoveryService-httpInvoker" class="org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter"> <property name="service"><ref bean="discoveryServiceTarget"/></property> <property name="serviceInterface"> <value>com.component.discovery.DiscoveryService</value> </property> </bean> </beans>
but all to no avail!Code:<!-- service we're going to remote --> <bean id="discoveryServiceTarget" class="com.component.discovery.DiscoveryServiceImpl"> <property name="quartzService"> <ref local="quartzService"/> </property> </bean> <!-- make available on "client" --> <bean id="remoteDiscoveryService" class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean"> <property name="serviceUrl"> <value>http://localhost:8080/remoting/DiscoveryService-httpInvoker</value> </property> <property name="serviceInterface"> <value>com.component.discovery.DiscoveryService</value> </property> </bean>
Can anyone please spot what I have done wrong - been banging my head on this for ages now!
One thing, maybe, to note, is that this is all on one machine...
cheers,
David


Reply With Quote
)
