commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fahmi Hachicha <fahmi.hachi...@gmail.com>
Subject Re: [codec] DigestUtils.md5Hex Exception inside Servlet
Date Sat, 09 Apr 2011 20:59:25 GMT
Hello,

This was resolved by adding the jar file to the lib directory of the
deployment war file.
Thanks
Fahmi

2011/4/7 Henri Yandell <flamefew@gmail.com>

> That's a pretty boring class Java-wise and it seems unlikely that your
> container is putting codec in the classpath on its own, so I suspect
> the problem is in how you're making the jar available within the
> servlet container.
>
> Hen
>
> On Thu, Apr 7, 2011 at 1:23 AM, Fahmi Hachicha <fahmi.hachicha@gmail.com>
> wrote:
> > Hello,
> >
> > The DigestUtils.md5Hex method generate an exception when used inside a
> > Servlet :
> >
> > java.lang.NoClassDefFoundError:
> org/apache/commons/codec/digest/DigestUtils
> >
> > The class DigestUtils works correctly when used in a test class with main
> > method in the same project.
> >
> > The same error appears when it is used in a bean associated to a JSP page
> > using MyFaces.
> >
> > Thanks
> > Fahmi
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message