1 Reply Latest reply: Jul 23, 2014 5:54 AM by Shiva Shankar RSS

    Creation of Weblogic Domain in console mode not working

    Shiva Shankar

      Hi All,

       

      I've installed the Middleware home with ADF Runtime installer (Installer was 12.1.2.0.0). Now, I'm trying to create and configure a domain based on the JRF Template.  I'm executing the following command from Putty

       

      Step1. Navigate to MW_HOME/wlserver/common/bin

      Step2. execute "./config.sh -mode=console"

       

      Its throwing the following error :

       

      2014-07-21 17:03:41,643 WARNING [WizardController] com.oracle.cie.wizard.internal.engine.WizardControllerEngine - Duplicate action cause encountered: java.awt.HeadlessException:

      No X11 DISPLAY variable was set, but this program performed an operation which requires it.

      2014-07-21 17:03:41,643 SEVERE [WizardController] com.oracle.cie.wizard.internal.engine.WizardControllerEngine - Wizard error cause

      java.awt.HeadlessException:

      No X11 DISPLAY variable was set, but this program performed an operation which requires it.

        at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:207)

      at java.awt.Frame.<init>(Frame.java:420)

        at java.awt.Frame.<init>(Frame.java:385)

        at javax.swing.SwingUtilities$SharedOwnerFrame.<init>(SwingUtilities.java:1757)

        at javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:1832)

        at javax.swing.JOptionPane.getRootFrame(JOptionPane.java:1697)

        at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:863)

        at javax.swing.JOptionPane.showConfirmDialog(JOptionPane.java:796)

        at javax.swing.JOptionPane.showConfirmDialog(JOptionPane.java:758)

        at com.oracle.cie.wizard.internal.cont.GUIContext.handleFatalErrorMessage(GUIContext.java:1141)

        at com.oracle.cie.wizard.internal.cont.GUITaskContainer$MethodRunner.run(GUITaskContainer.java:188)

        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:302)

        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)

        at java.awt.EventQueue.access$200(EventQueue.java:103)

        at java.awt.EventQueue$3.run(EventQueue.java:694)

        at java.awt.EventQueue$3.run(EventQueue.java:692)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)

        at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)

        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)

        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)

        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)

        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)

        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)

        at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

      2014-07-21 17:03:41,643 WARNING [WizardController] com.oracle.cie.wizard.internal.engine.WizardControllerEngine - Given state 'ERROR' does not follow current 'ERROR'

       

      This vaguely means that its trying to open a GUI wizard, which is not what I intended to do. The argument -mode=console should run the installer in console mode, but its trying to launch it in GUI mode.

      I searched online, but I have not found anything useful on this issue yet.

       

      Am I missing something?  Has anyone faced this problem before.

       

      Any thoughts on this would be helpful  !!

       

      Thanks,

      Shiva Shankar B N

        • 1. Re: Creation of Weblogic Domain in console mode not working
          Shiva Shankar

          Weblogic 12C (12.1.2 to be precise), currently does not support console mode Domain creation. It supports only GUI mode and Silent mode.

           

          Possible solution to create a 12.1.2  Weblogic domain fully qualified enough to deploy ADF Applications :

           

          1. Install Xming, and enable X11 forwarding on Putty

          2. Silent Mode installation: The Configuration wizard. ./config.sh -mode=silent  -silent_script=xyz . Yes, it needs a silent script, not silent.xml. I did not try this way and instead resorted to WLST.  Still there are not enough blogs that clearly tell you how to install domain based on JRF template. I stumbled upon a similar OTN forum post.

           

          Here is the bunch of WLST commands if anyone is interested

           

          #======================================================================================= 

          # Open a domain template. 

          #======================================================================================= 

           

          readTemplate("/u01/app/mw/Oracle_Home/wlserver/common/templates/wls/wls.jar") 

           

          #======================================================================================= 

          # Update the domain to enable the WebLogic Server domain with JRF and EM. 

          #======================================================================================= 

          addTemplate('/u01/app/mw/Oracle_Home/oracle_common/common/templates/wls/oracle.jrf_template_12.1.2.jar') 

          addTemplate('/u01/app/mw/Oracle_Home/em/common/templates/wls/oracle.em_wls_template_12.1.2.jar') 

           

          #======================================================================================= 

          # Configure the Administration Server and SSL port. 

          # To enable access by both local and remote processes, you should not set the 

          # listen address for the server instance (that is, it should be left blank or not set). 

          # In this case, the server instance will determine the address of the machine and 

          # listen on it. 

          #======================================================================================= 

           

          cd('Servers/AdminServer') 

          set('ListenAddress','') 

          set('ListenPort', 7001) 

           

          create('AdminServer','SSL') 

          cd('SSL/AdminServer') 

          set('Enabled', 'True') 

          set('ListenPort', 7002) 

           

          #======================================================================================= 

          # Define the user password for weblogic. 

          #======================================================================================= 

           

          cd('/') 

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

          # Please set password here before using this script, e.g. cmo.setPassword('value') 

          cmo.setPassword('password') 

           

           

           

          # Create and configure a JDBC Data Source, and sets the JDBC user.   Provide the Schema Credentials of the Service table

           

           

          # Get RCU Configuration using RCU service table (STB) schema credentials 

          cd('/') 

          cd('JDBCSystemResource/LocalSvcTblDataSource/JdbcResource/LocalSvcTblDataSource') 

          cd('JDBCDriverParams/NO_NAME_0') 

          set('DriverName','oracle.jdbc.OracleDriver') 

          set('URL','jdbc:oracle:thin:@XX.XX.XX.XX:1521/xe.yourdomain.com') 

          set('PasswordEncrypted', 'schemaPassword') 

          set('UseXADataSourceInterface', 'false') 

          cd('Properties/NO_NAME_0') 

          cd('Property/user') 

          cmo.setValue('DEV_STB') 

          getDatabaseDefaults() 

           

          #======================================================================================= 

          # Write the domain and close the domain template. 

          #======================================================================================= 

          setOption('OverwriteDomain', 'true') 

          writeDomain('/u01/data/user_projects/domains/your_domain') 

          closeTemplate() 

           

          #======================================================================================= 

          # Exit WLST. 

          #======================================================================================= 

          exit() 

           

           

          Hoping to write a blog post soon..

           

          Thanks,

          Shiva Shankar B N