日期:2014-05-18  浏览次数:20803 次

实在没有想法了,关于jnlp的下载
项目的一个jnlp链接,在客户端无法打开,提示“无效参数错误”
详细内容为:

CouldNotLoadArgumentException[   无法加载指定的文件/URL:C:\Documents   and   Settings\William\Local   Settings\Temporary   Internet   Files\Content.IE5\SD8NWN8N\mpc[1].jnlp]
at   com.sun.javaws.Main.launchApp(Unknown   Source)
at   com.sun.javaws.Main.main(Unknown   Source)

然后我在地址栏里直接去下载这个jnlp也提示不能下载

只有目标另存为才能得到这个jnlp
我觉得奇怪了,都是在本地的,怎么可能得不到。其他网站的jnlp和我的设置有什么不同,能够按链接就可以得到?


这个项目在tomcat5.5上部署,所访问的资源需要通过验证

不止大家在开发webstart应用中遇到过这种问题没?

------解决方案--------------------
我也遇到过这样的问题,你看看下载的路径会不会有问题,我做的时候比你更奇怪不知道为什么只要服务器重启了以后服务器里面的文件就都丢失了.不知道为什么,
------解决方案--------------------
<?xml version= "1.0 " encoding= "utf-8 "?>
<!-- JNLP File for MPC Application -->
<jnlp spec= "1.0+ " codebase= "http://10.91.176.13:8080/MobileServer/mpc/ " href= "http://10.91.176.13:8080/MobileServer/mpc/mpc.jnlp ">
<information>
<title> MPC Test </title>
<vendor> Comgroup </vendor>
<homepage href= "http://10.91.176.13:8080/MobileServer/Welcome.jsp "/>
<description> JWS Test </description>

<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>

<j2se version= "1.5 "/>
<jar href= "mpc.jar "/>
...
</resources>
<application-desc main-class= "com.wuerth.mobileclient.gui.Client "/>
</jnlp>

这是jnlp的内容