cornflakes
Jan 31st, 2005, 05:42 PM
Hello,
I have exposed one of my beans in my existing Spring web-app as an HttpInvokerService using the HttpInvokerServiceExporter. In the
metaanalysis-servlet.xml file I have:
!--Server Side Spring Http Invoker-->
<bean name="/ArrayDesignService"
class="org.springframework.remoting.httpinvoker.HttpInvok erServiceExporter">
<property name="service">
<ref bean="arraydesignMan"/>
</property>
<property name="serviceInterface">
<value>bus.ArrayDesignManagerInterface</value>
</property>
</bean>
I have a command line client that is trying to access this service, but to no avail. I am getting:
org.springframework.remoting.RemoteAccessException : Cannot access HTTP invoker remote service at [http://localhost:8080/ArrayDesignService] ...
My client side bean factory looks as follows:
<beans>
<!-- Remoting -->
<bean id="simpleclientobject" class="tools.SimpleClientObject">
<property name="arrayDesignManagerInterface">
<ref bean="arrayDesignManagerProxy"/>
</property>
</bean>
<!-- Spring Http Invoker Client-->
<bean id="arrayDesignManagerProxy"
class="org.springframework.remoting.httpinvoker.HttpInvok erProxyFactoryBean">
<property name="serviceUrl">
<value>http://localhost:8080/ArrayDesignService</value>
</property>
<property name="serviceInterface">
<value>bus.ArrayDesignManagerInterface</value>
</property>
</bean>
</beans>
I have taken the url mappings out of my metaanalysis-servlet.xml file as well as the servlet mappings out of the [i][b]web.xml[b][i] file.
Any ideas?
I've tried to expose the service via HttpInvoker, Hessian, Burlap, and RMI and am getting the same error.
I have exposed one of my beans in my existing Spring web-app as an HttpInvokerService using the HttpInvokerServiceExporter. In the
metaanalysis-servlet.xml file I have:
!--Server Side Spring Http Invoker-->
<bean name="/ArrayDesignService"
class="org.springframework.remoting.httpinvoker.HttpInvok erServiceExporter">
<property name="service">
<ref bean="arraydesignMan"/>
</property>
<property name="serviceInterface">
<value>bus.ArrayDesignManagerInterface</value>
</property>
</bean>
I have a command line client that is trying to access this service, but to no avail. I am getting:
org.springframework.remoting.RemoteAccessException : Cannot access HTTP invoker remote service at [http://localhost:8080/ArrayDesignService] ...
My client side bean factory looks as follows:
<beans>
<!-- Remoting -->
<bean id="simpleclientobject" class="tools.SimpleClientObject">
<property name="arrayDesignManagerInterface">
<ref bean="arrayDesignManagerProxy"/>
</property>
</bean>
<!-- Spring Http Invoker Client-->
<bean id="arrayDesignManagerProxy"
class="org.springframework.remoting.httpinvoker.HttpInvok erProxyFactoryBean">
<property name="serviceUrl">
<value>http://localhost:8080/ArrayDesignService</value>
</property>
<property name="serviceInterface">
<value>bus.ArrayDesignManagerInterface</value>
</property>
</bean>
</beans>
I have taken the url mappings out of my metaanalysis-servlet.xml file as well as the servlet mappings out of the [i][b]web.xml[b][i] file.
Any ideas?
I've tried to expose the service via HttpInvoker, Hessian, Burlap, and RMI and am getting the same error.