Weblogic

Hi Team,

Iam using weblogic cookbook. Iam facing some issues while execute.Please
resolve.

Issue :

  • template[/var/chef/cache/silent.xml] action create (up to date)
    IP * remote_file[/var/chef/cache/wls_121200.jar] action create
    IP - create new file /var/chef/cache/wls_121200.jar
    IP - update content in file /var/chef/cache/wls_121200.jar from none to
    e6efe8
    IP (file sizes exceed 10000000 bytes, diff output suppressed)
    IP - change mode from ‘’ to '0744’
    IP - change owner from ‘’ to 'root’
    IP - change group from ‘’ to 'root’
    IP
    IP * execute[Install Weblogic] action run
    IP
    ================================================================================
    IP Error executing action run on resource 'execute[Install Weblogic]'
    IP
    ================================================================================
    IP
    IP
    IP Mixlib::ShellOut::ShellCommandFailed
    IP ------------------------------------
    IP Expected process to exit with [0], but received '255’
    IP ---- Begin output of java -jar /var/chef/cache/wls_121200.jar -silent
    -responseFile /var/chef/cache/weblogic_install.rsp
    -Djava.security.egd=file:/dev/./urandom ----
    IP STDOUT: Extracting files…
    IP The inventory directory /home/oracle/orainventory cannot be created.
    Installation cannot continue.
    IP The OpenJDK JVM is not supported on this platform.
    IP The Oracle Universal Installer failed. Exiting.
    IP STDERR:
    IP ---- End output of java -jar /var/chef/cache/wls_121200.jar -silent
    -responseFile /var/chef/cache/weblogic_install.rsp
    -Djava.security.egd=file:/dev/./urandom ----
    IP Ran java -jar /var/chef/cache/wls_121200.jar -silent -responseFile
    /var/chef/cache/weblogic_install.rsp -Djava.security.egd=file:/dev/./urandom
    returned 255
    IP
    IP
    IP Resource Declaration:
    IP ---------------------
    IP # In /var/chef/cache/cookbooks/weblogic/recipes/default.rb
    IP
    IP 65: execute “Install Weblogic” do
    IP 66: command "java -jar #{Chef::Config[:file_cache_path]}/wls_121200.jar
    -silent -responseFile #{Chef::Config[:file_cache_path]}/weblogic_install.rsp
    -Djava.security.egd=file:/dev/./urandom"
    IP 67: user node[‘weblogic’][‘user’]
    IP 68: group node[‘weblogic’][‘group’]
    IP 69: action :run
    IP 70: end
    IP
    IP
    IP Compiled Resource:
    IP ------------------
    IP # Declared in /var/chef/cache/cookbooks/weblogic/recipes/default.rb:65:in
    `from_file’
    IP
    IP execute(“Install Weblogic”) do
    IP action [:run]
    IP retries 0
    IP retry_delay 2
    IP guard_interpreter :default
    IP command "java -jar /var/chef/cache/wls_121200.jar -silent -responseFile
    /var/chef/cache/weblogic_install.rsp -Djava.security.egd=file:/dev/./urandom"
    IP backup 5
    IP group "oracle"
    IP returns 0
    IP user "oracle"
    IP cookbook_name "weblogic"
    IP recipe_name "default"
    IP end
    IP
    IP
    IP
    IP
    IP Running handlers:
    IP [2014-06-10T11:16:31+00:00] ERROR: Running exception handlers
    IP Running handlers complete
    IP
    IP [2014-06-10T11:16:31+00:00] ERROR: Exception handlers complete
    IP [2014-06-10T11:16:31+00:00] FATAL: Stacktrace dumped to
    /var/chef/cache/chef-stacktrace.out
    IP Chef Client failed. 5 resources updated in 276.312720915 seconds
    IP [2014-06-10T11:16:31+00:00] ERROR: execute[Install Weblogic]
    (weblogic::default line 65) had an error: Mixlib::ShellOut::ShellCommandFailed:
    Expected process to exit with [0], but received '255’
    IP ---- Begin output of java -jar /var/chef/cache/wls_121200.jar -silent
    -responseFile /var/chef/cache/weblogic_install.rsp
    -Djava.security.egd=file:/dev/./urandom ----
    IP STDOUT: Extracting files…
    IP The inventory directory /home/oracle/orainventory cannot be created.
    Installation cannot continue.
    IP The OpenJDK JVM is not supported on this platform.
    IP The Oracle Universal Installer failed. Exiting.
    IP STDERR:
    IP ---- End output of java -jar /var/chef/cache/wls_121200.jar -silent
    -responseFile /var/chef/cache/weblogic_install.rsp
    -Djava.security.egd=file:/dev/./urandom ----
    IP Ran java -jar /var/chef/cache/wls_121200.jar -silent -responseFile
    /var/chef/cache/weblogic_install.rsp -Djava.security.egd=file:/dev/./urandom
    returned 255
    IP [2014-06-10T11:16:31+00:00] FATAL: Chef::Exceptions::ChildConvergeError:
    Chef run process exited unsuccessfully (exit code 1)

On Tuesday, June 10, 2014 at 5:47 AM, ramesh.bahavathi@techmahindra.com wrote:

IP STDOUT: Extracting files.....................................
IP The inventory directory /home/oracle/orainventory cannot be created.
Installation cannot continue.
IP The OpenJDK JVM is not supported on this platform.
IP The Oracle Universal Installer failed. Exiting.
IP STDERR:
IP ---- End output of java -jar /var/chef/cache/wls_121200.jar -silent
-responseFile /var/chef/cache/weblogic_install.rsp
-Djava.security.egd=file:/dev/./urandom ----
IP Ran java -jar /var/chef/cache/wls_121200.jar -silent -responseFile
/var/chef/cache/weblogic_install.rsp -Djava.security.egd=file:/dev/./urandom
returned 255

Looks like web logic doesn’t like the JDK you’re using.

--
Daniel DeLeo

Seems you are noot using SYN or JRcokit JDK compatible to WLS version. First install compatible JDK and try. Can you the your cookbook for checking?