1 Reply Latest reply on Dec 11, 2007 2:37 PM by Jason Holmes

    404 on http://localhost/seam/resource/remoting/resource/remo

    Jason Holmes Newbie

      Hi,
      I keep getting a 404 when I attempt to retrieve the js from the SeamResourceServlet by accessing http://localhost/seam/resource/remoting/resource/remote.js because the AbstractResource is null.


      My config...

      web.xml...

      <?xml version="1.0"?>
      <web-app xmlns="http://java.sun.com/xml/ns/javaee"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
       version="2.5">
      
       <session-config>
       <session-timeout>60</session-timeout>
       </session-config>
      
       <context-param>
       <param-name>javax.faces.CONFIG_FILES</param-name>
       <param-value> /WEB-INF/faces-config.xml, /WEB-INF/bundles-config.xml </param-value>
       </context-param>
      
       <context-param>
       <param-name>facelets.LIBRARIES</param-name>
       <param-value>
      ...
       </param-value>
       </context-param>
      
       <filter>
       <filter-name>UrlRewriteFilter</filter-name>
       <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>
       <init-param>
       <param-name>confReloadCheckInterval</param-name>
       <param-value>0</param-value>
       <!-- for development only!
       <param-value>0</param-value>
       -->
       <!-- for production only!
       <param-value>-1</param-value>
       -->
       </init-param>
       </filter>
       <filter-mapping>
       <filter-name>UrlRewriteFilter</filter-name>
       <url-pattern>/*</url-pattern>
       </filter-mapping>
      
       <listener>
       <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
       </listener>
       <filter>
       <filter-name>Seam Filter</filter-name>
       <filter-class>org.jboss.seam.servlet.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.SeamResourceServlet</servlet-class>
       </servlet>
       <servlet-mapping>
       <servlet-name>Seam Resource Servlet</servlet-name>
       <url-pattern>/seam/resource/*</url-pattern>
       </servlet-mapping>
      
       <context-param>
       <param-name>facelets.DEVELOPMENT</param-name>
       <param-value>true</param-value>
       </context-param>
       <context-param>
       <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
       <param-value>.xhtml</param-value>
       </context-param>
       <servlet>
       <servlet-name>Faces Servlet</servlet-name>
       <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
       <load-on-startup>1</load-on-startup>
       </servlet>
       <servlet-mapping>
       <servlet-name>Faces Servlet</servlet-name>
       <url-pattern>*.faces</url-pattern>
       </servlet-mapping>
      
      </web-app>
      


      And here's an Event scoped class w/ the @WebRemote stuff
      @Name("updateActivityDwr")
      @AutoCreate
      public class UpdateActivityActionDwr extends ActivityAction {
      
       @WebRemote
       public void updateActivityName(Long id, String newName) {
       String authKey = getUserProfile().getAuthKey();
       this.getActivityAuthorizedClient().updateActivityName(authKey, id, newName);
       }
      
      }
      


      We were originally just using JSF/DWR, but figured we'd play with Seam. This is the last step to converting over, but I can't get the SeamResourceServlet to deliver anything.

      In debugging, the providers contain 3 objects, keyed on style, graphicImage and web. If I pass http://localhost/seam/resource/style, it at least doesn't give me a 404 (returns a blank page).

      Any idea as to why the providers in SeamResourceServlet isn't being populated?

      During startup of the web-app I see...
      10:38:30,421 INFO [Component] Component: updateActivityDwr, scope: EVENT, type: JAVA_BEAN, class: com.my.company.activity.action.UpdateActivityActionDwr
      


      and during init of the SeamResourceServlet I see a bunch of my AutoCreate classes in Init's autocreateVariables field.

      So I'm at a loss. Anyone have any ideas?