org.apache.myfaces.USE_ENCRYPTION set to false

2010/5/20 jiny <jiny4...@gmail.com>

>
> Anton, Thanks very much for the reply. Could you let me know how to switch
> off encryption functionality in web.xml implemented in myfaces?
>
>
>
> Anton Gavazuk wrote:
> >
> > I have not seen such error, but try to switch off encryption
> functionality
> > in web.xml
> > This funct is implemented in myfaces...
> >
> > 2010/5/20 jiny <jiny4...@gmail.com>
> >
> >>
> >> Has anyone seen the following error when trying to use the following:
> >>
> >> Richface version: 3.2.1.GA
> >> Tomcat 6
> >> JDK 6
> >> MyFaces: 1.2.2 or 2.0
> >>
> >> Web.xml:
> >>
> >> ...
> >> <context-param>
> >>      <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
> >>      <param-value>true</param-value>
> >>   </context-param>
> >>
> >>   <context-param>
> >>        <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
> >>        <param-value>com.sun.facelets.FaceletViewHandler</param-value>
> >>   </context-param>
> >> ...
> >> <context-param>
> >>      <description>
> >>            Used for encrypting view state. Only relevant for client
> >>            side state saving. See MyFaces wiki/web site documentation
> >>            for instructions on how to configure an application for
> >>            diffenent encryption strengths.
> >>        </description>
> >>      <param-name>org.apache.myfaces.SECRET</param-name>
> >>      <param-value>NzY1NDMyMTA=</param-value>
> >>   </context-param>
> >> ...
> >> <filter>
> >>      <display-name>RichFaces Filter</display-name>
> >>      <filter-name>richfaces</filter-name>
> >>      <filter-class>org.ajax4jsf.Filter</filter-class>
> >>   </filter>
> >>
> >>   <filter-mapping>
> >>      <filter-name>richfaces</filter-name>
> >>      <servlet-name>Faces Servlet</servlet-name>
> >>      <dispatcher>REQUEST</dispatcher>
> >>      <dispatcher>FORWARD</dispatcher>
> >>      <dispatcher>INCLUDE</dispatcher>
> >>   </filter-mapping>
> >> ...
> >> <listener>
> >>      <listener-class>
> >>
> >> org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
> >>   </listener>
> >>
> >> faces-config.xml:
> >> <application>
> >>      <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
> >>   </application>
> >>
> >>
> >> javax.faces.FacesException: java.security.NoSuchAlgorithmException:
> >> Cannot
> >> find any provider supporting DES/ECB/PKCS5Padding
> >>
> >>        at
> >>
> >>
> org.apache.myfaces.shared_impl.util.StateUtils.symmetric(StateUtils.java:476)
> >>
> >> ---------
> >> Caused by: java.security.NoSuchAlgorithmException: Cannot find any
> >> provider
> >> supporting DES/ECB/PKCS5Padding
> >>
> >>        at javax.crypto.Cipher.getInstance(DashoA13*..)
> >>
> >>        at
> >>
> >>
> org.apache.myfaces.shared_impl.util.StateUtils.symmetric(StateUtils.java:451)
> >>
> >>
> >> --
> >> View this message in context:
> >> http://old.nabble.com/Ajax4jsf-and-myfaces-tp28616843p28616843.html
> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Ajax4jsf-and-myfaces-tp28616843p28622168.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Reply via email to