There's a couple comments that AMP looks for in core/src/main/resources/applicationContext.xml. Maybe that's causing the problem?
<!-- Add new DAOs here --> <!-- Add new Managers here --> Matt On 1/11/08, mschipperheyn <[EMAIL PROTECTED]> wrote: > > Well, I generated the project two or three days ago, so it should be the > latest version. I did use the src directory of my "old project" because I > wanted to continue developing it. Perhaps this is the reason? > > cheers, > > Marc > > > mraible wrote: > > > > What version of AppFuse are you using? This should've been fixed in > > 2.0.1. > > > > Matt > > > > On Jan 11, 2008, at 5:42 AM, mschipperheyn wrote: > > > >> > >> Hi, > >> > >> I have a Spring modular project and I'm trying to run appfuse:gen > >> from the > >> web module. > >> I have run appfuse:gen from the core module and then mvn install > >> from the > >> root (I also tried from core). > >> > >> I get > >> [INFO] Unable to load class declared as <mapping class="xyz.model > >> .Archive"/> in the configuration: > >> > >> this POJO is the first one mentioned if the hibernate.cfg.xml file > >> in core. > >> > >> The full stack trace is below. You can see that it actually find > >> the correct > >> hibernate.cfg.xml file containing the relevant mapping. > >> > >> Thanks, > >> > >> Marc > >> > >> [INFO] [appfuse:gen] > >> [INFO] [AppFuse] Assuming 'core' has hibernate.cfg.xml in its > >> src/main/resources > >> directory > >> [INFO] > >> D:\Projects\Java\Mercado\web/../core/src/main/resources/ > >> hibernate.cfg.xml > >> not found within the project. Trying absolute path. > >> [INFO] Configuration XML file loaded: > >> D:\Projects\Java\Mercado\web\..\core\src\m > >> ain\resources\hibernate.cfg.xml > >> [INFO] > >> D:\Projects\Java\Mercado\web/../core/src/main/resources/ > >> hibernate.cfg.xml > >> not found within the project. Trying absolute path. > >> [INFO] Configuration XML file loaded: > >> D:\Projects\Java\Mercado\web\..\core\src\m > >> ain\resources\hibernate.cfg.xml > >> [INFO] > >> ---------------------------------------------------------------------- > >> -- > >> [ERROR] FATAL ERROR > >> [INFO] > >> ---------------------------------------------------------------------- > >> -- > >> [INFO] Unable to load class declared as <mapping > >> class="nl.msw.compraventa.model > >> .Archive"/> in the configuration: > >> [INFO] > >> ---------------------------------------------------------------------- > >> -- > >> [INFO] Trace > >> org.hibernate.MappingException: Unable to load class declared as > >> <mapping > >> class= > >> "nl.msw.compraventa.model.Archive"/> in the configuration: > >> at > >> org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(Annotat > >> ionConfiguration.java:545) > >> at > >> org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.jav > >> a:1479) > >> at > >> org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1458) > >> at > >> org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1432) > >> at > >> org.hibernate.cfg.Configuration.configure(Configuration.java:1386) > >> at > >> org.codehaus.mojo.hibernate3.configuration.AbstractComponentConfigura > >> tion.doConfiguration(AbstractComponentConfiguration.java:74) > >> at > >> org.codehaus.mojo.hibernate3.configuration.AbstractComponentConfigura > >> tion.getConfiguration(AbstractComponentConfiguration.java:37) > >> -- > >> View this message in context: http://www.nabble.com/Unable-to-load- > >> class-declared-as-xyz-from-Spring-web-module- > >> tp14753917s2369p14753917.html > >> Sent from the AppFuse - User mailing list archive at Nabble.com. > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > View this message in context: > http://www.nabble.com/Unable-to-load-class-declared-as-xyz-from-Spring-web-module-tp14753917s2369p14760615.html > Sent from the AppFuse - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]