【发布时间】:2015-11-12 10:28:01
【问题描述】:
我正在尝试设置一个运行 Liberty 配置文件服务器的虚拟机,并按照此链接中给出的说明部署示例应用程序:https://developer.ibm.com/wasdev/docs/getting-started-chef-cookbooks-liberty-profile/
但我没有使用 vagrant,而是使用 EC2 实例作为虚拟机。在虚拟机中 ssh 并运行“sudo chef-client”时出现以下错误。
Starting Chef Client, version 12.5.1
resolving cookbooks for run list: ["apt", "starter::JSPExamples"]
Synchronizing Cookbooks:
- starter (1.0.0)
- apt (2.9.2)
- application (5.0.0)
- poise-service (1.0.2)
- application_wlp (0.2.0)
- wlp (0.3.0)
- java (1.36.0)
- poise (2.4.0)
Compiling Cookbooks...
[2015-11-12T10:20:23+00:00] WARN: Chef::Mixin::LanguageIncludeRecipe is deprecated, use Chef::DSL::IncludeRecipe instead.
[2015-11-12T10:20:23+00:00] WARN: Called from: /var/chef/cache/cookbooks/application_wlp/providers/wlp_application.rb:20:in `class_from_file'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/mixin/from_file.rb:42:in `class_eval'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/mixin/from_file.rb:42:in `class_from_file'
=======================================================================
Recipe Compile Error in /var/chef/cache/cookbooks/application_wlp/resources/wlp_application.rb
=======================================================================
LoadError
---------
cannot load such file -- ApplicationCookbook
请帮帮我。
【问题讨论】:
-
您正在使用最新的 Chef 版本跟踪一个相当老的示例,但我在 application_wlp 食谱的 0.2.0 版的错误消息中找不到引用的文件:github.com/WASdev/ci.chef.wlp/tree/0.2.0/resources。
-
是的,即使我找不到这样的文件。所以怀疑是否缺少某些东西。
标签: websphere chef-infra websphere-liberty