PDA

View Full Version : acegi-security-sample-contacts-filter.war does not work



scott.tian
Jan 24th, 2005, 08:53 PM
I copy acegi-security-sample-contacts-filter.war to webapps of jakarta-tomcat-5.0.30, start tomcat and open browser with http://localhost:8080/acegi-security-sample-contacts-filter, but comes Exception. What should I do? Thanks.

scqlbw
Jan 25th, 2005, 04:03 AM
I meet the same problem when I use resin.When I place log4j-1.2.8.jar into my classpath , it does work ! You can try it:)

Ben Alex
Jan 27th, 2005, 06:27 AM
I copy acegi-security-sample-contacts-filter.war to webapps of jakarta-tomcat-5.0.30, start tomcat and open browser with http://localhost:8080/acegi-security-sample-contacts-filter, but comes Exception. What should I do? Thanks.

What's the Exception and stack-trace?

scott.tian
Jan 27th, 2005, 11:28 PM
Just report from browser:
(/acegi-security-sample-contacts-filter/) is not available.

there is no exception at the console.

Ben Alex
Jan 28th, 2005, 12:33 AM
Yes, I just tried it too and found log4j was the issue:


SEVERE: Exception sending context initialized event to listener instance of clas
s org.springframework.web.util.Log4jConfigListener
java.lang.NoClassDefFoundError: org/apache/log4j/PropertyConfigurator

I've just commented out the log4j listener in web.xml for the Contacts sample, and committed it to CVS.

scqlbw
Feb 1st, 2005, 04:20 AM
I buid a demo with Acegi and use my own UserDetail implement . It does work fine .Very Thanks For Agegi:) My plan is to build a demo which use
Spring MVC + Acegi + hibernate + Struts Tile + Common Validator + xdoclet + maven .Good thanks for all Open Source Tech!:)

noise
Feb 4th, 2005, 06:01 PM
drop the log4j jar into the expanded war's lib directory, restart the app, and it works fine.