[chef] Re: Unable to Run `tomcat6` commands after Provisioning the opscode-chef/tomcat Cookbook


Chronological Thread 
  • From: "Julian C. Dunn" < >
  • To:
  • Subject: [chef] Re: Unable to Run `tomcat6` commands after Provisioning the opscode-chef/tomcat Cookbook
  • Date: Tue, 29 Apr 2014 23:34:20 -0400

Send the .kitchen.yml? Just by virtue of the fact that you have “/app/bin/java” as the JRE/JVM (not the default) seems to indicate that you’re overriding some attributes somewhere which are messing with the intended behavior.

- Julian

On Apr 28, 2014, at 9:51 PM, Kevin Meredith < "> > wrote:

Hi -

platform: test-kitchen with centos-64 image
vagrant - 1.5.4
VirtualBox - 4.3.10r93012

After provisioning the `opscode-chef/tomcat` cookbook, I'm unable to call `tomcat6` with arguments:

[vagrant]$ tomcat6 start
[vagrant]$ /usr/sbin/tomcat6: line 30: /logs/catalina.out: No such file or directory

[vagrant]$ tomcat6 stop
/usr/sbin/tomcat6: line 60: /logs/catalina.out: No such file or directory

[vagrant]$ tomcat6 version
Error: Could not find or load main class org.apache.catalina.util.ServerInfo

But, tomcat6 appears to be running:

[vagrant]$ ps -ef | grep tomcat
tomcat    4820     1  2 21:37 ?        00:00:12 /app/bin/java -Xmx128M -Djava.awt.headless=true -classpath :/usr/share/tomcat6/bin/bootstrap.jar:/usr/share/tomcat6/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar -Dcatalina.base=/usr/share/tomcat6 -Dcatalina.home=/usr/share/tomcat6 -Djava.endorsed.dirs=/usr/share/tomcat6/lib/endorsed -Djava.io.tmpdir=/var/cache/tomcat6/temp -Djava.util.logging.config.file=/usr/share/tomcat6/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager org.apache.catalina.startup.Bootstrap start
rem       4932  3856  0 21:45 pts/0    00:00:00 grep tomcat

My only overridden attribute is:

      'tomcat': {
      'keytool': '/usr/bin/keytool'
      },

Thanks,
Kevin


Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail




Archive powered by MHonArc 2.6.16.

§