PDA

View Full Version : HessianConnectionException


MZ3291
07-09-2012, 08:55 AM
Hello..

my problem is about the connection to my servlet ..
I guess that the cause is a wrong url, because a hessianConnectionException is thrown, caused by a fileNotFoundException..

But I tried several versions of urls patterns.. and before I put my servlet into a new package it was working..

the url I am using looks like the following:
http://localhost:8080/MyProject/mypackages/MyServlet

public IService get() {
HessianProxyFactory hessianProxyFactory = new HessianProxyFactory();
IService service;
try {
service = (IService) hessianProxyFactory.create(IService.class, url);
} catch (MalformedURLException e) {
// Some ExceptionHandling ..
}
return service;
}

I am using hessian in combination with Stripes, Guice and Tomcat ( if anybody as an idea that the cause may be another framework)

Awaiting any proposals ..
MZ