Jar file caching problem

I'm running applets under IE in our application. The application contains multiple pages, each page with one applet. Each applet contains some shared jar file and one specific jar file for that applet.
Most of the time, the caching mechanism work fines. The browser is able to check with the HTTP server to see if any new jar files and download automatically. If no updates, the cached jars (in browser) are used.
However, at some other times, when I jump across several pages, performing different processing, suddenly the browser will reload all the jar files from the server. Even some shared jars are reloaded in every page within the same browser session.
If above problem occurs, I close the browser, open a new one and jumping to the pages again, the browser will be able to use the cached version again.
The runtime environment as follows:
JRE 1.3.1_02
IBM HTTP server 1.3.12.6
IBM WebSphere Appl Server 3.5.3
IE 5.50 (The "Check for newer versions of stored pages" is set to "Every visit to the page")
Pages created by JSP, syntax as follows:
<OBJECT classid="<%=JSPUtil.getClassid()%>" codebase="<%=JSPUtil.getPluginCodeBase()%>" WIDTH=100% HEIGHT=175% NAME=posApplet>
<PARAM NAME=ARCHIVE VALUE="<%=JSPUtil.getSharedArchives()%>, <%=JSPUtil.getArchiveLocation()+"/posPending.jar"%>">
<PARAM NAME=CODE VALUE=ho.aia.pos.pending.applet.PendingSGP >
<PARAM NAME=NAME VALUE="PendingRequirement" >
<PARAM NAME=codebase VALUE="<%=JSPUtil.getCodeBase()%>">
</OBJECT>
Do anyone knows anything about the problem?
Anyone knows how to make the caching work NORMALLY?
Thanks

Recently I tried to used some robot tools to test our application for performance issue. During the robot testing, I acceidentally discover some difference for the jar downloading which cause the above mentioned problem.
At first, this http request has no problem and the jar file is NOT downloaded. Http server shows a response code of "304", meaning download not required.
http_request
"GET lib/posLookup.jar HTTP/1.1\r\n"
"Accept: */*\r\n"
"Accept-Encoding: gzip, deflate\r\n"
"If-Modified-Since: Thu, 05 Dec 2002 17:22:12 GMT\r\n"
"User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; T31246"
"1)\r\n"
"Host: defaulthost\r\n"
"Connection: Keep-Alive\r\n"
"Cookie: sesessionid=0001UULRZPFLU5IBRNBVHWUUAFI\r\n"
"\r\n";
Then after running for a while, the browser jumps into another page and finds that the same jar file "posLookup.jar" is required. It issue another http request to server as:
http_request
"GET lib/posLookup.jar HTTP/1.1\r\n"
"cookie: sesessionid=0001UULRZPFLU5IBRNBVHWUUAFI\r\n"
"User-Agent: Java1.3.1_02\r\n"
"Host: defaulthost\r\n"
"Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2\r\n"
"Connection: keep-alive\r\n"
"\r\n";
But this time the user agent becomes Java1.3.1_02 and the accept type becomes text/html instead of original zip format. After this, I check the IE temporary file and found that the posLookup.jar is having a type of "HTML Document" instead of "Executable jar file".
Does anyone know whether this is a bug of the Internet Explorer or it is bug of the Java Plugin?
Appreciate any opinions or comments.
Thanks

Similar Messages

  • Jar files download problems in Java Webstart with JRE 1.6

    We have encountered a few problems in Java Webstart with JRE 1.6
    In JRE 1.5, the jar files are getting downloaded onto the client
    machine with it's original names.
    Example :
    Server File Name : acm.jar
    Client File Name : RMacm.jar
    But in JRE 1.6, the jar files are getting downloaded with improper file names.
    Example :
    Server File Name : acm.jar
    Client File Name : 4fb074cc-66fc7407
    Moreover the path itself seems to be invalid.
    Example Path :
    JRE 1.5 path:
    C:\Documents and Settings\Administrator\Application
    Data\Sun\Java\Deployment\cache\javaws\https\D17.16.23.11\P443\DMtest\DMwebStart
    JRE 1.6 path:
    C:\Documents and Settings\Administrator\Application
    Data\Sun\Java\Deployment\cache\6.0\12
    Due to this, we are facing Classpath problems.
    What changes do we have to make to the code, for Java
    Webstart to work ?
    We are using JBoss 4.0.4 and JDK 1.5 in the Server
    On the client machine, we have IE 6 and JRE 1.6.01
    Help would be appreciated.

    Ask your Java Web Start question at:
    http://forum.java.sun.com/forum.jspa?forumID=38

  • JAR file cache

    hi all.
    i have a problem with jar file on web form. i create one jar file thru jdeveloper and write some code on keypressed event. after deploying this jar file in d:\orant\forms60\java and adding this jar file in formsweb.cfg file developer forms works fine. but the problem is after using this jar file i made some changes in the jar and deploy again in the same manner. but my developer form doesnt take the effect of the new changes. then i create new form and use the same file i surprised new form take the effect but old one not so i can change the name of the old form. after changing the name of the form it takes the effect. so how i can solve this problem bcz it creates problem when i'm using it in my live projects. how i can clear the cache for this jar file
    thanks in advance
    Shakeel

    If you change the JAR file you can't just re-load in the browser, you have to exit the browser and start a new one, then the newer JAR will be picked up,.

  • JAR File Caching Issues

    After the security update here, http://sunsolve.sun.com/search/document.do?assetkey=1-26-103079-1 any users referencing our applets do not use the jar files stored in cache if the DNS has changed. We use an akamai hosted solution for jar distribution (though this would also occur in any DNS load balancing situation) thus the IP is rather dynamic though the content is identical. As the security issues states, any Plugin versions 1.5.0_13 and above or 1.6.0_03 and above treat a new DNS as compeltely new jar files.
    Has anyone worked through similar situations? This renders the caching almost useless and we have a rather thick applet (3 Mb total jar files) which is quite an impact for a customer that is often low bandwidth to download daily.
    Thanks!

    Recently I tried to used some robot tools to test our application for performance issue. During the robot testing, I acceidentally discover some difference for the jar downloading which cause the above mentioned problem.
    At first, this http request has no problem and the jar file is NOT downloaded. Http server shows a response code of "304", meaning download not required.
    http_request
    "GET lib/posLookup.jar HTTP/1.1\r\n"
    "Accept: */*\r\n"
    "Accept-Encoding: gzip, deflate\r\n"
    "If-Modified-Since: Thu, 05 Dec 2002 17:22:12 GMT\r\n"
    "User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; T31246"
    "1)\r\n"
    "Host: defaulthost\r\n"
    "Connection: Keep-Alive\r\n"
    "Cookie: sesessionid=0001UULRZPFLU5IBRNBVHWUUAFI\r\n"
    "\r\n";
    Then after running for a while, the browser jumps into another page and finds that the same jar file "posLookup.jar" is required. It issue another http request to server as:
    http_request
    "GET lib/posLookup.jar HTTP/1.1\r\n"
    "cookie: sesessionid=0001UULRZPFLU5IBRNBVHWUUAFI\r\n"
    "User-Agent: Java1.3.1_02\r\n"
    "Host: defaulthost\r\n"
    "Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2\r\n"
    "Connection: keep-alive\r\n"
    "\r\n";
    But this time the user agent becomes Java1.3.1_02 and the accept type becomes text/html instead of original zip format. After this, I check the IE temporary file and found that the posLookup.jar is having a type of "HTML Document" instead of "Executable jar file".
    Does anyone know whether this is a bug of the Internet Explorer or it is bug of the Java Plugin?
    Appreciate any opinions or comments.
    Thanks

  • How to determine the path of the jar file cache of javawebstart?

    Hello, I need to know how to determine where the java web start application
    file jar cache is stored on windows system hard drive.
    I would have launch of the inner processes
    I have need to know the path of file jar .
    example if my application is myAppliation.jar
    in code generic class of myAppliation.jar i have the command runtime
    String strCmd =
    System.getProperties().getProperty("java.home") + "\\bin\\java" +
         " -cp " +
         System.getProperties().getProperty("java.class.path") + ";"
         + " anotherClass.class ";
    Runtime.getRuntime().exec(strCmd);
    the anotherClass.class has need
    of the contained library in myAppliation.jar.

    Thanks i have tried this metod and function
    java.net.URL resource = classLoader.getResource("myResource");
    if (resource != null) {
    String s = resource.toString();
    if (s.startsWith("jar:")) {
    int index = s.indexOf("!");
    if (index > 4) {
    String fileurl = s.substring(4, index);
    if (fileurl.startsWith("file:")) {
    String path = fileurl.substring(5);
    // now path is the path to the jar file in the cache containing the resource
    System.out.println("file jar: "+path);
    }

  • .jar file deployment problem

    Hi I am running a web application using tomcat 4.x .
    I want to deploy the appllication as war file in tomcat I did the following step:
    1.jar cf web.jar * use this command to make .jar file
    2. placed it in tomcat_home/webapp folder.
    it is able to get to the first page that has 2 frames. The pages in that frame are not been loaded. error 404 The requested resource (/integrate/jsp/default.jsp) is not available.
    is shown.
    Where could be the problem
    Thanks in advance.

    Hi I am running a web application using tomcat 4.x .
    I want to deploy the appllication as war file in tomcat I did the following step:
    1.jar cf web.jar * use this command to make .jar file
    2. placed it in tomcat_home/webapp folder.
    it is able to get to the first page that has 2 frames. The pages in that frame are not been loaded. error 404 The requested resource (/integrate/jsp/default.jsp) is not available.
    is shown.
    Where could be the problem
    Thanks in advance.

  • Jar file creation problem

    I have create the jar file, but it show the following error mesage since i start to run it.
    Java Virtual Machine Laugcher
    Failed to load the main class manifest attribute from
    E:\j2sdk1.4.2\bin\test.jar
    What the problem for this?
    my manifest.mf file contain the information
    Manifest-Version: 1.0
    Main-Class: mysystem.MainFrame
    note, my directory is javac mysystem/MainFrame.java to run

    Open the jar in WinZip (or any other).
    the mysystem directory should be in the root..

  • Jar file execution problem

    Hello friends,
    I have a project folder in which i have 4 packages
    application
    ui
    controller
    model and
    a folder Datafile containing project related xml and text files
    my main class is in application package
    I am creating a jar file of my whole project folder in Eclipse environment, using the main class as TheApplication in application package. I am able to generate the jar file but unable to execute it.
    When I tried to execute it from command prompt it is giving me an error saying no main,
    Please tell me what I am doing wrong, and suggest me a solution
    Thanks in advance

    ya, You are required to put an entry in Malifest file.
    you need to add Main-Class <your class name with which you need to start ur application
    Wasn't this already shown in reply #7?> Yes it was, But as he said, even though he is getting the same problem.. So. I tried to recall him that, that class should the starting point to the application & it should be public & it should have public method.. And is not mentioned in that reply #7
    I guess you got my point now.

  • Creating jar file gives problem in WSAD IDE

    Hi,
    i programmatically created a Jar file successfully. I am able to open
    the jar file and read the jar file properly. But when i try to include that jar file into WSAD, it cannot recognize the class files within it.
    Any help would a great input.
    Thanks and Regards,
    Sapan.

    >
    2) U are having one program in which u are creating
    jar as well as using the class file in it at runtime
    using reflection. If this is the case then u might
    have to check manifest file of the project.
    If none of the above is the case then please explain
    little bit more, what r u trying to do.
    Regards,
    Samip.I m creating the jar file and then use the classes in the jar file through reflection / generics. I checked the default jar file that is created using jar command, and the manifest file doesnt have anything except, Sun Microsystems and jdk version.
    It seems that the problem is with the manifest of the jar file that is created. There is something that is missing in the jar file, and WSAD 4.0.3 expects the same.
    Regards,
    Sapan.

  • .JAD/JAR file download problems

    Hi,
    I'm having trouble with downloads of .jad and .jar files through WAP onto my mobile phone. The .JAR file downloads fine via the WAP APN but then the .JAD file doesn't download.
    From what I can see, it looks like the j2me app manager on the phone which reads the jad file tries to download the .JAR file directly from the website. The problem here is that since i'm connected to a WAP APN, i have to download through the proxy so there's no direct access to the internet.
    Anyone else have this kind of problem?
    Is is possible to set up the .JAD file somehow so that it downloads through a proxy or takes the current APN to download it??
    This is a HTTPS site but I dont think that would make a difference.
    Cheers,

    Hello,
    I have a very similar problem. Not quite the same tho: i am able to download the JAD and the JAR gets requested. One some phones the JAR gets downloaded properly but on others it blocks after 50 or 60 %.
    We only encounter this problem when downloading through a proxy (defined in the phones wap/internet configuration); when we connect without a proxy everythibng works just fine.
    Another clue might be the fact that we cannot do HTTPS communication (from the device) using a connection that is proxied. (We tested by putting the file on the device using bluetooth).
    Has anybody seen this before? Do you know a solution to this problem?
    Thank you,
    Nick

  • Jar file caching on startup

    Recently I've heard that NetWeaver, or to be precise the J2EE engine, is loading all jar files into an internal database at startup time. After that if the J2EE engine restarts, it checks for all saved jar files if the newest version is loaded.
    It's as clear as daylight that this loading and checking is very time consuming and thus I want to know if this feature can be tweaked in anyway (cause my development NW takes so much time to startup -.-)
    Anyone heard of this feature and/or can give any hints where to find a technical documentation?

    Hi, you could try to disable the bootstrapping at startup.
    Maybe that helps and will bosst up the starting process a little
    See: http://help.sap.com/saphelp_nw70/helpdata/EN/f6/6fff40e39ba854e10000000a1550b0/frameset.htm
    Cheers

  • Jar file import problem with ADF application

    Hi Everyone,
    I am using Jdev 11g with integrated WLS. I have an ADF application and is trying to integrate JasperReport in it. I added the JasperReport JAR file in the project properties -> Libraries and Classpath, and checked it for "export" and "Deployed by Default'. I have my JasperReport codes in my managed bean
    as follows
    +public String cb1_action() {+
    +try {+
    +JasperDesign design = JRXmlLoader.load("C:/JDeveloper/mywork/ReentryApplication/ViewController/public_html/jasper/testReport.jrxml");+
    +JasperReport report = JasperCompileManager.compileReport(design);+
    +....+
    +}+
    +}+
    I am able to compile the managed bean class successfully. However when I run the application, I got a stack of errors like this,
    +[2009-10-08T11:31:59.910-04:00] [DefaultServer] [ERROR] [] [javax.enterprise.resource.webcontainer.jsf.application] [tid: [ACTIVE].ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: test123] [ecid: 0000IGollZuB5EirL4YBUA1AnVop00000L,0] [APP: ReentryApplication] java.lang.RuntimeException: net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:[[+
    +C:\Documents and Settings\MISSP29\Application Data\JDeveloper\system11.1.1.1.33.54.07\DefaultDomain\testReport_1255015914097_607807.java:4: package net.sf.jasperreports.engine does not exist+
    +import net.sf.jasperreports.engine.*;+
    +....+
    It appears that the JAR file is not picked up at the runtime correctly. I tried a simple Main class with the same codes and JAR file added, it works fine. Does anyone know what I am missing within the ADF application?
    Any helps would be appreciated.
    Thanks,
    John
    Edited by: john wang on Oct 8, 2009 9:24 AM

    Timo,
    Thanks you for your prompt response.
    1. I checked The following folder (I assume this is where it supposes to be). The JAR file is there.
    C:\Documents and Settings\MISSP29\Application Data\JDeveloper\system11.1.1.1.33.54.07\o.j2ee\drs\ReentryApplication\ReentryApplication-ViewController-webapp\WEB-INF\lib
    2. I did not do anything about deployment descriptor. Since I run my application within JDev integrated WLS, I did not do anything about deployment setting. Do I need do something with deployment descriptor if I want to import additional JAR files here? With my experience with 10g, to add a JAR file within JDev, all I need to do is to add it through project properties ->libraries.
    3. I agree with your absolute path comment. This is a test of how JasperReport works with ADF application. I will work it out later.
    Thanks,
    -John

  • Jar File caching in temp directory problem

    Hello,
    I have a problem where the java plugin is caching jar_cache9999.jar (where 9999 is any number 0-9) files in the temp directory. I have tried following the directions for disk caching in the documentation, but these files are always created, never destroyed.
    I was wondering:
    1. Is there a simple setting that I could set that should resolve this problem? (un-setting "cache jars in memory" wouldn't seem to solve the problem as I would think that would only force the browser to use the same jar if it had already been loaded)
    2. Has this problem been corrected in later releases of the java plugin? I am using the jre1.2.2. When I looked at the problem here in the forums, the bug that was listed was listed as fixed.
    Thanks,
    Dan Hughes

    Hi,
    Java Plug-in has supported disk caching in previous versions by using the same cache the browser uses for all other web documents. This works for casual applet usage, but larger applets can often get flushed from the cache to make room for other documents since the browser has no knowledge that an applet file might be needed in the future. The result is that this caching strategy fails where is needed most in large business applets.
    From 1.3. the new feature is activated by including the new "cache_option" , "cache_archive" and "cache_version" values in the EMBED/OBJECT tag that specifies the use of Java Plug-in as below:
    <OBJECT ....>
         <PARAM NAME="archive" VALUE="...">
         <PARAM NAME="cache_option" VALUE="...">
         <PARAM NAME="cache_archive" VALUE="...">
         <PARAM NAME="cache_version" VALUE="...">
    </OBJECT>
    or
    <EMBED ....
         archive="..."
         cache_option="..."
         cache_archive="..."
         cache_version="...">
    For detail description please go through the following URL:
    http://java.sun.com/products/plugin/1.3/docs/appletcaching.html
    Hope this will help you.
    Anil.
    Developer Technical Support
    Sun Microsystems,
    http://www.sun.com/developers/products

  • Bridge CS5 using CS4 files cache problem

    If I use Bridge CS4 on a directory and subsequently open the same  directory with Bridge CS5, Bridge insistes on rebuilding thumbnails and  previews (as indicated on the bottom status line).    If I subsequently reopen the directory in Bridge CS4, it  again rebuilds thumbs and previews - however only thumbs seem to be rebuilt.   The Preferences in both versions  of Bridge are "identical".  The bridge cache files are maintained in the image directories.
    The cache construction seems to be quite fast (faster than anticipated) - I am not sure what, if anything, is being rebuilt.
    Is this an expected  operation?
    This presents some difficulties in that I  have 530,000 images (7 terabytes)  on Bridge CS4 and the reconstruction  of the files would literally take weeks to rebuild.

    as there supposed to be seperate programs and independant of one another this is surprising 'not'
    I have been onto adobe thru there support link regarding bridge issues and they
    advise to uninstall bridge cs4 using there ceanscript.
    well its a fiddly tool and no mention of just removing bridge cS4 it wants to remove cS4EXT too,
    which i'm not readt to remove, plugins etc......
    anyway, cant help, but there was a bridge CS5 patch released yesterday.
    i have noticed that some of issues no longer seem to occur
    so it may be wise to download it as it didnt auto download.
    also i have seen the same issue you state so your not alone.
    not sure whether the patch addresses the issue as ive only had it updated a few hours

  • JAR File ClassPath Problems

    i have this directory structure:
    deploy/
    deploy/program/
    deploy/program/(classes)
    deploy/program/subfolder/
    deploy/program/subfolder/(classes)
    from deploy i am jarring with the command:
    jar cfm Program.jar manifest.txt Program
    with the following manifest text:
    Main-Class: Program
    Class-Path: Program/ Program/subfolder/
    (new line with no space)
    my main class is called "Program"
    the classes in "Program" and "subfolder" are NOT in a package (they are "loose" classes)
    ive tried MANY different entries for the manifest classpath but get the same result:
    Exception in thread "main" java.lang.NoClassDefFoundError: Program
    please help!

    there are no packages because this is just a hack up demo with 15 or so classes.
    i thought itd be easy enough to jar this without adding packages. : /
    i could just throw them in one folder but this has become a battle of pride, lol.
    DrClap if I jar from the Program folder instead of Deploy with:
    jar cfm Program.jar manifest.txt *.class subdirectory
    and manifest:
    Main-Class: Program
    Class-Path: subdirectory/
    I get:
    Exception in thread "main" java.lang.NoClassDefFoundError: (subdirectory class)
    If I delete the Class-Path entry altogether I get the same Exception.

Maybe you are looking for