Unable to load resource Jar file

三世轮回 提交于 2019-12-12 04:29:23

问题


I'm working on JavaFx project, and we need to run the app on java jnlp. We singed all the jar files, and i added the IP address into Java configuration, but i faced this problem

 ExitException[ 3]com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://192.168.1.16:8080/walleterp/lib\WalletERPLibs.jar
at sun.plugin2.applet.JNLP2Manager.downloadResources(Unknown Source)
at sun.plugin2.applet.JNLP2Manager.prepareLaunchFile(Unknown Source)
at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

I tried :

  • Change the network setting on Java Config, and i changed it to 'Direct Connection'.

  • Clear the temporary folder.

  • Changed the Browser Proxy

but nothing changed for my error. How can i solve the problem


回答1:


Most likely it is not something directly related to your client-side web-start. Try the following :

Try to access the jar file directly from browser http://192.168.1.16:8080/walleterp/lib/WalletERPLibs.jar, and verify if the download is correct using your favorite compression tools (I am using winrar) and check the file.

If not accessible (and probably is) check the following :

  • project and file names capitalization, since java web/applications servers are case sensitive.

  • some application servers (wildfly) restricts jar files download
    for security reasons, please provide your web-server, however this is not available in tomcat.

  • Check your web.xml for any configured Servlet Filters that may
    interrupt your request.



来源:https://stackoverflow.com/questions/36846486/unable-to-load-resource-jar-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!