0
我有一個Endpoint.java作爲glassfish + netbeans中的資源。我刪除了這個文件並創建了另一個名爲Users的資源。如何從glassfish中刪除球衣資源
Glassfish的開頭:
INFO: EJB5181:Portable JNDI names for EJB Endpoint: [java:global/rest/Endpoint, java:global/rest/Endpoint!com.shintsha.rest.server.Endpoint]
然後
我得到的錯誤
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。
我可以以某種方式刪除它嗎?我看着asadmin,但jndi沒有顯示。