dbunit loads the data into the database and then acegi reads from the database using the userDao.
Matt On 3/17/07, appfused <[EMAIL PROTECTED]> wrote:
How does the app know to look at the file instead of going to the database since acegi intercepts and everything looks as though the database should be queried? Is there some filter,pointcut.,advice etc that intercepts the request? Apologies, if this is a stupid question. mraible wrote: > > You are correct that sample-data.xml contains the default data. The > passwords are SHA-encrypted. Decrypted they are "tomcat". > > Matt > > On 3/17/07, appfused <[EMAIL PROTECTED]> wrote: >> >> Thanks a lot. I guess this is one of the issues people probably have with >> spring since you can have the xml files anywhere in the classpath but in >> this case appfuse-hibernate is a logical location. >> >> I thought you would actually point me to a class that reads in a file as >> the >> database that got created as i installed appfuse has empty tables. The >> sample-data.xml file looks like the location of the test user and admin >> user >> that can log in to the sample app. The usernames are there and the >> passwords >> look like they are hashed. The dataset schema also look exactly like that >> of >> the database. Am i missing something? >> >> >> >> >> mraible wrote: >> > >> > The userDao bean definition is stored in the appfuse-hibernate JAR - >> > at the root level. It's loaded from the web.xml using >> > classpath*:/applicationContext-dao.xml. >> > >> > Matt >> > >> > On 3/17/07, appfused <[EMAIL PROTECTED]> wrote: >> >> >> >> Hi, >> >> I'm new to appfuse and it looks like a really cool tool. I've been >> >> looking >> >> through the appfuse generated code for the struts2 basic archetype and >> i >> >> can't see how the userDao bean is defined. It's referenced in the >> >> security.xml file as >> >> >> >> <bean id="daoAuthenticationProvider" >> >> class="org.acegisecurity.providers.dao.DaoAuthenticationProvider"> >> >> <property name="userDetailsService" ref="userDao"/> >> >> <property name="passwordEncoder" ref="passwordEncoder"/> >> >> </bean> >> >> >> >> The app compiles and deploys but i can't understand where it looks up >> the >> >> username and password (mraible/tomacat) that it uses to authenticate a >> >> user >> >> who logs in to the generated app. Any help is welcome. >> >> >> >> regards >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/strutss-basic-archetype-security-tf3419500s2369.html#a9530387 >> >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> >> >> --------------------------------------------------------------------- >> >> 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] >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/strutss-basic-archetype-security-tf3419500s2369.html#a9530914 >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> 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] > > > -- View this message in context: http://www.nabble.com/strutss-basic-archetype-security-tf3419500s2369.html#a9531186 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- 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]
