On 9/20/07, Rob Hills <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> Scott Ryan originally flagged this problem in another thread:
>
> http://www.nabble.com/forum/ViewPost.jtp?post=12729440 &framed=y&skin=2369
>
> I've subsequently encountered it also, responding to Scott's post on the same 
> thread but with a different subject:
>
> http://www.nabble.com/forum/ViewPost.jtp?post=12791053&framed=y&skin=2369
>
> Neither of our posts have elicited any response so I'm wondering if it's 
> because they're both seemingly off the
> topic of the original thread so I've started with a new thread.
>
> My situation is I have been generating "boilerplate" code from my pojos using 
> appfuse:gen.  Because I needed to
> add an attribute to the User class, I followed the instructions on
> http://appfuse.org/display/APF/AppFuse+Core+Classes   That was all working 
> fine until earlier this week.  I was
> able to generated my CRUD code and run the resulting application using 
> jetty:run-war.
>
> Then suddenly the jetty:run-war stopped working.  Unfortunately it was after 
> a period of activity on a number of
> fronts (added a number of pojos, move from AppFuse-2.0-SNAPSHOT to 
> AppFuse-2.0 etc) in the project so I'm
> not exactly sure what I've done to break things,  However, backing out of 
> various changes I'd made doesn't fix my
> problem.
>
> In essence, it appears that the Spring Framework no longer wants to know 
> about any of my entity classes.  Every
> single one of my Action tests breaks with the same type of error - here's one 
> of them:
>
> testSearch(au.com.myapp.webapp.action.UserCookieActionTest)  Time elapsed: 
> 1.094 sec  <<< ERROR!
>
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name
> 'trailerArchiveManager' defined in file 
> [xxx\target\test-classes\WEB-INF\applicationContext.xml]: Cannot create
> inner bean 'org.appfuse.dao.hibernate.GenericDaoHibernate#1f7a434' of type
> [org.appfuse.dao.hibernate.GenericDaoHibernate] while setting constructor 
> argument; nested exception is
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
> creating bean with name
> 'org.appfuse.dao.hibernate.GenericDaoHibernate#1f7a434' defined in file 
> [xxx\target\test-classes\WEB-
> INF\applicationContext.xml]: Unsatisfied dependency expressed through 
> constructor argument with index 0 of
> type [java.lang.Class]: Could not convert constructor argument value of type 
> [java.lang.String] to required type
> [java.lang.Class]: Failed to convert value of type [java.lang.String] to 
> required type [java.lang.Class]; nested
> exception is java.lang.IllegalArgumentException: Cannot find class 
> [au.com.myapp.model.TrailerArchive]. Root
> cause: java.lang.ClassNotFoundException: au.com.myapp.model.TrailerArchive
>
> Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: 
> Error creating bean with name
> 'org.appfuse.dao.hibernate.GenericDaoHibernate#1f7a434' defined in file 
> [xxx\target\test-classes\WEB-
> INF\applicationContext.xml]: Unsatisfied dependency expressed through 
> constructor argument with index 0 of
> type [java.lang.Class]: Could not convert constructor argument value of type 
> [java.lang.String] to required type
> [java.lang.Class]: Failed to convert value of type [java.lang.String] to 
> required type [java.lang.Class]; nested
> 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. Are you developing a modular or basic application?

Matt

>
> I can post the remainder if anyone wants that kind of detail
>
> My project is currently dead in the water over this issue - nothing I've 
> tried makes any difference.
>
> TIA,
> Rob Hills
> Waikiki, Western Australia
> Mobile +61 (412) 904-357
> Fax: +61 (8) 9529-2137
>
> ---------------------------------------------------------------------
> 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]

Reply via email to