Ok, noted some small issues:
1. the sample data doesn't take into account column lenght. If you have a
column length of say 5, it will fail on mvn install
2. the sample data doesn't take references into account, you should gen the
referenced POJOs first and then the POJOs with references to them.
But that's all easily fixable by hand. Would be nice to be able to just
enter a list of POJOs and have mvn figure out the order and all that. But
now back to the problem
So I now have my sample data set up. Done all the gens and installs.
Still got that error running the same commands in the web dir.
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Unable to load class declared as <mapping
class="nl.msw.compraventa.core.
model.Archive"/> in the configuration:
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.hibernate.MappingException: Unable to load class declared as <mapping
class=
"nl.msw.compraventa.core.model.Archive"/> in the configuration:
Cheers,
Marc
mschipperheyn wrote:
>
> Right, ok. Hmm, getting a
> Caused by: org.dbunit.DatabaseUnitException:
> com.mysql.jdbc.exceptions.MySQLInte
> grityConstraintViolationException: Cannot add or update a child row: a
> foreign k
> ey constraint fails (`compraventa/barrios`, CONSTRAINT
> `FK4F5D3CCEB9857FF2` FORE
> IGN KEY (`FK_CityId`) REFERENCES `cities` (`cityId`))
>
> That's prob caused by the sample data -1 being inserted while there isn't
> a City created yet. I'll try to appfuse:gen all those POJOs first to have
> some coherent sample data.
>
> Cheers,
>
> Marc
>
>
>
>
>
> mraible wrote:
>>
>> In the core directory, you should run "mvn install", not "mvn
>> appfuse:install".
>>
>> Matt
>>
>> On 10/29/07, mschipperheyn <[EMAIL PROTECTED]> wrote:
>>>
>>> Yes, completed without fail. However, I dont see any code generated in
>>> the
>>> core dir (I guess dont need that with universal stuff). Did see the
>>> entries
>>> in applicationContext.xml added.
>>>
>>> Marc
>>>
>>> D:\Java\Projects\CompraVenta\core>mvn appfuse:gen
>>> [INFO] Scanning for projects...
>>> [INFO] Searching repository for plugin with prefix: 'appfuse'.
>>> [INFO]
>>> -------------------------------------------------------------------------
>>> ---
>>> [INFO] Building AppFuse Modular Application - Core
>>> [INFO] task-segment: [appfuse:gen]
>>> [INFO]
>>> -------------------------------------------------------------------------
>>> ---
>>> [INFO] Preparing appfuse:gen
>>> [INFO] [aspectj:compile {execution: default}]
>>> [INFO] [resources:resources]
>>> [INFO] Using default encoding to copy filtered resources.
>>> [INFO] [compiler:compile]
>>> [INFO] Nothing to compile - all classes are up to date
>>> [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] [appfuse:gen]
>>> What is the name of your pojo (i.e. Person)?: Barrio
>>> [INFO] Configuration XML file loaded:
>>> D:\Java\Projects\CompraVenta\core\src\main
>>> \resources\hibernate.cfg.xml
>>> [INFO] Configuration XML file loaded:
>>> D:\Java\Projects\CompraVenta\core\src\main
>>> \resources\hibernate.cfg.xml
>>> [INFO] src/main/resources/database.properties not found within the
>>> project.
>>> Tryi
>>> ng absolute path.
>>> [INFO] No hibernate properties file loaded.
>>> [info] [AppFuse] Installing generated files (pattern: **/*.java)...
>>> [info] [AppFuse] Installing sample data for DbUnit...
>>> [info] [AppFuse] Installing Spring bean definitions...
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] BUILD SUCCESSFUL
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Total time: 7 seconds
>>> [INFO] Finished at: Mon Oct 29 17:09:08 CET 2007
>>> [INFO] Final Memory: 13M/23M
>>> [INFO]
>>> ------------------------------------------------------------------------
>>>
>>> D:\Java\Projects\CompraVenta\core>mvn appfuse:install
>>> [INFO] Scanning for projects...
>>> [INFO] Searching repository for plugin with prefix: 'appfuse'.
>>> [INFO]
>>> -------------------------------------------------------------------------
>>> ---
>>> [INFO] Building AppFuse Modular Application - Core
>>> [INFO] task-segment: [appfuse:install]
>>> [INFO]
>>> -------------------------------------------------------------------------
>>> ---
>>> [INFO] Preparing appfuse:install
>>> [INFO] [aspectj:compile {execution: default}]
>>> [INFO] [resources:resources]
>>> [INFO] Using default encoding to copy filtered resources.
>>> [INFO] [compiler:compile]
>>> [INFO] Nothing to compile - all classes are up to date
>>> [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] [appfuse:install]
>>> What is the name of your pojo (i.e. Person)?: Barrio
>>> [info] [AppFuse] Installing generated files (pattern: **/*.java)...
>>> [info] [AppFuse] Installing sample data for DbUnit...
>>> [info] [AppFuse] Installing Spring bean definitions...
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] BUILD SUCCESSFUL
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Total time: 5 seconds
>>> [INFO] Finished at: Mon Oct 29 17:09:27 CET 2007
>>> [INFO] Final Memory: 11M/23M
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> --
>>> View this message in context:
>>> http://www.nabble.com/app%3Agen--Unable-to-load-class-declared-as-mapping-class%3D%22xyz%22-in-the-configuration-tf4700458s2369.html#a13471891
>>> 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/app%3Agen--Unable-to-load-class-declared-as-mapping-class%3D%22xyz%22-in-the-configuration-tf4700458s2369.html#a13474215
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]