ProcessBuilder & JNLP
Hi,
From my Swing application I have to launch another Java application using command java -jar TunnelApp.jar host:port. I am using the ProcessBuilder api to Lauch the application ,Things are going fine when I launched the application as standalone but when I launched using Java WebStrat ProcessBuilder is giving exception Unable to find TunnelApp.jar
Unfortunately I have to Launch TunnelApp.jar as separate Java Application. I cannot spawn a thread from UI application.
Is it possible for JNLP to download TunnelApp.jar eagerly into client machine and I can know the path of downloaded location. If it is possible I can provide the absolute path of TunnelApp.jar to ProcessBuilder.
Please suggest.
Regards
Balaji
Balu_ch wrote:
..From my Swing application I have to launch another Java application using command “"java -jar TunnelApp.jar host:port"”.(1)
.. I am using the ProcessBuilder..If the code uses PB, why hand it a single String rather than a String[]?
.. api to Lauch the application ,Things are going fine when I launched the application as standalone but when I launched using “Java WebStrat” ProcessBuilder is giving exception “Unable to find TunnelApp.jar”
Unfortunately I have to Launch “TunnelApp.jar ” as separate Java Application. Why?
..I cannot spawn a thread from UI application.Why not?
Is it possible for JNLP to download “TunnelApp.jar” eagerly into client machine and I can know the path of downloaded location... No. Sun decided it was no business of an application to know the path where it was installed. The alternative is to download the bytes of the Jar in the main code and save them to a known location (a sub-directory of user.home is usually best).
Similar Messages
-
nativelib .exe and the new ProcessBuilder
Hello all,
I have a java application that is launched via Web Start.
In the JNLP file I have:
<security>
<all-permissions />
</security>
<resources os="Windows">
<nativelib href="lib/win32/my.jar"/>
</resources>
In the root of my.jar are: needed.exe, input.xml, and output.dat
I am trying to get needed.exe using.
URL exec = getClass().getClassLoader().getResource("needed.exe");
But I can't get it to work.
I've read that: Runtime.getRuntime().exec("needed.exe"); should work, but I couldn't get it to work either (besides I need to use ProcessBuilder.)
Does anybody have any ideas? What am I overlooking?
Thanks.Interesting, this is a problem.
findLibrary is protected in ClassLoader.java, but
public in JNLPClassLoader.java ?
so ..
you would have to include javaws.jar in you
compilation, and :
String libPath = null;
ClassLoader loader =
this.getClass().getClassLoader();
if (loader.instanceof(com.sun.jnlp.JNLPClassLoader))
libPath = ((com.sun.jnlp.JNLPClassLoader)
der) loader).findLibrary(...);
will this give you "AccessClassInPackageException" ?
/AndyAndy,
I had to set things up one way for JNLPClassLoader, and another for running through Eclipse, but that worked.
I gave you the Duke Dollars if that means anything to you.
Thank you. -
JNLP installer - cached vs. non-cached resources
Hello,
I am currently trying to provide an installation procedure for some application. The application is in java and made of multiple jars and plugins. One constrain is that the application can launch java commands on the plugins (requiring access to jar files). Hence, I prepared an installer/updater to work with jnlp so as to install the application on the user computer. Each time the application is launched, we need to check for plugin updates and download the updates to the adequate directory before actually launching the application (via a ProcessBuilder), meaning the installer needs to be called each time the app is launched.
I went as far as I could but get stuck on some (possibly core) concepts: I have 2 jnlp files, one being the installer, referencing the base jar resources and a jnlp plugin resource being a component.
Through jnlp api, the installer is able to get cached resources and copy them to a given directory for the app to be launched. The main issue concerns the resources to be upgraded. Whenever new resources are present, the app do not get to see them as jnlp download them an put them in the cached resources before my installer can be launched. I thought I could use a DownloadServiceListener to get a hold on new resources, adding it as a progress-class parameter, but the service is apparently never called.
If the resources are set to lazy, they never get to be available in either cached or available resources for upgrade...
Here are reduced versions of the resources :
installer :
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="6.0+" codebase="%CODEBASE%/apps/" href="">
<information>
<offline-allowed />
<shortcut online="true">
<desktop />
<menu submenu="Company">
<menu submenu="App" />
</menu>
</shortcut>
</information>
<security>
<all-permissions />
</security>
<update check="always" policy="always" />
<resources>
<j2se version="1.6+" java-vm-args="" href="http://java.sun.com/products/autodl/j2se" />
<jar href="jnlp-installer.jar" main="true" />
<extension name="applicationResources" href="%CODEBASE%/JNLP?jnlp=resources" download="eager"/>
</resources>
<application-desc main-class="com.company.JnlpInstaller" name="App name" >
</application-desc >
</jnlp>
plugins :
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="6.0+" codebase="%CODEBASE%" href="">
<information>
<offline-allowed />
</information>
<security>
<all-permissions />
</security>
<update check="always" policy="always" />
<resources>
<j2se version="1.6+" java-vm-args="-d32" href="http://java.sun.com/products/autodl/j2se" />
<jar href="../jnlp-installer.jar" />
%RESOURCES%
</resources>
<component-desc progress-class="com.company.CustomDownloadServiceListener"/>
</jnlp>
Thanks in advance for your returnsI am having the same jnlp cache problems and would appreciate if someone can post a solution to this.
I use jsp to generate a value for a variable and I pass this variable to the application via the "property name".
tag. Problem is, JavaWebStart will always use the cached jnlp even when the variable's value changes.
Thanks for any help you can provide.
[email protected] -
.jnlp downloading to wrong folder
Ok, this is totally strange. Now my Java applet is downloading to http://www.finncraft.com/wp-content/uploads/2013/04/java.png
Please look at the path that it is downloading to. VERY STRANGE.
Yes, I do have Safari settings to download all files to the Download Folder.
But why would it download to the Private Folder.
I did not even know that I had this folder.To lessen the risk of malware infection, Safari now downloads Java WebStart application files to a hidden temporary folder and does not open them automatically. Although you may find instructions on the Internet for defeating this protection, I strongly advise against doing so.
The right way to launch a WebStart application is to click the Downloads button at the right end of the Safari toolbar and then double-click the icon of the JNLP file you just downloaded. If you want to save the file for later use, click the magnifying-glass icon to reveal it in the Finder, and then move it. Otherwise it will be deleted at the next login. -
Error in downloading jars through jnlp from Oracle 10.1.3 App Server
I am working on migrating an application (containing two WARs) from Resin servlet server to Oracle 10.1.3 App Server. The migration was unit tested successfully. One of the WARs was implemented as a web service that downloaded JARs to the client PC through jnlp. When I tried to combine the two WARs into one (application) WAR, some of the JARs failed to download with an error message stating that they were "corrupted". 5 of the 6 "corrupted" contain native code, although two other native code JARs were able to download successfully.
Most of the time the jnlp failure was accompanied with this error: WARNING: Exception returned by remote server: {0}
javax.naming.NoPermissionException: Not allowed to look up java:comp/ServerAdministrator, check the namespace-access tag setting in orion-application.xml for details
at com.evermind.server.rmi.RMIClientConnection.handleLookupResponse(RMIClientConnection.java:819)
at com.evermind.server.rmi.RMIClientConnection.handleOrmiCommandResponse(RMIClientConnection.java:283)
at com.evermind.server.rmi.RMIClientConnection.dispatchResponse(RMIClientConnection.java:242)
at com.evermind.server.rmi.RMIClientConnection.processReceivedCommand(RMIClientConnection.java:224)
at com.evermind.server.rmi.RMIConnection.handleCommand(RMIConnection.java:152)
at com.evermind.server.rmi.RMIConnection.listenForOrmiCommands(RMIConnection.java:127)
at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:107)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
at java.lang.Thread.run(Thread.java:595)
Error: Unexpected error during lookup : Lookup error: javax.naming.NoPermissionException: Not allowed to look up java:comp/ServerAdministrator, check the namespace-access tag setting in orion-application.xml for details; nested exception is:
javax.naming.NoPermissionException: Not allowed to look up java:comp/ServerAdministrator, check the namespace-access tag setting in orion-application.xml for details
Why is the jnlp failing when the WARs are part of the (main) application, but OK when it is part of a web service WAR? How can I overcome this problem?
Thanks for your help.Hi Marc ,
Thanks for your reply.....
Did you mentioning the script (upgrade_10131_
10133_oracle.sql) in the orabpel. I had run this script after applying the patch.
Still iam facing the same issue.
what need to be done?
Could you please help me on this, because I need to do the Fault Handling Framework in BPEL and so i need the faultpolicy folder to be present.
Since I got the folder by applying the patch, but what happend is when i try to check out for the activity status in the BPEL Console Activity tab it is showing the error as mentioned earlier. Any problem with patch implementation or any bug is there. So far i done the patch installation successfully without error and i upgraded the orabpel schema using the mentioned script also. Any other things i need to do?
Regards,
Ashok. -
If I want to set -Xbootclasspath , how to do it in jnlp file
if I want to set -Xbootclasspath to let jvm know my classpath, how to do it in jnlp file. or have other way to do it.
If I want to orb, (now I am using openOrb) , I had to
let jvm load Orb which I want to use. Did you put those Orb classes into jars and list them in the jnlp file of your Web Start app?
Regards,
Marc -
Java web start error running Asset Editor or any jnlp page
When I try to launch Asset Editor or Import/Export or any of the jnlp pages that runs using Java Web Start, I get an error. Java 7 Web start starts but It throws “Could not connect to Server. Please check your Java Web Start and Browser proxy settings”.
I read conflicting opinions on the internet as to what version of JRE/JDK is needed and potentially some issues running Java Web start with Java 7. I have 64-bit java 1.7.0_45 JDK/JRE installed and no other version. I tried installing 32-bit 1.7.0_45 as well. I have tried to run it from 32-bit as well as 64-bit browser also. All situations provide the same error.
However, when I install JRockit, it seems to work fine. But we cannot use jrockit. We have to use IBM JDK/JRE 7 eventually. Currently, the java web start does not work on Oracle Java as well as IBM JRE.
Any help is much appreciated.I found a solution for this problem. We have to apply patch 17634436.
https://support.oracle.com/epmos/faces/ui/patch/PatchDetail.jspx?_afrLoop=149081897091441&patchId=17634436&_afrWindowMode=0&_adf.ctrl-state=xfsajjmff_74
Just thought it will be useful for anyone encountering this problem. -
I have a program (javafx)
this program includ swingButton to open SwingFileChooser.
In netbean6.71 can run this program on standard execution
run command in command windows
javafx -jar test.jar the program is ok
but
I run the test.jnlp ,swing button is not ok
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://localhost:8082/servlet/org.netbeans.modules.javafx.project.JnlpDownloadServlet/D%3A/JAVA/MyBlog/test2/dist/" href="test2.jnlp">
<information>
<title>test2</title>
<vendor>kevnlin</vendor>
<homepage href="http://localhost:8082/servlet/org.netbeans.modules.javafx.project.JnlpDownloadServlet/D%3A/JAVA/MyBlog/test2/dist/"/>
<description>test2</description>
<offline-allowed/>
<shortcut>
<desktop/>
</shortcut>
</information>
<resources>
<j2se version="1.5+"/>
<property name="jnlp.packEnabled" value="true"/>
<property name="jnlp.versionEnabled" value="true"/>
<extension name="JavaFX Runtime" href="http://dl.javafx.com/1.2/javafx-rt.jnlp"/>
<jar href="test2.jar" main="true"/>
<jar href="lib/customizer.jar"/>
<jar href="lib/dt.jar"/>
<jar href="lib/jmf.jar"/>
<jar href="lib/tools.jar"/>
<jar href="lib/mediaplayer.jar"/>
<jar href="lib/multiplayer.jar"/>
<jar href="lib/sound.jar"/>
</resources>
<application-desc main-class="com.sun.javafx.runtime.main.Main">
<argument>MainJavaFXScript=test2.Main</argument>
</application-desc>
<update check="background">
</jnlp>
how can I crate jnlp with javafx commandhow can I crate jnlp with javafx command Run javafxpackager
Note: the generated JNLP is incorrect. Not sure if that's the source of your troubles, but anyway, it is better to add a final slash to the update tag:
{color:#8000A0}*<update check="background"/>*{color} -
JNLP - Swing application compiled in jdk1.5 not working in jdk1.6
I have one swing application, compiled in jdk 1.5 and deployed in JNLP with jdk 1.5. When client machine try to access the application and having jre 1.5 then it works fine. but if client machine having jre 1.6 or version greater than 1.5 then application does not work properly.
Please help me, i got stuck and not able to solve the problem.
this is my JNLP
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://10.1.1.145:8080/uttimesheet" href="launch.jnlp">
<information>
<title>TimeSheet Portal</title>
<vendor>Geometric Global</vendor>
<description>A simple java desktop application based on Swing Application Framework</description>
<description kind="short">TimeSheet Portal</description>
<homepage href="http://appframework.dev.java.net"/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.5+" />
<jar href="UTTimeSheet.jar" main="true" download="eager"/>
<jar href="lib/antlr-2.7.5H3.jar" download="eager"/>
<jar href="lib/appframework-1.0.3.jar" download="eager"/>
<jar href="lib/asm.jar" download="eager"/>
<jar href="lib/cglib-2.1.jar" download="eager"/>
<jar href="lib/commons-collections-2.1.1.jar" download="eager"/>
<jar href="lib/commons-logging-1.0.4.jar" download="eager"/>
<jar href="lib/dom4j-1.6.jar" download="eager"/>
<jar href="lib/hibernate3.jar" download="eager"/>
<jar href="lib/jta.jar" download="eager"/>
<jar href="lib/log4j-1.2.9.jar" download="eager"/>
<jar href="lib/poi-3.0.2.jar" download="eager"/>
<jar href="lib/postgresql-8.3-603.jdbc3.jar" download="eager"/>
<jar href="lib/swing-layout-1.0.3.jar" download="eager"/>
<jar href="lib/swing-worker-1.1.jar" download="eager"/>
<jar href="lib/swingx-0.9.2.jar" download="eager"/>
</resources>
<application-desc main-class="timesheetproject.TimeSheetProjectApp">
</application-desc>
</jnlp>
Thanks in Advance.Thanks Luca for your time,
we have deployed application in tomcat and changed the home page of tomcat to our application home page(html page). and url is http://10.1.1.145:8080/
Application home page contain link to jnlp. so whenever user click on link (in home page) then jnlp will execute and launch the swing application.
do you need some more clarification?
below is the home page(html).
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Launch TimeSheet Portal via JNLP</title>
</head>
<body>
<center>
<br>
<img src="images/Geo-logo.JPG" />
<br>
<hr width="70%" />
<br>
<table width="70%">
<tr><td> </td></tr>
<tr>
<td colspan="2" align="center">
<align="center">
<h2>Welcome to TimeSheet Portal.</h3>
</align>
</td>
</tr>
<tr><td> </td></tr>
<tr><td> </td></tr>
<tr>
<td align="center">
<align="center">
<h3><u>Live Sites:</u></h3>
</align>
</td>
<td align="center">
<align="center">
<h3><u>Demo Sites:</u></h3>
</align>
</td>
</tr>
<tr>
<td width="50%" align="center">
<img src="images/launchPortal.png" onmouseover="this.src='images/launchPortalMouseOver.png';" onmouseout="this.src='images/launchPortal.png';" border="0"/>
<br><br>
<img src="images/launchAdminPortal.png" onmouseover="this.src='images/launchAdminPortalMouseOver.png';" onmouseout="this.src='images/launchAdminPortal.png';" border="0"/>
</td>
<td width="50%" align="center">
<img src="images/demoPortal.png" onmouseover="this.src='images/demoPortalMouseOver.png';" onmouseout="this.src='images/demoPortal.png';" border="0"/>
<br><br>
<img src="images/demoAdminPortal.png" onmouseover="this.src='images/demoAdminPortalMouseOver.png';" onmouseout="this.src='images/demoAdminPortal.png';" border="0"/>
</td>
</tr>
<tr><td> </td></tr>
<tr><td> </td></tr>
</table>
<table width="70%">
<tr><td> </td></tr>
<tr><td> </td></tr>
<tr><td align="center">
FAQ |
Help |
Why Timesheet |
Report a bug |
Contact Us |
Subtask Mapping
</td></tr>
</table>
<br><br><br><br>
<table width="70%" bgcolor="#C0C0C0" style="vertical-align: bottom">
<tr>
<td colspan="2" align="center" style="vertical-align: bottom" bgcolor="#C0C0C0">
©<font size="1.5" face="Verdana"> 2008 Geometric Ltd. All rights reserved.<br>
Best optimized for a resolution of 1024 and above. JRE 1.5 is a pre-requisite for using these applications.
</font>
</td>
</tr>
</table>
</center>
</body>
</html>
Thanks. -
Signed, cached JNLP applet doesn't start when updating from 1.6 to 1.7
Hi, yesterdays forced upgrade from Java6 to Java7 uncovered a nasty surprise for us:
We're running a game client through JNLP embedded in the browser using signed all-permission jars. The certificate is definitely valid and hasn't timed out.
When upgrading from 1.6 to 1.7 the applet won't start because of a supossed permission violation for the cached jars. Web start thinks that the jars in the cache are not signed (although they are).
Deleting the applet cache through the control panel, or deploying a new version of the applet both solves the problem as then the cached version will be overwritten with a newly downloaded version, and everything works fine from then on until switching back to 1.6 again.
Are 1.6 vs. 1.7 cached, signed jars not compatible? Something to do with pre-validation? Wouldn't it be a good idea to completely invalidate the applet cache in the JRE installer? Is this a bug on the JRE side, or are we somehow not using JNLP the right way (we're running the game for 2 years now, and a couple of million players have played the game since then on JRE6, so I assume we're using JNLP basically the right way).
Also, early JRE7 preview versions didn't seem to have this problem, I remember testing JRE7 intensively a few months back without any problems, however I'm not sure whether the cache remained intact when installing the preview JRE7 runtime.
Here are the console traces, please excuse the German, hopefully it's still clear what happens.
Oops, unfortunately I can only send 30k characters per post. I'd be happy to send you more traces, and additional information. Thanks in advance :)
Here's a trace when going from 1.6 to 1.7 with the failed permission validation:
Java-Plug-in 10.5.1.255
JRE-Version verwenden 1.7.0_05-b05 Java HotSpot(TM) Client VM
Benutzer-Home-Verzeichnis = C:\Users\aweissflog
c: Konsolenfenster löschen
f: Objekte in Finalisierungs-Queue finalisieren
g: Garbage Collect
h: Diese Hilfemeldung anzeigen
l: Class Loader-Liste ausgeben
m: Speicherauslastung drucken
o: Logging auslösen
q: Konsole ausblenden
r: Policy-Konfiguration neu laden
s: System- und Deployment-Eigenschaften ausgeben
t: Threadliste ausgeben
v: Thread-Stack ausgeben
x: Class Loader-Cache leeren
0-5: Trace-Ebene auf <n> setzen
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.
security: property package.definition new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws
security: property package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws
security: property package.definition new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy
security: property package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy
security: property package.definition new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
security: property package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.definition new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
network: Created version ID: 1.7.0.05
network: Created version ID: 1.7
network: Cacheeintrag nicht gefunden [URL: http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp?__cv=7833172affa6ff4e182d8b1e7ac0ebe500, Version: null]
cache: Cannot get resource from cache: http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp?__cv=7833172affa6ff4e182d8b1e7ac0ebe500
network: Cacheeintrag nicht gefunden [URL: http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp?__cv=7833172affa6ff4e182d8b1e7ac0ebe500, Version: null]
network: Cacheeintrag nicht gefunden [URL: http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp?__cv=7833172affa6ff4e182d8b1e7ac0ebe500, Version: null]
network: Verbindung von http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp?__cv=7833172affa6ff4e182d8b1e7ac0ebe500 mit Proxy=DIRECT wird hergestellt
network: Verbindung von http://xxxxxxxxxxx.xxxxxxxxxxx.com:80/ mit Proxy=DIRECT wird hergestellt
security: Blacklist-Entzugsprüfung ist aktiviert
cache: Trying to update in place C:\Users\aweissflog\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\26\7672fd9a-3ab71d78.idx
cache: Upgrade writing to disk for C:\Users\aweissflog\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\26\7672fd9a-3ab71d78
network: http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp?__cv=7833172affa6ff4e182d8b1e7ac0ebe500 wird mit Cookie "bpLandingPage_fallback=http%253A%252F%252Fxxxxxxxxxxx.xxxxxxxxxxx.com%252F; __utma=1.1858223971.1337797861.1339681185.1339685623.36; __utmb=1.12.10.1339685623; __utmc=1; __utmz=1.1338833129.25.9.utmcsr=xxxxxxxxxxx.xxxxxxxxxxxonline.com|utmccn=(referral)|utmcmd=referral|utmcct=/; __bpid=4fbd2a85L7T6qCGWXj0Q8oiTc5yG7ztB; drasasid=f1a4ef896018075f51bbe2c300b356ca" verbunden
network: ResponseCode für http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp?__cv=7833172affa6ff4e182d8b1e7ac0ebe500: 200
network: Codierung für http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp?__cv=7833172affa6ff4e182d8b1e7ac0ebe500: null
network: Serverantwort: (length: 731, lastModified: Wed Jun 13 19:21:23 CEST 2012, downloadVersion: null, mimeType: application/x-java-jnlp-file)
network: Not caching resource due to response header: cache-control: no-store
network: Ressource wird heruntergeladen: http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp?__cv=7833172affa6ff4e182d8b1e7ac0ebe500
Content-Length: 731
Content-Encoding: null
security: Prüfung der Liste vertrauenswürdiger Librarys ist aktiviert
network: URL http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp?__cv=7833172affa6ff4e182d8b1e7ac0ebe500 in Datei C:\Users\aweissflog\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\34\1f2e02e2-2f6a1505-temp geschrieben
network: Verbindung mit http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp?__cv=7833172affa6ff4e182d8b1e7ac0ebe500 trennen
security: Datei mit der Liste vertrauenswürdiger Librarys wurde nicht gefunden
network: Downloaded http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp?__cv=7833172affa6ff4e182d8b1e7ac0ebe500: C:\Users\aweissflog\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\34\1f2e02e2-2f6a1505
temp: new XMLParser with source:
temp: <?xml version="1.0" encoding="UTF-8" ?>
<jnlp spec="1.0+" href="/applet/win32.jnlp">
<information>
<title>xxxxxxxxxxxOnlineWin32</title>
<vendor>xxxxxxxxxxx Berlin GmbH</vendor>
</information>
<resources>
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se" />
<jar href="/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00" main="true" />
</resources>
<resources os="Windows">
<nativelib href="/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00" />
</resources>
<applet-desc name="xxxxxxxxxxxOnlineWin32" main-class="N3.N3JavaPiggyBack" width="800" height="600" />
<security>
<all-permissions />
</security>
</jnlp>
temp:
returning ROOT as follows:
<jnlp spec="1.0+" href="/applet/win32.jnlp">
<information>
<title>xxxxxxxxxxxOnlineWin32</title>
<vendor>xxxxxxxxxxx Berlin GmbH</vendor>
</information>
<resources>
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
<jar href="/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00" main="true"/>
</resources>
<resources os="Windows">
<nativelib href="/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00"/>
</resources>
<applet-desc name="xxxxxxxxxxxOnlineWin32" main-class="N3.N3JavaPiggyBack" width="800" height="600"/>
<security>
<all-permissions/>
</security>
</jnlp>
temp: returning LaunchDesc from XMLFormat.parse():
<jnlp spec="1.0+" codebase="http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/" href="http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp">
<information>
<title>xxxxxxxxxxxOnlineWin32</title>
<vendor>xxxxxxxxxxx Berlin GmbH</vendor>
<homepage href="null"/>
</information>
<security>
<all-permissions/>
</security>
<update check="timeout" policy="always"/>
<resources>
<java href="http://java.sun.com/products/autodl/j2se" version="1.6+"/>
<jar href="http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00" download="eager" main="true"/>
<nativelib href="http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00" download="eager" main="false"/>
</resources>
<applet-desc name="xxxxxxxxxxxOnlineWin32" main-class="N3.N3JavaPiggyBack" documentbase="http://xxxxxxxxxxx.xxxxxxxxxxx.com/game" width="800" height="600"/>
</jnlp>
network: Cacheeintrag gefunden [URL: http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp, Version: null] prevalidated=true/0
cache: Resource http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp has expired.
network: Verbindung von http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp mit Proxy=DIRECT wird hergestellt
network: http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp wird mit Cookie "bpLandingPage_fallback=http%253A%252F%252Fxxxxxxxxxxx.xxxxxxxxxxx.com%252F; __utma=1.1858223971.1337797861.1339681185.1339685623.36; __utmb=1.12.10.1339685623; __utmc=1; __utmz=1.1338833129.25.9.utmcsr=xxxxxxxxxxx.xxxxxxxxxxxonline.com|utmccn=(referral)|utmcmd=referral|utmcct=/; __bpid=4fbd2a85L7T6qCGWXj0Q8oiTc5yG7ztB; drasasid=f1a4ef896018075f51bbe2c300b356ca" verbunden
cache: Upgrade of entry done
cache: readIndexFile returning success
cache: Trying to update in place C:\Users\aweissflog\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\39\1ff11027-574532ab.idx
cache: Upgrade writing to disk for C:\Users\aweissflog\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\39\1ff11027-574532ab
security: Datei mit der Liste vertrauenswürdiger Librarys wurde nicht gefunden
network: ResponseCode für http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp: 304
network: Codierung für http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp: null
network: Verbindung mit http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp trennen
temp: new XMLParser with source:
temp: <?xml version="1.0" encoding="UTF-8" ?>
<jnlp spec="1.0+" href="/applet/win32.jnlp">
<information>
<title>xxxxxxxxxxxOnlineWin32</title>
<vendor>xxxxxxxxxxx Berlin GmbH</vendor>
</information>
<resources>
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se" />
<jar href="/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00" main="true" />
</resources>
<resources os="Windows">
<nativelib href="/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00" />
</resources>
<applet-desc name="xxxxxxxxxxxOnlineWin32" main-class="N3.N3JavaPiggyBack" width="800" height="600" />
<security>
<all-permissions />
</security>
</jnlp>
temp:
returning ROOT as follows:
<jnlp spec="1.0+" href="/applet/win32.jnlp">
<information>
<title>xxxxxxxxxxxOnlineWin32</title>
<vendor>xxxxxxxxxxx Berlin GmbH</vendor>
</information>
<resources>
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
<jar href="/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00" main="true"/>
</resources>
<resources os="Windows">
<nativelib href="/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00"/>
</resources>
<applet-desc name="xxxxxxxxxxxOnlineWin32" main-class="N3.N3JavaPiggyBack" width="800" height="600"/>
<security>
<all-permissions/>
</security>
</jnlp>
temp: returning LaunchDesc from XMLFormat.parse():
<jnlp spec="1.0+" codebase="http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/" href="http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp">
<information>
<title>xxxxxxxxxxxOnlineWin32</title>
<vendor>xxxxxxxxxxx Berlin GmbH</vendor>
<homepage href="null"/>
</information>
<security>
<all-permissions/>
</security>
<update check="timeout" policy="always"/>
<resources>
<java href="http://java.sun.com/products/autodl/j2se" version="1.6+"/>
<jar href="http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00" download="eager" main="true"/>
<nativelib href="http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00" download="eager" main="false"/>
</resources>
<applet-desc name="xxxxxxxxxxxOnlineWin32" main-class="N3.N3JavaPiggyBack" documentbase="http://xxxxxxxxxxx.xxxxxxxxxxx.com/game" width="800" height="600"/>
</jnlp>
cache: JNLPPreverifyClassLoader.initialize: FAILED: http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00
basic: Plugin2ClassLoader.addURL2 called for http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00
basic: Plugin2ClassLoader.drainPendingURLs addURL called for http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00
basic: Plugin2ClassLoader.addURL2 called for http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00
basic: Plugin2ClassLoader.drainPendingURLs addURL called for http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00
network: LaunchDownload: concurrent downloads from LD: 4
network: Total size to download: -1
security: Security check for progress jars: allSigned=true
network: SyncFileAccess.openLock: handled OverlappingFileLockException, remainint TO : 10000
network: Cacheeintrag gefunden [URL: http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00, Version: null] prevalidated=false/0
cache: Resource http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00 has expired.
network: Verbindung von http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00 mit Proxy=DIRECT wird hergestellt
network: http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00 wird mit Cookie "bpLandingPage_fallback=http%253A%252F%252Fxxxxxxxxxxx.xxxxxxxxxxx.com%252F; __utma=1.1858223971.1337797861.1339681185.1339685623.36; __utmb=1.12.10.1339685623; __utmc=1; __utmz=1.1338833129.25.9.utmcsr=xxxxxxxxxxx.xxxxxxxxxxxonline.com|utmccn=(referral)|utmcmd=referral|utmcct=/; __bpid=4fbd2a85L7T6qCGWXj0Q8oiTc5yG7ztB; drasasid=f1a4ef896018075f51bbe2c300b356ca" verbunden
network: ResponseCode für http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00: 304
network: Codierung für http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00: null
network: Verbindung mit http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00 trennen
network: Downloaded http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00: C:\Users\aweissflog\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\26\7672fd9a-3ab71d78
network: Download Progress: jarsDone: 1
network: Cacheeintrag nicht gefunden [URL: http://xxxxxxxxxxx-481.ah.bpcdn.net/applet/loading.gif?__cv=8948a154c2c16d3f2a836802397bee3a00, Version: null]
network: Verbindung von http://xxxxxxxxxxx-481.ah.bpcdn.net/applet/loading.gif?__cv=8948a154c2c16d3f2a836802397bee3a00 mit Proxy=DIRECT wird hergestellt
network: Verbindung von http://xxxxxxxxxxx-481.ah.bpcdn.net:80/ mit Proxy=DIRECT wird hergestellt
cache: Upgrade of entry done
cache: readIndexFile returning success
network: CleanupThread used 403203 us
network: Cacheeintrag gefunden [URL: http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00, Version: null] prevalidated=false/0
cache: Resource http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00 has expired.
network: Verbindung von http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00 mit Proxy=DIRECT wird hergestellt
network: http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00 wird mit Cookie "bpLandingPage_fallback=http%253A%252F%252Fxxxxxxxxxxx.xxxxxxxxxxx.com%252F; __utma=1.1858223971.1337797861.1339681185.1339685623.36; __utmb=1.12.10.1339685623; __utmc=1; __utmz=1.1338833129.25.9.utmcsr=xxxxxxxxxxx.xxxxxxxxxxxonline.com|utmccn=(referral)|utmcmd=referral|utmcct=/; __bpid=4fbd2a85L7T6qCGWXj0Q8oiTc5yG7ztB; drasasid=f1a4ef896018075f51bbe2c300b356ca" verbunden
network: ResponseCode für http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00: 304
network: Codierung für http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00: null
network: Verbindung mit http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00 trennen
network: Download Progress: jarsDone: 2
network: Created version ID: 1.6+
network: Created version ID: 1.7.0.05
network: Created version ID: 1.7.0.05
network: Created version ID: 1.7
basic: LaunchDesc location: http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/win32.jnlp
network: Created version ID: 1.0+
network: Created version ID: 7.0
basic: Ausnahme: Nicht signierte Anwendung fordert uneingeschränkten Zugriff auf das System an
Nicht signierte Ressource: http://xxxxxxxxxxx.xxxxxxxxxxx.com/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00.
ExitException[ 3]JNLPException[category: Sicherheitsfehler : Exception: null : LaunchDesc:
<jnlp spec="1.0+" href="/applet/win32.jnlp">
<information>
<title>xxxxxxxxxxxOnlineWin32</title>
<vendor>xxxxxxxxxxx Berlin GmbH</vendor>
</information>
<resources>
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
<jar href="/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00" main="true"/>
</resources>
<resources os="Windows">
<nativelib href="/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00"/>
</resources>
<applet-desc name="xxxxxxxxxxxOnlineWin32" main-class="N3.N3JavaPiggyBack" width="800" height="600"/>
<security>
<all-permissions/>
</security>
</jnlp> ]
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)
Ignored exception: ExitException[ 3]JNLPException[category: Sicherheitsfehler : Exception: null : LaunchDesc:
<jnlp spec="1.0+" href="/applet/win32.jnlp">
<information>
<title>xxxxxxxxxxxOnlineWin32</title>
<vendor>xxxxxxxxxxx Berlin GmbH</vendor>
</information>
<resources>
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
<jar href="/applet/applet32.jar?__cv=d9e6e3109f4e716598e7faca54137e7e00" main="true"/>
</resources>
<resources os="Windows">
<nativelib href="/applet/native32.jar?__cv=63a18d5fb09ca89e097ff6485249fdcf00"/>
</resources>
<applet-desc name="xxxxxxxxxxxOnlineWin32" main-class="N3.N3JavaPiggyBack" width="800" height="600"/>
<security>
<all-permissions/>
</security>
</jnlp> ]
security: Zugriff auf Schlüssel und Zertifikat im Mozilla-Benutzerprofil: null
security: Speicher für abgelehnte Sessionzertifikate zurücksetzen
basic: Dialog type is not candidate for embeddingWouldn't it be a good idea to completely invalidate the applet cache in the JRE installer?Yes, I guess it should be an option for user of the app on first start after upgrade, not for the JRE installer. There are many large applications that users would want to avoid re-download.
From the log, there is some hidden exception during first launch. The best way to proceed is to file a bug, including some guest/debugging access to the game. -
Generated JNLP and closing the original browser window
Hi All, This is my first post so bear with me. Here is my problem.
I am using Web Start for an application.
I need to check to see if web start is installed or not.
If it is NOT I need to auto-install
if it is I need to call a servlet that dynamically generates the jnlp with the user that I passed in as <arguments/> maybe other arguments in the future also
I need to shut the original browser window
I will use this servlet in multiple web apps
I have it working like this but I don't think it is clean enough
I call a servlet with the syntax checkJREServlet?USER=username
this servlet writes out:
<html>
<body>
<h1>Installing Java Runtime</h1>
<OBJECT
CLASSID="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
width="0" height="0"
codebase="http://<myservler>/<plugins folder>/j2re-1_4_2-windows-i586.exe#Version=1,4,2,0">
<PARAM NAME="code" VALUE="redirectAndClose.class"> //my applet class
<PARAM NAME="archive" VALUE="RedirectUtil.jar"> //the jar where my applet class is stored
<PARAM NAME="archive_cache" VALUE="RedirectUtil.jar">
<PARAM NAME="type" VALUE="application/x-java-applet">
<PARAM NAME="where_to_next" VALUE="http://<myservler>/<mywebapp>/openAppServlet?USER=username">
You did not install Java.
<p>Please use the <b>Back</b> button to return to the previous page.
</OBJECT>
</body>
</html>
I have redirectAndClose which is:
import java.applet.Applet;
import java.net.URL;
import java.net.MalformedURLException;
import netscape.javascript.*;
public class redirectAndClose
extends Applet
java.util.Timer timer = null;
int seconds = 5;
public void start()
try
getAppletContext().showDocument(
new URL(getCodeBase(), getParameter("where_to_next")), "_blank");
//now we have to close ourselves in 5 seconds
timer = new java.util.Timer();
timer.schedule(new java.util.TimerTask()
public void run()
timer.cancel(); //Terminate the timer thread
destroy();
, seconds * 1000);
catch(MalformedURLException e)
throw new RuntimeException(e);
public void destroy()
super.destroy();
//close this window because we don't need it
JSObject win = (JSObject)JSObject.getWindow(this);
win.eval("window.opener=self;self.close();");
If try to close without a timer my entier session gets killed, including my webstart app that the openAppServlet wrote out the jnlp for
I hate this because it is not definite. I want to DEFINITELY know when my webstart app is open and I can close this original window. Like a whenWindowExists then close me but I have no clue how to do this.
The "where_to_next" location is a servlet that will dynamically build a jnlp file specific for each web app building it from parameters in web.xml for each individual web app. Basically I will have to store the actual name of the class, the jar href's I will be needing, title, vendor, description, basically everything that can be different.
So what I need is some kind of library so I can include it in multiple web apps EASILY. I don't want to have to write a document on how to include this thing. It should be self explainatory. I originally just mapped to the first servlet in my web.xml and then included the jar file but it appears to be non-existent in my project. Maybe some suggestions on what others would do may help me.
Thanx in advanceI don't want to use a timer because who knows if the servlet that writes out the dynamic jnlp will get hung up for a little while or any number of other reasons. If that did happen the timer would kick off and close my web start app. I cannot have this.
-
How to include .class or xml file in a JNLP
Hi,
I want to include an xml file in the JNLP file. Can any one tell me the syntax to include it plzzzzz.....
Regards,
PrasannaYou mean as related-content?
If so, put it in a native-lib as myXml.jar and have href="jar:myXml.jar!/actualXmlFile.xml"
Bye. -
A JNLP based Java application is not running on JDK/JRE 1.7
I am planning to upgrade users to java 7 up40. The generated command line that I am calling via the Process is working find when I run using jre1.6 but it doesn't work when I call javaw via jre1.7. Very strange that if i update xbootclasspath to use 1.5 or 1.7 it works but it doesn't work jre1.6.
As suggested in other forums I updated the version in jnlp to 6 and also cleared the stderr and stdout from the process error stream and input stream in separate thread but still the thread is locked in FileInputStream.readBytes and doesnt move futher with jre1.6 as the classbootpath.
any help on this regards will be helpful.btw this happens only if user does not have java 7 installed on their machine. As the app tries to install and run and so picks up javaw to java 7 and jre 1.6 in xbootclasspath.
-
Getting JNLP error: "exception: Unable to load resource:-"
I've posted this question in Stackoverflow... but didn't get any answer...
Hi Guys,
I'm brand new to JNLP.
I've been trying to fix this for straight 2 days... I have no clue...
I've a dynamic web project in eclipse. And I wanted to append an Applet in html. It works fine, if I append it without using jnlp. But if I use jnlp, its throws exception...
Please help me....
Here is my package structure:
DaaS
DaaS\WebContent
\WebContent\AppletToJS.html
\WebContent\appletToJS.jnlp
\WebContent\FirstApplet.jar
"FirstApplet.jar" contains the Applet class - AppletToJS.java
Here is my `jnlp` file:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp href="appletToJS.jnlp">
<information>
<title>Dynamic Tree Demo</title>
<vendor>Dynamic Team</vendor>
</information>
<resources>
<!-- Application Resources -->
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se" />
<jar href="FirstApplet.jar" main="true" />
</resources>
<applet-desc
name="Applet To JS"
main-class="acid.AppletToJS"
width="300"
height="300">
</applet-desc>
<update check="background"/>
</jnlp>
Here is my `html` file:
<html lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
<body>
<script src="http://www.java.com/js/deployJava.js"></script>
<script>
var attributes = { code:"acid.AppletToJS", width:100, height:100} ;
var parameters = {jnlp_href: "appletToJS.jnlp"} ;
deployJava.runApplet(attributes, parameters, "1.6");
</script>
<!-- <applet codebase="./jars" archive="FirstApplet.jar" Code="acid.appletToJS.class" width=200 Height=100></applet> -->
<p id="summary"/>
</body>
</html>
while I run my html page I got following error:
<code>
exception: Unable to load resource: http://localhost:8080/jars/FirstApplet.jar.
com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://localhost:8080/jars/FirstApplet.jar
at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by:
java.io.FileNotFoundException: http://localhost:8080/jars/FirstApplet.jar
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at com.sun.deploy.net.HttpUtils.followRedirects(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doGetRequest(Unknown Source)
at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://localhost:8080/jars/FirstApplet.jar
</code>
**http://localhost:8080/jars/FirstApplet.jar**
- I really don't understand where the hell "/jars" coming from???
- My project name is "DaaS" and my jar, html page and jnlp page are in same directory. And I'm running my html page on tomcat-7 server.
Edited by: user1202074 on Feb 7, 2012 4:24 PM
Edited by: user1202074 on Feb 7, 2012 4:24 PMIt must be coming from the commented-out <applet> tag somehow.
You aren't specifying an 'id' element. See the Deploy Java Toolkit documentation. -
I'm trying to embed a Java program called ImageJA [http://pacific.mpi-cbg.de/wiki/index.php/ImageJA] into a webpage. I'm using ASP.NET with XHTML 1.0. Since I'm embedding it as an object in the html code, it should not cause any issues from that end. Unforunately, when I try I get an error saying "java.security.AccessControlException: access denied (java.util.PropertyPermission jnlp read)". The weird thing is, there is no jnlp file anywhere (including the .jar and codebase).
I'm able to run it successfully if I change the permissions in my java.policy file, but that solution only works for my local machine.
The .jar file (the only one) has been signed (I believe). I followed the steps as suggested [http://download.oracle.com/docs/cd/E17476_01/javase/1.4.2/docs/guide/plugin/developer_guide/rsa_signing.html], with the exception of contacting VeriSign/Thawte (I wish to have this be self signed).
This seems like a very odd issue to me, and I'm running out of hair. Can anyone help?
Here's my html code:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<object
classid = "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
codebase = "[http://java.sun.com/update/1.5.0/jinstall-1_5-windows-i586.cab]"
width="500" height="500">
<param name = "code" value = "ij.ImageJApplet.class" />
<param name = "codebase" value = "ImageJA" />
<param name = "archive" value = "ij-1.44a.jar" />
<param name="type" value="application/x-java-applet;jpi-version=1.4.2" />
<param name="scriptable" value="true" />
</object>
</div>
</form>
</body>
</html>
Edited by: Sythion on Jul 13, 2010 2:19 PMSythion wrote:
I'm trying to embed a Java program called ImageJA [http://pacific.mpi-cbg.de/wiki/index.php/ImageJA] ..
I suggest you take up the problem through the [channels suggested by the API developers|http://pacific.mpi-cbg.de/wiki/index.php/Help:Contents].
Maybe you are looking for
-
Internal table in ABAP Server Proxy
Hi Experts, I have developed a JDBC to ABAP Proxy scenario. I have a problem. In my ABAP server proxy I have to import the values into an internal table and pass them to a BAPI for GR creation. I get an error like. OCCURS 0 is not allowed in OO c
-
Web design tool used is NetObject Fusion 11 which puts a php proxy script on the server to function as a gateway between the RSS feed and the browser.
-
Anyconnect secure mobility client sbl in windows 8?
Hi All, Recently we are going to deploy windows 8 64 bit enterprise. But with the cisco anyconnect secure mobility client 3.1.00495, I can't use the the start before logon function. Can anyone give me some advice for the questions below? Thanks in ad
-
I just got an ipod (nano fourth generation) and itunes for the first time. Since I wanted everything organized, I went through and changed the info tabs to all my music while in Itunes and the synced. Unfortunately my ipod doesn't seem to have added
-
Hi, Am trying to do a multi row delete on a report. Have added a [row selector] to the report and a 'multi row delete' process. Copied this from a sample app i got, but when i try and delete a row(s) i get the following error message: Unexpected erro