3 Replies Latest reply: Oct 4, 2013 2:54 AM by 1045357 RSS

    "Cannot find cached resource" with Java 7

    1004186
      Hello!
      I have problem with my JWS application and Java 7.
      My application(EAR) is placed at Weblogic 10.3.6 which is working with Linux.
      Everything works fine with Java 6, but with Java 7 i get error like this when i launch application:

      java.io.IOException: Cannot find cached resource for URL: http://biodvhost3.krakow.pl/JnlpTestEar/SwifterLiquidityManager.jar
           at com.sun.deploy.cache.Cache.getCachedResourceFilePath(Unknown Source)
           at com.sun.deploy.cache.ResourceProviderImpl.getCachedResourceFilePath(Unknown Source)
           at com.sun.javaws.security.JNLPSignedResourcesHelper.getSignedJNLPBits(Unknown Source)
           at com.sun.javaws.security.JNLPSignedResourcesHelper.getSignedJNLPFile(Unknown Source)
           at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedLaunchDescHelper(Unknown Source)
           at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedLaunchDesc(Unknown Source)
           at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedLaunchDesc(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)

      My .jnlp file looks like:

           <jnlp spec="1.0+" codebase="http://biodvhost3.krakow.pl/JnlpTestEar/" href="sorbnet2.jnlp">
           <information>
                <title>Swifter Liquidity</title>
                <vendor>pl SA</vendor>
           </information>
           <resources>
                <j2se version="1.6.10+" href="http://java.sun.com/products/autodl/j2se" java-vm-args="-Djava.net.preferIPv4Stack=true"/>
                <jar href="SwifterLiquidityManager.jar" download="eager" main="true" version="2.0"/>
                <jar href="SwifterSwing.jar" download="eager" main="false" version="2.0"/>
                <jar href="jide-action.jar" download="eager" main="false" version="2.0"/>
                <jar href="jide-common.jar" download="eager" main="false" version="2.0"/>
                <jar href="jide-components.jar" download="eager" main="false" version="2.0"/>
                <jar href="jide-dock.jar" download="eager" main="false" version="2.0"/>
                <jar href="jide-grids.jar" download="eager" main="false" version="2.0"/>
                <jar href="miglayout-3.7.jar" download="eager" main="false" version="2.0"/>
                <jar href="SwifterClient.jar" download="eager" main="false" version="2.0"/>
                <jar href="SwifterConnector.jar" download="eager" main="false" version="2.0"/>
                <jar href="mockrunner.jar" download="eager" main="false" version="2.0"/>
                <jar href="FontChooser.jar" download="eager" main="false" version="2.0"/>
                <jar href="jcalendar.jar" download="eager" main="false" version="2.0"/>
                <jar href="serializer-2.7.1.jar" download="eager" main="false" version="2.0"/>
                <jar href="poi-3.8-20120326.jar" download="eager" main="false" version="2.0"/>
                <jar href="poi-ooxml-3.8-20120326.jar" download="eager" main="false" version="2.0"/>
                <jar href="commons-lang-2.5.jar" download="eager" main="false" version="2.0"/>
           </resources>
           <application-desc main-class="com.pl.swifter.liquidity.manager.Main"/>
           </jnlp>


      Problem occurs only if client stations have installed Java 7.
      What is more, problem occcurs only if .jnlp file is inside EAR. If I deploy WAR application with the same .jnlp file, everything work fine.

      My Java version is:
      Java Web Start 10.21.2.11
      Using JRE version 1.7.0_21-b11 Java HotSpot(TM) Client VM.

      Can anyone help me?

      Edited by: user11083671 on Apr 19, 2013 7:43 AM