Upgrading to hibernate annotation to version 3.3.0.ga

10 messages Options
Embed this post
Permalink
fadhlirahim

Upgrading to hibernate annotation to version 3.3.0.ga

Reply Threaded More More options
Print post
Permalink
Hello guys,

I've stumbled upon some trouble while upgrading my hibernate version to hibernate 3.2.5.ga and hibernate annotation 3.3.0.ga. If you try to build and run integration-test, this error will come out.

ERROR - ContextLoader.initWebApplicationContext(203) | Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in URL [
file:/E:/projects/epermit-backend-integrator/target/classes/applicationContext-dao.xml]: Invocation of init method faile
d; nested exception is java.lang.NoClassDefFoundError: org/hibernate/annotations/common/reflection/ReflectionManager
Caused by:
java.lang.NoClassDefFoundError: org/hibernate/annotations/common/reflection/ReflectionManager


It seems that the new version of hibernate annotation needs a particular jar file to work. If you download the hibernate annotation zip file, go to the lib folder and you'll find a jar file named hibernate-common-annotations.jar. Install this file in your maven repository and include the dependency in your pom.xml file.  Then, everything will work normally.


--
/fadhli
mraible

Re: Upgrading to hibernate annotation to version 3.3.0.ga

Reply Threaded More More options
Print post
Permalink
Sounds like a bug in hibernate-annotations, no? It doesn't look like
this JAR is in the central Maven repo, nor does hibernate-annotations
contain a dependency on it.

Below are the versions of Hibernate we're currently using in AppFuse:

        <hibernate.version>3.2.5.ga</hibernate.version>
        <hibernate.annotations.version>3.2.1.ga</hibernate.annotations.version>
        <hibernate.entitymanager.version>3.2.1.ga</hibernate.entitymanager.version>

Why did you see the need to upgrade to 3.3.0.ga for hibernate-annotations?

Matt

On 8/22/07, fadhli <[hidden email]> wrote:

> Hello guys,
>
> I've stumbled upon some trouble while upgrading my hibernate version to
> hibernate 3.2.5.ga and hibernate annotation 3.3.0.ga. If you try to build
> and run integration-test, this error will come out.
>
> ERROR - ContextLoader.initWebApplicationContext(203) |
> Context initialization failed
>  org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'sessionFactory' defined in URL [
> file:/E:/projects/epermit-backend-integrator/target/classes/applicationContext-dao.xml]:
> Invocation of init method faile
>  d; nested exception is java.lang.NoClassDefFoundError:
> org/hibernate/annotations/common/reflection/ReflectionManager
>  Caused by:
>  java.lang.NoClassDefFoundError:
> org/hibernate/annotations/common/reflection/ReflectionManager
>
>
> It seems that the new version of hibernate annotation needs a particular jar
> file to work. If you download the hibernate annotation zip file, go to the
> lib folder and you'll find a jar file named
> hibernate-common-annotations.jar. Install this file in your
> maven repository and include the dependency in your pom.xml file.  Then,
> everything will work normally.
>
>
> --
> /fadhli


--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Mike Horwitz

Re: Upgrading to hibernate annotation to version 3.3.0.ga

Reply Threaded More More options
Print post
Permalink
According to mvnrepository its all there: http://mvnrepository.com/artifact/org.hibernate/hibernate-commons-annotations. Looks like Hibernate have added a new package to their stack for 3.3.0.ga?
 
Mike
 
On 8/22/07, Matt Raible <[hidden email]> wrote:
Sounds like a bug in hibernate-annotations, no? It doesn't look like
this JAR is in the central Maven repo, nor does hibernate-annotations
contain a dependency on it.

Below are the versions of Hibernate we're currently using in AppFuse:

       <hibernate.version>3.2.5.ga</hibernate.version>
       < hibernate.annotations.version>3.2.1.ga</hibernate.annotations.version>
       <hibernate.entitymanager.version>3.2.1.ga</hibernate.entitymanager.version>

Why did you see the need to upgrade to 3.3.0.ga for hibernate-annotations?

Matt

On 8/22/07, fadhli <[hidden email]> wrote:

> Hello guys,
>
> I've stumbled upon some trouble while upgrading my hibernate version to
> hibernate 3.2.5.ga and hibernate annotation 3.3.0.ga. If you try to build
> and run integration-test, this error will come out.
>
> ERROR - ContextLoader.initWebApplicationContext(203) |
> Context initialization failed
>  org.springframework.beans.factory.BeanCreationException :
> Error creating bean with name 'sessionFactory' defined in URL [
> file:/E:/projects/epermit-backend-integrator/target/classes/applicationContext-dao.xml]:
> Invocation of init method faile
>  d; nested exception is java.lang.NoClassDefFoundError:

> org/hibernate/annotations/common/reflection/ReflectionManager
>  Caused by:
>  java.lang.NoClassDefFoundError:
> org/hibernate/annotations/common/reflection/ReflectionManager
>
>
> It seems that the new version of hibernate annotation needs a particular jar
> file to work. If you download the hibernate annotation zip file, go to the
> lib folder and you'll find a jar file named
> hibernate-common-annotations.jar. Install this file in your
> maven repository and include the dependency in your pom.xml file.  Then,
> everything will work normally.
>
>
> --
> /fadhli


--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


mraible

Re: Upgrading to hibernate annotation to version 3.3.0.ga

Reply Threaded More More options
Print post
Permalink
It looks like hibernate-entitymanager 3.2.1.ga has a similar issue -
bug I can't find jboss-common-core in Maven's central repo:

Missing:
----------
1) jboss:jboss-common-core:jar:2.0.4.GA

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=jboss -DartifactId=jboss-common-core \
          -Dversion=2.0.4.GA -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:       mvn deploy:deploy-file -DgroupId=jboss
-DartifactId=jboss-common-core \
          -Dversion=2.0.4.GA -Dpackaging=jar -Dfile=/path/to/file \
           -Durl=[url] -DrepositoryId=[id]

We should probably post a message to the Hibernate Forums asking about
upgrading and figure out why there's new dependencies. I'll take care
of this now.

Matt

On 8/22/07, Michael Horwitz <[hidden email]> wrote:

> According to mvnrepository its all there:
> http://mvnrepository.com/artifact/org.hibernate/hibernate-commons-annotations.
> Looks like Hibernate have added a new package to their stack for 3.3.0.ga?
>
> Mike
>
> On 8/22/07, Matt Raible <[hidden email]> wrote:
> >
> > Sounds like a bug in hibernate-annotations, no? It doesn't look like
> > this JAR is in the central Maven repo, nor does hibernate-annotations
> > contain a dependency on it.
> >
> > Below are the versions of Hibernate we're currently using in AppFuse:
> >
> >        <hibernate.version>3.2.5.ga</hibernate.version>
> >        <
> hibernate.annotations.version>3.2.1.ga</hibernate.annotations.version>
> >
> <hibernate.entitymanager.version>3.2.1.ga</hibernate.entitymanager.version>
> >
> > Why did you see the need to upgrade to 3.3.0.ga for hibernate-annotations?
> >
> > Matt
> >
> > On 8/22/07, fadhli <[hidden email]> wrote:
> > > Hello guys,
> > >
> > > I've stumbled upon some trouble while upgrading my hibernate version to
> > > hibernate 3.2.5.ga and hibernate annotation 3.3.0.ga. If you try to
> build
> > > and run integration-test, this error will come out.
> > >
> > > ERROR - ContextLoader.initWebApplicationContext(203) |
> > > Context initialization failed
> > >
> org.springframework.beans.factory.BeanCreationException :
> > > Error creating bean with name 'sessionFactory' defined in URL [
> > >
> file:/E:/projects/epermit-backend-integrator/target/classes/applicationContext-dao.xml]:
> > > Invocation of init method faile
> > >  d; nested exception is java.lang.NoClassDefFoundError:
> > >
> org/hibernate/annotations/common/reflection/ReflectionManager
> > >  Caused by:
> > >  java.lang.NoClassDefFoundError:
> > >
> org/hibernate/annotations/common/reflection/ReflectionManager
> > >
> > >
> > > It seems that the new version of hibernate annotation needs a particular
> jar
> > > file to work. If you download the hibernate annotation zip file, go to
> the
> > > lib folder and you'll find a jar file named
> > > hibernate-common-annotations.jar. Install this file in
> your
> > > maven repository and include the dependency in your pom.xml file.  Then,
> > > everything will work normally.
> > >
> > >
> > > --
> > > /fadhli
> >
> >
> > --
> > http://raibledesigns.com
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>
>


--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Mike Horwitz

Re: Upgrading to hibernate annotation to version 3.3.0.ga

Reply Threaded More More options
Print post
Permalink
One solution may be to add the JBoss repository to the list in the pom.xml: it seems to have everything JBoss related in it: http://repository.jboss.com/maven2/
 
Mike
 
On 8/22/07, Matt Raible <[hidden email]> wrote:
It looks like hibernate-entitymanager 3.2.1.ga has a similar issue -
bug I can't find jboss-common-core in Maven's central repo:

Missing:
----------
1) jboss:jboss-common-core:jar:2.0.4.GA

Try downloading the file manually from the project website.

Then, install it using the command:
     mvn install:install-file -DgroupId=jboss -DartifactId=jboss-common-core \
         -Dversion=2.0.4.GA -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:       mvn deploy:deploy-file -DgroupId=jboss
-DartifactId=jboss-common-core \
         -Dversion=2.0.4.GA -Dpackaging=jar -Dfile=/path/to/file \
          -Durl=[url] -DrepositoryId=[id]

We should probably post a message to the Hibernate Forums asking about
upgrading and figure out why there's new dependencies. I'll take care
of this now.

Matt

On 8/22/07, Michael Horwitz <[hidden email]> wrote:

> According to mvnrepository its all there:
> http://mvnrepository.com/artifact/org.hibernate/hibernate-commons-annotations .
> Looks like Hibernate have added a new package to their stack for 3.3.0.ga?
>
> Mike
>
> On 8/22/07, Matt Raible <[hidden email]> wrote:
> >
> > Sounds like a bug in hibernate-annotations, no? It doesn't look like
> > this JAR is in the central Maven repo, nor does hibernate-annotations
> > contain a dependency on it.

> >
> > Below are the versions of Hibernate we're currently using in AppFuse:
> >
> >        <hibernate.version> 3.2.5.ga</hibernate.version>
> >        <
> hibernate.annotations.version>3.2.1.ga</hibernate.annotations.version>
> >
> <hibernate.entitymanager.version >3.2.1.ga</hibernate.entitymanager.version>
> >
> > Why did you see the need to upgrade to 3.3.0.ga for hibernate-annotations?
> >
> > Matt
> >
> > On 8/22/07, fadhli <[hidden email]> wrote:
> > > Hello guys,
> > >
> > > I've stumbled upon some trouble while upgrading my hibernate version to
> > > hibernate 3.2.5.ga and hibernate annotation 3.3.0.ga. If you try to
> build
> > > and run integration-test, this error will come out.
> > >
> > > ERROR - ContextLoader.initWebApplicationContext(203) |
> > > Context initialization failed
> > >
> org.springframework.beans.factory.BeanCreationException :
> > > Error creating bean with name 'sessionFactory' defined in URL [
> > >
> file:/E:/projects/epermit-backend-integrator/target/classes/applicationContext-dao.xml]:
> > > Invocation of init method faile
> > >  d; nested exception is java.lang.NoClassDefFoundError:
> > >
> org/hibernate/annotations/common/reflection/ReflectionManager
> > >  Caused by:
> > >  java.lang.NoClassDefFoundError :
> > >
> org/hibernate/annotations/common/reflection/ReflectionManager
> > >
> > >
> > > It seems that the new version of hibernate annotation needs a particular
> jar
> > > file to work. If you download the hibernate annotation zip file, go to
> the
> > > lib folder and you'll find a jar file named
> > > hibernate-common-annotations.jar. Install this file in
> your
> > > maven repository and include the dependency in your pom.xml file.  Then,
> > > everything will work normally.
> > >
> > >
> > > --
> > > /fadhli
> >
> >
> > --
> > http://raibledesigns.com
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>
>


--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


mraible

Re: Upgrading to hibernate annotation to version 3.3.0.ga

Reply Threaded More More options
Print post
Permalink
This solves the dependency resolution problem, but it creates a new
problem. I've posted the details on Hibernate's forums.

http://forum.hibernate.org/viewtopic.php?p=2362810

Thanks,

Matt

On 8/22/07, Michael Horwitz <[hidden email]> wrote:

> One solution may be to add the JBoss repository to the list in the pom.xml:
> it seems to have everything JBoss related in it:
> http://repository.jboss.com/maven2/
>
> Mike
>
> On 8/22/07, Matt Raible <[hidden email]> wrote:
> >
> > It looks like hibernate-entitymanager 3.2.1.ga has a similar issue -
> > bug I can't find jboss-common-core in Maven's central repo:
> >
> > Missing:
> > ----------
> > 1) jboss:jboss-common-core:jar:2.0.4.GA
> >
> > Try downloading the file manually from the project website.
> >
> > Then, install it using the command:
> >      mvn install:install-file -DgroupId=jboss
> -DartifactId=jboss-common-core \
> >          -Dversion=2.0.4.GA -Dpackaging=jar -Dfile=/path/to/file
> > Alternatively, if you host your own repository you can deploy the file
> > there:       mvn deploy:deploy-file -DgroupId=jboss
> > -DartifactId=jboss-common-core \
> >          -Dversion=2.0.4.GA -Dpackaging=jar -Dfile=/path/to/file \
> >           -Durl=[url] -DrepositoryId=[id]
> >
> > We should probably post a message to the Hibernate Forums asking about
> > upgrading and figure out why there's new dependencies. I'll take care
> > of this now.
> >
> > Matt
> >
> > On 8/22/07, Michael Horwitz <[hidden email]> wrote:
> > > According to mvnrepository its all there:
> > >
> http://mvnrepository.com/artifact/org.hibernate/hibernate-commons-annotations
> .
> > > Looks like Hibernate have added a new package to their stack for
> 3.3.0.ga?
> > >
> > > Mike
> > >
> > > On 8/22/07, Matt Raible < [hidden email]> wrote:
> > > >
> > > > Sounds like a bug in hibernate-annotations, no? It doesn't look like
> > > > this JAR is in the central Maven repo, nor does hibernate-annotations
> > > > contain a dependency on it.
> > > >
> > > > Below are the versions of Hibernate we're currently using in AppFuse:
> > > >
> > > >        <hibernate.version> 3.2.5.ga</hibernate.version>
> > > >        <
> > >
> hibernate.annotations.version>3.2.1.ga</hibernate.annotations.version>
> > > >
> > > <hibernate.entitymanager.version
> >3.2.1.ga</hibernate.entitymanager.version>
> > > >
> > > > Why did you see the need to upgrade to 3.3.0.ga for
> hibernate-annotations?
> > > >
> > > > Matt
> > > >
> > > > On 8/22/07, fadhli <[hidden email]> wrote:
> > > > > Hello guys,
> > > > >
> > > > > I've stumbled upon some trouble while upgrading my hibernate version
> to
> > > > > hibernate 3.2.5.ga and hibernate annotation 3.3.0.ga. If you try to
> > > build
> > > > > and run integration-test, this error will come out.
> > > > >
> > > > > ERROR -
> ContextLoader.initWebApplicationContext(203) |
> > > > > Context initialization failed
> > > > >
> > > org.springframework.beans.factory.BeanCreationException
> :
> > > > > Error creating bean with name 'sessionFactory' defined in URL [
> > > > >
> > >
> file:/E:/projects/epermit-backend-integrator/target/classes/applicationContext-dao.xml]:
> > > > > Invocation of init method faile
> > > > >  d; nested exception is java.lang.NoClassDefFoundError:
> > > > >
> > >
> org/hibernate/annotations/common/reflection/ReflectionManager
> > > > >  Caused by:
> > > > >  java.lang.NoClassDefFoundError :
> > > > >
> > >
> org/hibernate/annotations/common/reflection/ReflectionManager
> > > > >
> > > > >
> > > > > It seems that the new version of hibernate annotation needs a
> particular
> > > jar
> > > > > file to work. If you download the hibernate annotation zip file, go
> to
> > > the
> > > > > lib folder and you'll find a jar file named
> > > > > hibernate-common-annotations.jar. Install this file
> in
> > > your
> > > > > maven repository and include the dependency in your pom.xml file.
> Then,
> > > > > everything will work normally.
> > > > >
> > > > >
> > > > > --
> > > > > /fadhli
> > > >
> > > >
> > > > --
> > > > http://raibledesigns.com
> > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > [hidden email]
> > > > For additional commands, e-mail: [hidden email]
> > > >
> > > >
> > >
> > >
> >
> >
> > --
> > http://raibledesigns.com
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>
>


--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

fadhlirahim

Re: Upgrading to hibernate annotation to version 3.3.0.ga

Reply Threaded More More options
Print post
Permalink
In reply to this post by mraible
Sorry for replying so late Matt.I had a problem with composite id using annotations and I read from the hibernate forum to upgrade to the latest hibernate library files. I didnt' know I would've entered a whole new mess.

On 8/22/07, Matt Raible <[hidden email]> wrote:
Sounds like a bug in hibernate-annotations, no? It doesn't look like
this JAR is in the central Maven repo, nor does hibernate-annotations
contain a dependency on it.

Below are the versions of Hibernate we're currently using in AppFuse:

        <hibernate.version>3.2.5.ga</hibernate.version>
        <hibernate.annotations.version>3.2.1.ga</hibernate.annotations.version>
        <hibernate.entitymanager.version>3.2.1.ga</hibernate.entitymanager.version>

Why did you see the need to upgrade to 3.3.0.ga for hibernate-annotations?

Matt

On 8/22/07, fadhli <[hidden email]> wrote:

> Hello guys,
>
> I've stumbled upon some trouble while upgrading my hibernate version to
> hibernate 3.2.5.ga and hibernate annotation 3.3.0.ga. If you try to build
> and run integration-test, this error will come out.
>
> ERROR - ContextLoader.initWebApplicationContext(203) |
> Context initialization failed
>  org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'sessionFactory' defined in URL [
> file:/E:/projects/epermit-backend-integrator/target/classes/applicationContext-dao.xml]:
> Invocation of init method faile
>  d; nested exception is java.lang.NoClassDefFoundError:
> org/hibernate/annotations/common/reflection/ReflectionManager
>  Caused by:
>  java.lang.NoClassDefFoundError:
> org/hibernate/annotations/common/reflection/ReflectionManager
>
>
> It seems that the new version of hibernate annotation needs a particular jar
> file to work. If you download the hibernate annotation zip file, go to the
> lib folder and you'll find a jar file named
> hibernate-common-annotations.jar. Install this file in your
> maven repository and include the dependency in your pom.xml file.  Then,
> everything will work normally.
>
>
> --
> /fadhli


--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]




--
/fadhli
fadhlirahim

Re: Upgrading to hibernate annotation to version 3.3.0.ga

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Matt, everyone,

Do we need to use hibernate-entity-manager along side with hibernate annotations?

On 8/23/07, fadhli <[hidden email]> wrote:
Sorry for replying so late Matt.I had a problem with composite id using annotations and I read from the hibernate forum to upgrade to the latest hibernate library files. I didnt' know I would've entered a whole new mess.

On 8/22/07, Matt Raible <[hidden email]> wrote:
Sounds like a bug in hibernate-annotations, no? It doesn't look like
this JAR is in the central Maven repo, nor does hibernate-annotations
contain a dependency on it.

Below are the versions of Hibernate we're currently using in AppFuse:

        <hibernate.version>3.2.5.ga</hibernate.version>
        <hibernate.annotations.version >3.2.1.ga</hibernate.annotations.version>
        <hibernate.entitymanager.version>3.2.1.ga</hibernate.entitymanager.version>

Why did you see the need to upgrade to 3.3.0.ga for hibernate-annotations?

Matt

On 8/22/07, fadhli <[hidden email]> wrote:
> Hello guys,
>
> I've stumbled upon some trouble while upgrading my hibernate version to

> hibernate 3.2.5.ga and hibernate annotation 3.3.0.ga. If you try to build
> and run integration-test, this error will come out.
>
> ERROR - ContextLoader.initWebApplicationContext(203) |
> Context initialization failed
>  org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'sessionFactory' defined in URL [
> file:/E:/projects/epermit-backend-integrator/target/classes/applicationContext-dao.xml]:
> Invocation of init method faile
>  d; nested exception is java.lang.NoClassDefFoundError:
> org/hibernate/annotations/common/reflection/ReflectionManager
>  Caused by:
>  java.lang.NoClassDefFoundError:
> org/hibernate/annotations/common/reflection/ReflectionManager
>
>
> It seems that the new version of hibernate annotation needs a particular jar
> file to work. If you download the hibernate annotation zip file, go to the
> lib folder and you'll find a jar file named
> hibernate-common-annotations.jar. Install this file in your
> maven repository and include the dependency in your pom.xml file.  Then,
> everything will work normally.
>
>
> --
> /fadhli


--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]




--
/fadhli



--
/fadhli
mraible

Re: Upgrading to hibernate annotation to version 3.3.0.ga

Reply Threaded More More options
Print post
Permalink
No - you only need it if you're using JPA.

Matt


On 8/22/07, fadhli <[hidden email]> wrote:

> Matt, everyone,
>
> Do we need to use hibernate-entity-manager along side with hibernate
> annotations?
>
> On 8/23/07, fadhli <[hidden email]> wrote:
> >
> > Sorry for replying so late Matt.I had a problem with composite id using
> > annotations and I read from the hibernate forum to upgrade to the latest
> > hibernate library files. I didnt' know I would've entered a whole new
> mess.
> >
> > On 8/22/07, Matt Raible <[hidden email]> wrote:
> > >
> > > Sounds like a bug in hibernate-annotations, no? It doesn't look like
> > > this JAR is in the central Maven repo, nor does hibernate-annotations
> > > contain a dependency on it.
> > >
> > > Below are the versions of Hibernate we're currently using in AppFuse:
> > >
> > >         <hibernate.version>3.2.5.ga</hibernate.version>
> > >
> <hibernate.annotations.version>3.2.1.ga</hibernate.annotations.version>
> > >
> > >         <hibernate.entitymanager.version>3.2.1.ga
> > > </hibernate.entitymanager.version>
> > >
> > > Why did you see the need to upgrade to 3.3.0.ga for
> > > hibernate-annotations?
> > >
> > > Matt
> > >
> > > On 8/22/07, fadhli <[hidden email]> wrote:
> > > > Hello guys,
> > > >
> > > > I've stumbled upon some trouble while upgrading my hibernate version
> > > to
> > > > hibernate 3.2.5.ga and hibernate annotation 3.3.0.ga. If you try to
> > > build
> > > > and run integration-test, this error will come out.
> > > >
> > > > ERROR - ContextLoader.initWebApplicationContext(203) |
> > > > Context initialization failed
> > > >  org.springframework.beans.factory.BeanCreationException:
> > > > Error creating bean with name 'sessionFactory' defined in URL [
> > > >
> > >
> file:/E:/projects/epermit-backend-integrator/target/classes/applicationContext-
> > > dao.xml]:
> > > > Invocation of init method faile
> > > >  d; nested exception is java.lang.NoClassDefFoundError:
> > > > org/hibernate/annotations/common/reflection/ReflectionManager
> > > >  Caused by:
> > > >  java.lang.NoClassDefFoundError:
> > > > org/hibernate/annotations/common/reflection/ReflectionManager
> > > >
> > > >
> > > > It seems that the new version of hibernate annotation needs a
> > > particular jar
> > > > file to work. If you download the hibernate annotation zip file, go to
> > > the
> > > > lib folder and you'll find a jar file named
> > > > hibernate-common-annotations.jar. Install this file in your
> > > > maven repository and include the dependency in your pom.xmlfile.
> Then,
> > > > everything will work normally.
> > > >
> > > >
> > > > --
> > > > /fadhli
> > >
> > >
> > > --
> > > http://raibledesigns.com
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> > >
> > >
> >
> >
> > --
> > /fadhli
>
>
>
>
> --
> /fadhli
>


--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

mraible

Re: Upgrading to hibernate annotation to version 3.3.0.ga

Reply Threaded More More options
Print post
Permalink
In reply to this post by fadhlirahim
FWIW - I've upgraded to hibernate-annotations 3.3.0.ga in SVN.

http://issues.appfuse.org/browse/APF-853

Matt

fadhlirahim wrote:
Sorry for replying so late Matt.I had a problem with composite id using
annotations and I read from the hibernate forum to upgrade to the latest
hibernate library files. I didnt' know I would've entered a whole new mess.

On 8/22/07, Matt Raible <matt@raibledesigns.com> wrote:
>
> Sounds like a bug in hibernate-annotations, no? It doesn't look like
> this JAR is in the central Maven repo, nor does hibernate-annotations
> contain a dependency on it.
>
> Below are the versions of Hibernate we're currently using in AppFuse:
>
>         <hibernate.version>3.2.5.ga</hibernate.version>
>         <hibernate.annotations.version>3.2.1.ga
> </hibernate.annotations.version>
>         <hibernate.entitymanager.version>3.2.1.ga
> </hibernate.entitymanager.version>
>
> Why did you see the need to upgrade to 3.3.0.ga for hibernate-annotations?
>
> Matt
>
> On 8/22/07, fadhli <fadhlirahim@gmail.com> wrote:
> > Hello guys,
> >
> > I've stumbled upon some trouble while upgrading my hibernate version to
> > hibernate 3.2.5.ga and hibernate annotation 3.3.0.ga. If you try to
> build
> > and run integration-test, this error will come out.
> >
> > ERROR - ContextLoader.initWebApplicationContext(203) |
> > Context initialization failed
> >  org.springframework.beans.factory.BeanCreationException:
> > Error creating bean with name 'sessionFactory' defined in URL [
> >
> file:/E:/projects/epermit-backend-integrator/target/classes/applicationContext-
> dao.xml]:
> > Invocation of init method faile
> >  d; nested exception is java.lang.NoClassDefFoundError:
> > org/hibernate/annotations/common/reflection/ReflectionManager
> >  Caused by:
> >  java.lang.NoClassDefFoundError:
> > org/hibernate/annotations/common/reflection/ReflectionManager
> >
> >
> > It seems that the new version of hibernate annotation needs a particular
> jar
> > file to work. If you download the hibernate annotation zip file, go to
> the
> > lib folder and you'll find a jar file named
> > hibernate-common-annotations.jar. Install this file in your
> > maven repository and include the dependency in your pom.xml file.  Then,
> > everything will work normally.
> >
> >
> > --
> > /fadhli
>
>
> --
> http://raibledesigns.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@appfuse.dev.java.net
> For additional commands, e-mail: users-help@appfuse.dev.java.net
>
>


--
/fadhli