Yes, thanks. The issue was due the path of my mvn repository. It had spaces,
once I removed them all started to work.

Thanks for your support :-)


mraible wrote:
> 
> Sorry for the delay - did you ever get this solved?
> 
> On Thu, Sep 24, 2009 at 2:52 PM, almari <alrive...@yahoo.com> wrote:
>>
>>
>> Hi,
>>
>> My name is Alma. I'm having the similar issue. I have followed all the
>> steps
>> in the tutorial.
>> I thought once I had executed the mvn:jetty:run-war the tables would be
>> created but they didn't
>> and I still go on getting the messages below:
>>
>> It says it is not finding the org.appfuse.model.User class. If I go the
>> appfuse jars inside the repository
>> the class does not exist either. So, I guess it should be created as a
>> result after compiling. However, it is not. I have uploaded my pom.xml..I
>> think of it should be one configuration problem, just don't know.
>> Hopefully someone of forum could help me. The pom.xml attached is the one
>> generated after executing:
>>
>> mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes
>> -DarchetypeArtifactId=appfuse-basic-struts
>> -DremoteRepositories=http://static.appfuse.org/releases
>> -DarchetypeVersion=2.0.2 -DgroupId=com.miempresa.app -DartifactId=hello
>>
>>
>> [INFO] Configuration XML file loaded:
>> file:/D:/Documents%20and%20Settings/almari
>> /helloworld/src/main/resources/hibernate.cfg.xml
>> log4j:WARN Continuable parsing error 57 and column 64
>> log4j:WARN Attribute value "com.opensymphony.xwork2.util.OgnlValueStack"
>> of
>> type
>>  ID must be unique within the document.
>> [INFO] Configuration XML file loaded:
>> file:/D:/Documents%20and%20Settings/almari
>> /helloworld/src/main/resources/hibernate.cfg.xml
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] FATAL ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Unable to load class declared as <mapping
>> class="org.appfuse.model.User"/
>>> in the configuration:
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Trace
>> org.hibernate.MappingException: Unable to load class declared as <mapping
>> class=
>> "org.appfuse.model.User"/> in the configuration:
>>        at
>> org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(Annotat
>> ionConfiguration.java:602)
>>        at
>> org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.jav
>> a:1555)
>>        at
>> org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1534)
>>        at
>> org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1508)
>>        at
>> org.hibernate.cfg.Configuration.configure(Configuration.java:1443)
>>        at
>> org.codehaus.mojo.hibernate3.configuration.AbstractComponentConfigura
>> tion.doConfiguration(AbstractComponentConfiguration.java:77)
>>        at
>> org.codehaus.mojo.hibernate3.configuration.AbstractComponentConfigura
>> tion.getConfiguration(AbstractComponentConfiguration.java:40)
>>        at
>> org.codehaus.mojo.hibernate3.exporter.Hbm2DDLExporterMojo.doExecute(H
>> bm2DDLExporterMojo.java:87)
>>        at
>> org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateE
>> xporterMojo.java:140)
>>        at
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
>> nManager.java:451)
>>        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
>> ultLifecycleExecutor.java:558)
>>        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
>> fecycle(DefaultLifecycleExecutor.java:499)
>>        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
>> ltLifecycleExecutor.java:478)
>>        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
>> dleFailures(DefaultLifecycleExecutor.java:330)
>>        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
>> ts(DefaultLifecycleExecutor.java:291)
>>        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
>> fecycleExecutor.java:142)
>>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>> java:39)
>>        at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>> sorImpl.java:25)
>>        at java.lang.reflect.Method.invoke(Method.java:585)
>>        at
>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>        at
>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>
>>        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> Caused by: java.lang.ClassNotFoundException: org.appfuse.model.User
>>        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>        at java.security.AccessController.doPrivileged(Native Method)
>>        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>        at
>> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassL
>> oader.java:195)
>>        at
>> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassReal
>> m.java:255)
>>        at
>> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassReal
>> m.java:274)
>>        at
>> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.
>> java:214)
>>        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>>        at java.lang.Class.forName0(Native Method)
>>        at java.lang.Class.forName(Class.java:164)
>>        at
>> org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:100)
>>
>>        at
>> org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(Annotat
>> ionConfiguration.java:599)
>>        ... 26 more
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 9 seconds
>> [INFO] Finished at: Thu Sep 24 14:33:54 ACT 2009
>> [INFO] Final Memory: 19M/37M
>> [INFO]
>> ------------------------------------------------------------------------
>>
>>
>>
>> mraible wrote:
>>>
>>> Can you post your pom.xml?
>>>
>>> Thanks,
>>>
>>> Matt
>>>
>>> On 9/16/07, Struts2 Fan <struts2...@gmail.com> wrote:
>>>>
>>>> I didn't run "appfuse:full-source"
>>>>
>>>> Just created a new 2.0-SNAPSHOT and run mvn jetty:run
>>>>
>>>> [ERROR] FATAL ERROR
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] Unable to load class declared as <mapping
>>>> class="org.appfuse.model.User"/
>>>> > in the configuration:
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] Trace
>>>> org.hibernate.MappingException: Unable to load class declared as
>>>> <mapping
>>>> class=
>>>> "org.appfuse.model.User"/> 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)
>>>>         at
>>>> org.codehaus.mojo.hibernate3.exporter.Hbm2DDLExporterMojo.doExecute(H
>>>> bm2DDLExporterMojo.java:87)
>>>>         at
>>>> org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateE
>>>> xporterMojo.java:140)
>>>>         at
>>>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
>>>> nManager.java:443)
>>>>         at
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
>>>> ultLifecycleExecutor.java:539)
>>>>         at
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
>>>> fecycle(DefaultLifecycleExecutor.java:480)
>>>>         at
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecy
>>>> cle(DefaultLifecycleExecutor.java:896)
>>>>         at
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(Def
>>>> aultLifecycleExecutor.java:739)
>>>>         at
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
>>>> ultLifecycleExecutor.java:510)
>>>>         at
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
>>>> Goal(DefaultLifecycleExecutor.java:493)
>>>>         at
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
>>>> ltLifecycleExecutor.java:463)
>>>>         at
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
>>>> dleFailures(DefaultLifecycleExecutor.java:311)
>>>>         at
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
>>>> ts(DefaultLifecycleExecutor.java:278)
>>>>         at
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
>>>> fecycleExecutor.java:143)
>>>>         at
>>>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>>>>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>>>>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>         at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>>>> java:39)
>>>>         at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>>>> sorImpl.java:25)
>>>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>>>         at
>>>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>>>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>>>         at
>>>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>>>
>>>>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>>> Caused by: java.lang.ClassNotFoundException: org.appfuse.model.User
>>>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>>>         at java.security.AccessController.doPrivileged(Native Method)
>>>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>>>         at
>>>> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassL
>>>> oader.java:195)
>>>>         at
>>>> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassReal
>>>> m.java:255)
>>>>         at
>>>> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassReal
>>>> m.java:274)
>>>>         at
>>>> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.
>>>> java:214)
>>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>>>         at
>>>> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>>>>         at java.lang.Class.forName0(Native Method)
>>>>         at java.lang.Class.forName(Class.java:164)
>>>>         at
>>>> org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:100)
>>>>
>>>>         at
>>>> org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(Annotat
>>>> ionConfiguration.java:542)
>>>>         ... 30 more
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] Total time: 1 minute 31 seconds
>>>> [INFO] Finished at: Sun Sep 16 23:11:41 EEST 2007
>>>> [INFO] Final Memory: 15M/30M
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/AppFuse-2.0-code-complete-tf4462199s2369.html#a12725240
>>>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
>>>> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>>>>
>>>>
>>>
>>>
>>> --
>>> http://raibledesigns.com
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
>>> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>>>
>>>
>>>
>> http://www.nabble.com/file/p25587317/pom.xml pom.xml
>> --
>> View this message in context:
>> http://www.nabble.com/AppFuse-2.0-code-complete-tp12724226s2369p25587317.html
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
>> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> For additional commands, e-mail: users-h...@appfuse.dev.java.net
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/AppFuse-2.0-code-complete-tp12724226s2369p25850141.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net

Reply via email to