RESTEasy Configuration
dhook.donald.hook.gmail.com Oct 19, 2009 8:16 PMI am having a problem accessing a RESTEasy web service, the service does not get invoked when trying to access it. The apps URL is http://localhost:8080/DDH/login.seam and the RESTEasy path is /chart/{backTestId}.
I have tried http://localhost:8080/DDH/seam/resource/rest/chart/2, http://localhost:8080//seam/resource/rest/chart/2, but neither work.
I deployed the jaxrs-api.jar, resteasy-jaxrs.jar. I see there is a reference to jboss-seam-resteasy.jar, but dont see that in the Seam installation.
Any insight would be appreciated.
Here is the code snippet.
import java.util.List;
import java.util.ArrayList;
import org.jboss.seam.Component;
import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.Out;
import org.jboss.seam.annotations.Logger;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.core.Events;
import org.jboss.seam.log.Log;
import javax.persistence.EntityManager;
import org.jboss.seam.faces.FacesMessages;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.ProduceMime;
import org.dom4j.Document;
import org.dom4j.DocumentHelper;
import org.dom4j.Element;
import com.ddh.indicator.IndicatorAggregator;
import com.ddh.model.BackTestSecurity;
import com.ddh.model.Security;
import com.ddh.model.Quote;
import com.ddh.model.BackTest;
import com.ddh.model.QuoteId;
import com.ddh.web.SecurityHome;
import com.ddh.web.BackTestHome;
import com.ddh.web.QuoteHome;
@Name("chart")
@Path("/chart")
public class Chart
{
@Logger
private Log log;
@In
EntityManager entityManager;
@In
protected FacesMessages facesMessages;
.........
/*
* Get the quotes for the security
*/
@GET
@Path("/{backTestId}")
@ProduceMime("text/xml")
public String getQuotes(@PathParam("backTestId") int backTestId)
{
.......
I have tried http://localhost:8080/DDH/seam/resource/rest/chart/2, http://localhost:8080//seam/resource/rest/chart/2, but neither work.
I deployed the jaxrs-api.jar, resteasy-jaxrs.jar. I see there is a reference to jboss-seam-resteasy.jar, but dont see that in the Seam installation.
Any insight would be appreciated.
Here is the code snippet.
import java.util.List;
import java.util.ArrayList;
import org.jboss.seam.Component;
import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.Out;
import org.jboss.seam.annotations.Logger;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.core.Events;
import org.jboss.seam.log.Log;
import javax.persistence.EntityManager;
import org.jboss.seam.faces.FacesMessages;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.ProduceMime;
import org.dom4j.Document;
import org.dom4j.DocumentHelper;
import org.dom4j.Element;
import com.ddh.indicator.IndicatorAggregator;
import com.ddh.model.BackTestSecurity;
import com.ddh.model.Security;
import com.ddh.model.Quote;
import com.ddh.model.BackTest;
import com.ddh.model.QuoteId;
import com.ddh.web.SecurityHome;
import com.ddh.web.BackTestHome;
import com.ddh.web.QuoteHome;
@Name("chart")
@Path("/chart")
public class Chart
{
@Logger
private Log log;
@In
EntityManager entityManager;
@In
protected FacesMessages facesMessages;
.........
/*
* Get the quotes for the security
*/
@GET
@Path("/{backTestId}")
@ProduceMime("text/xml")
public String getQuotes(@PathParam("backTestId") int backTestId)
{
.......