Wednesday, August 24, 2011

Weblogic 11g Domain Creation Failed

While creating domain in Weblogic server for FMW 11g, the following may be encountered if the config.cmd (or) config.sh file is executed from $MiddlewareHome/wlserver_10.3/common/bin folder.

Preparing...
Extracting Domain Contents...
Creating Domain Security Information...
Domain Creation Failed!

Domain Location: /oracle/fmwhome/user_projects/domains/base_domain

Reason: null

Exception:

Traceback (innermost last):
  File "", line 17, in ?
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

To resolve this error, use the config.cmd (or) config.sh executable from $MiddlewareHome/Oracle_ECM1/common/bin folder. This error occurs because, the standard execution wizard is unable to execute the jython scripts that will get executed during domain creation.

25 comments:

  1. Awesome... With this post, you have resolved my issue in just couple of minutes...

    Thank you very much !!!

    ReplyDelete
  2. I love you dude.

    ReplyDelete
  3. Thank you.. it saved my day..

    ReplyDelete
  4. Worked for me...Thanks a lot!!!

    ReplyDelete
  5. Hurrah.........It helped me like bullet......Thanks

    ReplyDelete
  6. It was helpful. Thanks!!

    ReplyDelete
  7. Glad that this piece of information could help :)

    ReplyDelete
  8. I am getting below error while installing weblogic portal 10.3.5 configuration wizard for creating domain. Please help me resolve this issue.

    OS: Windows 2008 64 bit
    Installable file: portal103_generic.jar

    This is the first weblogic installation.

    Installtion command applied: java -d64 -jar portal103_generic.jar

    Test JDBC data sources.

    Data Source=cgDataSource
    Driver=org.apache.derby.jdbc.ClientDriver
    URL=jdbc:derby://localhost:1527/weblogic_eval;create=true;ServerName=localhost;databaseName=weblogic_eval
    User=WEBLOGIC
    Password=********
    SQL Test=SELECT COUNT(*) FROM SYS.SYSTABLES

    java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused: connect.
    CFGFWK-60850: Test Failed!

    Data Source=cgDataSource-nonXA
    Driver=org.apache.derby.jdbc.ClientDriver
    URL=jdbc:derby://localhost:1527/weblogic_eval;create=true;ServerName=localhost;databaseName=weblogic_eval
    User=WEBLOGIC
    Password=********
    SQL Test=SELECT COUNT(*) FROM SYS.SYSTABLES

    java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused: connect.
    CFGFWK-60850: Test Failed!

    Data Source=p13nDataSource
    Driver=org.apache.derby.jdbc.ClientDriver
    URL=jdbc:derby://localhost:1527/weblogic_eval;create=true;ServerName=localhost;databaseName=weblogic_eval
    User=WEBLOGIC
    Password=********
    SQL Test=SELECT COUNT(*) FROM SYS.SYSTABLES

    java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused: connect.
    CFGFWK-60850: Test Failed!

    Data Source=portalDataSource
    Driver=org.apache.derby.jdbc.ClientDriver
    URL=jdbc:derby://localhost:1527/weblogic_eval;create=true;ServerName=localhost;databaseName=weblogic_eval
    User=WEBLOGIC
    Password=********
    SQL Test=SELECT COUNT(*) FROM SYS.SYSTABLES

    java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused: connect.
    CFGFWK-60850: Test Failed!

    Data Source=portalDataSourceAlwaysXA
    Driver=org.apache.derby.jdbc.ClientDriver
    URL=jdbc:derby://localhost:1527/weblogic_eval;create=true;ServerName=localhost;databaseName=weblogic_eval
    User=WEBLOGIC
    Password=********
    SQL Test=SELECT COUNT(*) FROM SYS.SYSTABLES

    java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused: connect.
    CFGFWK-60850: Test Failed!

    Data Source=portalDataSourceNeverXA
    Driver=org.apache.derby.jdbc.ClientDriver
    URL=jdbc:derby://localhost:1527/weblogic_eval;create=true;ServerName=localhost;databaseName=weblogic_eval
    User=WEBLOGIC
    Password=********
    SQL Test=SELECT COUNT(*) FROM SYS.SYSTABLES

    java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused: connect.
    CFGFWK-60850: Test Failed!

    Why I am getting this error ? How can i resolve this ?


    ReplyDelete
    Replies
    1. Two things;

      1. Is your database running at port 1527?
      2. Did you run the rcu / are these schemas available in the DB?

      Delete
  9. Hi, I m gettin t followin error.. any help is highly appreciated

    Preparing...
    Extracting Domain Contents...
    Creating Domain Security Information...
    Domain Creation Failed!

    Domain Location: C:\Oracle\Middleware\user_projects\domains\base_domain

    Reason: null

    Exception:

    Traceback (innermost last):
    File "", line 442, in ?
    File "", line 388, in updateJPSConfig
    File "C:\Oracle\Middleware\wlserver_10.3\common\wlst\modules\jython-modules.jar\Lib/javaos$py.class", line 334, in system
    File "C:\Oracle\Middleware\wlserver_10.3\common\wlst\modules\jython-modules.jar\Lib/popen2.py", line 235, in system
    File "C:\Oracle\Middleware\wlserver_10.3\common\wlst\modules\jython-modules.jar\Lib/popen2.py", line 72, in __init__
    File "C:\Oracle\Middleware\wlserver_10.3\common\wlst\modules\jython-modules.jar\Lib/javashell.py", line 64, in execute
    OSError: (0, 'Failed to execute command ([\'sh\', \'-c\', \'rename C:\\\\Oracle\\\\Middleware\\\\user_projects\\\\domains\\\\base_domain\\\\config\\\\fmwconfig\\\\jps-config.xml jps-config.xml.bak\']): java.io.IOException: Cannot run program "sh": CreateProcess error=2, The system cannot find the file specified')


    Thanks
    Priya

    ReplyDelete
  10. Even I am getting the same above error even though I am running config.cmd from the prescribed location.

    Preparing...
    Extracting Domain Contents...
    Creating Domain Security Information...
    Domain Creation Failed!

    Domain Location: C:\apps\WebLogic\user_projects\domains\base_domain

    Reason: null

    Exception:

    Traceback (innermost last):
    File "", line 155, in ?
    File "", line 53, in writeUcmAutoInstallFile
    File "C:\apps\WebLogic\wlserver_10.3\common\wlst\modules\jython-modules.jar\Lib/javaos$py.class", line 334, in system
    File "C:\apps\WebLogic\wlserver_10.3\common\wlst\modules\jython-modules.jar\Lib/popen2.py", line 235, in system
    File "C:\apps\WebLogic\wlserver_10.3\common\wlst\modules\jython-modules.jar\Lib/popen2.py", line 72, in __init__
    File "C:\apps\WebLogic\wlserver_10.3\common\wlst\modules\jython-modules.jar\Lib/javashell.py", line 64, in execute
    OSError: (0, 'Failed to execute command ([\'sh\', \'-c\', \'chmod 755 C:\\\\apps\\\\WebLogic\\\\user_projects\\\\domains\\\\base_domain/ucm/cs/bin/autoinstall.cfg\']): java.io.IOException: Cannot run program "sh": CreateProcess error=2, The system cannot find the file specified')


    Please suggest some solution.

    Thanks
    Nakul

    ReplyDelete
  11. Hey thanks...
    it saved my time..

    ReplyDelete
    Replies
    1. Glad it helped. Thanks for your comments.

      Delete
    2. Hi,

      We are getting this TypeError: unsupported operand type(s) for +: 'NoneType' and 'str' while creating ucm domain through WLST automation scripts and not config wizard. How can we resolve this error in WLST? How to invoke config.sh from the ECM1 directory?

      Please help.

      Thanks.

      Delete
  12. Hi I am getting same error, even if I execute the config.exe or config.cmd from ECM1 folder itself. Please help

    Preparing...
    Extracting Domain Contents...
    Creating Domain Security Information...
    Domain Creation Failed!

    Domain Location: C:\Oracle\Middleware3\user_projects\domains\base_domain11

    Reason: null

    Exception:

    Traceback (innermost last):
    File "", line 17, in ?
    TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

    ReplyDelete
  13. Thanks a lot friend .....

    ReplyDelete
  14. Hi,

    We are getting this TypeError: unsupported operand type(s) for +: 'NoneType' and 'str' while creating ucm domain through WLST automation scripts and not config wizard. How can we resolve this error in WLST? How to invoke config.sh from the ECM1 directory?

    Please help.

    Thanks.

    ReplyDelete
  15. I am getting this below error while doing configuration. I config.cmd in the presribed location.

    Can you please help me.

    Preparing...
    Extracting Domain Contents...
    Creating Domain Security Information...
    Domain Creation Failed!

    Domain Location: C:\Oracle\Middleware\user_projects\domains\base_domain

    Reason: null

    Exception:

    Traceback (innermost last):
    File "", line 155, in ?
    File "", line 53, in writeUcmAutoInstallFile
    File "C:\Oracle\Middleware\wlserver_10.3\common\wlst\modules\jython-modules.jar\Lib/javaos$py.class", line 334, in system
    File "C:\Oracle\Middleware\wlserver_10.3\common\wlst\modules\jython-modules.jar\Lib/popen2.py", line 235, in system
    File "C:\Oracle\Middleware\wlserver_10.3\common\wlst\modules\jython-modules.jar\Lib/popen2.py", line 72, in __init__
    File "C:\Oracle\Middleware\wlserver_10.3\common\wlst\modules\jython-modules.jar\Lib/javashell.py", line 64, in execute
    OSError: (0, 'Failed to execute command ([\'sh\', \'-c\', \'chmod 755 C:\\\\Oracle\\\\Middleware\\\\user_projects\\\\domains\\\\base_domain/ucm/cs/bin/autoinstall.cfg\']): java.io.IOException: Cannot run program "sh": CreateProcess error=2, The system cannot find the file specified')

    ReplyDelete
  16. Thx dear..U R grt

    ReplyDelete
  17. Hi While configuring OSB Cluster domain i am getting following error:

    com.oracle.cie.domain.xml.configxb.weblogic.x90.impl.WeblogicJmsTypeImpl
    2015-02-18 17:23:28,648 ERROR [create_gui] com.oracle.cie.wizard.domain.gui.tasks.DomainCreationGUITask - Generation Error!!
    Traceback (innermost last):
    File "", line 56, in ?
    TypeError: iteration over non-sequence

    at org.python.core.Py.TypeError(Unknown Source)
    at org.python.core.PyObject.__iter__(Unknown Source)
    at org.python.pycode._pyx25.f$0(:56)
    at org.python.pycode._pyx25.call_function()
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyCode.call(Unknown Source)
    at org.python.core.Py.runCode(Unknown Source)
    at org.python.util.PythonInterpreter.execfile(Unknown Source)
    at org.python.util.PythonInterpreter.execfile(Unknown Source)
    at com.oracle.cie.domain.script.ScriptHelper.executeEmbeddedTemplateScript(ScriptHelper.java:1574)
    at com.oracle.cie.domain.DomainChecker.executeEmbeddedScript(DomainChecker.java:1322)
    at com.oracle.cie.domain.DomainChecker.runCustomWLSTScript(DomainChecker.java:1305)
    at com.oracle.cie.domain.DomainChecker.preprocessOutput(DomainChecker.java:143)
    at com.oracle.cie.domain.DomainGenerator.generate(DomainGenerator.java:269)
    at com.oracle.cie.wizard.domain.gui.tasks.DomainCreationGUITask$1.run(DomainCreationGUITask.java:216)

    ReplyDelete
  18. can some one help me im getting this error whille creating domain for soa

    Domain Creation Failed!

    Domain Location: C:\Oracle\Middleware\user_projects\domains\base_domain

    Reason: null

    Exception:

    Traceback (innermost last):
    File "", line 75, in ?
    at oracle.sysman.omsca.core.Core11gR1EMOMSConfigAssistant.doPreDeployConfig(Core11gR1EMOMSConfigAssistant.java:116)

    at oracle.sysman.omsca.framework.OMSConfigAssistantDriver.preDeploy(OMSConfigAssistantDriver.java:311)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

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

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


    java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: ear files array cannot be empty

    ReplyDelete
  19. In the tab FMW on WLS-DB, ROW 47 it says:

    "Simultaneous use of automatic database connection failover AND load balancing AND global transactions (XA) with a highly-available (HA) DBMS architecture is supported with Oracle DB RAC only, and only for the Oracle DB RAC versions indicated on the “System” worksheet. These HA capabilities are supported via Active GridLink for RAC and via Multi Data Sources with RAC. These HA capabilities are not supported on other Oracle DB RAC versions or with other HA DBMS technologies on other non-Oracle DB products. Multi Data Sources are supported on other Oracle DB versions, and with non-Oracle DB technologies, but not with simultaneous use of automatic failover AND load balancing AND global transactions".


    is this true

    ReplyDelete