Programming Tips/JAVA
[GWT] com.google.gwt.user.client.rpc.ServiceDefTarget$NoServiceEntryPointSpecifiedException: Service implementation URL not specified
Unikys
2012. 3. 13. 11:51
1. RemoteService 클래스 위에 @RemoteServiceRelativePath("서블릿경로")를 설정했나?
* 위의 "서블릿경로"는 해당하는 서블릿의 URL을 넣으면 된다. web.xml에서 설정했던 값대로하면 된다.
2. war/WEB-INF/web.xml에 맞게 매핑을 했나?
<servlet>
<servlet-name>서블릿명(같아야함)</servlet-name>
<servlet-class>사용하는패키지.UserServiceImpl</servlet-class> </servlet>
<servlet-mapping>
<servlet-name>서블릿명(같아야함)</servlet-name>
<url-pattern>/사용할매핑</url-pattern>
</servlet-mapping>
* 서블릿명이 두개가 같은지, 패키지가 맞는지 확인,
3. 구글에서 언급된 내용.
참고: http://code.google.com/p/google-web-toolkit-doc-1-4/wiki/DevGuideImplementingServices
com.google.gwt.user.client.rpc.ServiceDefTarget$NoServiceEntryPointSpecifiedException: Service implementation URL not specified. This error means that you may have omitted the call to setServiceEntryPoint() after creating your service asynchronous service instance.
- 함수 호출을 onModuleLoad나 그 이후에 할 수 있도록 하자.