Skip to Main Content

Security Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

OIA Configuration - 1st Deployment error

900559Dec 9 2011 — edited Dec 12 2011
After following the install guide and correcting a couple of exising files I finally get an error message of:-

10:24:40,797 ERROR [ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSource' defined in ServletContext resource [WEB-INF/application-context.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'DataSourceAdvisor' defined in ServletContext resource [WEB-INF/dataaccess-context.xml]: Cannot create inner bean 'org.springframework.aop.support.JdkRegexpMethodPointcut#1935e6f' of type [org.springframework.aop.support.JdkRegexpMethodPointcut] while setting bean property 'pointcut'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.support.JdkRegexpMethodPointcut#1935e6f' defined in ServletContext resource [WEB-INF/dataaccess-context.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'businessUnitServiceAuditBusinessUnitAdvisor' defined in ServletContext resource [WEB-INF/rbacx-audit-context.xml]: Cannot create inner bean 'businessUnitServiceAuditAfterReturningAdvice' of type [com.vaau.rbacx.rbacxaudit.aop.businessunitserviceaudit.BusinessUnitServiceAuditAfterReturningAdvice] while setting bean property 'advice'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'businessUnitServiceAuditAfterReturningAdvice' defined in ServletContext resource [WEB-INF/rbacx-audit-context.xml]: Cannot resolve reference to bean 'daoAuditLogger' while setting bean property 'auditLogger'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daoAuditLogger' defined in ServletContext resource [WEB-INF/rbacx-audit-context.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'indexGlobalUserGlobalUserUpdateAdvisor' defined in ServletContext resource [WEB-INF/search-context.xml]: Cannot create inner bean 'com.vaau.rbacx.search.aop.IndexAdvise#a69ae7' of type [com.vaau.rbacx.search.aop.IndexAdvise] while setting bean property 'advice'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.vaau.rbacx.search.aop.IndexAdvise#a69ae7' defined in ServletContext resource [WEB-INF/search-context.xml]: Cannot resolve reference to bean 'ftSearchProvider' while setting bean property 'searchProvider'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ftSearchProvider' defined in ServletContext resource [WEB-INF/search-context.xml]: Cannot resolve reference to bean 'rbacxSchedulerService' while setting bean property 'rbacxSchedulerService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rbacxSchedulerService' defined in ServletContext resource [WEB-INF/scheduling-context.xml]: Cannot resolve reference to bean 'vaauSchedulerManager' while setting bean property 'vaauSchedulerManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'vaauSchedulerManager' defined in ServletContext resource [WEB-INF/scheduling-context.xml]: Cannot resolve reference to bean 'quartzSchedulerProvider' while setting bean property 'schedulerProvider'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'quartzSchedulerProvider' defined in ServletContext resource [WEB-INF/scheduling-context.xml]: Cannot resolve reference to bean 'quartzSchedulerFactoryBean' while setting bean property 'quartzScheduler'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'quartzSchedulerFactoryBean' defined in ServletContext resource [WEB-INF/scheduling-context.xml]: Cannot create inner bean 'quartzSchedulerFactoryBeanTarget' of type [org.springframework.scheduling.quartz.SchedulerFactoryBean] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'quartzSchedulerFactoryBeanTarget' defined in ServletContext resource [WEB-INF/scheduling-context.xml]: Invocation of init method failed; nested exception is org.quartz.SchedulerConfigException: Failure occured during job recovery. [See nested exception: org.quartz.JobPersistenceException: Failed to obtain DB connection from data source 'springNonTxDataSource.quartzSchedulerFactoryBeanTarget': java.sql.SQLException: Unable to start the Universal Connection Pool: oracle.ucp.UniversalConnectionPoolException: Cannot get Connection from Datasource [See nested exception: java.sql.SQLException: Unable to start the Universal Connection Pool: oracle.ucp.UniversalConnectionPoolException: Cannot get Connection from Datasource]]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:405)

My jdbc properties files looks like this:-

jdbc.url=jdbc:oracle:thin:@ORCL1:1521:rbacx
jdbc.driverClassName=oracle.jdbc.OracleDriver

Where ORCL1 is my servername and 1521 the port.

Any suggestions guys?
This post has been answered by BikashBagaria on Dec 12 2011
Jump to Answer

Comments

BikashBagaria
Check your properties file for any hidden newline character(s). Open up the file in vi and confirm.

-HTH,
Bikash
900559
Hi Bikash,

Thanks for the advice - I do not have vi editor as I am installing on Windows 2008 so I opened it in Wordpad. No strange characters there that I can see although I did have a similar issue with clover.mf where strange characters appeared.

To clarify - servername should be set to name of the DB or localhost? I have been playing with variations on this line and no joy.
Port number - 1521 default for weblogic - checked the listener file and this seems ok

I agree that the problem must lie with jdbc.properties.

My application server is spewing out the following error:-

09-Dec-2011 11:01:01 o'clock GMT> <Error> <Deployer> <oracleidm> <AdminServer> <[STANDBY] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1323428461470> <BEA-149202> <Encountered an exception while attempting to commit the 7 task for the application 'rbacx'.>
####<09-Dec-2011 11:01:01 o'clock GMT> <Warning> <Deployer> <oracleidm> <AdminServer> <[STANDBY] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1323428461470> <BEA-149004> <Failures were detected while initiating start task for application 'rbacx'.>
####<09-Dec-2011 11:01:01 o'clock GMT> <Warning> <Deployer> <oracleidm> <AdminServer> <[STANDBY] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1323428461470> <BEA-149078> <Stack trace for message 149004
weblogic.application.ModuleException: :oracle.net.ns.NetException:Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor

Can you advise?

Regards!
Rajiv Dewan
where is server name ?

like localhost or IP ADDRESS ?

jdbc:oracle:thin:@*$SERVER_NAME*:$PORT:rbacx


jdbc:oracle:thin:@$<IP_ADDRESS>:1521:ORCL1
BikashBagaria
user8380428 wrote:
To clarify - servername should be set to name of the DB or localhost?
servername should be your database host name
weblogic.application.ModuleException: :oracle.net.ns.NetException:Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
Seems like as issue with the listener. Can you check in your database host the following command from Oracle_home/bin:
lsnrctl status
The output should show you that listener is ready for connections for the rbacx sid.

-Bikash
BikashBagaria
I believe orcl1 is the db host name in his properties file:
jdbc.url=jdbc:oracle:thin:@ORCL1:1521:rbacx
jdbc.driverClassName=oracle.jdbc.OracleDriver
Additionally check for the new line characters in any windows utility which you can download if your db service, listener configuration are correct.

-Bikash
Rajiv Dewan
I think ORCL1 is DB name and he forgot SERVER NAME and he used rbacx as given in docs.

jdbc:oracle:thin:@$<IP_ADDRESS>:1521:ORCL1
900559
Hi,

I get the following output from that command:

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(port=1521))
TNS-12557: TNS:protocol adapter not loadable
TNS-12560: TNS:protocol adapter error
TNS- 00527: Protocol Adapter not loadable

Looks like TNS needs fixing.

Thanks - will look at that but if you have any further advice i would be grateful.
BikashBagaria
...

Edited by: Bikash Bagaria on Dec 9, 2011 5:13 PM
BikashBagaria
Try starting it as:
lsnrctl start
And check the output as previous after sometime.

-Bikash
900559
Hi Guys,

Thanks for the useful tips - now getting invalid un/pw error for rbacx although my only user in Oracle DB11g is rbacxservice.

The error is as below:-

ORA-01017: invalid username/password; logon denied

The only instruction I did not follow was to encrypt the rbacxservice password. I will try doing this and see if its any better.

Regards!
Rajiv Dewan
Which password are you using ?

rbacxservice
900559
For rbacxservice I used "Database1". Should i change this to "password"? Can connect to DB directly but oracle DB is not talking to app server methinks?
Rajiv Dewan
Have you tried rbacxservice as password ?
900559
Hi,

Yes - I changed the password in Oracle DB admin console and jdbc.properties but I still get the same error: ORA-01017.

The only thing I can think of is that I did not run the encryption java script but to be honest I can't think what diffence this would make.

Any other suggestions guys?

Oh the error has now changed slightly

15:00:54,797 ERROR [ContextLoader] Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'certificationEventListener' defined in ServletContext resource [WEB-INF/idc-context.xml]: Cannot resolve reference to bean 'rbacxIDCService' while setting bean property 'rbacxIDCService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rbacxIDCService' defined in ServletContext resource [WEB-INF/idc-context.xml]: Cannot resolve reference to bean 'rbacxIAMService' while setting bean property 'rbacxIAMService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rbacxIAMService' defined in ServletContext resource [WEB-INF/iam-context.xml]: Cannot create inner bean 'com.vaau.rbacx.iam.service.impl.RbacxIAMServiceImpl#2d09aa' of type [com.vaau.rbacx.iam.service.impl.RbacxIAMServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.vaau.rbacx.iam.service.impl.RbacxIAMServiceImpl#2d09aa' defined in ServletContext resource [WEB-INF/iam-context.xml]: Cannot resolve reference to bean 'oimSolution' while setting bean property 'iamSolutions' with key [TypedStringValue: value [oracle], target type [null]]; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'oimSolution' is defined

have checked these files and nothing stands out as being wrong.

Edited by: user8380428 on 09-Dec-2011 07:09
Rajiv Dewan
Have you changed anything in iam-context.xml and iam.properties?

Revert that and try.
900559
I checked out iam.properties and found an error which I corrected. Reloaded and got the following error:-

:org.springframework.beans.factory.NoSuchBeanDefinitionException:No bean named 'oimSolution' is defined

Checked out iam.context and the following is listed:-

<entry key="sun">
<ref local="waveset"/>
</entry>
<!--entry key="ca">
<ref local="eTrust"/>
</entry-->
<!--entry key="ibm">
<ref local="tim"/>
</entry-->
<entry key="oracle">
<ref bean="oimSolution"/>
</entry>
<entry key="file">
<ref local="file"/>

now I am wondering if <entry key="oracle">
<ref bean="oimSolution"/>

Should be this:

<entry key="oracle">
<ref local="oimSolution"/>

Changed it and no difference. however i noted also that the following were commented so i removed the comments field:-

<import resource="oim-commons-context.xml"/>

<import resource="oim-11g-context.xml"/>

now it returns a slightly different error:-

weblogic.application.ModuleException:
Thor.API.tcUtilityFactory

but in rbacx.logs it points to

16:12:06,607 ERROR [ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'certificationEventListener' defined in ServletContext resource [WEB-INF/idc-context.xml]: Cannot resolve reference to bean 'rbacxIDCService' while setting bean property 'rbacxIDCService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rbacxIDCService' defined in ServletContext resource [WEB-INF/idc-context.xml]: Cannot resolve reference to bean 'rbacxIAMService' while setting bean property 'rbacxIAMService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rbacxIAMService' defined in ServletContext resource [WEB-INF/iam-context.xml]: Cannot create inner bean 'com.vaau.rbacx.iam.service.impl.RbacxIAMServiceImpl#98594d' of type [com.vaau.rbacx.iam.service.impl.RbacxIAMServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.vaau.rbacx.iam.service.impl.RbacxIAMServiceImpl#98594d' defined in ServletContext resource [WEB-INF/iam-context.xml]: Cannot resolve reference to bean 'oimSolution' while setting bean property 'iamSolutions' with key [TypedStringValue: value [oracle], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'oimSolution' defined in ServletContext resource [WEB-INF/oim-11g-context.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Thor/API/tcUtilityFactory
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)

I am not connecting to OIM at this stage so these errors are confusing me. OIM is not installed yet.

I have now narrowed this down to a problem with file iam-context. I restored this to an original version yet the problem persists. There appears to be an error associated with it in the way it is commented out but I have yet been unable to find exactly where this is occuring. If anyone has an example of a working iam.properties file please let me know.

Regards!

Edited by: user8380428 on 09-Dec-2011 10:12
BikashBagaria
If you are not trying to integrate OIA-OIM I am not sure why you need this, but follow the steps here and you should be good:

http://wikis.sun.com/display/OIA11gDocs/Integrating+With+Oracle+Identity+Manager%2C+Preferred+Method#IntegratingWithOracleIdentityManager%2CPreferredMethod-step1

More discussion here: https://forums.oracle.com/forums/thread.jspa?messageID=9434764

HTH,
Bikash
900559
Hi,

All the advice so far has been great - one last problem though. Although the status in weblogic is Active and it appears to have successfully installed it will not launch the web interface - i get error 404 every time.

http://localhost:port/instancename
http://localhost:7001/orcl1

no other errors in logs.

Speak later,

Newbie
Rajiv Dewan
try:

http://localhost:7001/rbacx
BikashBagaria
Answer
Click on the application in the weblogic console under deployments and Click on Testing tab ... there you should see the correct URL of the application. The application context for OIA PS1 is /OIAPS1

-Bikash
Marked as Answer by 900559 · Sep 27 2020
900559
Thats the baby - thanks!!
1 - 21
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jan 9 2012
Added on Dec 9 2011
21 comments
757 views