简体   繁体   English

加载webstart应用程序时有关缺少Codebase属性的错误消息

[英]Error messages about missing Codebase attribute when loading webstart application

I have a webstart application in which all the jars are signed (my own and third-party). 我有一个webstart应用程序,其中所有的罐子都签名(我自己和第三方)。 When load it with Java7u25, I see error messages like the following in the Java console: 使用Java7u25加载它时,我在Java控制台中看到如下错误消息:

Missing Permissions manifest attribute for: http://example.com/webstart/application-jars/commons-beanutils-1.8.3.jar
Missing Codebase manifest attribute for: http://example.com/webstart/application-jars/commons-beanutils-1.8.3.jar

I read up on the changes in 7u25 here: http://blog.eisele.net/2013/06/java-se-7-update-25-release-notes.html 我在这里阅读了7u25的变化: http ://blog.eisele.net/2013/06/java-se-7-update-25-release-notes.html

The note says to specify the Codebase attribute in the JAR's manifest at the time of building and have it match the Codebase in the JNLP file. 该说明指出在构建时在JAR清单中指定Codebase属性,并使其与JNLP文件中的Codebase匹配。 How is this supposed to be setup to work for third-party jars like commons-beanutils which clearly don't have this manifest entry? 这应该如何设置为第三方jar工作,如commons-beanutils,显然没有这个清单条目?

If you are signing the jar files yourself (third party as well as your own) you can just add the necessary parameters to the third party jars manifest.mf (open them with an archive utility, ie archive manager on ubuntu or try 7-zip etc for windows) add the parameters as you have to your own jars manifest (re package them, on ubuntu this happens automatically when you close the file after editing, I'm not sure if you're on windows) and then build your application/sign all the jars. 如果您自己签署jar文件(第三方以及您自己),您只需将必要的参数添加到第三方jar manifest.mf(使用存档实用程序打开它们,即ubuntu上的存档管理器或尝试7-zip等等,对于Windows)将你的参数添加到你自己的jar清单中(重新打包它们,在ubuntu上这会在编辑后关闭文件时自动发生,我不确定你是否在windows上)然后构建你的应用程序/签署所有的罐子。

This worked for me although I'm sure there's a better way of doing it. 这对我有用,虽然我确信有更好的方法。

如果您无法自己签名,请参阅此答案,了解为应用程序的站点添加例外的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM