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


Chronological Thread 
  • From: Kevin Meredith < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Unable to Run `tomcat6` commands after Provisioning the opscode-chef/tomcat Cookbook
  • Date: Wed, 28 May 2014 08:24:36 -0400

Hi Mike -

The path to the URL to download tomcat 7.0.53 works correctly. I simply modified the url path in this post here since it's hosted on an internal network.

Sincerely,
Kevin


On Fri, May 2, 2014 at 2:00 PM, Mike < " target="_blank"> > wrote:
 'url': 'https://my/path/apache-tomcat-7.0.53.tar.gz',
I think this might have something to do with it, no?
-M


On Fri, May 2, 2014 at 1:18 PM, Kevin Meredith < " target="_blank"> > wrote:
---
driver:
  name: vagrant
  customize:
    memory: 1024
    cpuexecutioncap: 50

provisioner:
  name: chef_solo

platforms:
  - name: centos-6.4

suites:
  - name: developer 
    run_list:  
      - recipe[java::default]
      - recipe[tomcat::default]

    attributes: 
      'java':  
        'jdk_version': '7',
        'java_home': '/u01/aa/bb/java',
        'install_flavor': 'oracle',
        'jdk': 
          '7': 
            'x86_64': 
              'url': 'https://my/path//jdk-7u55-linux-x64.tar.gz'
      'tomcat': 
        'home': '/u01/aa/bb',
        'owner': 'kevin'


On Tue, Apr 29, 2014 at 11:34 PM, Julian C. Dunn < " target="_blank"> > wrote:
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


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








Archive powered by MHonArc 2.6.16.

§