Skip to Main Content

Application Development 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!

Weblogic OSB DOMAIN Creation fails with below error

Sujan PaidipalaMar 13 2016 — edited Mar 14 2016

i am trying to setup a weblogic with OSB domains for 12.2.1 with wlst scripts.

I am able to build the domain with SOA, but it throws the below error when i try for OSB server.

Error: runCmd() failed. Do dumpStack() to see details.

Problem invoking WLST - Traceback (innermost last):

  File "/tmp/kitchen/cache/new_domain-12c.py", line 111, in ?

  File "/tmp/WLSTOfflineIni5781899991560714997.py", line 135, in updateDomain

  File "/tmp/WLSTOfflineIni5781899991560714997.py", line 19, in command

Domain Extension Application Failed!

Domain Location: /u01/soa12c/oracle/config/domains/SOADomain

Reason: java.lang.IllegalArgumentException: WSM-04602 : A password is required to connect to a database-based MDS repository.

Exception:

java.lang.IllegalArgumentException: WSM-04602 : A password is required to connect to a database-based MDS repository.

java.lang.IllegalArgumentException: WSM-04602 : A password is required to connect to a database-based MDS repository.

        at com.oracle.cie.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHandler.java:69)

        at com.oracle.cie.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:2360)

        at com.oracle.cie.domain.script.jython.WLScriptContext.runCmd(WLScriptContext.java:676)

        at sun.reflect.GeneratedMethodAccessor121.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:483)

com.oracle.cie.domain.script.jython.WLSTException: com.oracle.cie.domain.script.jython.WLSTException: Error updating domain:

Domain Extension Application Failed!

Domain Location: /u01/soa12c/oracle/config/domains/SOADomain

Reason: java.lang.IllegalArgumentException: WSM-04602 : A password is required to connect to a database-based MDS repository.

Exception:

java.lang.IllegalArgumentException: WSM-04602 : A password is required to connect to a database-based MDS repository.

java.lang.IllegalArgumentException: WSM-04602 : A password is required to connect to a database-based MDS repository.

Below is the py file i generated for the setup

DOMAIN_MODE='Expanded'

DOMAIN_PATH='/u01/soa12c/oracle/config/domains/SOADomain'

APP_PATH='/u01/soa12c/oracle/config/applications/SOADomain'

DOMAIN='SOADomain'

START_MODE='prod'

CROSSDOMAIN_ENABLED=true

ADMIN_USERNAME='weblogic'

ADMIN_PASSWORD='welcome1'

REPOS_DBURL='jdbc:oracle:thin:@10.227.85.83:1521:DBRAC'

REPOS_DBUSER_PREFIX='CHEF03'

REPOS_DBPASSWORD='welcome1'

def alterDatasource(datasource_name, schema_sufix, driver_name):

        cd('/JDBCSystemResource/' + datasource_name + '/JdbcResource/' + datasource_name + '/JDBCDriverParams/NO_NAME_0')

        set('URL',REPOS_DBURL)

        set('PasswordEncrypted',REPOS_DBPASSWORD)

        if driver_name:

                set('DriverName', driver_name)

        cd('Properties/NO_NAME_0/Property/user')

        set('Value',REPOS_DBUSER_PREFIX+'_'+schema_sufix)

def defineServer(default_name, new_name, machine_name, address, port, cluster_name):

        cd('/Servers/' + default_name)

        if machine_name:

                set('Machine', machine_name)

        if address:

                set('ListenAddress', address)

        if cluster_name:

                assign('Server',default_name,'Cluster',cluster_name)

        set('ListenPort',port)

        set('Name',new_name)

print 'Creating Domain'

readTemplate('/u01/soa12c/oracle/products/fmw1221/wlserver/common/templates/wls/wls.jar', DOMAIN_MODE)

setOption('ServerStartMode', START_MODE)

setOption('AppDir', APP_PATH )

cd('/')

cd('Security/base_domain/User/weblogic')

set('Name',ADMIN_USERNAME)

cmo.setPassword(ADMIN_PASSWORD)

if CROSSDOMAIN_ENABLED == true:

        create('base_domain','SecurityConfiguration')

        cd('/SecurityConfiguration/base_domain')

        set('CrossDomainSecurityEnabled',true)

MACHINE_NAME = 'EXA_Machine01'

NM_ADDRESS = '10.227.91.27'

NM_PORT = 5556

NM_TYPE = 'Plain'

try:

        cd('/')

        create(MACHINE_NAME, 'Machine')

except BeanAlreadyExistsException:

        print 'Machine ' + MACHINE_NAME + ' already exists'

cd('Machine/' + MACHINE_NAME)

create(MACHINE_NAME, 'NodeManager')

cd('NodeManager/' + MACHINE_NAME)

set('ListenAddress',NM_ADDRESS)

set('ListenPort',NM_PORT)

set('NMType',NM_TYPE)

defineServer('AdminServer', 'AdminServer', 'EXA_Machine01', '10.227.91.27', 7001,'')

writeDomain(DOMAIN_PATH)

closeTemplate()

print 'Adding Templates'

readDomain(DOMAIN_PATH)

addTemplate('/u01/soa12c/oracle/products/fmw1221/osb/common/templates/wls/oracle.osb_template.jar')

delete('osb_server1', 'Server')

addTemplate('/u01/soa12c/oracle/products/fmw1221/soa/common/templates/wls/oracle.bam.server_template.jar')

delete('bam_server1', 'Server')

print 'Creating Resources'

create('osb_server1', 'Server')

create('bam_server1', 'Server')

defineServer('osb_server1', 'osb_server1', 'EXA_Machine01', '10.227.91.27', 7003, '')

defineServer('bam_server1', 'bam_server1', 'EXA_Machine01', '10.227.91.27', 7005, '')

alterDatasource('opss-audit-DBDS', 'IAU_APPEND', None)

alterDatasource('opss-audit-viewDS', 'IAU_VIEWER', None)

alterDatasource('opss-data-source', 'OPSS', None)

alterDatasource('LocalSvcTblDataSource', 'STB', None)

alterDatasource('wlsbjmsrpDataSource', 'SOAINFRA', None)

alterDatasource('OraSDPMDataSource', 'UMS', None)

alterDatasource('BamDataSource', 'SOAINFRA', None)

alterDatasource('mds-bam', 'MDS', None)

alterDatasource('BamJobSchedDataSource', 'WLS', None)

alterDatasource('OraSDPMDataSource', 'UMS', None)

updateDomain()

closeDomain()

dumpStack()

print('Exiting...')

exit()

Request your help to solve the issue.

Comments

PuneetRekhade
Default Weblogic EM console does provide with in-built testing functionality.
Else, you can give a shot to "SOAPUI (http://www.soapui.org/)" tool.

Puneet.
Eric Elzinga
we also use soapui tests for all the integration tests we create
also have a look at soapuipro, lot's of nice functionality

you can easily connect to the database to verify data, or call other webservices to verify if some save action really got saved, and by retrieving all the data you have several different activities to assert your data (groovy, assertions, etc)
we also use some testing support database packages so we can easily trigger some situations we want to test

for loadtesting we use loadui which will eventually use the soapui projects to generate the load, in loadui you can then create production-like situaties (different amount of calls for different services etc)
1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Apr 11 2016
Added on Mar 13 2016
3 comments
1,981 views