Jboss cookbook Error

All,

I am trying to install Jboss on Centos 6 using Chef. I have downloaded the cookbook ‘jboss7’, ‘~> 0.11.1’ from Chef Super Market. I have also downloaded the dependent cookbook apt and java on the chef server.

My node’s runlist contains Jboss recipe. But I am getting the following error:

  • ruby_block[set-env-java-home] action run
    • execute the ruby block set-env-java-home
    • file[/etc/profile.d/jdk.sh] action create (up to date)

    • ruby_block[update-java-alternatives] action nothing (skipped due to action :nothing)

    • package[java-1.6.0-openjdk] action install (up to date)

    • package[java-1.6.0-openjdk-devel] action install

      ================================================================================
      Error executing action install on resource ‘package[java-1.6.0-openjdk-devel]’

      Chef::Exceptions::Exec

      returned 1, expected 0

      Resource Declaration:

      In /var/chef/cache/cookbooks/java/recipes/openjdk.rb

      90: package pkg do
      91: action :install
      92: notifies :create, “ruby_block[update-java-alternatives]”, :immediately if platform?(“ubuntu”,“debian”,“redhat”,“centos”,“fedora”,“scientific”,“amazon”)
      93: end
      94: end

      Compiled Resource:

      Declared in /var/chef/cache/cookbooks/java/recipes/openjdk.rb:90:in `block in from_file’

      package(“java-1.6.0-openjdk-devel”) do
      action [:install]
      retries 0
      retry_delay 2
      guard_interpreter :default
      package_name "java-1.6.0-openjdk-devel"
      version "1.6.0.33-1.13.5.1.el6_6"
      timeout 900
      cookbook_name "java"
      recipe_name "openjdk"
      end

Running handlers:
[2014-11-13T06:16:16+00:00] ERROR: Running exception handlers
Running handlers complete
[2014-11-13T06:16:16+00:00] ERROR: Exception handlers complete
[2014-11-13T06:16:16+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 1 resources updated in 491.845613509 seconds
[2014-11-13T06:16:17+00:00] ERROR: package[java-1.6.0-openjdk-devel] (java::openjdk line 90) had an error: Chef::Exceptions::Exec: returned 1, expected 0
[2014-11-13T06:16:17+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

How to resolve this error. Any lead in this regard would be highly appreciated.

Thanks & Regards,
Jyoti Bhanot