Hi,
I am in the process of adding acegi to my project. First I added form authentication and hibernate stuff, everything was ok. Now I added acl authorization and I am encoutering an exception at startup:
Exception in thread "main" org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'net.sf.acegisecurity.acl.basic.SimpleAclEntry.REA D' defined in file [C:\projects\emailargs\common\wcvs\..\..\web\wcvs\w ebroot\web-inf\applicationContext-zec-acegi-acl.xml]: Initialization of bean failed; nested exception is java.lang.ClassNotFoundException:
net.sf.acegisecurity.acl.basic.SimpleAclEntry
java.lang.ClassNotFoundException:
net.sf.acegisecurity.acl.basic.SimpleAclEntry
at java.net.URLClassLoader$1.run(URLClassLoader.java: 200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 51)
at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at org.springframework.util.ClassUtils.forName(ClassU tils.java:74)
at org.springframework.beans.factory.config.FieldRetr ievingFactoryBean.afterPropertiesSet(FieldRetrievi ngFactoryBean.java:163)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:1075)
...
My code looks like this:
String springconfig = "../../web/wcvs/webroot/web-inf/application*.xml";
//test
Object o = Class.forName("net.sf.acegisecurity.acl.basic.Simp leAclEntry");
System.out.println(o);
ApplicationContext context = new FileSystemXmlApplicationContext(springconfig);
Notice that the testing line finds the class net.sf.acegisecurity.acl.basic.SimpleAclEntry (I dont know if that means anything, I am new to spring)
and I have these spring files:
applicationContext-acegi-security.xml
applicationContext-hibernate.xml
applicationContext-resources.xml
applicationContext-service.xml
applicationContext-zec-acegi-acl.xml
any clues?
thanks in advance
javi


