users@jersey.java.net

Re: [Jersey] REST+HIBERNATE+JERSEY

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Thu, 18 Sep 2008 15:00:49 +0200

Hi Ramesh,

Is there any more information about the class definition that is not
found?

I suspect that you do not have all the required hibernate jars. But i
do not use hibernate. I know others on this list do so hopefully they
will be able to help resolve your issue.

Paul.

On Sep 18, 2008, at 2:43 PM, Ramesh Kumar wrote:

> Hi,
> I am facing the following issues when using REST webservices and
> Jersey and Hibernate.
> Please help me to solve this error
> "SEVERE: Servlet.service() for servlet ServletAdaptor threw exception
> java.lang.NoClassDefFoundError
> at
> org
> .hibernate
> .ejb
> .HibernatePersistence
> .createEntityManagerFactory(HibernatePersistence.java:124)
> at
> javax
> .persistence.Persistence.createEntityManagerFactory(Persistence.java:
> 52)
> at
> javax
> .persistence.Persistence.createEntityManagerFactory(Persistence.java:
> 34)
> "
>
> with regards,
> Ramesh Kumar.A
>
>
> Watch useful tips on recipes, fitness, yoga and fashion only on MSN
> videos. Try it!