Hi Simon,

Thanks for answering. here are the contents of my
web.xml. is there anything wrong with the mappings? I
do have pages in serveral directories and everything
works fine. 

        <context-param>
        
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
                <param-value>server</param-value>
        </context-param>

        <filter>
                <filter-name>ajax4jsf</filter-name>
                <display-name>Ajax4jsf Filter</display-name>
                <filter-class>org.ajax4jsf.Filter</filter-class>
        </filter>

        <filter>
                <filter-name>MyFacesExtensionsFilter</filter-name>
        
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
            <init-param>
                <param-name>maxFileSize</param-name>
                <param-value>20m</param-value>
                <description>Set the size limit for uploaded
files.
                    Format: 10 - 10 bytes
                            10k - 10 KB
                            10m - 10 MB
                            1g - 1 GB
                </description>
            </init-param>
        </filter>
        
        <filter-mapping>
                <filter-name>ajax4jsf</filter-name>
                <servlet-name>faces</servlet-name>
        </filter-mapping>

        <!-- extension mapping for adding <script/>, <link/>,
and other resource tags to JSF-pages  -->
        <filter-mapping>
           
<filter-name>MyFacesExtensionsFilter</filter-name>
            <servlet-name>faces</servlet-name>
        </filter-mapping>

        <!-- extension mapping for serving page-independent
resources (javascript, stylesheets, images, etc.)  -->
        <filter-mapping>
           
<filter-name>MyFacesExtensionsFilter</filter-name>
           
<url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
        </filter-mapping>
        <filter-mapping>
           
<filter-name>MyFacesExtensionsFilter</filter-name>
                <url-pattern>*.jsf</url-pattern>
        </filter-mapping>
        
        <filter-mapping>
           
<filter-name>MyFacesExtensionsFilter</filter-name>
                <url-pattern>*.jsp</url-pattern>
        </filter-mapping>

        <listener>
                <!-- Listener, that does all the startup work
(configuration, init). -->
        
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
        </listener>
        
        <servlet>
                <!-- Faces Servlet -->
                <servlet-name>faces</servlet-name>
        
<servlet-class>org.apache.myfaces.webapp.MyFacesServlet</servlet-class>
                <load-on-startup>1</load-on-startup>
        </servlet>
        
        <servlet-mapping>
                <!-- Faces Servlet Mapping -->
                <servlet-name>faces</servlet-name>
                <url-pattern>*.jsf</url-pattern>
        </servlet-mapping>



--- Simon Kitching <[EMAIL PROTECTED]> wrote:

> Hi Nitin,
> 
> Interesting...
> 
> You are using a relative url for the icon, which is
> probably not a good idea.
> 
> If you are using suffix mapping, eg "*.jsf" then the
> problem is less serious. It won't work properly once
> you have your pages in more than one directory of
> course, so I hope your application is not going to
> grow very large..
> 
> But if you are using "path mapping" for JSF, eg
>   /faces/*
> to trigger the JSF servlet, then this will
> *definitely* cause problems, as fetching the icon
> obviously triggers the faces servlet. I still would
> not expect to see "ajax" classes in the stacktrace
> as you have, nor to see the socket being closed
> before the response is complete though.
> 
> Which kind of mapping do you have for FacesServlet?
> And for the tomahawk ExtensionsFilter (if you are
> using it)?
> 
> Regards,
> 
> Simon
> 
> 
> ---- Nitin Deshmukh <[EMAIL PROTECTED]> schrieb:
> > problem was with image change on mouse over of the
> > link. I am not making any ajax/javascript calls on
> > mouse over.  as soon as I commented the image part
> in
> > my css(css provided below), my server stopped
> getting
> > this exception and is not reloading any thing. 
> > 
> > #start a:hover {
> >     border-bottom-width: 1px;
> >     border-bottom-style: solid;
> >     border-bottom-color: #ABABAB;
> >     /*background-image:
> > url(../images/startIcon_over.gif);*/
> >     background-repeat: no-repeat;
> >     background-color: #D5E8F1;
> > }
> > 
> > I am using ajax4jsf in this page but not on mouse
> > over. even if I removed ajax part, I was still
> getting
> > this error. the only solution, removing the image
> > change and I suppose I can work with that. 
> > Thanks,
> > 
> > Nitin
> > 
> > --- Simon Kitching <[EMAIL PROTECTED]>
> wrote:
> > 
> > > HI,
> > > 
> > > It looks to me like you've got some javascript
> in
> > > that page that is making an AJAX request
> triggered
> > > by a mouseover but something is then closing the
> > > socket at the webbrowser end immediately. The
> > > webserver is running fine, but when it then
> tries to
> > > send the page back to the browser it finds the
> > > client socket is no longer open, so complains.
> > > 
> > > Why you have some javascript making AJAX
> requests on
> > > mouseover I have no idea. You can find that out,
> > > though, just by doing "view source" on the page
> and
> > > looking for it. Well, it probably won't be so
> easy
> > > as the page source is sometimes quite hard to
> read,
> > > but it will be in there somewhere.
> > > 
> > > As for what is closing the socket, well it
> probably
> > > is a bug in that same piece of javascript. It
> could
> > > possibly be a firewall somewhere, I guess, but
> that
> > > seems much less likely, particularly as the POST
> of
> > > the ajax request is obviously running ok.
> > > 
> > > Regards,
> > > 
> > > Simon
> > > 
> > > 
> > > 
> > > ---- Nitin Deshmukh <[EMAIL PROTECTED]>
> schrieb:
> > > > ok, here is what I am getting.
> > > > is this useful to pinpoint the problem?
> > > > 
> > > > 04 Dec 2007 10:04:30,457 ERROR: Error writing
> > > > endDocument
> > > > java.net.SocketException: Software caused
> > > connection
> > > > abort: socket write error
> > > >         at
> > > java.net.SocketOutputStream.socketWrite0(Native
> > > > Method)
> > > >         at
> > > >
> > >
> >
>
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
> > > >         at
> > > >
> > >
> >
>
java.net.SocketOutputStream.write(SocketOutputStream.java:136)
> > > >         at
> > > >
> > >
> >
>
weblogic.servlet.internal.ChunkUtils.writeChunkTransfer(ChunkUtils.java:279)
> > > >         at
> > > >
> > >
> >
>
weblogic.servlet.internal.ChunkUtils.writeChunks(ChunkUtils.java:243)
> > > >         at
> > > >
> > >
> >
>
weblogic.servlet.internal.ChunkOutput.flush(ChunkOutput.java:311)
> > > >         at
> > > >
> > >
> >
>
weblogic.servlet.internal.ChunkOutputWrapper.flush(ChunkOutputWrapper.java:156)
> > > >         at
> > > >
> > >
> >
>
weblogic.servlet.jsp.JspWriterImpl.flush(JspWriterImpl.java:114)
> > > >         at
> > > >
> > >
> >
>
org.apache.myfaces.shared_impl.renderkit.html.HtmlResponseWriterImpl.endDocument(HtmlResponseWriterImpl.java:160)
> > > >         at
> > > >
> > >
> >
>
org.apache.myfaces.taglib.core.ViewTag.doEndTag(ViewTag.java:103)
> > > >         at
> > > >
> > >
> >
>
jsp_servlet.__landing._jspService(__landing.java:292)
> > > >         at
> > > >
> > >
> >
>
weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
> > > >         at
> > > >
> > >
> >
>
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1077)
> > > >         at
> > > >
> > >
> >
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
> > > >         at
> > > >
> > >
> >
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)
> > > >         at
> > > >
> > >
> >
>
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:330)
> > > >         at
> > > >
> > >
> >
>
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:419)
> > > >         at
> > > >
> > >
> >
>
org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.dispatch(JspTilesViewHandlerImpl.java:233)
> > > >         at
> > > >
> > >
> >
>
org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.renderView(JspTilesViewHandlerImpl.java:219)
> > > >         at
> > > >
> > >
> >
>
org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
> > > >         at
> > > >
> > >
> >
>
org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
> > > >         at
> > > >
> > >
> >
>
org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
> > > >         at
> > > 
> > > 
> > 
> > 
> > 
> >      
>
____________________________________________________________________________________
> > Looking for last minute shopping deals?  
> > Find them fast with Yahoo! Search. 
>
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
> 
> 


    The word "Impossible" itself says " I m possible".
  Sushma





      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 

Reply via email to