Wednesday, March 30, 2011

oracle.security.am.admin.config.ConfigurationException: Cannot find file oam-config.xml in the classpath or on the filesystem.

After installing oam, when using separate directories for the AdminServer domain and managed server domains, the following error will appear in the oam server logs:

oracle.security.am.admin.config.ConfigurationException: Cannot find file oam-config.xml in the classpath or on the filesystem.

Running the pack and unpack command to move configuration files to the managed server directory will resolve this error (after restarting the managed server).

pack.sh

[oracle@fmw bin]$ /u01/app/oracle/product/fmw/oracle_common/common/bin/pack.sh -managed=true -domain=/u01/app/oracle/admin/IDMDomain/aserver/IDMDomain -template=/u01/app/oracle/product/fmw/templates/oam.jar -template_name=oam_template
<< read domain from "/u01/app/oracle/admin/IDMDomain/aserver/IDMDomain"
>>  succeed: read domain from "/u01/app/oracle/admin/IDMDomain/aserver/IDMDomain"
<< set config option Managed to "true"
>>  succeed: set config option Managed to "true"
<< write template to "/u01/app/oracle/product/fmw/templates/oam.jar"
....................................................................................................
>>  succeed: write template to "/u01/app/oracle/product/fmw/templates/oam.jar"
<< close template
>>  succeed: close template

unpack.sh

[oracle@fmw bin]$ /u01/app/oracle/product/fmw/oracle_common/common/bin/unpack.sh -domain=/u01/app/oracle/admin/IDMDomain/mserver/IDMDomain -template=/u01/app/oracle/product/fmw/templates/oam.jar -overwrite_domain=true
<< read template from "/u01/app/oracle/product/fmw/templates/oam.jar"
>>  succeed: read template from "/u01/app/oracle/product/fmw/templates/oam.jar"
<< set config option OverwriteDomain to "true"
>>  succeed: set config option OverwriteDomain to "true"
<< set config option DomainName to "IDMDomain"
>>  succeed: set config option DomainName to "IDMDomain"
<< write Domain to "/u01/app/oracle/admin/IDMDomain/mserver/IDMDomain"
>>  warning:write Domain to "/u01/app/oracle/admin/IDMDomain/mserver/IDMDomain"
>>  Server listen ports in your domain configuration conflict with ports in use by active processes on this host.
Port 7005 on wls_ods1
Port 14100 on wls_oam1
...............................................................................................
>>  succeed: write Domain to "/u01/app/oracle/admin/IDMDomain/mserver/IDMDomain"
<< close template
>>  succeed: close template


Restart the wls_oam1 managed server

No comments:

Post a Comment