Announcement Announcement Module
Collapse
No announcement yet.
Bean autoProxyCreator is not eligible for getting processed by all BeanPost Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bean autoProxyCreator is not eligible for getting processed by all BeanPost

    Hi,

    I am using following spring configuration file
    <code>
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

    <beans>
    <description>BeanFactory=(auth)</description>

    <bean id="securityBean" class="org.myService"/>

    <bean id="autoProxyCreator" class="org.springframework.aop.framework.autoproxy .BeanNameAutoProxyCreator">
    <property name="interceptorNames">
    <list><value>methodSecurity</value></list>
    </property>
    <property name="beanNames">
    <list><value>securityBean</value></list>
    </property>
    <property name="proxyTargetClass" value="true"/>
    </bean>

    <bean id="methodSecurity" class="org.acegisecurity.intercept.method.aopallia nce.MethodSecurityInterceptor">
    <property name="authenticationManager" ref="authenticationManager"/>
    <property name="accessDecisionManager" ref="accessDecisionManager"/>
    <property name="objectDefinitionSource">
    <value>
    org.myServiceMBean.listDetails=ROLE_ADMIN
    </value>
    </property>
    </bean>

    <bean id="memoryAuthenticationDao" class="org.acegisecurity.userdetails.memory.InMemo ryDaoImpl">
    <property name="userMap">
    <value>
    mack=contegix,ROLE_ADMIN
    prasad=pass,ROLE_USER
    </value>
    </property>
    </bean>

    <bean id="accessDecisionManager" class="org.acegisecurity.vote.AffirmativeBased">
    <property name="decisionVoters">
    <list><bean class="org.acegisecurity.vote.RoleVoter"/></list>
    </property>
    </bean>

    <bean id="daoAuthenticationProvider" class="org.acegisecurity.providers.dao.DaoAuthenti cationProvider">
    <property name="userDetailsService">
    <ref local="memoryAuthenticationDao"/>
    </property>
    </bean>


    <bean id="authenticationManager" class="org.acegisecurity.providers.ProviderManager ">
    <property name="providers">
    <list>
    <ref local="daoAuthenticationProvider"/>
    </list>
    </property>
    </bean>
    </beans>
    </code>

    but I am getting following error when I starting my jboss server. I am not able to understand as why this error is coming and what is the meaning of this error.

    <code>
    Bean 'autoProxyCreator' is not eligible for getting processed by all BeanPost
    Processors (for example: not eligible for auto-proxying)
    </code>
    Any help would be appreciated

  • #2
    I don't think thats an error, I think the level is info. All its telling you is that this bean isn't eligible for auto-wiring, as the bean is BeanNameAutoProxyCreator this makes sense.

    Comment


    • #3
      thanks karl,

      I have one more query pertaining to my current problem, can you suggest anything on this?
      How do we go for performing authroization on a standalone application?

      I have a jboss server on which I have deployed my services. I am accessing methods of any service through one of my services in the same application i.e I am invoking a method of one service through another service lets say EntryService. So my EntyService can be said as an entry point to my application. I want to ensure that my methodSecurityInterceptor is invoked as soon as I am trying to access any method through my EntryService.
      Is it possible?

      Comment

      Working...
      X