On Dec 20, 2007 10:42 PM, Farrukh Najmi <[EMAIL PROTECTED]> wrote: > Jerome Lacoste wrote: > > On Dec 20, 2007 8:12 PM, Farrukh Najmi <[EMAIL PROTECTED]> wrote: > > > >> Thanks again Jerome, > >> > >> Signing the jars using <sing> element and sub-elements fixed the last > >> problem. > >> > > > > Can you open an issue in jira ? That's a regression caused by the new > > signing mechanism implemented last month. > > > > http://jira.codehaus.org/browse/MWEBSTART > > > > Description: if signing is disabled, the jars stored in the jnlp > > directory are left with dangling .unprocessed extensions in their > > names > > > > Done. Thanks. > > http://jira.codehaus.org/browse/MWEBSTART-74 > > > > > > >> After that fix I am getting the following error during download of JNLP: > >> > >> Missing version field in response from server when accessing resource: > >> (http://xxx/xxx-1.3-SNAPSHOT.jar, 1.3-SNAPSHOT) > >> > > > > Are you using the jnlp-download servlet on the server ? > > No. Is this the preferred way?
It really depends what your goals are. If you deploy a webapp and want to benefit from the jnlp download servlet then this other mojo is more appropriate. If you generate a standalone component, maybe deployed on a static web site, or if you just want to not use the jnlp download servlet, then using one of the jnlp mojo is more appropriate. There's an example project that uses the jnlp-download-servlet. attached to http://jira.codehaus.org/browse/MWEBSTART-54 is a file webstartDemo+1.1.zip (direct link http://jira.codehaus.org/secure/attachment/31058/webstartDemo+1.1.zip) You will also find it here: https://svn.codehaus.org/mojo/trunk/mojo/webstart-maven-plugin/plugin/src/it/it002/ (I will add there a new module in the future that demonstrates the start of the war within jetty). > If so, do the following steps sound right? > > * Move my jar project to a war project You can keep your jar as a jar and use a second project to wrap it into your war. > * Find the pom that provides the JnlpDownloadServlet and include it > as a dependency (where do I get that? Is it part of > webstart-maven-plugin?) described in the README found in the webstart demo referenced above. > * In my web.xml configure to use the JnlpDownloadServlet Yep. Cf the demo. > * Use webstart:jnlp-download-servlet as goal Yes. Attach it to the right phase. Cf the demo :) Cheers, Jerome --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
