-
Mar 29th, 2010, 08:35 PM
#1
org.springframework.remoting.RemoteAccessException : Cannot access Hessian remote ser
I am trying to use Hessian with Spring to access remote services. Spring 2.5 with Hessian 3.0.20.
I am getting the following exception
org.springframework.remoting.RemoteAccessException : Cannot access Hessian remote service at [https://localhost:9447/sample/remoti...ementService]; nested exception is com.caucho.hessian.client.HessianRuntimeException: java.io.FileNotFoundException: https://localhost:9447/sample/remoti...tlementService
at org.springframework.remoting.caucho.HessianClientI nterceptor.convertHessianAccessException(HessianCl ientInterceptor.java:254)
at org.springframework.remoting.caucho.HessianClientI nterceptor.invoke(HessianClientInterceptor.java:22 5)
web.xml
<servlet>
<servlet-name>remoting</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherSe rvlet</servlet-class>
<load-on-startup>20</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>remoting</servlet-name>
<url-pattern>/remoting/*</url-pattern>
</servlet-mapping>
remoting-servlet.xml<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns
="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schem...-beans-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">
<bean name="/EntitlementService"
class="org.springframework.remoting.caucho.Hessian ServiceExporter">
<property name="service" ref="sampleService" />
<property name="serviceInterface" value="com.sample.SampleService" />
</bean>
<bean id="sampleService" class="com.sample.SampleImpl">
</bean>
</beans>
Client Side Spring configuration file:
<bean id="sampleService"
class="org.springframework.remoting.caucho.Hessian ProxyFactoryBean">
<property name="serviceUrl" value="https://localhost:9447/sample/remoting/SampleService" />
<property name="serviceInterface" value="com.sample.SampleService" />
</bean>
Client access code:
ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext .xml");
SampleService service = (SampleService)context.getBean("sampleService");
service.rejectAllProvisionalGrants("Hi");
Found plenty of suggestions in some of the other threads and tried them all. Still not able to figure. Any help would be great.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules