2014-03-02 3 views
0

glassfish + netbeans의 자원으로 Endpoint.java가 있습니다. 이 파일을 삭제하고 사용자라는 다른 리소스를 만들었습니다. 내가글래스 피쉬에서 저지 자원을 제거하는 방법

org.glassfish.jersey.server.model.ModelValidationException: Validation of the application resource model has failed during application initialization. 
[[FATAL] A resource model has ambiguous (sub-)resource method for HTTP method GET and input mime-types as defined by @Consumes and @Produces annotations at Java methods public java.lang.String com.shintsha.rest.server.Users.getUser(java.lang.String) and public java.lang.String com.shintsha.rest.server.Endpoint.getUser(java.lang.String) at matching regular expression /([^/]+?). These two methods produces and consumes exactly the same mime-types and therefore their invocation as a resource methods will always fail.; source='[email protected]'] 
    at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:410) 

내 ApplicationConfig.java 단순히 어떤 코드로 rs.application를 확장하는 오류가

INFO: EJB5181:Portable JNDI names for EJB Endpoint: [java:global/rest/Endpoint, java:global/rest/Endpoint!com.shintsha.rest.server.Endpoint] 

다음

:

글래스 피시는 시작한다.

어떻게해도 삭제할 수 있습니까? asadmin을 살펴 봤지만 jndi는 표시되지 않습니다.

답변

-1

솔루션 : 넷빈즈에서

클린 프로젝트를 닫고 다시 시작하고 서버를 다시 배포합니다.

관련 문제