Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [riena-dev] Interface not visible from class loader!

The OSGi seems too difficult to understand, after fix this problem, I found the other problem, the client throws an exception when it call ITestService.testPermission():
Caused by: com.caucho.hessian.client.HessianRuntimeException: java.io.FileNotFoundException: http://127.0.0.1:8080/dwserver/test/testService?testPermission&RID-ec4fu9wy
...

But I am sure the HttpServer started, the server's BundleActivator is started, and the service is registered,

private void startTestService(BundleContext context) {
  ...
  props.put(RSDPublisherProperties.PROP_REMOTE_PATH,
    "/dwserver/test/testService");

  regTestService = context.registerService(ITestService.class.getName(),
    testService, props);

  System.out.println("test service registered.");
}

I saw the console output.

The other thing I noticed that is there following log was sended by the server when the client call ITestService.testPermission():


>2009-3-30 16:55:53 org.mortbay.jetty.servlet.ServletHandler$Context log
>信息: org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper: call null



Regards,
Yau

Back to the top