Hi Scott,

I thought I'd better change the subject line to something that better describes 
the issue under discussion.  Not sure if that will change 
its thread or not, we'll see.

On 16 Sep 2007 at 23:10, Scott Ryan wrote:

> Has anyone gotten the suggestion 
> http://appfuse.org/display/APF/AppFuse+Core+Classes mentioned in this passage 
> to
> work?  When I tried  it the hibernate plugin could not see across the 
> different packages  using annotations and JPA.
>   It complained that it could not see my  classes from the user class and I 
> could not see the user class from  my
> classes.  Is this just particular to the annotation based approach? 

I did have this working before (ie a couple of days ago), but it's not now.  
Unfortunately, because my app has been undergoing major 
work over the past few days, I'm not sure what's changed to break it.

I'd followed the suggestion in the URL you pointed to above, and I've since 
been back to see if maybe any of the changes I made from 
that suggestion have somehow disappeared, but no luck there.

I've simply added one attribute to my org.appfuse.model.User class (a "company" 
attribute whose type is my app's "Company" class.  
Now, when I run mvn jetty:run-war, all my tests fail with the same 
UnsatisfiedDependencyException, here are the first few lines from 
one of the surefire-reports files:

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

I can post the remainder if anyone wants that kind of detail

Have you worked out what your problem was?
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]

Reply via email to