Anthony,
I was using Shale's viewcontroller on a Trinidad app.
worked fine. I try to find the web.xml for that :)
However, that is not needed
<filter-mapping>
<filter-name>shale</filter-name>
<servlet-name>Faces Servlet</servlet-name>
</filter-mapping>
-M
On 10/20/06, Simon Lessard <simon.lessard.3@gmail.com> wrote:
> See my commentsi n the XML code.
>
>
> Regards
>
> <?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">
>
> <!-- General settings -->
> <description>Empty web.xml file for Web Application</description>
>
> <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>
>
> <welcome-file-list>
> <welcome-file>/faces/pages/welcome.jsp</welcome-file>
> </welcome-file-list>
>
>
> <!-- Commons Chain entrie -->
> <!-- Commons Chain Configuration Listener -->
> <context-param>
> <param-name>org.apache.commons.chain.CONFIG_WEB_RESOURCE
> </param-name>
> <param-value>/WEB-INF/chain-config.xml</param-value>
> </context-param>
>
> <listener>
> <listener-class>org.apache.commons.chain.web.ChainListener
> </listener-class>
> </listener>
>
>
> <!-- JSF entrie -->
> <context-param>
> <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
> <param-value>client</param-value>
> </context-param>
>
> <servlet>
> <servlet-name>Faces Servlet</servlet-name>
> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> <load-on-startup>1</load-on-startup>
> </servlet>
>
> <servlet-mapping>
> <servlet-name>Faces Servlet</servlet-name>
> <url-pattern>/faces/*</url-pattern>
> </servlet-mapping>
>
> <!-- You really don't want to miss anycall do you?
> That might cause a problem, not sure. Personally I would flush
> this part-->
> <!-- <servlet-mapping>
> <servlet-name>Faces Servlet</servlet-name>
> <url-pattern>*.faces</url-pattern>
> </servlet-mapping> -->
>
>
> <!-- ADF Faces entrie -->
> <servlet>
> <servlet-name>resources</servlet-name>
> <servlet-class>oracle.adf.view.faces.webapp.ResourceServlet
> </servlet-class>
> </servlet>
>
> <servlet-mapping>
> <servlet-name>resources</servlet-name>
> <url-pattern>/adf/*</url-pattern>
> </servlet-mapping>
>
> <filter>
> <filter-name>adfFaces</filter-name>
> <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter
> </filter-class>
> </filter>
>
> <!-- That's the correct mapping -->
> <filter-mapping>
> <filter-name>adfFaces</filter-name>
> <servlet-name>Faces Servlet</servlet-name>
> </filter-mapping>
>
> <!-- There's no servlet named *.jsp -->
> <!-- <filter-mapping>
> <filter-name>adfFaces</filter-name>
> <servlet-name>*.jsp</servlet-name>
> </filter-mapping> -->
>
> <!-- You should just place the filter on the servlet really. -->
> <!-- <filter-mapping>
> <filter-name>adfFaces</filter-name>
> <url-pattern>*.jspx</url-pattern>
> </filter-mapping> -->
>
>
> <!-- ADF Databinding entries -->
>
> <context-param>
> <param-name>CpxFileName</param-name>
> <param-value>org.clarke.pagedefs.DataBindings</param-value>
> </context-param>
>
> <filter>
> <filter-name>adfBindings</filter-name>
> <filter-class>oracle.adf.model.servlet.ADFBindingFilter
> </filter-class>
> </filter>
>
> <!-- You were missing the mapping for ADF Databings -->
> <filter-mapping>
> <filter-name>adfBindings</filter-name>
> <url-pattern>*.jsp</url-pattern>
> </filter-mapping>
>
> <filter-mapping>
> <filter-name>adfBindings</filter-name>
> <url-pattern>*.jspx</url-pattern>
> </filter-mapping>
>
>
> <!-- Shale entries --<
> <context-param>
> <param-name>org.apache.shale.view.EXCEPTION_DISPATCH_PATH
> </param-name>
> <param-value>/exception/correct.faces</param-value>
> </context-param>
>
>
>
> <!-- Shale Application Controller Filter -->
> <filter>
> <filter-name>shale</filter-name>
> <filter-class>org.apache.shale.faces.ShaleApplicationFilter
> </filter-class>
> </filter>
>
> <!-- That entry imply that shale will filter all request, not
> just the Faces Servlet ones, is that wanted? When that filter
> execute, it means that adfFaces filter won't be executed. Have
> you tried removing it?-->
> <filter-mapping>
> <filter-name>shale</filter-name>
> <url-pattern>/*</url-pattern>
> </filter-mapping>
>
> <!-- Duplicate entry -->
> <!--<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>
>
> </web-app>
>
> On 10/20/06, Simon Lessard <simon.lessard.3@gmail.com> wrote:
> >
> > 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 < Anthony.Yulo@headstrong.com> 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:simon.lessard.3@gmail.com]
> > > 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 <Anthony.Yulo@headstrong.com> 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: simon.lessard.3@gmail.com]
> > > > 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 <Anthony.Yulo@headstrong.com> 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: simon.lessard.3@gmail.com]
> > > > > 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 <Anthony.Yulo@headstrong.com> 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.*********************
> > >
> >
> >
>
>
--
Matthias Wessendorf
http://tinyurl.com/fmywh
further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com
|