Hi Simon,

I am using suffix mapping. the only thing using path
mapping is ExtensionFilter for external
resources(images. js for inputCalendar etc). here are
the parts of my web.xml, which might be relevant.

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

        <filter>
                <filter-name>ajax4jsf</filter-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>
            </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-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
        </listener>
        
                <!-- Faces Servlet -->
        <servlet>
                <servlet-name>faces</servlet-name>      
        
<servlet-class>org.apache.myfaces.webapp.MyFacesServlet</servlet-class>
                <load-on-startup>1</load-on-startup>
        </servlet>
        
                <!-- Faces Servlet Mapping -->
        <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
> 
=== message truncated ===



      
____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Reply via email to