Results 1 to 2 of 2

Thread: A RPC problem

  1. #1
    Ext User
    Join Date
    Jun 2008
    Posts
    27

    Default A RPC problem

    [ERROR] Unable to instantiate 'com.cqiao.cmw.server.SynthMineParamsServiceImpl'
    java.lang.IllegalAccessException: Class com.google.gwt.dev.shell.GWTShellServlet can not access a member of class com.cqiao.cmw.server.SynthMineParamsServiceImpl with modifiers ""
    at com.google.gwt.dev.shell.GWTShellServlet.tryGetOrLoadServlet(GWTShellServlet.java:953)
    at com.google.gwt.dev.shell.GWTShellServlet.service(GWTShellServlet.java:278)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

    //===========================
    the endpoint set:
    SynthMineParamsServiceAsync synthMineParamsService=
    (SynthMineParamsServiceAsync) GWT.create(SynthMineParamsService.class);
    ServiceDefTarget endpoint = (ServiceDefTarget) synthMineParamsService;
    String moduleRelativeURL = GWT.getModuleBaseURL() + "service";
    endpoint.setServiceEntryPoint(moduleRelativeURL);
    Registry.register("synthMineParamsService", synthMineParamsService);
    //==========================
    and the servlet in .gwt.xml:
    <servlet path='/service' class='com.cqiao.cmw.server.SynthMineParamsServiceImpl'></servlet>
    //=========================
    what is wrong?

  2. #2
    Ext User
    Join Date
    Jun 2008
    Posts
    27

    Default

    If the endpoint and the -GWT.XML are both right, please check you service implemented class. It needs a public, zero-argument constructor.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •