[
http://jira.codehaus.org/browse/MHIBERNATE-9?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_89620
]
Brill Pappin commented on MHIBERNATE-9:
---------------------------------------
Seems configuration is being ignored:
For this config:
<componentProperties>
<!--
<implementation>configuration</implementation> -->
<implementation>
jdbcconfiguration
</implementation>
<drop>true</drop>
<configurationfile>
/src/main/config/hibernate.cfg.xml
</configurationfile>
<propertyfile>
/src/main/config/hibernate-mysql.properties
</propertyfile>
<outputfilename>sweetgrass.sql</outputfilename>
<format>true</format>
<jdk4>true</jdk4>
</componentProperties>
I get this exception:
[INFO] [hibernate3:hbm2cfgxml]
[INFO] using jdbcconfiguration task.
00:48:34,109 INFO org.hibernate.cfg.Environment - Hibernate 3.2.0.cr5
00:48:34,125 INFO org.hibernate.cfg.Environment - hibernate.properties not foun
d
00:48:34,125 INFO org.hibernate.cfg.Environment - Bytecode provider name : cgli
b
00:48:34,125 INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timest
amp handling
[INFO] src/main/resources/hibernate.cfg.xml not found within the project. Trying
absolute path.
[INFO] No hibernate configuration file loaded.
[INFO] src/main/resources/database.properties not found within the project. Tryi
ng absolute path.
[INFO] No hibernate properties file loaded.
00:48:34,203 WARN org.hibernate.connection.UserSuppliedConnectionProvider - No
connection properties specified - the user must supply JDBC connections
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Hibernate Dialect must be explicitly set
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.hibernate.HibernateException: Hibernate Dialect must be explicitly set
> hibernate3 plugin stopped looking for properties file and insists on xml
> config file
> ------------------------------------------------------------------------------------
>
> Key: MHIBERNATE-9
> URL: http://jira.codehaus.org/browse/MHIBERNATE-9
> Project: Maven 2.x Hibernate Plugin
> Issue Type: Bug
> Environment: Maven 2.0.4, maven-hibernate3 (snapshot
> 20070306.162336-1)
> Reporter: Brill Pappin
> Priority: Blocker
>
> Last week I was able to you a hibernate.properties file to give the plugin
> all it needed to run the goals I need.
> Today when I ran hbm2java a new snapshot was downloaded and all of a sudden I
> started getting an error that it couldn't find the hibernate.cfg.xml.
> I actually don't use the xml configuration file at all because everything is
> done programatically and I only need a few minor properties so that the
> plugin can do its work.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email