<html>
<head>
<meta content="text/html; charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<pre>Hey there,
I'm using forge 1.0.0.Beta3 as I wrote in my mail.
The environment ist Windows 7 32 Bit with Java 1.6.0_29
Setps to reproduce:
* Download Beta3 Source and build.
* Configure environment variables and stuff.
* Setup FORGE_OPTS for Eclipse debugging.
* Download plugin sources, build plugin and install from local build OR install via forge console
* I created a lib folder in the forge home and placed the mysql-connector-java-5.1.18-bin.jar in it.
* Create a local MYSQL Database with a simple table with XAMPP
* Exit forge and re-enter forge: log4j errors are thrown.
* Create a new project and setup persistance with Hibernate and MySQL
* Try to reverse engineer the database via generate-entities --url jdbc:mysql:localhost:3306/mytest --dr
iver org.gjt.mm.mysql.Driver --dialect MYSQL
Let me know if you need some more information..
Best regards
Max
<i>> Hi Max,
</i><i>>
</i><i>> </i><i>Can you please post your config, forge version as well as the steps needed to reproduce your problem?
</i><i>> </i><i>
</i><i>> </i><i>Cheers,
</i><i>> </i><i>Koen</i>
<i>></i>
<i>> </i>Op 29-nov.-2011, om 18:00 heeft Max Schwaab het volgende geschreven:
<i>> </i>
><i> Hey there,
</i>><i>
</i>><i> I'm new to forge and want to try the database reverse engineering.
</i>><i> When I try to use the hibernate-tools plugin, I get log4J errors like:
</i>><i>
</i>><i> log4j:ERROR A "org.apache.log4j.xml.DOMConfigurator" object is not
</i>><i> assignable to
</i>><i> a "org.apache.log4j.spi.Configurator" variable.
</i>><i> log4j:ERROR The class "org.apache.log4j.spi.Configurator" was loaded by
</i>><i> log4j:ERROR [ModuleClassLoader for Module "org.jboss.forge:main" from
</i>><i> local modu
</i>><i> le loader @510e39 (roots:
</i>><i> C:\forge\forge-1.0.0.Beta3\modules,C:\Users\Max\.forge
</i>><i> \plugins)] whereas object of type
</i>><i> log4j:ERROR "org.apache.log4j.xml.DOMConfigurator" was loaded by
</i>><i> [ModuleClassLoa
</i>><i> der for Module
</i>><i> "org.jboss.hibernate.forge.hibernate-tools-plugin.dependencies:1.
</i>><i> 0.0-SNAPSHOT-d4f52737-8c8e-47d5-9113-97edf57516c4" from local module
</i>><i> loader @510
</i>><i> e39 (roots:
</i>><i> C:\forge\forge-1.0.0.Beta3\modules,C:\Users\Max\.forge\plugins)].
</i>><i> log4j:ERROR Could not instantiate configurator
</i>><i> [org.apache.log4j.xml.DOMConfigur
</i>><i> ator].
</i>><i> log4j:WARN No appenders could be found for logger (org.jboss.weld.Version).
</i>><i> log4j:WARN Please initialize the log4j system properly.
</i>><i> log4j:WARN See <a href="http://logging.apache.org/log4j/1.2/faq.html#noconfig">http://logging.apache.org/log4j/1.2/faq.html#noconfig</a> for
</i>><i> more in
</i>><i> fo.
</i>><i>
</i>><i> When I try to use the generate-entities command I get errors too.
</i>><i> Sometimes a slf4J error like:
</i>><i>
</i>><i> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
</i>><i> SLF4J: See <a href="http://www.slf4j.org/codes.html#StaticLoggerBinder">http://www.slf4j.org/codes.html#StaticLoggerBinder</a> for
</i>><i> further detail
</i>><i> s.
</i>><i> ***ERROR*** [generate-entities] org/slf4j/impl/StaticLoggerBinder
</i>><i>
</i>><i> And sometimes a JDBCMetaDataConfguration error like:
</i>><i>
</i>><i> ***ERROR*** [generate-entities] Could not initialize class
</i>><i> org.hibernate.cfg.JDB
</i>><i> CMetaDataConfiguration
</i>><i>
</i>><i> I looked around on the internet and found a remark from Jethro with the
</i>><i> same problem.
</i>><i> (<a href="http://lists.jboss.org/pipermail/forge-users/2011-October/000079.html">http://lists.jboss.org/pipermail/forge-users/2011-October/000079.html</a>)
</i>><i> I'm using the latest beta3 version of forge and the
</i>><i> hibernate-tools-plugin from github (guess its the latest version).
</i>><i>
</i>><i> Is there some work in progress or did I something wrong with the
</i>><i> configuration or something?
</i>><i>
</i>><i> Would be nice to get this feature working..
</i>><i>
</i>><i> Best regards
</i>><i>
</i>><i> Max</i></pre>
</body>
</html>