Jump to content

JasperServer external authentication from Oracle error


sustain_1

Recommended Posts

Hello,

I am trying to add external users authentication from Oracle database. Current JasperServer (7.1.0) database is Postgres (Community Edition).

In /WEB-INF/applicationContext-externalAuth-db.xml file i write like this:

   <bean id="externalDataSource" class="com.jaspersoft.jasperserver.api.security.externalAuth.wrappers.spring.jdbc.JSDriverManagerDataSource">

   <property name="driverClassName" value="${external.jdbc.driverClassName}"/>

   <property name="url" value="${external.jdbc.url}"/>

   <property name="username" value="${external.jdbc.username}"/>

   <property name="password" value="${external.jdbc.password}"/>

   </bean>

and in default_master.properties i have:

   external.jdbcDriverClass=oracle.jdbc.OracleDriver

   external.jdbcUrl=jdbc:oracle:thin:@host:1521:SID

   external.dbUsername=uname

   external.dbPassword=password

After server restarts i have status 404 not found in browser.

And in jasperserver.log file i see this error:

ERROR ContextLoader,localhost-startStop-1:331 - Context initialization failed

org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'externalDataSource' defined in ServletContext resource [/WEB-INF/applicationContext-externalAuth-db.xml]: Could not resolve placeholder 'external.jdbcDriverClass' in string value "${external.jdbcDriverClass}"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'external.jdbcDriverClass' in string value "${external.jdbcDriverClass}"

in my reports i am using the same Oracle connection and it works good. I try to change string on external.jdbcDriverClass=oracle.jdbc.driver.OracleDriver but it did't works too.

Help me please, what can be wrong ?

Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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...