1 Reply Latest reply on Mar 9, 2007 2:20 AM by shane.bryzak

    Remoting in CVS is currently broken

      Seam Remoting is currently throwing an UnsupportedOperationException

      java.lang.UnsupportedOperationException: Cannot post to the resource servlet
       at org.jboss.seam.servlet.ResourceServlet.doPost(ResourceServlet.java:107)
      


      Seam XMLHttpRequests are POSTs so either the doPost should work, or the remoting requests need to go to something that doesn't satisfy the "/seam/resource/*" url-pattern.

      This doPost change was made pretty recently because I have been updating my CVS tree on a daily basis and I'm just now seeing this problem.

      Based on the documentation and current examples I have the following configuration.

       <filter>
       <filter-name>Seam Filter</filter-name>
       <filter-class>org.jboss.seam.web.SeamFilter</filter-class>
       </filter>
      
       <filter-mapping>
       <filter-name>Seam Filter</filter-name>
       <url-pattern>/*</url-pattern>
       </filter-mapping>
      
       <servlet>
       <servlet-name>Seam Resource Servlet</servlet-name>
       <servlet-class>org.jboss.seam.servlet.ResourceServlet</servlet-class>
       </servlet>
      
       <servlet-mapping>
       <servlet-name>Seam Resource Servlet</servlet-name>
       <url-pattern>/seam/resource/*</url-pattern>
       </servlet-mapping>