Es la primera vez que realizo un intento de WebService , estoy trabajando con Eclipse , y tengo la siguiente clase:
@Path("/AltaCliente")
public class WebServicePushNotifications {
@POST
@Path("/alta")
@Produces("text/plain")
@Consumes("text/plain")
public String getHello() {
return "Hello World";
}
}
Dejo la estructura de mi proyecto ,
Cuando intento acceder al get a través de
http://localhost:8080/push_notifications/AltaCliente http://localhost:8080/push_notifications/AltaCliente/alta
me da error HTTP 404
dejo el log de la consola de mi JBOSS
Starting weld service for deployment push_notifications.war
12:13:10,874 INFO [org.jboss.web] (ServerService Thread Pool -- 60) JBAS018210: Register web context: /push_notifications
12:13:11,033 INFO [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 60) Initializing Mojarra 2.1.28-jbossorg-6 for context '/push_notifications'
12:13:11,753 INFO [org.hibernate.validator.internal.util.Version] (ServerService Thread Pool -- 60) HV000001: Hibernate Validator 4.3.2.Final-redhat-2
12:13:12,389 INFO [org.jboss.as.server] (ServerService Thread Pool -- 34) JBAS015859: Deployed "push_notifications.war" (runtime-name : "push_notifications.war")