On 9/20/07, Rob Hills <[EMAIL PROTECTED]> wrote:
> Hi Matt,
>
> On 20 Sep 2007 at 19:56, Matt Raible wrote:
>
> > On 9/20/07, Rob Hills <[EMAIL PROTECTED]> wrote:
> > > exception is java.lang.IllegalArgumentException: Cannot find class 
> > > [au.com.myapp.model.TrailerArchive]. Root
> > > cause: java.lang.ClassNotFoundException: au.com.myapp.model.TrailerArchive
> >
> > This seems to indicate the class doesn't exist, or it's not in your
> > classpath.
>
> Hmmm, it's amazing what you don't see when it's right under your nose!  That 
> was an entity that had existed, but which I'd
> removed manually (at the time I hadn't known about appfuse:remove which was 
> co-incidentally mentioned on the list today:
> http://www.nabble.com/forum/ViewPost.jtp?post=12803281&framed=y&skin=2369
>
> Obviously something was left behind, because when I used appfuse:remove 
> -Dentity=TrailerArchive, that problem went
> away and now all my test failures have different causes, most of which now 
> make sense to me.  I've started going through
> and regenerating my pojos (using appfuse:gen) over again.  However, I've run 
> appfuse:gen on my modified User class and
> I'm now wondering if I shouldn't have.  It fails with the error message 
> "Expression field.value.typeName is undefined on line
> 51, column 22 in appfuse/web/struts/web-tests.ftl".  Is that a bug, or should 
> I not have run appfuse:gen over my modified
> org.appfuse.model.User class?

You probably shouldn't run it on your modified class because the
User-related classes are customized to do the specialized User
Management that AppFuse provides.

With that being said, appfuse:gen shouldn't error out with an
exception. I'd rather have it warn the user that it doesn't handle
something, or simply ignore it - rather than throwing an error that
makes no sense. It's likely that a @OneToMany, @Component or some
other annotation is causing the problem. I'd eventually like to
support all of these, but we need a pattern on the UI that makes sense
before we do it.

Matt

>
> > Are you developing a modular or basic application?
>
> It's a basic application.
>
> Cheers,
> Rob Hills
> Waikiki, Western Australia
> Mobile +61 (412) 904-357
> Fax: +61 (8) 9529-2137
>
>



-- 
http://raibledesigns.com

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

Reply via email to