I have had similar problems before and all due to adding dependencies which
pulled in very old versions of Xerces transitively. Looking through my pom
file the guilty parties where fop and json-lib (but just about any new
dependency could suck these in!). Please check the WEB-INF/lib directory
under the target directory after a Maven build for old versions of Xerces.
If you find them do a build with the -X switch and pipe the output to a log
file, e.g.:
mvn -X install > build.log
Wait for it to finish, and open the output in a text editor. Hunt through it
for xerces, find the offending party, and add an exclusion to the dependency
in your pom file. As an example my entry for fop reads:
<dependency>
<groupId>fop</groupId>
<artifactId>fop</artifactId>
<version>0.20.5</version>
<scope>runtime</scope>
<exclusions>
<exclusion>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
</exclusion>
<exclusion>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
</exclusion>
<exclusion>
<groupId>xalan</groupId>
<artifactId>xalan</artifactId>
</exclusion>
</exclusions>
</dependency>
Word of waning: it can take a bit of fiddling and a number of builds to get
this lot right!
Mike.
On 5/12/07, Matt Raible <[EMAIL PROTECTED]> wrote:
If appfuse-hibernate is in your classpath and there's a
applicationContext-dao.xml in its root directory - it should be loaded
properly.
Matt
On 5/12/07, nmall <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Due to xerces parser giving me errors on the header file ( which I
posted
> in a previous thread), I had to remove the xml header with a simple DTD
> header
> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
> "http://www.springframework.org/dtd/spring-beans.dtd">
>
> However, this doesn't recognise <aop:config> statements in the
security.xml
> so I removed thef ollowing aop:config definition.
> <aop:config>
> <aop:advisor id="managerSecurity"
> advice-ref="methodSecurityInterceptor" pointcut="execution(*
> org.appfuse.service.UserManager.*(..))"/>
> </aop:config>
> Now, I am getting more errors. Could someone explain this for me - why
did I
> get the first errors and now why do I get "userDao" not found. Is this
> really UserDao.java in the data module? I don't find this class
anywhere in
> the entire src download.
>
> Thanks for your help!!
> ERROR] Exception sending context initialized event to listener instance
of
> class org.springframework.web.context.ContextLoaderListener
> org.springframework.beans.factory.BeanCreationException: Error creating
bean
> with name 'authenticationProcessingFilter' defined in ServletContext
> resource [/WEB-INF/security.xml]: Can't resolve reference to bean
> 'authenticationManager' while setting property 'authenticationManager';
> nested exception is
org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'authenticationManager' defined in
> ServletContext resource [/WEB-INF/security.xml]: Can't resolve reference
to
> bean 'daoAuthenticationProvider' while setting property 'providers[0]';
> nested exception is
org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'daoAuthenticationProvider' defined in
> ServletContext resource [/WEB-INF/security.xml]: Can't resolve reference
to
> bean 'userDao' while setting property 'userDetailsService'; nested
exception
> is org.springframework.beans.factory.NoSuchBeanDefinitionException: No
bean
> named 'userDao' is defined
> org.springframework.beans.factory.BeanCreationException: Error creating
bean
> with name 'authenticationManager' defined in ServletContext resource
> [/WEB-INF/security.xml]: Can't resolve reference to bean
> 'daoAuthenticationProvider' while setting property 'providers[0]';
nested
> exception is org.springframework.beans.factory.BeanCreationException:
Error
> creating bean with name 'daoAuthenticationProvider' defined in
> ServletContext resource [/WEB-INF/security.xml]: Can't resolve reference
to
> bean 'userDao' while setting property 'userDetailsService'; nested
exception
> is org.springframework.beans.factory.NoSuchBeanDefinitionException: No
bean
> named 'userDao' is defined
> org.springframework.beans.factory.BeanCreationException: Error creating
bean
> with name 'daoAuthenticationProvider' defined in ServletContext resource
> [/WEB-INF/security.xml]: Can't resolve reference to bean 'userDao' while
> setting property 'userDetailsService'; nested exception is
> org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
> named 'userDao' is defined
> org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
> named 'userDao' is defined
> at
>
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition
(DefaultListableBeanFactory.java:352)
> at
>
org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition
(AbstractBeanFactory.java:671)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
AbstractBeanFactory.java:198)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
AbstractBeanFactory.java:147)
> at
>
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference
(BeanDefinitionValueResolver.java:176)
> at
>
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary
(BeanDefinitionValueResolver.java:105)
> at
>
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues
(AbstractAutowireCapableBeanFactory.java:1013)
> at
>
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean
(AbstractAutowireCapableBeanFactory.java:824)
> at
>
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre
> --
> View this message in context:
http://www.nabble.com/No-Bean-named-userDao-found-tf3730886s2369.html#a10443319
> 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]