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]