Issue Resolved:

If you run from core

mvn compile hibernate3:hbm2ddl

It was throwing the following error message

[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[WARNING] POM for 'org.hibernate:jtidy:pom:r8-20060801:runtime' is invalid.
It w
ill 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)
[WARNING] POM for 'org.hibernate:jtidy:pom:r8-20060801:runtime' is invalid.
It w
ill 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)
[INFO] [hibernate3:hbm2ddl {execution: default}]

There was problem with 

C:\Documents and
Settings\jaspsand\.m2\repository\org\hibernate\jtidy\r8-20060801\jtidy-r8-20060801.pom
Resolutions
<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>

Resolution: Removed double tag.  Issue on repository.  It is working for me. 
But other people can also get into this problem




Sandhu wrote:
> 
> I setup appfuse 2.0 M5 with Hibernate.  I was testing in one directory say
> test and everything was working ok.  I copied the working directory test
> to test-new.  If I run the application and try to add person, I am getting
> the following exception in the appfuse 2.0 (Spring MVC modular)
> 
> Only changes I made in this test-new directory was to change the directory
> names etc, groupid or artifactid for my application.
> 
> "Unknown entity: org.appfuse.tutorial.model.Person; nested exception is
> org.hibernate.MappingException: Unknown entity:
> org.appfuse.tutorial.model.Person"
> 
> I checked the configuration.  Everything looks ok
> 
> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate
> Configuration DTD 3.0//EN"
>     "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd";>
> 
> <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>
> 
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>        xsi:schemaLocation="http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";>
> 
>     <!-- Add new DAOs here -->
> <!--  
>     <bean id="personDao"
> class="org.appfuse.dao.hibernate.GenericDaoHibernate"> 
>         <constructor-arg value="org.appfuse.tutorial.model.Person"/>  
>         <property name="sessionFactory" ref="sessionFactory"/> 
>     </bean>  
>  -->
>     <bean id="personDao"
> class="org.appfuse.tutorial.dao.hibernate.PersonDaoHibernate">  
>         <property name="sessionFactory" ref="sessionFactory"/> 
>     </bean>  
>     
>     <!-- Add new Managers here -->
>       <!--
>       <bean id="personManager"
> class="org.appfuse.service.impl.GenericManagerImpl">      
>       <constructor-arg>          
>         <bean class="org.appfuse.dao.hibernate.GenericDaoHibernate"
> autowire="byType">              
>             <constructor-arg value="org.appfuse.tutorial.model.Person"/>      
>     
>         </bean>      
>     </constructor-arg>  
>       </bean>
>       -->
>       <bean id="personManager"
> class="org.appfuse.tutorial.service.impl.PersonManagerImpl"> 
>       <constructor-arg ref="personDao"/> 
>       </bean> 
> </beans>
> 
> Also if I run mvn integration-test, I get the following error while
> running canoo web test.
> 

-- 
View this message in context: 
http://www.nabble.com/Appfuse-2.0-M5-Hibernate-Issue-using-Person--tf3868582s2369.html#a10974408
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to