Hi ,
I am launching a JNLP app. through the tomcat server, this is the Exception stacktrace i am getting:-
JNLPException[category: Security Error : Exception: null : LaunchDesc:
<jnlp spec=»1.0″ codebase=»http://localhost:8080/JNLP_Test_Web1/» href=»http://localhost:8080/JNLP_Test_Web1/jnlptest.jnlp»>
<information>
<title>JNLP Spreadsheet Demo</title>
<vendor>MadhuR</vendor>
<homepage href=»null»/>
<description kind=»one-line»>
Test of the JNLP file API — ‘always allow’
</description>
<shortcut online=»false»>
<desktop/>
</shortcut>
<association extensions=»zzz» mime-type=»text/sleepytime»/>
</information>
<security>
<all-permissions/>
</security>
<update check=»timeout» policy=»always»/>
<resources>
<property name=»jnlp.file.extension» value=»zzz»/>
<java version=»1.5+»/>
<jar href=»http://localhost:8080/JNLP_Test_Web1/filetest.jar» download=»eager» main=»true»/>
<jar href=»http://localhost:8080/JNLP_Test_Web1/essd10.jar» download=»eager» main=»false»/>
</resources>
<application-desc main-class=»test.TestJBookApp»/>
</jnlp> ]
at com.sun.javaws.LaunchDownload.checkSignedResourcesHelper(Unknown Source)
at com.sun.javaws.LaunchDownload.checkSignedResources(Unknown Source)
at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.launch(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Here is my JNLP file:-
<?xml version=’1.0′ encoding=’UTF-8′ ?>
<jnlp spec=’1.0′
codebase=’http://localhost:8080/JNLP_Test_Web1′
href=’jnlptest.jnlp’>
<information>
<title>JNLP Spreadsheet Demo</title>
<vendor>MadhuR</vendor>
<description kind=’one-line’>
Test of the JNLP file API — ‘always allow’
</description>
<!— Web-start will attempt* to associate this
file extension/type with our application.
* it will ask the user, in any case —>
<association
extensions=»zzz»
mime-type=»text/sleepytime» />
<shortcut online=’false’>
<desktop/>
</shortcut>
</information>
<!— This example also works with no permissions at all,
though the behaviour (in regards to prompts) is slightly
different. To observe the behaviour of the sandboxed
example, simply delete the entire <security /> element. —>
<security>
<all-permissions/>
</security>
<resources>
<property
name=’jnlp.file.extension’
value=»zzz»/>
<j2se version=’1.5+’ />
<jar href=’filetest.jar’ main=’true’ />
<jar href=»http://localhost:8080/JNLP_Test_Web1/essd10.jar»/>
</resources>
<application-desc main-class=’test.TestJBookApp’ />
</jnlp>
It is throwing «unsigned application requesting unrestrcied access to the system», it seems that signed cerficate is not available for the JAR (essd10.jar)? Whether it is be re-assigned? If so how to do it. This is my build.xml:-
<project basedir=».» default=»launch» name=»JNLP_Test_Web1″>
<target name=»properties»>
<property name=»build» value=»build» />
<property name=»dist» value=»dist» />
<property name=»src» value=»src» />
<property name=»WebRoot» value=»WebRoot» />
<property name=»lib» value=»${WebRoot}/WEB-INF/lib»/>
<property name=»main-class» value=»test.TestJBookApp»/>
<!— Pot luck guess at location of
suitable ‘web-start’ jar. —>
<!—property
name=»classpath»
value=»${java.home}/lib/javaws.jar» /—>
<path id=»compile.classpath»>
<fileset dir=»${lib}» includes=»*.jar»/>
</path>
<!—property
name=»classpath»
value=»${lib}/*.jar» /—>
<!— Web-start will prompt the user to associate this
file type with the application. Change if it clashes
with an existing file type. —>
<property
name=»file.extension»
value=»zzz» />
<property
name=»file.content-type»
value=»text/sleepytime» />
</target>
<target
name=»compile»
depends=»properties»
description=»Compile the project» >
<mkdir dir=»${build}/share» />
<javac
debug=»on»
destdir=»${build}/share»
srcdir=»${src}/test»
source=»1.2″
>
<classpath>
<pathelement path=»${classpath}»/>
<fileset dir=»${lib}»>
<include name=»**/*.jar»/>
</fileset>
</classpath>
</javac>
<copy todir=»${build}/share»>
<fileset dir=»${src}/test»>
<exclude name=»**/CVS» />
<exclude name=»**/*.java» />
</fileset>
</copy>
</target>
<target
name=»dist»
depends=»compile»
description=»Create project distribution» >
<mkdir dir=»${build}/jar» />
<manifestclasspath property=»jar.classpath» jarfile=»${WebRoot}/filetest.jar»>
<classpath refid=»compile.classpath»/>
</manifestclasspath>
<jar destfile=»${WebRoot}/filetest.jar»>
<fileset dir=»${build}/share»>
<include name=»**/*.class» />
</fileset>
<manifest>
<attribute name=»Main-Class» value=»${main-class}»/>
<attribute name=»Class-Path» value=»${jar.classpath}»/>
</manifest>
</jar>
<!— Generate the keystore —>
<delete file=»filetest.keystore» />
<genkey alias=»filetest»
storepass=»secret»
keystore=»filetest.keystore»
verbose=»true»>
<dname>
<param name=»CN» value=»MadhuR»/>
<param name=»OU» value=»JNLP Test»/>
<param name=»O» value=»http://localhost:8080″/>
<param name=»C» value=»CI»/>
</dname>
</genkey>
<!— Sign the jar (required only for trusted launch) —>
<signjar
jar=»${WebRoot}/filetest.jar»
alias=»filetest»
storepass=»secret»
keystore=»filetest.keystore» />
</target>
<target
name=»make-launch-file»
depends=»properties»
description=»Copies and configures the launch file» >
<copy todir=»${build}/jar» >
<fileset dir=»${src}/conf» >
<include name=»**/*.jnlp» />
</fileset>
</copy>
<replace dir=»${build}/jar/»>
<include name=»**/*.jnlp» />
<replacefilter
token=»%file.extension%»
value=»${file.extension}» />
<replacefilter
token=»%file.content-type%»
value=»${file.content-type}» />
</replace>
</target>
<target
name=»launch»
depends=»dist, make-launch-file»
description=»Launch the project using webstart»>
<exec executable=»javaws»
dir=»${WebRoot}»>
<arg line=»http://localhost:8080/JNLP_Test_Web1/jnlptest.jnlp» />
<!— arg line=»http://localhost:8080/JNLP_Test_Web1/filechooserdemo.jnlp» /—>
</exec>
</target>
</project>
I am using jdk 1.6 and tomcat 6.0 . Please do correct me where i have gone wrong, I am stuck with this. Please do respond.
Thanks,
Rithu
Содержание
- Error to start Java Client 3.3.0 from Dashboard/web browser #1475
- Comments
- What is the problem
- What did you expect
- Describe how to reproduce or add a test
- Context information
- JNLPException[category: Security Error : Exception: null : LaunchDesc:
- Comments
- Download Error Exception in 1.6. Works in all older versions.
- unsigned installer issue
- Anyone used installer-desc ?
- Comments
Error to start Java Client 3.3.0 from Dashboard/web browser #1475
Thank you for reporting your issue!
To be able to better understand you problem or suggestion, please add as much information as possible to this ticket. When there is no or just little information, it will be too difficult to work on it (and hence we will not be able to solve it)
Please fill in the following sections:
What is the problem
Trying to Open/Start Java Admin Client from Dashboard
Exception:
What did you expect
Java Admin Client started as in versions prior to 3.3.0
Describe how to reproduce or add a test
Start Java Admin Client from Dashboard
The best way is to provide a ‘self containing’ test, a test that can be run without dependancies.
- in IE or Chrome Start Dashboard
- Click and open «Java Admin Client»
It is starts OK from «Quick Start» menu. the Quick Start menu not available if eXist runs as a service.
Context information
Please always add the following information
- eXist-db version 3.3.0
- Java version 1.8.0_131
- Operating system Windows 10 or Windows 2016
- 64 bit
- no changes to conf.xml
The text was updated successfully, but these errors were encountered:
I’ll check for you tonight. The stacktrace is not ‘complete’ I think, the caused-by is missing.
The version in the DMG looks good; I expect that there is a caching issue as previously mentioned. Please could you verify?
I have cleared the cache, but no difference. Note: The eXist 3.1 instances is OK
I have eXist 3.3.0 installed on windows 10 and windows server 2016 — same problem (starting the client from browser/dashboard).
When I start it from «quick start» menu, it is OK (eXist runs as application not as service).
Here is all I see in «Verifying Application» dlg -> «Application Error» dlg -> «Details» button -> «Exception» window:
I want to confirm this issue. I have checked the Java Admin Client 3.3.0 with java versions:
I started the client from the Dashboard and the results were the same. I was getting this error dialog:
Unable to launch application
Clicking the Details button I have this Error:
and two tabs.
On Launch tab:
On Exception tab:
I downloaded exist.jnlp file and started it with javaws exist.jnlp , the result was the same. I managed to start the client with the command start.jar client .
I have tested the client from 3.2.0 release with all above-mentioned java versions calling it from the Dashboard, and it worked fine.
So, when the invocation of the client from the 3.3.0 release goes through the JNLP something is going wrong in regard to java security policies, I presume.
@miljanuscumlic Which OS were you using? Was it also Windows 10 as @andray71 originally reported?
After installing 3.3.0 from the Jar Installer, I can indeed reproduce this issue on Windows 10 with Java 1.8.
So after a little diagnosis, it seems that the error message is spot on, i.e.:
On Windows 10, if I run jarsigner -verify c:eXist-dbexist.jar it states:
The same problem occurs with c:eXist-dbstart.jar and c:eXist-dbexist-optional.jar .
However, it seems that the jars in c:eXist-dblib** are correctly signed.
It seems to me like something went wrong with the signing process either for, or during, the eXist-db 3.3.0 release. We should check 3.4.0 and see if it has the same issue.
Okay so I just checked, and the same problem persists in eXist-db 3.4.0 for me. Looks like somehow not all the jars added to the installer are signed. We will have to investigate for 3.4.1.
@adamretter Thanks for investigating on this. OS on which this is spotted in quite nostalgic Windows 5.1. So, in regard to this issue version does not matter. Also, it persists with exist 3.4.0 client.
I can now confirm that this is also the case on MacOS as well as Windows.
The process we use for the release is something like:
Источник
JNLPException[category: Security Error : Exception: null : LaunchDesc:
I am launching a JNLP app. through the tomcat server, this is the Exception stacktrace i am getting:-
JNLPException[category: Security Error : Exception: null : LaunchDesc:
JNLP Spreadsheet Demo
MadhuR
Test of the JNLP file API — ‘always allow’
Here is my JNLP file:-
It is throwing «unsigned application requesting unrestrcied access to the system», it seems that signed cerficate is not available for the JAR (essd10.jar)? Whether it is be re-assigned? If so how to do it. This is my build.xml:-
I am using jdk 1.6 and tomcat 6.0 . Please do correct me where i have gone wrong, I am stuck with this. Please do respond.
The JNLP file seems invalid. That is not all that surprising, since you seem to have based your example on my [demo. of the JNLP API file service|http://pscode.org/jws/api.html#fs], which also has invalid JNLP files. I’ll fix them when I get time, but since you are having problems with your launch now, I suggest you validate your variants sooner (in fact, before you start wondering about errors the JWS client reports).
For the purposes of validation of JNLP files and JWS launches, I also offer JaNeLA.
————
Another tip. When posting code, code snippets, HTML/XML/JNLP or input/output, please use the code tags. Using the code tags helps retain the indentation and formatting of the sample. To use the code tags, select the sample and click the code button. Make sure you use the Preview tab to ensure the sample looks as you expect.
Источник
Download Error Exception in 1.6. Works in all older versions.
I had some customers complaining that Java Web Start stopped working after upgrading to Java 1.6. I got the following after I upgraded.
JNLPException[category: Download Error : Exception: null : LaunchDesc: null ]
at com.sun.javaws.LaunchDownload.downloadJarFiles(Unknown Source)
at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source)
at com.sun.javaws.Launcher.downloadResources(Unknown Source)
at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.launch(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
I get the following on the console:
#### Java Web Start Error:
#### Unable to load resource: http://barracudaserver.com/products/BarracudaDrive/HttpsTunnelWS.jar
I have cleared the Java cache, but the Java client still sends a » If-Modified-Since» so the server responds with a 304 Not Modified.
If-Modified-Since: Wed, 31 Dec 1969 23:59:59 GMT
That is a long time ago.
I have attached the HTTP headers at the bottom.
BTW, it would be great if SUN could make things backward compatible. This JNLP file is integrated inside a product and requires that all customers upgrade the product.
Источник
unsigned installer issue
We are trying to deploy the jre 1.3.1 via java web start.
Followings are jnlp files for regular application and
the installer.
Client
Demo
experience the system
all jar files are signed by jarsigner from jdk 1.3.0.
However, when initial the installer, the java web start
complains and throws out «Unsigned application requesting unrestricted access to system» exception.
JNLPException[category: Security Error : Exception: null : LaunchDesc: null ]
at com.sun.javaws.LaunchDownload.checkSignedResourcesHelper(Unknown Source)
at com.sun.javaws.LaunchDownload.checkSignedResources(Unknown Source)
at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
With more checking, I found that the java web start
is running on jre 1.2.2 and since jre 1.2.2 doesn’t support
the signing algorithm in 1.3, it treats these jar files
as unsigned jar files.
My question, why java web start is running on jre 1.2.2 instead of 1.3?
Following is my jre config in java web start.
platform version | product version
1.2 1.2.2_007
1.3 1.3.0_03
And in the regualr jnlp file, I specify
in the installer jnlp file, I specify
Источник
Anyone used installer-desc ?
I have the following jnlp
When I launch my application, I don’t even see the console.
I could trace the following exception in my log file
java.lang.NullPointerException
at com.sun.javaws.cache.DiskCache.getCacheEntryFromFile(Unknown Source)
at com.sun.javaws.cache.InstallCache.getLocalApplicationProperties(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Anyone knows what is it?
I have figured out the problem. Now there is a strange thing happening.
My main.jnlp looks like this
My Installertest.jnlp looks like this
Though the installation works and installs the first time, I get the following exceptions in my main.jnlp after installation
JNLPException[category: Security Error : Exception: null : LaunchDesc: null ]
at com.sun.javaws.security.PolicyGui.unsignedCodeSourceAccssViolation(Unknown Source)
at com.sun.javaws.security.AppPolicy.grantUnrestrictedAccess(Unknown Source)
at com.sun.javaws.LaunchDownload.checkSignedResourcesHelper(Unknown Source)
at com.sun.javaws.LaunchDownload.checkSignedResources(Unknown Source)
at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
It also says that unsinged application requesting unrestricted access to system.
My jars are signed. I would like to know why this is happening. Any suggestions please.
Источник
I want to confirm this issue. I have checked the Java Admin Client 3.3.0 with java versions:
- 1.8.0_92
- 1.8.0_131
- 1.8.0_141
I started the client from the Dashboard and the results were the same. I was getting this error dialog:
Unable to launch application
Clicking the Details
button I have this Error:
Unsigned application requesting unrestricted access to system
Unsigned resource: http://localhost:8888/exist/webstart/exist.jar
and two tabs.
On Launch
tab:
<?xml version="1.0" ?>
<jnlp spec="7.0" codebase="http://localhost:8888/exist/webstart/" href="exist.jnlp" version="3.3.0">
<information>
<title>eXist XML-DB client</title>
<vendor>exist-db.org</vendor>
<homepage href="http://exist-db.org"/>
<description>Integrated command-line and gui client, entirely based on the XML:DB API and provides commands for most database related tasks, like creating and removing collections, user management, batch-loading XML data or querying.</description>
<description kind="short">eXist XML-DB client</description>
<description kind="tooltip">eXist XML-DB client</description>
<icon href="jnlp_logo.jpg"/>
<icon href="jnlp_icon_128x128.gif" width="128" height="128"/>
<icon href="jnlp_icon_64x64.gif" width="64" height="64"/>
<icon href="jnlp_icon_32x32.gif" width="32" height="32"/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<property name="jnlp.packEnabled" value="true"/>
<property name="java.util.logging.manager" value="org.apache.logging.log4j.jul.LogManager"/>
<java version="1.8+"/>
<jar href="log4j-jul-2.8.2.jar" size="26272"/>
<jar href="commons-codec-1.10.jar" size="307249"/>
<jar href="cglib-nodep-3.1.jar" size="358483"/>
<jar href="jcip-annotations-1.0.jar" size="4005"/>
<jar href="pkg-java-fork.jar" size="87631"/>
<jar href="commons-logging-1.2.jar" size="66579"/>
<jar href="jargo-0.4.2-SNAPSHOT-7fa1d04.jar" size="200065"/>
<jar href="xmlrpc-client-3.1.3.jar" size="65537"/>
<jar href="rsyntaxtextarea-2.6.1.jar" size="1201107"/>
<jar href="slf4j-api-1.7.21.jar" size="46264"/>
<jar href="exist.jar" size="4441960"/>
<jar href="quartz-2.2.3.jar" size="700323"/>
<jar href="clj-ds-0.0.4.jar" size="290932"/>
<jar href="jackson-core-2.7.4.jar" size="262996"/>
<jar href="log4j-core-2.8.2.jar" size="1498139"/>
<jar href="commons-pool-1.6.jar" size="118732"/>
<jar href="xmlrpc-common-3.1.3.jar" size="122505"/>
<jar href="jline-0.9.94.jar" size="93084"/>
<jar href="j8fu-1.4.1.jar" size="54814"/>
<jar href="log4j-api-2.8.2.jar" size="243001"/>
<jar href="commons-io-2.5.jar" size="221540"/>
<jar href="gnu-crypto-2.0.1.jar" size="644209"/>
<jar href="ws-commons-util-1.0.2.jar" size="38575"/>
<jar href="commons-collections-3.2.2.jar" size="630602"/>
<jar href="log4j-slf4j-impl-2.8.2.jar" size="26094"/>
<jar href="xmldb.jar" size="12768"/>
<jar href="antlr-2.7.7.jar" size="464341"/>
<jar href="jta-1.1.jar" size="16277"/>
</resources>
<application-desc main-class="org.exist.client.InteractiveClient">
<argument>-ouri=xmldb:exist://localhost:8888/exist/xmlrpc</argument>
<argument>--no-embedded-mode</argument>
</application-desc>
</jnlp>
On Exception
tab:
JNLPException[category: Security Error : Exception: null : LaunchDesc:
<jnlp spec="7.0" codebase="http://localhost:8888/exist/webstart/" href="exist.jnlp" version="3.3.0">
<information>
<title>eXist XML-DB client</title>
<vendor>exist-db.org</vendor>
<homepage href="http://exist-db.org"/>
<description>Integrated command-line and gui client, entirely based on the XML:DB API and provides commands for most database related tasks, like creating and removing collections, user management, batch-loading XML data or querying.</description>
<description kind="short">eXist XML-DB client</description>
<description kind="tooltip">eXist XML-DB client</description>
<icon href="jnlp_logo.jpg"/>
<icon href="jnlp_icon_128x128.gif" width="128" height="128"/>
<icon href="jnlp_icon_64x64.gif" width="64" height="64"/>
<icon href="jnlp_icon_32x32.gif" width="32" height="32"/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<property name="jnlp.packEnabled" value="true"/>
<property name="java.util.logging.manager" value="org.apache.logging.log4j.jul.LogManager"/>
<java version="1.8+"/>
<jar href="log4j-jul-2.8.2.jar" size="26272"/>
<jar href="commons-codec-1.10.jar" size="307249"/>
<jar href="cglib-nodep-3.1.jar" size="358483"/>
<jar href="jcip-annotations-1.0.jar" size="4005"/>
<jar href="pkg-java-fork.jar" size="87631"/>
<jar href="commons-logging-1.2.jar" size="66579"/>
<jar href="jargo-0.4.2-SNAPSHOT-7fa1d04.jar" size="200065"/>
<jar href="xmlrpc-client-3.1.3.jar" size="65537"/>
<jar href="rsyntaxtextarea-2.6.1.jar" size="1201107"/>
<jar href="slf4j-api-1.7.21.jar" size="46264"/>
<jar href="exist.jar" size="4441960"/>
<jar href="quartz-2.2.3.jar" size="700323"/>
<jar href="clj-ds-0.0.4.jar" size="290932"/>
<jar href="jackson-core-2.7.4.jar" size="262996"/>
<jar href="log4j-core-2.8.2.jar" size="1498139"/>
<jar href="commons-pool-1.6.jar" size="118732"/>
<jar href="xmlrpc-common-3.1.3.jar" size="122505"/>
<jar href="jline-0.9.94.jar" size="93084"/>
<jar href="j8fu-1.4.1.jar" size="54814"/>
<jar href="log4j-api-2.8.2.jar" size="243001"/>
<jar href="commons-io-2.5.jar" size="221540"/>
<jar href="gnu-crypto-2.0.1.jar" size="644209"/>
<jar href="ws-commons-util-1.0.2.jar" size="38575"/>
<jar href="commons-collections-3.2.2.jar" size="630602"/>
<jar href="log4j-slf4j-impl-2.8.2.jar" size="26094"/>
<jar href="xmldb.jar" size="12768"/>
<jar href="antlr-2.7.7.jar" size="464341"/>
<jar href="jta-1.1.jar" size="16277"/>
</resources>
<application-desc main-class="org.exist.client.InteractiveClient">
<argument>-ouri=xmldb:exist://localhost:8888/exist/xmlrpc</argument>
<argument>--no-embedded-mode</argument>
</application-desc>
</jnlp> ]
at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResourcesHelper(Unknown Source)
at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResources(Unknown Source)
at com.sun.javaws.Launcher.prepareResources(Unknown Source)
at com.sun.javaws.Launcher.prepareAllResources(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.launch(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main.access$000(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
I downloaded exist.jnlp file and started it with javaws exist.jnlp
, the result was the same. I managed to start the client with the command start.jar client
.
I have tested the client from 3.2.0 release with all above-mentioned java versions calling it from the Dashboard, and it worked fine.
So, when the invocation of the client from the 3.3.0 release goes through the JNLP something is going wrong in regard to java security policies, I presume.
|
|
|
Следующие правила действуют в данном разделе в дополнение к общим Правилам Форума
1. Здесь обсуждается Java, а не JavaScript! Огромная просьба, по вопросам, связанным с JavaScript, SSI и им подобным обращаться в раздел WWW Masters или, на крайний случай, в Многошум.
2. В случае, если у вас возникают сомнения, в каком разделе следует задать свой вопрос, помещайте его в корневую ветку форума Java. В случае необходимости, он будет перемещен модераторами (с сохранением ссылки в корневом разделе).
3. Запрещается создавать темы с просьбой выполнить какую-то работу за автора темы. Форум является средством общения и общего поиска решения. Вашу работу за Вас никто выполнять не будет.
4. Не рекомендуется создавать несколько несвязанных вопросов в одной теме. Пожалуйста, создавайте по одной теме на вопрос.
Наверное, эта банально …
, Java security error
- Подписаться на тему
- Сообщить другу
- Скачать/распечатать тему
|
|
Подскажите, пожалуйста, что я делаю неправильно.
JNLPException[category: Security Error : Exception: null : LaunchDesc: <jnlp spec=»1.0+» codebase=»http://start/» href=»http://start/VEExample.jnlp»> <information> <title>Тестовое приложение для работы с базой данных</title> <vendor>Сергей Тарковский 2005</vendor> <homepage href=»http://start/index.html»/> <description>Visual Editor Example Application</description> <offline-allowed/> </information> <security> <all-permissions/> </security> <resources> <j2se version=»1.5″/> <jar href=»http://start/VEExample.jar» download=»eager» main=»true»/> <jar href=»http://start/swingset-bin_1.0.0-PR2.jar» download=»eager» main=»false»/> <jar href=»http://start/mysql-connector-java-3.1.11-bin.jar» download=»eager» main=»false»/> </resources> <application-desc main-class=»hg.pioneer.veexample.VEExample»/> </jnlp> ] at com.sun.javaws.LaunchDownload.checkSignedResourcesHelper(Unknown Source) at com.sun.javaws.LaunchDownload.checkSignedResources(Unknown Source) at com.sun.javaws.Launcher.continueLaunch(Unknown Source) at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source) at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source) at com.sun.javaws.Launcher.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
Тут же сразу видно какой у меня jnlp-файл, возможно, ошибки в нем?
keytool -genkey -alias pioneer (после ответов на вопросы и введения паролей создался файл C:Documents and Settingspioneer.keystore)
jarsigner VEExample.jar pioneer (ввел пароль на хранилище и на алиас, архив подписался) Затем выложил на сервер в корень виртуального хоста http://start/ три файла — VEExample.jar, swingset-bin_1.0.0-PR2.jar и mysql-connector-java-3.1.11-bin.jar. В принципе, все. В Eclipse мое приложение работает, вот, хотелось бы, чтобы и без него тоже работало. |
wind |
|
Moderator Рейтинг (т): 269 |
Подписаны должны быть ВСЕ архивы. |
pioneer |
|
Спасибо, это то, что мне нужно было. |
0 пользователей читают эту тему (0 гостей и 0 скрытых пользователей)
0 пользователей:
- Предыдущая тема
- Java
- Следующая тема
[ Script execution time: 0,0215 ] [ 15 queries used ] [ Generated: 9.02.23, 20:36 GMT ]
View previous topic :: View next topic | |||||||||
Author | Message | ||||||||
---|---|---|---|---|---|---|---|---|---|
mathfeel l33t Joined: 03 Aug 2004 |
|
||||||||
Back to top |
|
||||||||
cerebus_k Apprentice Joined: 20 Jun 2003 |
|
||||||||
Back to top |
|
||||||||
mathfeel l33t Joined: 03 Aug 2004 |
|
||||||||
Back to top |
|
||||||||
mathfeel l33t Joined: 03 Aug 2004 |
|
||||||||
Back to top |
|
||||||||
|
You cannot post new topics in this forum |
FULL PRODUCT VERSION :
java version «1.8.0_121»
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.1.7601]
Microsoft Windows [Version 10.0.14393]
EXTRA RELEVANT SYSTEM CONFIGURATION :
Before Testing:
‘javaws -uninstall’ was called
and Security Prompts were restored.
A DESCRIPTION OF THE PROBLEM :
Since updating to Java 8 update 121 our web start application fails with: ‘Unsigned application requesting unrestricted access to the system’.
And unsigned resource: ‘syntheticaAddonsWithThemes-6.0.0.123104.jar’
The same application worked with Java 8 update 111 and it is signed with a valid certificate using current algorithms.
Verifying with Java 8 update 121 (instructions found in an Oracle Blog entry):
jarsigner -verify -J-Djava.security.debug=jar syntheticaAddonsWithThemes-6.0.0.123104.jar >out.txt 2>&1
Results in:
jar verified.
at the end.
We have newer jar (syntheticaAddonsWithThemes-6.0.0.140843.jar) that was signed like the older one and it doesn’t show that behavior. The only difference between the two Jars seems to be a slightly different META-INF/*.RSA File.
REGRESSION. Last worked in version 8u111
ADDITIONAL REGRESSION INFORMATION:
java version «1.8.0_111»
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
We uploaded a small sample that fails at the verification step with Java 8 update 121:
https://jre-tests.s3.amazonaws.com/not-working/webstart-notworking.jnlp
The failing Jar is here:
https://jre-tests.s3.amazonaws.com/not-working/clientlib/signed/syntheticaAddonsWithThemes-6.0.0.123104.jar
To reproduce:
1. Install Java 8 update 121
2. Start the JNLP above.
(it contains no Main method, so it won’t execute anything and would fail afterwards)
—-
We also have a working sample for reference (but we don’t know why one is working and one is not):
JNLP: https://jre-tests.s3.amazonaws.com/working/webstart-working.jnlp
JAR: https://jre-tests.s3.amazonaws.com/working/clientlib/signed/syntheticaAddonsWithThemes-6.0.0.140843.jar
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED —
We would expect following Java Web Start Dialog appear: «Do you want to run this application?»
With the possibility to Click on the «Run» Button.
(it contains no Main method, so it won’t execute anything and would fail afterwards)
The Main class in the JNLP is defined as «if.we.got.here.the.verification.was.successful.but.we.dont.get.here.with.java8.u121»
ACTUAL —
Dialog «Unable to launch the application» is shown.
Screenshot taken on Windows 10:
http://answers.axonivy.com/upfiles/java8-error-webstart.png
And following Exception:
JNLPException[category: Security Error : Exception: null : LaunchDesc:
<jnlp spec=»1.0+» xmlns:jfx=»http://javafx.com» href=»https://jre-tests.s3.amazonaws.com/not-working/webstart-notworking.jnlp»>
<information>
<title>Not working Sample to demonstrate Webstart issue</title>
<description>Not working Sample to demonstrate Webstart issue</description>
</information>
<resources>
<j2se version=»1.8+» initial-heap-size=»64m» max-heap-size=»512m»/>
<jar href=»https://jre-tests.s3.amazonaws.com/not-working/clientlib/signed/syntheticaAddonsWithThemes-6.0.0.123104.jar»/>
</resources>
<security>
<all-permissions/>
</security>
<application-desc main-class=»if.we.got.here.the.verification.was.successful.but.we.dont.get.here.with.java8.u121″/>
</jnlp> ]
at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResourcesHelper(Unknown Source)
at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResources(Unknown Source)
at com.sun.javaws.Launcher.prepareResources(Unknown Source)
at com.sun.javaws.Launcher.prepareAllResources(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.launch(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main.access$000(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
ERROR MESSAGES/STACK TRACES THAT OCCUR :
JNLPException[category: Security Error : Exception: null : LaunchDesc:
<jnlp spec=»1.0+» xmlns:jfx=»http://javafx.com» href=»https://jre-tests.s3.amazonaws.com/not-working/webstart-notworking.jnlp»>
<information>
<title>Not working Sample to demonstrate Webstart issue</title>
<description>Not working Sample to demonstrate Webstart issue</description>
</information>
<resources>
<j2se version=»1.8+» initial-heap-size=»64m» max-heap-size=»512m»/>
<jar href=»https://jre-tests.s3.amazonaws.com/not-working/clientlib/signed/syntheticaAddonsWithThemes-6.0.0.123104.jar»/>
</resources>
<security>
<all-permissions/>
</security>
<application-desc main-class=»if.we.got.here.the.verification.was.successful.but.we.dont.get.here.with.java8.u121″/>
</jnlp> ]
at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResourcesHelper(Unknown Source)
at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResources(Unknown Source)
at com.sun.javaws.Launcher.prepareResources(Unknown Source)
at com.sun.javaws.Launcher.prepareAllResources(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.launch(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main.access$000(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
REPRODUCIBILITY :
This bug can be reproduced always.
Looks like no one’s replied in a while. To start the conversation again, simply
ask a new question.
Recently upgraded my Java to Java SE 6 1.6.0_33; now Final Cut Server won’t launch due to security restrictions. Help!
Running OSX 10.6.8, and I received a Software Update notification this morning stating that Java has a security update available. So, being the dilligent updater that I am, I updated to Java SE 6 1.6.0_33. Now Final Cut Server will not launch, stating «Unsigned application requesting unrestricted access to system»
Is there an exception list somewhere for the Java client to which I can add FCS? (Sorry, I’m not very familiar with Java)
Here is the launch file and exception info:
<?xml version=»1.0″ encoding=»utf-8″?> <jnlp spec=»1.0+» codebase=»http://192.168.1.103» href=»/FinalCutServer/FinalCutServer_mac.jnlp»> <information> <icon kind=»default» href=»~fcsvr/webstart/FinalCutServer.icns»/> <icon kind=»shortcut» href=»~fcsvr/webstart/FinalCutServer.icns»/> <icon kind=»splash» href=»~fcsvr/webstart/FinalCutServer.png»/> <title>Final Cut Server</title> <vendor>Apple Inc.</vendor> <homepage href=»/FinalCutServer»/> <description>Final Cut Server</description> <description kind=»short»>Final Cut Server</description> <shortcut online=»true»> <desktop/> <menu submenu=»Apple»/> </shortcut> </information> <security> <all-permissions/> </security> <resources> <jar href=»/~fcsvr/webstart/FinalCutServer.jar»/> <j2se version=»1.5*» initial-heap-size=»64m» max-heap-size=»300m» java-vm-args=»-Dapple.awt.graphics.UseQuartz=false»/> <j2se version=»1.6*» initial-heap-size=»64m» max-heap-size=»300m» java-vm-args=»-Dapple.awt.graphics.UseQuartz=false -d32″/> <property name=»apple.awt.graphics.UseQuartz» value=»false»/> <property name=»file.encoding» value=»UTF-8″/> </resources> <resources os=»Mac OS X» arch=»i386″> <nativelib href=»/~fcsvr/webstart/FinalCutServer_MacOSX.jar»/> </resources> <resources os=»Mac OS X» arch=»ppc»> <nativelib href=»/~fcsvr/webstart/FinalCutServer_MacOSX.jar»/> </resources> <application-desc main-class=»com.apple.FinalCutServer.javaui.FinalCutServer»> </application-desc> </jnlp> |
JNLPException[category: Security Error : Exception: null : LaunchDesc: <jnlp spec=»1.0+» codebase=»http://192.168.1.103/» href=»http://192.168.1.103/FinalCutServer/FinalCutServer_mac.jnlp«> <information> <title>Final Cut Server</title> <vendor>Apple Inc.</vendor> <homepage href=»http://192.168.1.103/FinalCutServer«/> <description>Final Cut Server</description> <description kind=»short»>Final Cut Server</description> <icon href=»http://192.168.1.103/~fcsvr/webstart/FinalCutServer.icns» kind=»default»/> <icon href=»http://192.168.1.103/~fcsvr/webstart/FinalCutServer.icns» kind=»shortcut»/> <icon href=»http://192.168.1.103/~fcsvr/webstart/FinalCutServer.png» kind=»splash»/> <shortcut online=»true»> <desktop/> <menu submenu=»Apple»/> </shortcut> </information> <security> <all-permissions/> </security> <update check=»timeout» policy=»always»/> <resources> <jar href=»http://192.168.1.103/~fcsvr/webstart/FinalCutServer.jar» download=»eager» main=»false»/> <java initial-heap-size=»67108864″ max-heap-size=»314572800″ java-vm-args=»-Dapple.awt.graphics.UseQuartz=false» version=»1.5*»/> <java initial-heap-size=»67108864″ max-heap-size=»314572800″ java-vm-args=»-Dapple.awt.graphics.UseQuartz=false -d32″ version=»1.6*»/> <property name=»apple.awt.graphics.UseQuartz» value=»false»/> <property name=»file.encoding» value=»UTF-8″/> <nativelib href=»http://192.168.1.103/~fcsvr/webstart/FinalCutServer_MacOSX.jar» download=»eager» main=»false»/> </resources> <application-desc main-class=»com.apple.FinalCutServer.javaui.FinalCutServer»/> </jnlp> ] at com.sun.javaws.LaunchDownload.checkSignedResourcesHelper(LaunchDownload.java:16 91) at com.sun.javaws.LaunchDownload.checkSignedResources(LaunchDownload.java:1507) at com.sun.javaws.Launcher.prepareResources(Launcher.java:1281) at com.sun.javaws.Launcher.prepareAllResources(Launcher.java:634) at com.sun.javaws.Launcher.prepareToLaunch(Launcher.java:336) at com.sun.javaws.Launcher.prepareToLaunch(Launcher.java:208) at com.sun.javaws.Launcher.launch(Launcher.java:125) at com.sun.javaws.Main.launchApp(Main.java:451) at com.sun.javaws.Main.continueInSecureThread(Main.java:283) at com.sun.javaws.Main$1.run(Main.java:116) at java.lang.Thread.run(Thread.java:680) |
Posted on Jun 19, 2012 8:50 AM
Aha! I was able to solve the problem thanks to the help of another editor.
Open Java Preferences (Applications > Utilities)
Click the check box on the first page to allow web applets
Under the security tab, there will be an existing Security Certificate (signed by Apple Inc.) that is likely for FCSvr. Delete the certificate.
Open FCSvr again, and Java will prompt you as to allow it or not. Click Allow and tell it to remember for future use.
Badabing, badaboom! FCSvr is back up and running!
(Note this is for client-side only)
Posted on Jun 19, 2012 11:45 AM
Recently upgraded my Java to Java SE 6 1.6.0_33; now Final Cut Server won’t launch due to security restrictions. Help!