Matt Raible-3 wrote:
>
> Is there a src/main/resources/hibernate.cfg.xml file in your "core"
> module?
> It looks like there might be a bad POM for jtidy in the repository (or
> maybe
> locally).
>
> Matt
>
I ran into the same jtidy issue
> [WARNING] POM for 'org.hibernate:jtidy:pom:r8-20060801:runtime' is
> invalid.
> It will be ignored for artifact resolution. Reason: Parse error reading
> POM.
> Reason:
> TEXT must be immediately followed by END_TAG and not START_TAG (position:
> START
> _TAG seen ...<licenses>\n\t\t\t<license>... @12:13)
but was able to quiet that by changing the jtidy-r8-20060801.pom with
<licenses>
<!-- <licenses> -->
<license>
<name>Java HTML Tidy License</name>
<url>http://svn.sourceforge.net/viewvc/*checkout*/jtidy/trunk/jtidy/LICENSE.txt?revision=95</url>
<distribution>repo</distribution>
</license>
<!-- </licenses> -->
</licenses>
It didn't clear my issue, however, which is
[INFO] Configuration Properties file loaded: C:\Documents and
Settings\Owner\My
Documents\tourtest\target\classes\jdbc.properties
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] No identifier specified for entity: org.appfuse.tutorial.model.Person
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.hibernate.AnnotationException: No identifier specified for entity:
org.appfu
se.tutorial.model.Person
at
org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:62
6)
at
org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(Anno
tationConfiguration.java:452)
at
org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(Annotatio
nConfiguration.java:268)
at
org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1039
)
at
org.codehaus.mojo.hibernate3.configuration.AbstractComponentConfigura
tion.getConfiguration(AbstractComponentConfiguration.java:38)
at
org.codehaus.mojo.hibernate3.exporter.Hbm2DDLExporterMojo.doExecute(H
bm2DDLExporterMojo.java:87)
[...]
Any ideas? I'm an appfuse (obviously) and hibernate newbie, but I
essentially just copied and pasted from the tutorial, with Person.java
having
package org.appfuse.tutorial.model;
import org.appfuse.model.BaseObject;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import javax.persistence.*;
@Entity(name="person")
public class Person extends BaseObject {
and hibernate.cfg.xml having
<hibernate-configuration>
<session-factory>
<mapping class="org.appfuse.model.User"/>
<mapping class="org.appfuse.model.Role"/>
<mapping class="org.appfuse.tutorial.model.Person"/>
</session-factory>
</hibernate-configuration>
and switching to
@Entity(name="Person")
or
@Entity
produces the same result.
I began with the quick start and the Spring MVC Basic architype and 1.0-m2
version, and the "Run your Application" resulted in a fully functioning
instance that I could log into with tomcat/tomcat.
Any help appreciated, even if only a pointer to a hibernate FAQ.
thanks,
-nate
--
View this message in context:
http://www.nabble.com/mvn-compile-hibernate3%3Ahbm2ddl-tf3154567s2369.html#a8788197
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]