7 Replies Latest reply on Oct 28, 2009 1:45 PM by Fabio Duo

    RESTEasy Configuration

    Donald Hook Newbie
      I 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;
      public class Chart
           private Log log;
           EntityManager entityManager;
          protected FacesMessages facesMessages;
            * Get the quotes for the security
           public String getQuotes(@PathParam("backTestId") int backTestId)