I have tried jdk5 and had the same problems.
But then I copied the .jar files:
asm-attrs.jar
asm.jar
c3p0-0.9.0.jar
concurrent-1.3.2.jar
into the lib dir and then it did work! Somewhat strange though to get the
error that the class Enhancer cannot be found which is in cglib.jar
The only problem now is:
Caused by: java.sql.SQLException: No Database Selected
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2928)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1571)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1666)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2988)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2917)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:824)
at
com.mysql.jdbc.DatabaseMetaData$9.forEach(DatabaseMetaData.java:4447)
at
com.mysql.jdbc.DatabaseMetaData$IterateBlock.doForAll(DatabaseMetaData.java:79)
at
com.mysql.jdbc.DatabaseMetaData.getTables(DatabaseMetaData.java:4440)
at
org.hibernate.tool.hbm2ddl.DatabaseMetadata.getTableMetadata(DatabaseMetadata.java:79)
... 47 more
I'll have to work on that one....
Kind regards,
Peter Havelaar
----- Original Message -----
From: "Marina Vatkina" <Marina.Vatkina_at_Sun.COM>
To: <persistence_at_glassfish.dev.java.net>
Sent: Tuesday, September 12, 2006 7:52 PM
Subject: Re: Hibernate in Glassfish
The classpath is printed in the server log at each server startup.
Can you check if you see the same problem with jdk 5?
thanks,
-marina
Peter Havelaar wrote:
> At the moment I am using:
> jrockit-1.5.0
>
> Regards,
> Peter
>
> ----- Original Message -----
> From: "Marina Vatkina" <Marina.Vatkina_at_Sun.COM>
> To: <persistence_at_glassfish.dev.java.net>
> Sent: Tuesday, September 12, 2006 6:34 PM
> Subject: Re: Hibernate in Glassfish
>
>
> Hi Peter,
>
> We saw this type of strange errors with some versions of jdk 6. Which one
> are you using?
>
> thanks,
> -marina
>
> Peter Havelaar wrote:
>
>>Hi guys,
>>
>>I do not know if this is the appropriate place to ask, but I tried to
>>access the forum and sees me as a guest when I login and am unable to
>>post a topic.
>>
>>I am trying to use Hibernate with glassfish and have placed the jar
>>files of hibernate-core, hibernate-entitymanager and
>>hibernate-annotations in the glassfish/lib directory. In the lib
>>directory I have also put the depending jars for hibernate-core, amongst
>>which: cglib-2.1.3.jar, but still I get
>>java.lang.NoClassDefFoundError: net/sf/cglib/proxy/Enhancer
>>when I try to start the domain. This is strange because unzip -l
>>cglib-2.1.3.jar | grep Enhancer shows the class file is there.
>>This must be some kind of classloader conflict, but all the jars are in
>>glassfish/lib.
>>How can I get this to work?
>>
>>Thanks in advance.
>>
>>Peter Havelaar
>>Jabbah.net
>>