Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
|
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 29th, 2008, 02:25 AM
Registered User
 
Join Date: Sep 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem while using Ajax push in jsf

hi,
we r using tomcat6x. we r getting some errors in conectors 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.Http11NioProtoc ol"
               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.TomcatPushSe rvlet
        </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.Http11NioProtoc ol"
    at com.icesoft.faces.webapp.http.servlet.TomcatPushSe rvlet.service(TomcatPushServlet.java:265)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:717)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.ApplicationDispatcher.inv oke(ApplicationDispatcher.java:630)
    at org.apache.catalina.core.ApplicationDispatcher.pro cessRequest(ApplicationDispatcher.java:436)
    at org.apache.catalina.core.ApplicationDispatcher.doF orward(ApplicationDispatcher.java:374)
    at org.apache.catalina.core.ApplicationDispatcher.for ward(ApplicationDispatcher.java:302)
    at org.apache.jasper.runtime.PageContextImpl.doForwar d(PageContextImpl.java:696)
    at org.apache.jasper.runtime.PageContextImpl.forward( PageContextImpl.java:667)
    at org.apache.jsp.index_jsp._jspService(index_jsp.jav a:57)
    at org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:717)
    at org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:374)
    at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:342)
    at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:267)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:717)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invo ke(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.invok e(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:286)
    at org.apache.coyote.http11.Http11NioProcessor.proces s(Http11NioProcessor.java:880)
    at org.apache.coyote.http11.Http11NioProtocol$Http11C onnectionHandler.process(Http11NioProtocol.java:71 9)
    at org.apache.tomcat.util.net.NioEndpoint$SocketProce ssor.run(NioEndpoint.java:2081)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(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






Similar Threads
Thread Thread Starter Forum Replies Last Post
Using JSF in javascript sbkumar Javascript How-To 0 April 2nd, 2008 10:38 AM
trouble connecting to PostgreSQL with Tomcat /JSF raindogs Apache Tomcat 0 October 31st, 2006 01:31 PM
Whether JSF or Struts is better itzme_sharat Struts 3 February 21st, 2006 10:04 AM
JSF l1234567890 JSP Basics 0 October 3rd, 2005 09:34 PM
What about JSF ? bergeroy BOOK: Expert One-on-One J2EE Design and Development 1 April 8th, 2004 01:18 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.