Please note that I've uploaded a new zip file with PersonActionTest in the thread with Michael Horwitz. So don't bother checking this one.
Matt Raible-3 wrote: > > For some reason, the output from your PersonActionTest has wierd > spelling (cases): > > ------------------------------------------------------------------------------- > Test Set: Com.Ilionx.Webapp.Action.Personactiontest > ------------------------------------------------------------------------------- > Tests Run: 1, Failures: 0, Errors: 1, Skipped: 0, Time Elapsed: 9.063 > Sec <<< Failure! > Testsearch(Com.Ilionx.Webapp.Action.Personactiontest) Time Elapsed: > 8.984 Sec <<< Error! > Org.Springframework.Orm.Hibernate3.Hibernatesystemexception: Unknown > Entity: Com.Ilionx.Tutorial.Model.Person; Nested Exception Is > Org.Hibernate.Mappingexception: Unknown Entity: > Com.Ilionx.Tutorial.Model.Person > Caused By: Org.Hibernate.Mappingexception: Unknown Entity: > Com.Ilionx.Tutorial.Model.Person > > Any idea why the package names are capitalized? > > Do you get this error from the command-line, or when running Maven > from w/in Eclipse? > > Matt > > On 1/23/07, Harmen <[EMAIL PROTECTED]> wrote: >> >> Well, that's why I included the zip file. It contains the >> hibernate.cfg.xml >> and yes it does contain >> >> <mapping class="com.ilionx.tutorial.model.Person"/> >> >> So... that's not the solution I think >> >> Harmen >> >> >> Matt Raible-3 wrote: >> > >> > If Mike's suggestion works, this is a bug that we're hoping to fix in >> > the next couple weeks: >> > >> > http://issues.appfuse.org/browse/APF-571 >> > >> > Matt >> > >> > On 1/22/07, Michael Horwitz <[EMAIL PROTECTED]> wrote: >> >> Have you remembered to add your Person class to hibernate.cfg.xml in >> >> src/main/resources? >> >> >> >> Mike >> >> >> >> >> >> On 1/22/07, Harmen < [EMAIL PROTECTED]> wrote: >> >> > >> >> > Hello everybody, >> >> > >> >> > With great interest I've downloaded Appfuse-2.0 per directions in >> the >> >> > Quickstart Guide with this command: >> >> > >> >> > mvn archetype:create -DarchetypeGroupId=org.appfuse >> >> > -DarchetypeArtifactId=appfuse-basic-struts >> >> > -DremoteRepositories= >> >> http://static.appfuse.org/repository >> >> > -DarchetypeVersion=1.0-m2 -DgroupId=com.ilionx >> >> -DartifactId=basic-struts >> >> > >> >> > Then I do the mvn-integration, works without a hitch. >> >> > Then I generate project with mvn eclipse:eclipse >> >> > Then I import the project into c:\Source, no problem. >> >> > >> >> > Now I start in earnest with the tutorial. Creating the person object >> is >> >> no >> >> > problem, annotations work fine. >> >> > >> >> > The mvn compile hibernate3:hbm2ddl builds fine. >> >> > >> >> > Things start to go hairpullingly wrong when I want to do the >> >> PersonAction, >> >> > TestPersonAction thing. >> >> > >> >> > No matter what I try, I have done the tutorial 3 times now, I keeps >> >> failing >> >> > the build when I do >> >> > >> >> > mvn test -Dtest=PersonActionTest >> >> > >> >> > Now I the gazillion lines of output I seemed to have been to hard to >> >> note >> >> > the reason why it fails. It just fails, it says. Very useful to have >> >> > 10002938403282 lines of output, but that's another matter. >> >> > >> >> > So I have to turn to surefire output, I've attached a zip file >> >> containing >> >> > the XML files, the surefire output and a screen of my project >> layout. >> >> I'm >> >> > baffled by the >> >> > >> >> > Org.Hibernate.Mappingexception : Unknown Entity: >> >> > Com.Ilionx.Tutorial.Model.Person message. Googling >> >> results in "you don't >> >> > have a mapping file" yeah sure, but I thought I was using >> annotations >> >> with >> >> > the specific purpose of avoiding XML hell. >> >> > http://www.nabble.com/file/5857/entity-problems.zip >> >> entity-problems.zip >> >> > >> >> > Does anybody understand what's going on. This is, for a starter, >> very >> >> > frustrating. I would like to use this project to build an advanced, >> big >> >> > website. >> >> > >> >> > I'll buy a beer for the first person to come up with a solution >> (make >> >> that >> >> > two) >> >> > >> >> > Regards, >> >> > >> >> > Harmen >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > -- >> >> > View this message in context: >> >> >> http://www.nabble.com/Can%27t-get-the-tutorial-working%3A-basic-struts-tf3060094s2369.html#a8508958 >> >> > 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/Can%27t-get-the-tutorial-working%3A-basic-struts-tf3060094s2369.html#a8517603 >> 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/Can%27t-get-the-tutorial-working%3A-basic-struts-tf3060094s2369.html#a8521223 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
