File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JNLP and Web Start and the fly likes Error launching my jnlp  CacheEntry[http://localhost/miguel/jeeTest.jar]: updateAvailable=true Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Error launching my jnlp  CacheEntry[http://localhost/miguel/jeeTest.jar]: updateAvailable=true" Watch "Error launching my jnlp  CacheEntry[http://localhost/miguel/jeeTest.jar]: updateAvailable=true" New topic
Author

Error launching my jnlp CacheEntry[http://localhost/miguel/jeeTest.jar]: updateAvailable=true

Miguel Enriquez
Ranch Hand

Joined: Mar 13, 2004
Posts: 94
Hi friends i try load my jnlp, i signed with keytool and jarsigner every jar:

jeePrueba.jar generate: jeeTest.jar

also i signed:


02/07/2013 12:02 a. m. 8,548,299 eclipselink.jar
01/07/2013 11:49 p. m. 185,380 javax.persistence_2.1.0.v201304241213.jar
01/07/2013 11:49 p. m. 546,639 mysql-connector-java-5.0.6-bin.jar
01/07/2013 12:42 a. m. 1,396,640 org.eclipse.persistence.jpa.jpql_2.5.0.v20130507-3faac2b.jar

i activate too the Java Console: (Control Panel -> Java -> Advanced -> Show Console)

and show me the next error:

Missing Permissions manifest attribute for: http://localhost/miguel/jeeTest.jar
Missing Codebase manifest attribute for: http://localhost/miguel/jeeTest.jar
Missing Permissions manifest attribute for: http://localhost/miguel/jeeTest.jar
Missing Codebase manifest attribute for: http://localhost/miguel/jeeTest.jar
Missing Permissions manifest attribute for: http://localhost/miguel/jeeTest.jar
Missing Codebase manifest attribute for: http://localhost/miguel/jeeTest.jar


i added
Permissions: sandbox
Codebase: localhost


C:\Users\Angus\Documents\NetBeansProjects\jeePrueba>type manifest.mf
Manifest-Version: 1.0
X-COMMENT: Main-Class will be added automatically by build
Permissions: sandbox
Codebase: localhost

C:\Users\Angus\Documents\NetBeansProjects\jeePrueba>

and rebuild with netbeans again the jeePrueba.jar
also resigned and generated again jeeText.jar


test again the jnlp and java console show me the next error:

CacheEntry[http://localhost/miguel/jeeTest.jar]: updateAvailable=true,lastModified=Mon Jul 01 23:40:23 MDT 2013,length=40009

How to fix?

thanks
Jacob Anawalt
Ranch Hand

Joined: Oct 27, 2010
Posts: 32

The "Missing Permissions" and "Missing Codebase" messages were not errors, they were warnings.

http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/no_redeploy.html

It sounds like you found and resolved that already. I point it out though because the next message you show also does not sound like an error. It sounds more like an INFO log message.

CacheEntry[http://localhost/miguel/jeeTest.jar]: updateAvailable=true,lastModified=Mon Jul 01 23:40:23 MDT 2013,length=40009


I don't remember seeing this message. Does the updated code not download and run? Is this message from your code?

Are the "Missing Codebase" messages still displayed? If they are gone, it would seem the updated jars are downloaded.

I would try clearing my web start cache if I suspected it wasn't updating.


Jacob
Jacob Anawalt
Ranch Hand

Joined: Oct 27, 2010
Posts: 32

I did a small test and found that the CacheEntry for the jar files only show up right after I update the jar files and JNLP on the server. The next run they do not show up loading the already up-to-date jar files. They do show up for every HttpURL I open. When I call ImageIO.read with a URL I instead get "Get Image:" I do not remember these appearing before 1.7_25.

The program runs fine with these informational messages.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Error launching my jnlp CacheEntry[http://localhost/miguel/jeeTest.jar]: updateAvailable=true