atom feed19 messages in org.codehaus.groovy.griffon-userRe: [griffon-user] easiest way to dep...
FromSent OnAttachments
Hamlet D'ArcyOct 27, 2009 8:51 am 
Andres AlmirayOct 27, 2009 9:00 am 
Danno FerrinOct 27, 2009 11:57 am 
Hamlet D'ArcyOct 27, 2009 7:52 pm 
James WilliamsOct 27, 2009 8:20 pm 
James WilliamsOct 27, 2009 8:31 pm 
Danno FerrinOct 27, 2009 8:40 pm 
Peter LedbrookOct 27, 2009 11:26 pm 
Hamlet D'ArcyOct 28, 2009 4:21 pm 
Hamlet D'ArcyOct 28, 2009 4:24 pm 
Andres AlmirayOct 28, 2009 4:45 pm 
Josh ReedOct 28, 2009 4:46 pm 
Hamlet D'ArcyOct 28, 2009 5:40 pm 
Andres AlmirayOct 28, 2009 5:46 pm 
Hamlet D'ArcyOct 28, 2009 6:20 pm 
James WilliamsOct 28, 2009 7:10 pm 
Hamlet D'ArcyOct 28, 2009 7:19 pm 
Danno FerrinOct 28, 2009 8:55 pm 
Hamlet D'ArcyOct 29, 2009 5:50 am 
Subject:Re: [griffon-user] easiest way to deploy jnlp Griffon app?
From:Andres Almiray (aalm@gmail.com)
Date:Oct 28, 2009 4:45:43 pm
List:org.codehaus.groovy.griffon-user

Yup, that code is not good. Try using http://www.hamletdarcy.com/files/2009/easy-translate/<http://www.hamletdarcy.com/files/2009/easy-translate/application.jnlp> All other urls and resources on the jnlp file will use the codebase's value as a prefix.

Cheers, Andres

On Wed, Oct 28, 2009 at 4:24 PM, Hamlet D'Arcy <haml@gmail.com> wrote:

Looks like I don't know what 'codebase' does. WHen launching the jnlp I get:

BadFieldException[ The field <jnlp>codebase has an invalid value: GriffonKey,GriffonKey] at com.sun.javaws.jnl.XMLUtils.getAttributeURL(Unknown Source) at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source) at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source) at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source) at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source) at com.sun.javaws.Main.launchApp(Unknown Source) at com.sun.javaws.Main.continueInSecureThread(Unknown Source) at com.sun.javaws.Main$1.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

Here is my config:

environments { production { signingkey { params { sigfile = 'GRIFFON' keystore = "/home/hdarcy/.keystore" alias = 'GriffonKey' // NOTE: for production keys it is more secure to rely on key prompting storepass = 'my password' keypass = 'my password' lazy = false // sign, regardless of existing signatures } }

griffon { jars { sign = true pack = true destDir = "${basedir}/staging" } webstart { codebase = 'http://www.hamletdarcy.com/files/2009/easy-translate/application.jnlp' } } } }

Does anything stand out as wrong?

-- Hamlet D'Arcy haml@gmail.com

On Wed, Oct 28, 2009 at 6:21 PM, Hamlet D'Arcy <haml@gmail.com> wrote:

So... given that I config Config.groovy correctly, then deployment means copying what to my webserver?

./my-app/staging or ./my-app/dist/webstart

On Tue, Oct 27, 2009 at 10:40 PM, Danno Ferrin <dann@shemnon.com>

wrote:

More minor tweaks... Looks like GriffonKey should have gone into alias and it went into codebase. Also, comment out storepass and key pass if you would rather be prompted for the password.

Finally, prod is now the default environment for package (this is a recent change late in the 0.2 cycle, and differs from grails), so 'griffon package' is the same as 'griffon prod package'.

On Tue, Oct 27, 2009 at 9:20 PM, James Williams < jame@gmail.com> wrote:

Hamlet, In your Config.groovy: production { signingkey { params { sigfile = 'GRIFFON' keystore = '/home/hdarcy/.keystore' alias = 'CHAMGE ME' // NOTE: for production keys it is more secure to rely on key prompting storepass = 'Something' keypass = 'Something' lazy = false // sign, regardless of existing signatures } } griffon { jars { sign = true pack = true destDir = "${basedir}/staging" } webstart { codebase = 'CHANGEME' } } } Set the bolded line to the url of where the applet or application.jnlp file will live. If you aren't deploying an applet, you only need application.jnlp. jw On Tue, Oct 27, 2009 at 7:52 PM, Hamlet D'Arcy <haml@gmail.com> wrote:

Wow. This is really hard. I thought I could just copy some files into the right place. The launcher doesn't even begin to work on 64 bit linux and gives the following error on windows:

exception: JNLP file error: GriffonKey/applet.jnlp. Please make sure the file exists and check if "codebase" and "href" in the JNLP file are correct.. java.io.FileNotFoundException: JNLP file error: GriffonKey/applet.jnlp. Please make sure the file exists and check if "codebase" and "href" in the JNLP file are correct.

What does it mean to "set the codebase in prod environment at Config.groovy"? I don't see any line that would tell the system if I'm in dev or prod.

I tried following Danno's directions as best I could. There seems to be a lot of stuff I don't know.

Does anyone have the simplest possible Config.groovy file that will work given that my key store is in /home/hdarcy/.keystore and my store name and password are both "Something"?

-- Hamlet D'Arcy haml@gmail.com

On Tue, Oct 27, 2009 at 1:57 PM, Danno Ferrin < dann@shemnon.com> wrote:

You will also want a custom key for the warning dialog. At the command line type:

keytool -genkey -alias GriffonKey

Then follow the prompts, and remember the password. Next go to griffon-app/conf/Config.groovy, and find the environmnets.production.siginingkey.params section

change keystore to "${user.home}/.keystore change alias to "GriffonKey"

I recommend against putting your password in the lines that follow for actual public keys, especially ones signed by CAs. But you may, and griffon will use them.

Next go to environmnets.production.griffon.webstart

change codebase to point to the directory that your application.jnlp file will be in.

If it is a local grails app you can deploy straight into the build tree by adding to production.griffon this:

dist { webstart { dir = "<your target dir in the war" nozip = true // causes the zip file to not be generated } }

Then at CLI

griffon package webstart

If you need to copy to a remote webserver, instead of the step with the dist block, go to dist/webstart and copy all those files to the webserver.

On Tue, Oct 27, 2009 at 10:00 AM, Andres Almiray < aalm@gmail.com> wrote:

On Tue, Oct 27, 2009 at 8:52 AM, Hamlet D'Arcy < haml@gmail.com> wrote:

What is the easiest way to deploy a public JNLP based Griffon app?

I'm pretty sure I don't want to put it on the AppStore. Is there a GriffonStore or a Griffon Showcase?

No, there is no such service yet. James had the idea of hosting an app collection (griffonapps.com I think) but that didn't get off the ground.

Also, JNLP deployment is as simple as copying all the files out to an http server somewhere, right?

That's right. Just make sure to tweak your config (set the codebase in prod environment at Config.groovy) then type 'griffon package webstart'. That should result in tha pp being packaged at $basedir/dist/webstart. You'll find all the files you need there.

-- Hamlet D'Arcy haml@gmail.com

To unsubscribe from this list, please visit:

------------------------------------------------------ "But you didn't." - Jim Halpert, The Office S05E23

------------------------------------------------------ "But you didn't." - Jim Halpert, The Office S05E23

------------------------------------------- http://jroller.com/aalmiray http://www.linkedin/in/aalmiray