Hello David,
It looks like there is a problem with your
database.properties file. It’s loading the properties file, but I just noticed
this is an appfuse project, and it looks to me the hibernate.dialect in the
database properties file is not set up.
Regards
Johann Reyes
From: David Whitehurst
[mailto:[EMAIL PROTECTED]
Sent: Saturday, November 04, 2006
7:39 PM
To: [email protected]
Subject: Re: [mojo-dev] Hibernate
dialect
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>
|
- RE: [mojo-dev] Hibernate dialect Johann Reyes
-