After adding the eclipse M2_REPO variable i was able to get past the previous
error now i get this
[INFO] Surefire report directory:
d:\devhome\appfuse\myproject\target\surefire-r
eports
ERROR - ContextLoader.initWebApplicationContext(203) | Context
initialization fa
iled
org.springframework.beans.factory.BeanCreationException: Error creating bean
wit
h name 'userManager' defined in URL
[file:/d:/devhome/appfuse/myproject/target/c
lasses/applicationContext-service.xml]: Instantiation of bean failed; nested
exc
eption is java.lang.NoClassDefFoundError:
javax/persistence/EntityExistsExceptio
n
Caused by:
java.lang.NoClassDefFoundError: javax/persistence/EntityExistsException
at java.lang.Class.getDeclaredConstructors0(Native Method)
It seems that this code is causing the above error (im using ibatis)
try {
return dao.saveUser(user);
} catch (DataIntegrityViolationException e) {
throw new UserExistsException("User '" + user.getUsername() + "'
already exists!");
} catch (EntityExistsException e) { // needed for JPA
throw new UserExistsException("User '" + user.getUsername() + "'
already exists!");
}
Now the problem is that whatever is running the test cannot see this
library/class import javax.persistence.EntityExistsException;
How do i get it to see it? and to fix the issue please?
Thanks,
-saeed
--
View this message in context:
http://www.nabble.com/Questions-about-appfuse---understanding-some-key-points-in-faq-tutorials-tf4122367s2369.html#a11728423
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]