Hi 

For those having the same issues, I got this solved:

- Replaced the  log4j-1.2.11.jar with log4j-1.2.12.jar.  Also edited the
MANIFEST.MF to reflect this & restarted eclipse with the -clean option (I'm
not sure I did that before...)
- Created a new Hibernate Console Configuration with following parameters:
  1) Type = Annotations (jdk 1.5+)
  2) Configuration file =
\<project_name>\src\main\resources\hibernate.cfg.xml
  3) Property file = \<project_name>\target\classes\jdbc.properties

All fine...  Replacing this log4j jar was key!  I did not have to change the
classpath (project's classpath should be in off course...)

regards
Werner


WernerL wrote:
> 
> Hi Roy
> 
> this is done by default by the Hibernate Console Configuration wizard. 
> I've checked it again and yes my project's classpath is there (including
> Mysql/Hibernate/Acegi jars', see 
> http://www.nabble.com/Using-Hibernate-Tools-w--appfuse-tf3985589s2369.html#a11316390
> http://www.nabble.com/Using-Hibernate-Tools-w--appfuse-tf3985589s2369.html#a11316390
> .  
> 
> I got this working early this week, but then my project was still based on
> appfuse 2.0M5.  Now it fails on both versions (using the same
> hibernate.cfg.xml).  I think I have updated the version of Hibernate Tools
> in the meantime (via Eclipse Software Updates) while trying to get this
> working, I can't remember as I tried so many things.  In my eclipse
> plugins folder I see "org.hibernate.eclipse.help_3.2.0.beta10" dated
> 9/30/2007 as well as "org.hibernate.eclipse.help_3.2.0.cr1" dated
> 11/15/2007...
> Not sure wether appfuse 2.0 is to blame, or maybe it's this Hibernate
> Tools version.  Can I just remove the 3.2.0.cr1 folder from the plugins
> folder to reactivate the previous version?
> 
> Another interesting link is 
> http://forum.hibernate.org/viewtopic.php?t=980773
> http://forum.hibernate.org/viewtopic.php?t=980773 , I tried to replace
> this log4j-1.2.11.jar not with .12 but with .15 and then the plugin fails
> to load completely...
> 
> Thanks
> Werner
> 
> 
> 
> RoyPorter wrote:
>> 
>> Have you added your project onto the classpath for the hibernate console
>> configuration?
>> 
>> Roy.
>> 
>> 
>> wernerlauwers wrote:
>>> 
>>> Hi
>>> 
>>> I have an issue in getting a valid Hibernate Tools console configuration
>>> with my appfuse 2.0 based project.  Maybe this should go to the
>>> hibernate tools forum, but I couldn't really figure out wether it's an
>>> appfuse issue or an hibernate tools issue.
>>> Version information:  Eclipse 3.3 / Hibernate Tools 3.2.0.cr1 / Appfuse
>>> 2.0 Spring MVC basic.
>>> Steps I did:
>>> * Imported project in eclipse
>>> * hibernate.cfg.xml contains 8 mappings (annotated in the class'es)
>>> * Created copy of hibernate.cfg.xml to include hibernate.connection.*
>>> properties (driver_class, username, password, url) & hibernate.dialect
>>> * Created New Hibernate Console Configuration, referening the
>>> hibernate.cfg.xml containing these properties, changed Typeto "Core" (I
>>> did not change any other setting).
>>> 
>>> Then I select the Database node of my Console configuration and get 
>>> 
>>> !MESSAGE An internal error occurred during: "Fetching children of
>>> Database".
>>> !STACK 0
>>> java.lang.NoClassDefFoundError: org/hibernate/Hibernate
>>>         at org.hibernate.dialect.Dialect.<init>(Dialect.java:156)
>>>         at
>>> org.hibernate.dialect.MySQLDialect.<init>(MySQLDialect.java:23)
>>>         at
>>> org.hibernate.dialect.MySQL5Dialect.<init>(MySQL5Dialect.java:10)
>>>         at
>>> org.hibernate.dialect.MySQL5InnoDBDialect.<init>(MySQL5InnoDBDialect.java:7)
>>> 
>>> When I check the classpath of my configuration I see
>>>   M2_REPO/org/hibernate/hibernate/3.2.5.ga/hibernate-3.2.5.ga.jar
>>> which contains this class...
>>> 
>>> I've tried various other configurations but all fail - now I'm stuck...
>>> Anyone any idea?
>>> 
>>> Thanks
>>> Werner
>>> 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Appfuse-2.0---Hibernate-Tools-Console-Configuration-issue-tf4830198s2369.html#a13835163
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to