I'm having the same problem with v1.0-beta-2 of webstart-maven-plugin:

-Error - com.sun.deploy.net.FailedDownloadException: Unable to load
resource:
(http://localhost:7101/apps/nova-client.jar?version-id=0.1-SNAPSHOT,
0.1-SNAPSHOT)
-NOK - http://localhost:7101/apps/nova-client.jar?version-id=0.1-SNAPSHOT
-OK - http://localhost:7101/apps/nova-client-0.1-SNAPSHOT.jar

Adding <outputJarVersions>false</outputJarVersions> to my pom.xml does not
change the resulting JNLP:

<jar href="apps/nova-client.jar" version="0.1-SNAPSHOT" main="true"/>
<jar href="apps/nova-common.jar" version="0.1-SNAPSHOT"/>
<jar href="apps/kis-client.jar" version="0.1-SNAPSHOT"/>
<jar href="apps/kis-common.jar" version="0.1-SNAPSHOT"/>
<jar href="apps/jettison.jar" version="1.1"/>
<jar href="apps/stax-api.jar" version="1.0.1"/>
<jar href="apps/DJNativeSwing.jar" version="1.0.1"/>
<jar href="apps/DJNativeSwing-SWT.jar" version="1.0.1"/>
<jar href="apps/swt-x86_s.jar" version="3.7M5-win32-win32"/>
<jar href="apps/swt-win32.jar" version="2.1.0"/>


Could someone please help with this issue ?


Andrew Goodnough-2 wrote:
> 
> On Fri, Oct 23, 2009 at 12:11 PM, stevenmaring
> <[email protected]>wrote:
> 
>> >> >> <jnlp spec="1.0+" codebase="$$codebase" context="$$context"
>> >> href="$$name">
>> >>      <information>
>> >>              <title>Release Deployer WebStart</title>
>> >>              <vendor>Name</vendor>
>> >>              <homepage href="http://maven.apache.org"/>
>> >>              <description>$project.Description</description>
>> >>                                      <offline-allowed/>
>> >>                      </information>
>> >>                      <security>
>> >>                      <all-permissions/>
>> >>              </security>
>> >>      <resources>
>> >>              <j2se version="1.5+"/>
>> >> <jar href="release-deployer.jar" version="1.0.0" main="true"/>
>> >>      </resources>
>> >>      <application-desc main-class="com.example.MyMain"/>
>> >> </jnlp>
>> >>
>> >>
>> >> Thanks,
>> >> Steve Maring
>>
> 
> I can't help you with the theory about why this is failing but if you just
> want it to work... if you remove the version property from the jar element
> and reference the real jar name with the version, it should work.  So
> change:
> 
> <jar href="release-deployer.jar" version="1.0.0" main="true"/>
> 
> to
> 
> <jar href="release-deployer-1.0.0.jar" main="true"/>
> 
> in your .jnlp file.
> 
> Also, this will be how the JNLP will be generated if you set
> 
> <outputJarVersions>false</outputJarVersions>
> 
> in the jnlp section of your pom.xml.
> 
> Andy
> 
> 

-- 
View this message in context: 
http://old.nabble.com/unable-to-load-resource-with-webstart-maven-plugin-tp26029276p32802423.html
Sent from the mojo - user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to