On 1/23/07, Harmen <[EMAIL PROTECTED]> wrote:


Ok, I've deleted the .m2 repo, started all over again and now everything
seems to work just fine. I haven't the slightest what was causing the
build
to fail. Thank you for you time


No problem. Just glad it works!

Harmen wrote:
>
> Totally baffled I am. I'm going to delete maven2 repo and start all
over.
> Which Java version do you use? I have jdk1.5.0_09. I'm running on
Windows
> as well. I tried your procedure over and over again, didn't work. So I'm
> going to start over again and let you know.
>
>
>
>
> Michael Horwitz wrote:
>>
>> The test ran successfully first time on my setup. Here is what I did:
>>
>> 1) Extracted the zip to a working directory.
>> 2) Edited the top level pom.xml so that the JDBC URL pointed to a
>> database
>> instance I know does not exist: apptest
>> 3) Ran mvn hibernate3:hbm2ddl to create the database.
>> 4) Ran mvn jetty:run-war to check if the application comes up properly.
>> Build was successfull (this includes PersonActionTest).
>> 5) Ran mvn test -Dtest=PersonActionTest. All tests pass.
>>
>> All I can suggest is that you try and clean down your environment:
>>
>> 1) Run mvn clean on the project.
>> 2) Delete the MySql database instance.
>>
>> And give it another go. I do use Windows, so there is a possibility
that
>> case issues that appear on Linux do not appear on my system.
>>
>> Mike
>>
>> On 1/23/07, Harmen <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>> OK, yeah, I removed it, in order to get a build going, eager to test
>>> functionality.
>>>
>>>
>>> Here's a zip *with* the class. I stripped the jars, wars and classes.
>>>
>>> http://www.nabble.com/file/5872/Copy%20of%20basic-struts.zip Copy of
>>> basic-struts.zip
>>>
>>>
>>> Michael Horwitz wrote:
>>> >
>>> > The PersonActionTest class seems to be missing from the package?
>>> >
>>> > On 1/23/07, Harmen <[EMAIL PROTECTED]> wrote:
>>> >>
>>> >>
>>> >> Here's my project
>>> >>
>>> >> http://www.nabble.com/file/5870/basic-struts-matt.zip
>>> >> basic-struts-matt.zip
>>> >>
>>> >>
>>> >>
>>> >> Matt Raible-3 wrote:
>>> >> >
>>> >> > Can you send me your project?  I'd like to see if I can
>>> reproduce/fix
>>> >> > the problem locally?
>>> >> >
>>> >> > Thanks,
>>> >> >
>>> >> > Matt
>>> >> >
>>> >> > On 1/23/07, Harmen <[EMAIL PROTECTED]> wrote:
>>> >> >>
>>> >> >> Even when adding that, it still bails out with exactly the same
>>> error.
>>> >> If
>>> >> >> it
>>> >> >> helps, I'm working on Windows XP. For now I just leave the tests
>>> out.
>>> >> I'd
>>> >> >> love to do some test driven development, but I'll wait untill
you
>>> guys
>>> >> >> come
>>> >> >> up with the solution.
>>> >> >>
>>> >> >>
>>> >> >> Michael Horwitz wrote:
>>> >> >> >
>>> >> >> > You are missing the following from your
>>> applicationContext.xmlfile:
>>> >> >> >
>>> >> >> >   <bean
>>> >> class="org.appfuse.dao.spring.HibernateExtensionPostProcessor
>>> >> ">
>>> >> >> >         <property name="annotatedClasses">
<list>
>>> >> >> >                 <value>com.ilionx.tutorial.model.Person
</value>
>>> >> >> >        </list>
>>> >> >> >           </property>       </bean>
>>> >> >> >
>>> >> >> > As mentioned by Matt this is currently a bug we are tryin to
>>> solve.
>>> >> >> >
>>> >> >> > Mike.
>>> >> >> >
>>> >> >> > 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]
>>> >> >> >>
>>> >> >> >>
>>> >> >> >
>>> >> >> >
>>> >> >>
>>> >> >> --
>>> >> >> View this message in context:
>>> >> >>
>>> >>
>>>
http://www.nabble.com/Can%27t-get-the-tutorial-working%3A-basic-struts-tf3060094s2369.html#a8518002
>>> >> >> 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#a8519962
>>> >> Sent from the AppFuse - User mailing list archive at Nabble.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#a8520599
>>> Sent from the AppFuse - User mailing list archive at Nabble.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#a8521804
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to