Hi Valerio,
Thanks for your answer but my JWS Demo App is already up-and-running using
two modules : jws (the jws app) and jws-war (the download webapp).
So if you are interested ... my template.vm is similar to yours and I use
the JnlpDownloadServlet to get the final missing peaces.
In my jws module I have a templat.vm :
<jnlp spec="1.0+" codebase="$$codebase" href="launch.jnlp">
<information>
<title>The JWS Client</title>
<description>...</description>
<description kind="tooltip">Hello JWS World!</description>
<vendor>The JWS Company</vendor>
<icon kind="splash" href="images/jpg/splash-logo.jpg"/>
<offline-allowed/>
</information>
<resources>
<j2se version="1.5+" max-heap-size="128m" />
$dependencies
</resources>
<security><all-permissions/></security>
<application-desc main-class="$mainClass" />
</jnlp>
In a seperate jws-war module my web.xml looks like :
<web-app>
<display-name>jws-war module to deploy the jws module</display-name>
<servlet>
<servlet-name>JnlpDownloadServlet</servlet-name>
<servlet-class>jnlp.sample.servlet.JnlpDownloadServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>JnlpDownloadServlet</servlet-name>
<url-pattern>*.jnlp</url-pattern>
</servlet-mapping>
</web-app>
So when I use the url http://localhost:8080/jws-war/webstart/launch.jnlp the
jnlp automagically becomes :
<jnlp spec="1.0+" codebase="http://localhost:8080/jws-war/webstart/" href="
launch.jnlp">
<information>
<title>The JWS Client</title>
<description>...</description>
<description kind="tooltip">Hello JWS World!</description>
<vendor>The JWS Company</vendor>
<icon kind="splash" href="images/jpg/splash-logo.jpg"/>
<offline-allowed/>
</information>
<resources>
<j2se version="1.5+" max-heap-size="128m"/>
<jar href="jws-1.0.1-SNAPSHOT.jar" main="true"/>
<jar href="commons-logging-1.0.4.jar"/>
<jar href="commons-cli-1.0.jar"/>
<jar href="spring-1.2.6.jar"/>
</resources>
<security>
<all-permissions/>
</security>
<application-desc main-class="com.casdco.jee.jws.Application"/>
</jnlp>
Regarding your other post : my "signing process" runs very swiftly.
Best regards,
Chris
2006/11/6, Valerio Schiavoni <[EMAIL PROTECTED]>:
Hi Chris,
here is a working for me template.vm:
<?xml version="1.0" encoding="utf-8"?>
<jnlp
spec="1.0+"
codebase="file:."
xhref="$outputFile">
<information>
<title>your title here</title>
<vendor>your vendor here</vendor>
<homepage xhref="myapp.html"/>
<description>your descrtion here</description>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.5+"/>
$dependencies
</resources>
<application-desc main-class="$mainClass"/>
</jnlp>
i'm not 100% sure about the codebase attribute: the current svn version of
the plugin seems to ignore that part..but i'm still investigating a
possibly
better solution. i guess as soon as I want to deploy my webstart app
within
a webapp, i'll have to find out a better solution.
On 10/24/06, Chris Michiels <[EMAIL PROTECTED]> wrote:
>
> Thanks Andrés,
>
> I've got everything working, and am now facing the velocity template
> (being
> a total newbie at velocity). Care to share your template.vm :o) ?
>
> I used the one from the repo jars and it produced a launch.jnlp like :
>
> <?xml version="1.0" encoding="utf-8"?>
> <jnlp codebase="$$codebase" href="$outputFile.name">
> <resources>
> </resources>
> <application-desc main-class="${config.jnlp.mainClass}"/>
> </jnlp>
>
> TIA!
>
> Chris
>
> PS : in the past I just rejarred the jars after removing the "signing
> stuff"
> from the META-INF when I had signing issues.
>
> 2006/10/24, Andrés <[EMAIL PROTECTED]>:
> >
> >
> > El 24/10/2006 7:15, Chris Michiels escribió:
> >
> > > Thanks Paul,
> > >
> > > Adding additional snapshot repo's did do the job,
> > > Any experience with the webstart-maven-plugin ?
> >
> > It worked fine for me. Just beware with something a little strange:
> > Velocity templates (.vm) must be in src/jnlp, while additional
resources
> > must be in src/main/jnlp.
> >
> > Besides, beware with jar signing, I had problems when trying to sign
> > javax jar's, because they're already signed by Sun. I didn't need them
> > really, so I removed them and it worked.
> >
> > Andrés
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Chris MICHIELS
> Scire tuum nihil est, nisi te scire hoc sciat alter.
>
>
--
http://valerioschiavoni.blogspot.com
http://jroller.com/page/vschiavoni
--
Chris MICHIELS
Scire tuum nihil est, nisi te scire hoc sciat alter.