Announcement Announcement Module
Collapse
No announcement yet.
Encoding the pass word throwing an exception Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Encoding the pass word throwing an exception

    when i configured my acegi-security.xml to encode the password its throwing me the error.
    can anybody tell me why.
    my exception is
    6-02-15 12:08:32,871 DEBUG java.sql.ResultSet - {rset-100002} ResultSet
    2006-02-15 12:08:32,934 DEBUG java.sql.ResultSet - {rset-100002} Header: [id, userName, password]
    2006-02-15 12:08:32,934 DEBUG java.sql.ResultSet - {rset-100002} Result: [5, swarna, test]
    2006-02-15 12:08:32,950 ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/ICE].[default] - Servlet.service() for servlet default threw exception
    java.lang.NoClassDefFoundError: org/apache/commons/codec/digest/DigestUtils
    at org.acegisecurity.providers.encoding.Md5PasswordEn coder.encodeInternal(Md5PasswordEncoder.java:57)
    at org.acegisecurity.providers.encoding.Md5PasswordEn coder.isPasswordValid(Md5PasswordEncoder.java:46)
    at org.acegisecurity.providers.dao.DaoAuthenticationP rovider.additionalAuthenticationChecks(DaoAuthenti cationProvider.java:59)
    at org.acegisecurity.providers.dao.AbstractUserDetail sAuthenticationProvider.authenticate(AbstractUserD etailsAuthenticationProvider.java:153)
    at org.acegisecurity.providers.ProviderManager.doAuth entication(ProviderManager.java:208)
    at org.acegisecurity.AbstractAuthenticationManager.au thenticate(AbstractAuthenticationManager.java:49)
    at org.acegisecurity.ui.webapp.AuthenticationProcessi ngFilter.attemptAuthentication(AuthenticationProce ssingFilter.java:90)
    at org.acegisecurity.ui.AbstractProcessingFilter.doFi lter(AbstractProcessingFilter.java:228)
    at org.acegisecurity.util.FilterChainProxy$VirtualFil terChain.doFilter(FilterChainProxy.java:303)
    at org.acegisecurity.context.HttpSessionContextIntegr ationFilter.doFilter(HttpSessionContextIntegration Filter.java:220)
    at org.acegisecurity.util.FilterChainProxy$VirtualFil terChain.doFilter(FilterChainProxy.java:303)
    at org.acegisecurity.util.FilterChainProxy.doFilter(F ilterChainProxy.java:173)
    at org.acegisecurity.util.FilterToBeanProxy.doFilter( FilterToBeanProxy.java:120)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:178)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:868)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(Http11BaseProt ocol.java:663)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThr ead.runIt(LeaderFollowerWorkerThread.java:80)
    at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Unknown Source)

    and my config file is
    <bean id="authenticationManager" class="org.acegisecurity.providers.ProviderManager ">
    <property name="providers">
    <list>
    <ref bean="daoAuthenticationProvider"/>
    </list>
    </property>
    </bean>

    <bean id ="daoAuthenticationProvider" class="org.acegisecurity.providers.dao.DaoAuthenti cationProvider">
    <property name = "userDetailsService">
    <ref local = "mySecurityDao"/>
    </property>
    <property name = "saltSource">
    <bean class = "org.acegisecurity.providers.dao.salt.SystemWideSa ltSource">
    <property name = "systemWideSalt">
    <value>123XYZ</value>
    </property>
    </bean>

    </property>
    <property name = "passwordEncoder">
    <bean class = "org.acegisecurity.providers.encoding.Md5PasswordE ncoder"/>
    </property>
    </bean>
    is there anthing else that i need to declare

  • #2
    Since it's mentioned in the error messsage I'd guess that you're either missing the apache commons DigestUtils, or there's some package that it needs that's missing.

    Comment


    • #3
      Add commons-codec-1.3.jar to your classpath.

      Comment

      Working...
      X