HIBERNATE - java.lang.NoClassDefFoundError: org/hibernate/cfg/Configuration

Discussion in 'Java' started by Eleanna Skouta, Dec 8, 2008.

  1. Hi,

    I have a web application. When I run it on the server I get this :(

    java.lang.NoClassDefFoundError: org/hibernate/cfg/Configuration

    Can anybody help me please?

    Thank you :)
     
    Eleanna Skouta, Dec 8, 2008
    #1
    1. Advertising

  2. Eleanna Skouta

    Ewald Ertl Guest

    Hi,

    On 8 Dez., 10:41, Eleanna Skouta <> wrote:
    > Hi,
    >
    > I have a web application. When I run it on the server I get this :(
    >
    > java.lang.NoClassDefFoundError: org/hibernate/cfg/Configuration
    >
    > Can anybody help me please?

    Do you have the hibernate jar-files in the classpath, when running
    your
    application on the server?

    HTH
    Ewald
     
    Ewald Ertl, Dec 8, 2008
    #2
    1. Advertising

  3. Eleanna Skouta

    Arne Vajhøj Guest

    Ewald Ertl wrote:
    > On 8 Dez., 10:41, Eleanna Skouta <> wrote:
    >> I have a web application. When I run it on the server I get this :(
    >>
    >> java.lang.NoClassDefFoundError: org/hibernate/cfg/Configuration
    >>
    >> Can anybody help me please?

    > Do you have the hibernate jar-files in the classpath, when running
    > your
    > application on the server?


    And it needs to be the correct version too.

    org.hibernate.cfg.Configuration was once
    net.sf.hibernate.cfg.Configuration !

    Arne
     
    Arne Vajhøj, Dec 9, 2008
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page