[chef] Re: Re: Re: Re: tomcat6 errors


Chronological Thread 
  • From: Ran Tavory < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: tomcat6 errors
  • Date: Tue, 7 Sep 2010 09:46:11 +0300
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=keRmcG+8yD00PD9J+3pz6ThAdAqbaHFtKsAJYx17f1nJXQLMwtCN+uBFxvz8bbbamt nVTSyQkB9B9LpaqlLDMOJFzzxDZeuEcOgnPaPPTnZ0ZrkxrJyB9qVlu3VZFTxk762aMh UOj5P7L4myYYC2y4oauAQzIA0RnYuNJ/bykiQ=

so what should I put in templates/dtomcat.erb?

I get this when I run:
ERROR: Re-raising exception: Chef::Exceptions::FileNotFound - cookbook tomcat6 does not contain file templates/dtomcat6.erb

On Mon, Sep 6, 2010 at 5:35 PM, Charles Sullivan < "> > wrote:
It wasn't tested well with Ubuntu and makes some assumptions that are only true on other distributions. 

The following needs to be at the very top of the recipe for Ubuntu.  Note that the template and cookbook_file resources were moved from another section of the recipe for order of operations purposes. 

https://gist.github.com/a435155e5f35bc7526a4

Let me know if that doesn't work for you.  I also modified my Tomcat cookbook to use 'jsvc' so that Tomcat would daemonize properly.  If you don't, you'll have to start Tomcat outside of your chef run or manage it with something like 'runit'.

--Charlie



On Mon, Sep 6, 2010 at 8:22 AM, Ran Tavory < " target="_blank"> > wrote:

Ubuntu 10.4

On Sep 6, 2010 4:10 PM, "Charles Sullivan" < " target="_blank"> > wrote:
> What distro are you using?
>
> Sent from my iPhone
>
> On Sep 6, 2010, at 6:09 AM, Ran Tavory < " target="_blank"> > wrote:
>
>> It looks like maybe the tomcat6 cookbook is broken http://cookbooks.opscode.com/cookbooks/tomcat6
>> When I run it I see No such file or directory - /etc/init.d/tomcat6
>> status
>> So it looks like the cookbook is attempting to check tomcat's status
>> before tomcat is installed and so it fails.
>> The full log is here http://pastebin.com/g5u6C9s0
>>
>> I'm a newbe so, you know, if it's my bad let me know....
>> --
>> /Ran
>>




--



--
/Ran




Archive powered by MHonArc 2.6.16.

§