2010/6/10 Giovanni Cocco <gianni.g.co...@gmail.com> > Hi, > I'm experiencing some problems in a project based on jAPS ( > http://www.japsportal.org). The jAPS backend is based on Struts2. > For integration with a IDM System we introduced SpringSecurity on the > application. The problem is that when Struts2 is executing a result of type > "chain" or of type "redirectAction" there is some problem with result. > In the case of result of type chain the value (mykey) of a Spring Bean of > name privateKey is used as namespace. But there is no explicit reference > from action bean to privateKey bean. I suppose a problem with autowiring... > > [....]
> Any suggestion will be appreciated, I don't understand why bean privateKey > is autowired and why only it. > > The bean definition is: > > <!-- Alias of the key used for SAML signing and encryption/decryption > --> > <beans:bean name="privateKey" class="java.lang.String"> > <beans:constructor-arg value="mykey" /> > </beans:bean> > > > I found a solution to the problem, the String defined into the bean "privateKey" is passed to other bean via a property-placeholder. So there isn't the definition for bean "privateKey" and struts2 code that manage "chain" and "redirectAction" result types doesn't try to use the value of String in bean "privateKey. Regards, GC