1 Reply Latest reply on Dec 1, 2009 11:46 PM by asookazian

    Problem with remoting

    idyoshin

      Good day


      I've created a simple RESTeasy service with SEAM:



      @Path("/accounting")
      @Name("bankAccounting")
      @Scope(ScopeType.APPLICATION)
      public class BankAccounting {
           
           @GET
           @Path("/begin/{identity}/{cod1c}/{codAccount1C}")
           @Produces("text/plain")
           public String begin(@PathParam("identity") String identity, @PathParam("cod1c") String cod1c, @PathParam("codAccount1c") String account1c) {
                if (identity.equals(this.check)) {
                     String currentConversation = UUID.randomUUID().toString();
                     log.info("Starting new conversation for integration " + currentConversation);
                     
                     BankCollection var = new BankCollection();
                     var.setCod1c(cod1c);
                     var.setCodAccount1c(account1c);
                     var.setConversation(currentConversation);
                     
                     collections.put(currentConversation, var);
                     conversationsList.add(currentConversation);
                     return currentConversation;
                } else {
                     return "false";
                }
           }
      }



      also there is following servlet in the web.xml:



         <servlet>
            <servlet-name>Seam Resource Servlet</servlet-name>
            <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
         </servlet>
      
         <servlet-mapping>
            <servlet-name>Seam Resource Servlet</servlet-name>
            <url-pattern>/seam/resource/*</url-pattern>
         </servlet-mapping>



      And following configuration line in the components.xml:


         <resteasy:application auto-create="true" scan-resources="true"/>



      But when I try to acces either my sevice or simply the /seam/resource/ I receive 404 error. Can someone help me with that?