Ok... That's not a really clean web.xml. Let me clean it up fast and see if
the new version works.

On 10/20/06, Anthony Yulo <[EMAIL PROTECTED]> wrote:

This is the complete web.xml:

<?xml version = '1.0' encoding = 'windows-1252'?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
         version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee";>
    <description>Empty web.xml file for Web Application</description>
    <context-param>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>client</param-value>
    </context-param>
    <context-param>
        <param-name>CpxFileName</param-name>
        <param-value>org.clarke.pagedefs.DataBindings</param-value>
    </context-param>

    <!-- Commons Chain Configuration Resources -->
    <context-param>

<param-name>org.apache.commons.chain.CONFIG_WEB_RESOURCE</param-name>
        <param-value>/WEB-INF/chain-config.xml</param-value>
    </context-param>

<!-- Shale Application Controller Filter -->
    <context-param>

<param-name>org.apache.shale.view.EXCEPTION_DISPATCH_PATH</param-name>
        <param-value>/exception/correct.faces</param-value>
    </context-param>


<!-- Commons Chain Configuration Listener -->
  <listener>
    <listener-class>
      org.apache.commons.chain.web.ChainListener
    </listener-class>
  </listener>


  <!-- Shale Application Controller Filter Mapping -->
  <filter-mapping>
    <filter-name>shale</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>

<filter-mapping>
    <filter-name>shale</filter-name>
        <servlet-name>Faces Servlet</servlet-name>
  </filter-mapping>


    <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>

  <!-- JavaServer Faces Servlet Mapping -->
  <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.faces</url-pattern>
  </servlet-mapping>

    <servlet>
        <servlet-name>resources</servlet-name>

<servlet-class>oracle.adf.view.faces.webapp.ResourceServlet
</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>resources</servlet-name>
        <url-pattern>/adf/*</url-pattern>
    </servlet-mapping>
    <session-config>
        <session-timeout>10</session-timeout>
    </session-config>
    <mime-mapping>
        <extension>html</extension>
        <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
        <extension>txt</extension>
        <mime-type>text/plain</mime-type>
    </mime-mapping>
    <filter>
        <filter-name>adfFaces</filter-name>

<filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
    </filter>

    <filter>
        <filter-name>adfBindings</filter-name>

<filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
    </filter>

    <filter>

    <filter-name>shale</filter-name>
    <filter-class>
      org.apache.shale.faces.ShaleApplicationFilter
    </filter-class>
  </filter>


    <filter-mapping>
        <filter-name>adfFaces</filter-name>
        <servlet-name>*.jsp</servlet-name>
    </filter-mapping>
    <filter-mapping>
        <filter-name>adfFaces</filter-name>
        <url-pattern>*.jspx</url-pattern>
    </filter-mapping>

  <filter-mapping>
    <filter-name>shale</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>


    <welcome-file-list>
        <welcome-file>/faces/pages/welcome.jsp</welcome-file>
    </welcome-file-list>
</web-app>

-----Original Message-----
From: Simon Lessard [mailto:[EMAIL PROTECTED]
Sent: Friday, October 20, 2006 9:13 PM
To: adffaces-dev@incubator.apache.org
Subject: Re: ADF Faces/Trinidad & Shale?

Hello, try adding those lines to web.xml

    <filter>
        <filter-name>adfFaces</filter-name>
        <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter
</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>adfFaces</filter-name>
        <servlet-name>Faces Servlet</servlet-name>
    </filter-mapping>


On 10/20/06, Anthony Yulo <[EMAIL PROTECTED]> wrote:
>
> Shale uses the standard JSF Servlet: How do I this?
>
>   <servlet>
>       <servlet-name>faces</servlet-name>
>       <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
>     </servlet>
>     <servlet-mapping>
>       <servlet-name>faces</servlet-name>
>       <url-pattern>*.faces</url-pattern>
>     </servlet-mapping>
>
> -----Original Message-----
> From: Simon Lessard [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 20, 2006 8:52 PM
> To: adffaces-dev@incubator.apache.org
> Subject: Re: ADF Faces/Trinidad & Shale?
>
> I'm not well versed with Shale yet. However I can go with an hypothesis.
> Does Shale use a Servlet? If so, you must place ADF Faces filter on that
> servlet as well.
>
>
> Regards,
>
> ~ Simon
>
> On 10/20/06, Anthony Yulo <[EMAIL PROTECTED]> wrote:
> >
> > Yes Im working on ADF Faces. Do you have an idea why this is not
> working?
> > This happens when I put the necessary entries for shale on the
> web.xmlfile.
> > But when I erase the Shale entries, everything's fine.
> >
> > Im trying again to call a managed bean function from a javascript
> > function,
> >
> > -----Original Message-----
> > From: Simon Lessard [mailto:[EMAIL PROTECTED]
> > Sent: Friday, October 20, 2006 8:20 PM
> > To: adffaces-dev@incubator.apache.org
> > Subject: Re: ADF Faces/Trinidad & Shale?
> >
> > AdfRenderingContext no longer exists so I assume you're actually
working
> > with ADF Faces? Your trinidad filter must be installed, but not the
ADF
> > Faces one maybe?
> >
> > On 10/20/06, Anthony Yulo <[EMAIL PROTECTED]> wrote:
> > >
> > > Anyone has tried to incorporate Shale into existing Trinidad Apps?
> > >
> > >
> > >
> > > I initially tried this, I added a the necessary entries on the
web.xml
> .
> > > When I run the application it displays an error saying:
> > >
> > >
> > >
> > > 500 Internal Server Error
> > >
> > > Illegal StateException:No AdfRenderingContext
> > >
> > >
> > >
> > > //StackTrace follows....
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > *************The information transmitted is intended only for the
> person
> > > or
> > > entity to which it is addressed and may contain confidential and/or
> > > privileged material. Any review,retransmission,dissemination or
other
> > use
> > > of, or taking of any action in reliance upon, this information by
> > persons
> > > or
> > > entities other than the intended recipient is prohibited. If you
> > received
> > > this in error, please contact the sender and delete the material
from
> > any
> > > computer.*********************
> > >
> > >
> > *************The information transmitted is intended only for the
person
> > or
> > entity to which it is addressed and may contain confidential and/or
> > privileged material. Any review,retransmission,dissemination or other
> use
> > of, or taking of any action in reliance upon, this information by
> persons
> > or
> > entities other than the intended recipient is prohibited. If you
> received
> > this in error, please contact the sender and delete the material from
> any
> > computer.*********************
> >
> *************The information transmitted is intended only for the person
> or
> entity to which it is addressed and may contain confidential and/or
> privileged material. Any review,retransmission,dissemination or other
use
> of, or taking of any action in reliance upon, this information by
persons
> or
> entities other than the intended recipient is prohibited. If you
received
> this in error, please contact the sender and delete the material from
any
> computer.*********************
>
*************The information transmitted is intended only for the person
or
entity to which it is addressed and may contain confidential and/or
privileged material. Any review,retransmission,dissemination or other use
of, or taking of any action in reliance upon, this information by persons
or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from any
computer.*********************

Reply via email to