Hi Max,

I have rebuilt the jboss-ide bundle from cvs (this morning Sunday 5 March) 
using the releng mechanims. 

Installing the bundle and starting eclipse with -clean I used the wizard to 
create a new hibernate.cfg.xml, followed by a new hibernate console. All works 
as expected. The problem occurs when opening the hibernate console view, where 
I get the following exception when I try and create the session factory:


  | Problems while creating sessionfactory
  | 
  | java.lang.NoSuchFieldError: extendsQueue
  | at 
org.hibernate.cfg.AnnotationConfiguration.createExtendedMappings(AnnotationConfiguration.java:143)
  | at 
org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:276)
  | at 
org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:213)
  | at 
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1168)
  | at 
org.hibernate.console.ConsoleConfiguration$2.execute(ConsoleConfiguration.java:265)
  | at 
org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
  | at 
org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:68)
  | at 
org.hibernate.console.ConsoleConfiguration.buildSessionFactory(ConsoleConfiguration.java:260)
  | at 
org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:24)
  | at 
org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:69)
  | at 
org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:192)
  | at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
  | 

I have tried several other things (including just using the Hibernate Tools 1.5 
beta 4), copying various versions of hibernate, hibernate-entity and other jars 
I could lay my hands on into the plugin, tried preventing hibernate from 
closing the session. No success.

My hibernate.cfg.xml is as follows:

  | <?xml version="1.0" encoding="UTF-8"?>
  | <!DOCTYPE hibernate-configuration PUBLIC
  |                 "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
  |                 
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd";>
  | <hibernate-configuration>
  |     <session-factory name="sessionFactoryName">
  |         <property 
name="hibernate.connection.driver_class">org.postgresql.Driver</property>
  |         <property name="hibernate.connection.password">password</property>
  |         <property 
name="hibernate.connection.url">jdbc:postgresql:nap</property>
  |         <property name="hibernate.connection.username">napdba</property>
  |         <property 
name="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</property>
  |     </session-factory>
  | </hibernate-configuration>
  | 

My console configuration:


  | <?xml version="1.0" encoding="UTF-8"?>
  | <hibernate-console>
  | <configuration annotations="true" name="hibernate-console-2">
  | <hibernate-config-xml location="/NAP/hibernate2.cfg.xml"/>
  | <classpath><path location="/NAP/lib/postgresql-jdbc3-8.1.jar"/><path 
location="/NAP/tmp/classes"/></classpath>
  | </configuration>
  | </hibernate-console>
  | 

Hmm.. what other info can I provide so that we can trace this ? I am able to 
view the database elements when expanding Database in the console view. 
Unfortunately I can't execute HQL (or rather view the results), can't see the 
entity diagrams or any of those other very useful stuff !
I am running on a Linux platform with JDK 1.5_05. Against jboss 4.0.4 (built 
from cvs) with a Seam application.

Hope the info helps a bit.

Regards

Louis

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927988#3927988

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3927988


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to