How to rename the application_java cookbook?


#1

Hi all,

I’m using the application_java cookbook to deploy my WAR.
I’ve created an application_myapps cookbook and it works.

Now, I want to rename my cookbook (i.e. myapps), but if I try to change the
name I’ve got this error:

NameError: No resource found for java_webapp. Tried application_java_webapp,
application_java_java_webapp, java_webapp

Could you help me?

Best regards,
pasquy73


#2

That’s really not enough information to go on. We’ll really need to know what you’re doing inside application_myapps to help.

~j

On Jul 16, 2014, at 2:47 AM, pasquale.vitale@eng.it wrote:

Hi all,

I’m using the application_java cookbook to deploy my WAR.
I’ve created an application_myapps cookbook and it works.

Now, I want to rename my cookbook (i.e. myapps), but if I try to change the
name I’ve got this error:

NameError: No resource found for java_webapp. Tried application_java_webapp,
application_java_java_webapp, java_webapp

Could you help me?

Best regards,
pasquy73


#3

Hi Joseph,
I’ve downloaded the application_java-master cookbook from site.
Then, I’ve rename the folder in application_svn_with_web_UI.
I’ve added in the recipes folder the default.rb file with these lines:
/
//include_recipe ‘java’//
//
//application node[‘svnwebadmin’][‘application_name’] do //
// path node[‘svnwebadmin’][‘application_path’]//
// owner node[‘tomcat’][‘user’]//
// group node[‘tomcat’][‘group’]//
// repository node[‘svnwebadmin’][‘war_uri’]//
////
// scm_provider Chef::Provider::RemoteFile::Deploy//
//
// java_webapp//
//
// tomcat//
//end/

include_recipe ‘subversion’

In the default.rb file of attributes folder the parameters are ok. The
WAR too.
Finally, in the java_webapp.rb file of providers folder I’ve replaced
the name “application_java” in to “application_svn_with_web_UI” at line 63.
That’s all.
With this configuration the cookbook is ok.

I want to rename the cookbook in only “svn_with_web_UI” so I’ve renamed
root folder.
I’ve replaced “svn_with_web_UI” at the line 63 too but I’ve this error:

/FATAL: NameError: No resource found for java_webapp. Tried
application_java_webapp, application_java_java_webapp, java_webapp/

Thank you for your time,

pasquy73

Il 16/07/2014 19:37, Joseph Anthony Pasquale Holsten ha scritto:

That’s really not enough information to go on. We’ll really need to know what you’re doing inside application_myapps to help.

~j

On Jul 16, 2014, at 2:47 AM, pasquale.vitale@eng.it wrote:

Hi all,

I’m using the application_java cookbook to deploy my WAR.
I’ve created an application_myapps cookbook and it works.

Now, I want to rename my cookbook (i.e. myapps), but if I try to change the
name I’ve got this error:

NameError: No resource found for java_webapp. Tried application_java_webapp,
application_java_java_webapp, java_webapp

Could you help me?

Best regards,
pasquy73