Ahhh, my bad. I am so used to create new classes via the IDE that I didn't
think of including the package directive in the displayed code.

But nice it works for you now.

Regards,
Otho

2009/4/1 emilis <emilis.k...@gmail.com>

>
> Thank you a lot!
> I'm shame. My misstake was:
>
> import grails.persistence.Entity
>
> @Entity
> public class TestBean
> {
>  String name
>  String text
> }
>
> I don't defined package name... I just copied this code from your blog.
> Sorry for waisted time, and one more time thanks for sugestions and
> uploaded code.
> In my opinio this technology greate!
>
>
>
>
> I just redid all the steps with your package and artifact names and it
> works
> flawlessly, so I would assume the bug is somewhere in your setup. But I
> cannot say more without seeing all of your source and config files.
>
> Note I made small changes to the english blog entry. Grails 1.1 final is
> out
> and I changed the dependencies accordingly.
>
> Also I attach a zip of the source files for this project on the blog in a
> few minutes. If you want you can just download it there and compare to what
> you have.
>
> Regards,
> Otho
>
> 2009/4/1 emilis <emilis.k...@gmail.com>
>
> >
> > | don't thin so, becouse TestBean.groovy is in right directory
> > emi...@localhost ~/coding/java/tapestry/myapp $ ls
> > src/main/java/org/example/entities/TestBean.groovy
> >
> > Am I right?
> >
> >
> >
> >
> >
> >
> > It seems that the import of TestBean in the TestPage class specifies a
> > wrong
> > package. Which package did you specify when generating the archetype?
> >
> >
> >
> > 2009/4/1 emilis <emilis.k...@gmail.com>
> >
> > >
> > > Hello,
> > > I done all steps by this blog:
> > >
> > > blog url
> > >
> > >
> > > And have error on gorm stubs compilation:
> > >
> > >
> > > [INFO] [groovy:generateStubs {execution: default}]
> > > [INFO]  Generated 2 Java stubs
> > > [INFO] [resources:resources]
> > > [INFO] Using default encoding to copy filtered resources.
> > > [INFO] [compiler:compile]
> > > [INFO] Compiling 2 source files to
> > > /home/emilis/coding/java/tapestry/myapp/target/classes
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [ERROR] BUILD FAILURE
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [INFO] Compilation failure
> > >
> >
> /home/emilis/coding/java/tapestry/myapp/target/generated-sources/groovy-stubs/main/TestPage.java:[15,27]
> > > package org.example.entities does not exist
> > >
> > >
> > >
> > >
> >
> /home/emilis/coding/java/tapestry/myapp/target/generated-sources/groovy-stubs/main/TestPage.java:[15,27]
> > > package org.example.entities does not exist
> > >
> > >
> > >
> > > As I understand java firstu must to compile TestBean.java stub, and
> only
> > > then TestPage.java
> > >
> > > Any suggestons?
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://n2.nabble.com/Tapestry-5-on-top-of-GORM-with-Maven-tp2568420p2568420.html
> > > Sent from the Tapestry Users mailing list archive at Nabble.com.
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > > For additional commands, e-mail: users-h...@tapestry.apache.org
> > >
> > >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://n2.nabble.com/Tapestry-5-on-top-of-GORM-with-Maven-tp2568420p2569261.html
> > Sent from the Tapestry Users mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
>
>
>
> --
> View this message in context:
> http://n2.nabble.com/Tapestry-5-on-top-of-GORM-with-Maven-tp2568420p2571070.html
> Sent from the Tapestry Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to