Jump to content
We've recently updated our Privacy Statement, available here ×

JasperReports LDAP setting issue after upgrade 7.1 to 7.2


roger.mirrer

Recommended Posts

When we upgrade JasperReportsServer from version 7.1 to 7.2 the application started with the following errors:

2019-06-05 07:28:16,583 INFO  [stdout] (ServerService Thread Pool -- 90) 2019-06-05 07:28:16,578 ERROR ContextLoader,ServerService Thread Pool -- 90:350 - Context initialization failed
2019-06-05 07:28:16,583 INFO  [stdout] (ServerService Thread Pool -- 90) org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'proxyBasicProcessingFilter' defined in ServletContext resource [/WEB-INF/applicationContext-externalAuth-LDAP.
xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'authenticationManager' of bean class [com.jaspersoft.jasperserver.api.security.externalAuth.ExternalAuthBasicProcessingFilter]: Bean property 'authenticationManager' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?

The WEB-INF/applicationContext-externalAuth-LDAP.xml file seems to be different in 7.1 and 7.2.

Link to comment
Share on other sites

  • Replies 8
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...

I have the same problem here after upgrade from 6.3 to 7.2.
I used the new sample file from 7.2 sample-applicationContext-externalAuth-LDAP.xml and reimplemented our settings.

But after server restart I got the same error like @roger.mirror

See also this bug report : [#11866] - ldap integration breaks jasperserver
https://community.jaspersoft.com/jasperreports-server/issues/11866

Any help is appreciated.

Thanks

Marwin

Link to comment
Share on other sites

  • 4 weeks later...
  • 2 weeks later...

I just started working on LDAP authenticaiton for our Jasper setup.   We're running 7.2.    It appears that the suppled example file "sample-applicationContext-externalAuth-LDAP.xml" that ships with Jasper 7.2 does not work, and causes the error above (Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'authenticationManager' of bean class ).

this is kind of a show-stopper for us.

Link to comment
Share on other sites

  • 1 month later...

Hi guys,

It looks like Spring Security was upgraded in JR v7.2 up to 4.2.  Which led to change in ExternalAuthBasicProcessingFilter.

So you need to use constructor arg for authenticationManager bean instead of setter:

    <bean id="proxyBasicProcessingFilter"

          class="com.jaspersoft.jasperserver.api.security.externalAuth.ExternalAuthBasicProcessingFilter" parent="basicProcessingFilter">

        <constructor-arg index="0" ref="ldapAuthenticationManager"/>

        <property name="externalDataSynchronizer" ref="externalDataSynchronizer"/>

    </bean>

 

Link to comment
Share on other sites

  • 2 years later...
  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...