Thanks Matt.  I am trying to get used to Maven.  I fear change.

-D


mraible wrote:
> 
> Have you run "mvn install" on the core module?
> 
> On 6/7/07, dusty <[EMAIL PROTECTED]> wrote:
>>
>> I have a modular struts application using M5.  I have ported over my
>> model
>> classes and everything was working well in core.  I added my my classes
>> to
>> hibernate.cfg.xml and the hibernate plugin happiliy generates my tables.
>> There are quite a few relationships between the POJOs.
>>
>> I can run mvn appfuse:gen and install for a class in core, but when I run
>> the same command in web I get a strange exception regarding loading a
>> persistent class from hibernate.cfg.xml.  The exception does not tell me
>> much and I am even more confused that the configuration and persistent
>> POJOs
>> seem to work with every other hibernate related action.
>>
>> Here is the top of the exception stack:
>>
>> [ERROR] FATAL ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Unable to load class declared as <mapping
>> class="com.thebioguide.model.ProtocolSummary"/> in the configuration:
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Trace
>> org.hibernate.MappingException: Unable to load class declared as <mapping
>> class="com.thebioguide.model.ProtocolSummary"/> in the configuration:
>>         at
>> org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(AnnotationConfiguration.java:545)
>>
>>
>>
>> Here is my hibernate.cfg.xml
>>
>> <hibernate-configuration>
>>     <session-factory>
>>         <mapping class="org.appfuse.model.User"/>
>>         <mapping class="org.appfuse.model.Role"/>
>>         <mapping class="com.thebioguide.model.ProtocolSummary"/>
>>         <mapping class="com.thebioguide.model.Company"/>
>>         <mapping class="com.thebioguide.model.Contact"/>
>>         <mapping class="com.thebioguide.model.EDCProfile"/>
>>         <mapping class="com.thebioguide.model.ExperienceProfile"/>
>>         <mapping class="com.thebioguide.model.IVRSProfile"/>
>>         <mapping class="com.thebioguide.model.LocationProfile"/>
>>         <mapping class="com.thebioguide.model.Note"/>
>>         <mapping class="com.thebioguide.model.Protocol"/>
>>         <mapping class="com.thebioguide.model.ServiceProfile"/>
>>         <mapping class="com.thebioguide.model.SiteManagementProfile"/>
>>     </session-factory>
>> </hibernate-configuration>
>>
>>
>> Any ideas?
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Weird-Exception-when-running-appfuse%3Agen-in-web-tf3887885s2369.html#a11020806
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> http://raibledesigns.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Weird-Exception-when-running-appfuse%3Agen-in-web-tf3887885s2369.html#a11028338
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