This is the first time I have made an attempt at WebService, I am working with Eclipse, and I have the following class:
@Path("/AltaCliente")
public class WebServicePushNotifications {
@POST
@Path("/alta")
@Produces("text/plain")
@Consumes("text/plain")
public String getHello() {
return "Hello World";
}
}
I leave the structure of my project,
When I try to access the get through
I get HTTP error 404
I leave the log of the console of my 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")