facebook

error while doing Ajax push in Jsf 1.2

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #289480 Reply

    kamal.osho
    Member

    hi,
    we r using tomcat6x. we r getting errors in conector in the Server.xml file,while we r implementing Ajax push in Jsf1.2 version.
    we configured the sever.xml file like this

    <Connector port=”8080″ protocol=”org.apache.coyote.http11.Http11NioProtocol”
    connectionTimeout=”20000″
    redirectPort=”8443″ />

    we configured our web.xml file like this

    <servlet>
    <servlet-name>Blocking Servlet</servlet-name>
    <servlet-class>
    com.icesoft.faces.webapp.xmlhttp.BlockingServlet
    </servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet>
    <servlet-name>Tomcat Push Servlet</servlet-name>
    <servlet-class>
    com.icesoft.faces.webapp.http.servlet.TomcatPushServlet
    </servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet-mapping>
    <servlet-name>Blocking Servlet</servlet-name>
    <url-pattern>*.iface</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
    <servlet-name>Tomcat Push Servlet</servlet-name>
    <url-pattern>*.iface</url-pattern>
    </servlet-mapping>

    i am getting this error in the tomcat console is

    ep 29, 2008 12:40:10 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    javax.servlet.ServletException: service() not supported by TomcatPushServlet. Configure the connector, replacing protocol=”HTTP/1.1″ with protocol=”org.apache.coyote.http11.Http11NioProtocol”
    at com.icesoft.faces.webapp.http.servlet.TomcatPushServlet.service(TomcatPushServlet.java:265)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
    at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:696)
    at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:667)
    at org.apache.jsp.index_jsp._jspService(index_jsp.java:57)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:880)
    at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:719)
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2081)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    can u please help me to come out of this problem

    #289487 Reply

    Loyal Water
    Member

    Moving to Off Topic >> Software Development.

    #298850 Reply

    If your server connector has

    <Connector port=”8080″ protocol=”org.apache.coyote.http11.Http11NioProtocol”
    connectionTimeout=”20000″
    redirectPort=”8443″ />

    something like this then all your servlet must be like this

    public class SampleServlet extends HttpServlet implements CometProcessor
    {
    public void event(CometEvent cometEvent) throws IOException, ServletException
    {
    //Do all code here
    }
    }

    Your servlet must not have any doget ot dopost method. Only the event method will be incovoked when the servlet recieves a call.

    Please Check for that.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: error while doing Ajax push in Jsf 1.2

You must be logged in to post in the forum log in