ERROR: Cannot specify both default and name_property/name_attribute together on property file of resource wlp_config
I am getting the above error when creating a recipe for my application:
Node Attribute: chef.json = { "service_name" => "jspsample", "normal"=> { "wlp"=> { "archive"=> { "accept_license"=> "true", "base_url"=> "file:///vagrant/" } }, "java"=> { "install_flavor"=> "ibm", "ibm"=> { "url"=> "file:///vagrant/ibm-java-x86_64-sdk-7.0.7.1.bin", "accept_ibm_download_terms"=> "true" } } }, }
Recipe: application "JSPExamples" do repository "http://central.maven.org/maven2/org/apache/geronimo/samples/jsp-examples-war/3.0-M1/jsp-examples-war-3.0-M1.war" path "/usr/local/JSPExamples" scm_provider Chef::Provider::RemoteFile::Deploy owner node[:wlp][:user] group node[:wlp][:group] wlp_application do server_name "JSPExamples" features [ "jsp-2.2", "servlet-3.0" ] end end
start server if it is not running already
wlp_server "JSPExamples" do action :start end
More Info: ==> default: chef_version=13.0.118 ==> default: platform=centos ==> default: platform_version=6.7 ==> default: ruby=ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux] ==> default: program_name=chef-client worker: ppid=11555;start=11:20:57; ==> default: executable=/opt/chef/bin/chef-client ==> default: ==================================================================> default: Recipe Compile Error in /var/chef/cache/cookbooks/wlp/resources/config.rb ===================================================================