4 Replies Latest reply on Oct 15, 2007 1:23 AM by sumitgarg1

    Remoting with Apache ? a problem

    shasho


      I have deployed successfully an application that uses the remoting component on my local jboss server. However when I try to deploy it on a server that contain apache + mod_jk connector + jboss it's not working. When I to run a page that contain the remoting script I get an error that 'Seam'is undefined. Obviously the path /seam/remoting/resource/ is not reachable because the web server (apache) is not transferring it to jboss. Any solution ?

        • 1. Re: Remoting with Apache ? a problem

          I am not 100% sure what you mean by "transfering the /seam/remoting/resource/" to jboss but I think the solution you are looking for lies in the mod_rewrite module.

          Regards

          fhh

          • 2. Re: Remoting with Apache ? a problem
            shasho



            Just for the record - the solution was indeed in the configuration to apache ? tomcat connector. One needs to add the following line in the connector .conf file

            JkMount /seam/remoting/* testWorker
            


            • 3. Re: Remoting with Apache ? a problem
              sumitgarg1

              hi am facing same problem while making application on net bean can any one help?

              my jsp



              <%@page contentType="text/html"%>
              <%@page pageEncoding="UTF-8"%>

              <%@ taglib uri="/WEB-INF/tlds/common.tld" prefix="cm"%>
              <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
              <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>






              function doit() {
              alert(11);
              var na ='cc';

              Seam.Component.getInstance("myBean").doit(na, doitCallback);
              }

              function doitCallback(result) {
              alert(result);
              }




              <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
              "http://www.w3.org/TR/html4/loose.dtd">



              <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
              Register New User



              <f:view >
              <h:form >
              Sdoit

              </h:form>
              </f:view>





              i have made entried in web.xml


              <servlet-name>Seam Resource Servlet</servlet-name>
              <servlet-class>org.jboss.seam.servlet.ResourceServlet</servlet-class>


              <servlet-mapping>
              <servlet-name>Seam Resource Servlet</servlet-name>
              <url-pattern>/seam/resource/*</url-pattern>
              </servlet-mapping>


              still getting error in browser...............seam is undefined

              • 4. Re: Remoting with Apache ? a problem
                sumitgarg1

                hi am facing same problem while making application on net bean can any one help?

                my jsp


                <%@page contentType="text/html"%>
                <%@page pageEncoding="UTF-8"%>


                <%@ taglib uri="/WEB-INF/tlds/common.tld" prefix="cm"%>
                <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
                <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>






                function doit() {
                alert(11);
                var na ='cc';

                Seam.Component.getInstance("myBean").doit(na, doitCallback);
                }

                function doitCallback(result) {
                alert(result);
                }




                <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                "http://www.w3.org/TR/html4/loose.dtd">



                <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
                Register New User



                <f:view >
                <h:form >

                start


                Sdoit





                </h:form>
                </f:view>
















                i have made entried in web.xml


                <servlet-name>Seam Resource Servlet</servlet-name>
                <servlet-class>org.jboss.seam.servlet.ResourceServlet</servlet-class>


                <servlet-mapping>
                <servlet-name>Seam Resource Servlet</servlet-name>
                <url-pattern>/seam/resource/*</url-pattern>
                </servlet-mapping>


                still getting error in browser...............seam is undefined