java-web-start

Java Webstart intermittant JAR not updating

孤街醉人 提交于 2019-11-30 06:53:45
We use java Webstart to deploy a java application on our intranet. The application receives frequent updates. Once in awhile a user will launch the application from their desktop icon after we have updated the JARs / WAR on the webserver (timestamp changed) and Java Webstart will launch the old version instead of downloading a new one. Here is a paste of our JNLP, as you can see offline-allowed is on, but update check always and policy always. Also, download flag is eager. From my understanding these options should always result in a check of cache against timestamp on server and a download of

Java 7 update 25 makes our java web start application fail with no logging

[亡魂溺海] 提交于 2019-11-30 06:50:10
Since the java 7 update 25 launched by Oracle our application no longer functions. Initially we got some warning about codebase & sercurity tags missing in the Manifest file, which we fixed. The problem we now end up with is that in the Console we only get the following lines: #### Java Web Start Error: #### null We also get an application Error dialog with the message: Unable to launch the application . The details button gives the following details in the Exception: java.lang.NullPointerException at com.sun.jnlp.JNLPClassLoader.getPermissions(Unknown Source) at java.security

jar resources in jnlp are not signed by the same certificate

对着背影说爱祢 提交于 2019-11-30 06:40:14
I've been working with web start for a couple years now and have experience with signing the jars and what not. I am taking my first attempt at deploying a RCP app with web start and though I have in fact signed all of the jars with the same certificate I keep getting this error: 'jar resources in jnlp are not signed by the same certificate' Has anyone else came across this? If so, any ideas on how to fix? asalamon74 When I had similar problems after checking the jars it turned out that some 3rd party jar was signed by someone else. You should create a separate jnlp file for the jars signed by

How to change the alias of a key within a keystore?

对着背影说爱祢 提交于 2019-11-30 06:16:03
问题 I signed my JWS application MemorizEasy with a key whose alias is: memofile.reference.emma.jar=/Users/simpatico/.netbeans/6.8/modules/ext/emma.jar I don't remember why I chose such a long alias. I suspect it was memo only, but in my project settings I have: jnlp.signjar.alias=memofile.reference.emma.jar=/Users/simpatico/.netbeans/6.8/modules/ext/emma.jar I'm now updating the application and using maven I need to specify the alias as: <keystorealias>memofile.reference.emma.jar=/Users/simpatico

AppContext is null from rmi thread with Java 7 Update 25

岁酱吖の 提交于 2019-11-30 05:04:23
问题 We recently updated to Java 7 Update 25 from Update 21 and are now experiencing a null pointer exception when SwingUtilities.isEventDispatchThread() is called from an rmi thread becuase AppContext.getAppContext() is returning null. java.lang.NullPointerException at sun.awt.SunToolkit.getSystemEventQueueImplPP(Unknown Source) at sun.awt.SunToolkit.getSystemEventQueueImplPP(Unknown Source) at sun.awt.SunToolkit.getSystemEventQueueImpl(Unknown Source) at java.awt.Toolkit.getEventQueue(Unknown

General error during conversion: No suitable ClassLoader found for grab

北慕城南 提交于 2019-11-30 05:01:23
问题 I've try code below... @Grapes([ @Grab('org.hsqldb:hsqldb:2.0.0'), @GrabConfig(systemClassLoader=true, initContextClassLoader=true) ]) import groovy.sql.Sql println Class.forName('org.hsqldb.jdbc.JDBCDriver').newInstance() It works in groovyConsole, but failed to run with Web Start. Following are error messages. startup failed: General error during conversion: No suitable ClassLoader found for grab java.lang.RuntimeException: No suitable ClassLoader found for grab at sun.reflect

Java 7u4 webstart security exception: Class does not match trust level

社会主义新天地 提交于 2019-11-30 04:48:06
问题 We began to notice that with Java 7 (particularly with update 4), that all our users began to see this with our Webstart app: [14:42:58,422] AWT-EventQueue-0(DEBUG) java.lang.SecurityException: class "CLASSNAME" does not match trust level of other classes in the same package [14:42:58,422] AWT-EventQueue-0(DEBUG) at com.sun.deploy.security.CPCallbackHandler$ChildElement.checkResource(Unknown Source) [14:42:58,422] AWT-EventQueue-0(DEBUG) at com.sun.deploy.security.DeployURLClassPath$JarLoader

Connection details & timeouts in a java web service client

谁说胖子不能爱 提交于 2019-11-30 03:55:54
I have to implement a webservice client to a given WSDL file. I used the SDK's 'wsimport' tool to create Java classes from the WSDL as well as a class that wrap's the webservice's only method ( enhanceAddress(auth, param, address) ) into a simple java method. So far, so good. The webservice is functional and returning results correcty. The code looks like this: try { EnhancedAddressList uniservResponse = getWebservicePort().enhanceAddress(m_auth, m_param, uniservAddress); //Where the Port^ is the HTTP Soap 1.2 Endpoint }catch (Throwable e) { throw new AddressValidationException("Error during

Java 7 breaks SWT app on OS X using Web Start

岁酱吖の 提交于 2019-11-30 03:52:05
问题 We have an application that launches via webstart that uses the SWT library. It's well known that osx requires the swt library to run in the main thread, so we have this in our jnlp: <resources os="Mac"> <j2se version="1.6+" java-vm-args="-XstartOnFirstThread"/> <jar href="swt-mac64.jar"/> </resources> Since we've upgraded to Java 7 (1.7.0_10), it seems that webstart doesn't pass the "-XstartOnFirstThread" to the java process that it starts. I can see from 'ps' that the java process isn't

How can I get early access to Oracle Java updates, so I can test my RIA and avoid fire-drills when these updates are made public?

谁说胖子不能爱 提交于 2019-11-30 01:55:40
Having had our application stop working when customers installed the 7u45 update, we're wondering what more we can do in the future to be ready for these updates up-front and avoid release-day support nightmares. (Per the Java version numbering scheme , the next Critical Patch Update, planned for January 14, will be 7u51. The next Limited Update (date unknown) will be 7u60.) I've poked around the Oracle and OpenJDK websites, and not found anything particularly useful. The main Oracle page for Java SE has an Early Access Downloads section. It has three links that have potential, but don't pan