0 Replies Latest reply on Jul 31, 2006 11:21 AM by klsateesh

    Setting up hello wolrd remoting app in NetBean5.5 Dev

      Hi All,

      I am trying to use NetBeans5.5 for Developing Seam Apps..

      As an ex i tried examples/remoting/helloworld in NetBeans5.5 by folloiwng Brian's blog http://weblogs.java.net/blog/bleonard/archive/2006/05/trying_out_jbos_2.html

      and everything went well except that i cannot see the first page..

      It is trying to Save the page as a SEAM File and showing up the Save As Dialog..

      It seems the Servlet Mapping got screwed up..

      Here is the web.xml in the Web Project..

      
      <?xml version="1.0" encoding="UTF-8"?>
      
      <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
       version="2.4">
       <!--
       <session-config>
       <session-timeout>
       30
       </session-timeout>
       </session-config>
       -->
       <welcome-file-list>
       <welcome-file>
       index.html
       </welcome-file>
       </welcome-file-list>
      
       <!-- Seam -->
      
       <listener>
       <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
       </listener>
      
      
       <!-- Propagate conversations across redirects -->
      
       <filter>
       <filter-name>Seam Redirect Filter</filter-name>
       <filter-class>org.jboss.seam.servlet.SeamRedirectFilter</filter-class>
       </filter>
      
       <filter-mapping>
       <filter-name>Seam Redirect Filter</filter-name>
       <url-pattern>*.seam</url-pattern>
       </filter-mapping>
      
       <!-- MyFaces -->
      
       <listener>
       <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
       </listener>
      
       <context-param>
       <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
       <param-value>client</param-value>
       </context-param>
      
       <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>
      
      
       <!-- Faces Servlet Mapping -->
      
       <servlet-mapping>
       <servlet-name>Faces Servlet</servlet-name>
       <url-pattern>*.seam</url-pattern>
       </servlet-mapping>
      
       <servlet>
       <servlet-name>Seam Remoting</servlet-name>
       <servlet-class>org.jboss.seam.remoting.SeamRemotingServlet</servlet-class>
       </servlet>
      
       <servlet-mapping>
       <servlet-name>Seam Remoting</servlet-name>
       <url-pattern>/seam/remoting/*</url-pattern>
       </servlet-mapping>
      
      </web-app>
      
      




      Thanks
      Sateesh