Hello David
Sorry, didn’t understood your last
message. Either way, like I said in my last message, the database.properties
file is loading from
[INFO] Configuration Properties file
loaded:
/home/piratepete/Java/appfuse/data/hibernate/src/test/resources/database.properties
So I would check the database.properties
file because for the output looks like it says something like this
hibernate.dialect=${hibernate.dialect}
when it should say something like this:
hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect
Regards
Johann Reyes
From: David Whitehurst
[mailto:[EMAIL PROTECTED]
Sent: Saturday, November 04, 2006
7:58 PM
To: [email protected]
Subject: Re: [mojo-dev] Hibernate
dialect
Johann:
It looks like the repositories have had issue today. I tried finding the
source for the hibernate3 plugin today and the site with the brief instructions
and source it seemed was down.
On 11/4/06, David
Whitehurst <[EMAIL PROTECTED]>
wrote:
Johann:
I've attached the output.
David
On 11/4/06, Johann
Reyes <[EMAIL PROTECTED]>
wrote:
Hello David
Can you run the plugin with the –X –U parameters
and send the output again?
I've added more debug messages to try to debug the problem
Regards
Johann Reyes
Johann:
Here's the output. I'm having issues now too where I cannot build my
appfuse1 application and pass the tests to remove the user from cache. I wonder
if it's my switching back and forth between java 4 and java 5.
[INFO]
----------------------------------------------------------------------------
[INFO] Building AppFuse Hibernate Module
[INFO] task-segment: [install]
[INFO] ----------------------------------------------------------------------------
[INFO] resources:resources
[INFO] Using default encoding to copy filtered resources.
[INFO] compiler:compile
[INFO] Nothing to compile - all classes are up to date
[INFO] resources:testResources
[INFO] Using default encoding to copy filtered resources.
[INFO] compiler:testCompile
[INFO] Nothing to compile - all classes are up to date
[INFO] hibernate3:schema-update {execution: default}
log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment
).
log4j:WARN Please initialize the log4j system properly.
[INFO] No hibernate configuration file loaded: None specified.
[INFO] No hibernate properties file loaded: None specified.
org.hibernate.HibernateException : The dialect was not set. Set the property
hibernate.dialect.
at
org.hibernate.dialect.Dialect.getDialect(Dialect.java:649)
at
org.hibernate.dialect.Dialect.getDialect(Dialect.java:671)
at org.hibernate.tool.hbm2ddl.SchemaUpdate
.<init>(SchemaUpdate.java:41)
at
org.hibernate.tool.hbm2ddl.SchemaUpdate.<init>(SchemaUpdate.java:36)
at
org.codehaus.mojo.hibernate3.exporter.SchemaUpdateMojo.doSchemaUpdate(SchemaUpdateMojo.java
:73)
at
org.codehaus.mojo.hibernate3.exporter.SchemaUpdateMojo.doExecute(SchemaUpdateMojo.java:62)
at
org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExporterMojo.java:59)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo
(DefaultPluginManager.java:412)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:475)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
(DefaultLifecycleExecutor.java:140)
at
org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
at org.maven.ide.eclipse.Maven2Executor.main
(Maven2Executor.java:68)
On
11/4/06, Johann Reyes <[EMAIL PROTECTED]>
wrote:
Hello David
Can you send the output that you get when you run
hibernate3:schema-update ??
Regards
Johann Reyes
I can't seem to build a project and it can't seem to
find the <propertyFile> for hibernate3 plugin. The error I get is
hibernate dialect not set. It's set in the <propertyFile>
given. Does anyone know if I'm supposed to set anything up in
$MAVEN_HOME/conf for this to work.
Could I be missing the install of the hibernate3 plugin. I'm fairly new
to maven2. Also I get the error on schema-update. I'm in eclipse
using the maven eclipse plugin.
Here's the pom snippet ....
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>hibernate3-maven-plugin</artifactId>
<configuration>
<hibernate>
<propertyFile>src/test/resources/database.properties</propertyFile>
</hibernate>
</configuration>
<executions>
<execution>
<phase>test-compile</phase>
<goals>
<goal>schema-update</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>${jdbc.groupId}</groupId>
<artifactId>${jdbc.artifactId}</artifactId>
<version>${ jdbc.version}</version>
</dependency>
</dependencies>
</plugin>