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

Similar Messages

  • How to save file in users temp directory in java

    How to save file in users temp directory as "<Drive Name>:\Documents and Settings\<User Name\Local Settings\Temp".

    Shouldn't the System property "user.home" reference to that directory on windows? So if you call System.getProperty("user.home");, I think it should return that path at least up to <User Name>. I never really tried it on Windows though.

  • Extract JAR file to a different directory

    Is it possible to use the jar command to extract the content of a JAR file to a different directory (not the current directory)?
    I want to use this command inside a makefile, looking for the same effect as "unzip example.jar -d directory".
    Thanks in advanced.

    Thanks Chuck, you solved my doubt... It surprises me that JAR doesn't support this option.
    I used the "unzip" command inside the makefile instead, but I wanted to be sure that there wasn't any chance to use "jar" (without using the additional script file).

  • 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

  • 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 Extraction in different directory...

    Hi friends..
    i want to extract a jar file using a java program..but not in current directory..i want it to do in another directory..
    i tried it using exec(jarfilename,env var,filedirectory) ..but it is not working..help me..
    thanks..
    Krishna

    Hi Krishna,
    The following code will definitely help you
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.OutputStream;
    import java.util.zip.ZipEntry;
    import java.util.zip.ZipInputStream;
    * @author Snehanshu
    public class Main {
         * Extracts a zip file
        public void extractZipFile() {
            try {
                String zipFileName = "C:\\DEMO.jar";
                String extractedFileName = "C:\\extracted.txt";
                //Create input and output streams
                ZipInputStream inStream = new ZipInputStream(new FileInputStream(zipFileName));
                OutputStream outStream = new FileOutputStream(extractedFileName);
                ZipEntry entry;
                byte[] buffer = new byte[1024];
                int nrBytesRead;
                //Get next zip entry and start reading data
                if ((entry = inStream.getNextEntry()) != null) {
                    while ((nrBytesRead = inStream.read(buffer)) > 0) {
                        outStream.write(buffer, 0, nrBytesRead);
                //Finish off by closing the streams
                outStream.close();
                inStream.close();
            } catch (IOException ex) {
                ex.printStackTrace();
         * @param args the command line arguments
        public static void main(String[] args) {
            new Main().extractZipFile();
    }Change the "extractedFileName" as you want.
    :)

  • 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

  • .PFL files accumulating in Temp directory of SAPService SID

    Hi, i have a lot files .PFL in C:\Users\SAPServiceZZZ\AppData\Local\Temp, my system is a EHP6 FOR SAP ERP 6.0, i need to know if i can delete this files an know how to configurate the landscape to avoid this in a future, thanks for help me.

    Hi sriram,
    1, yes, the system is it MSCS.
    2. i dont know how verify this.
    3. .PFL file pasted
    thanks for everyting.
    # Global variables
    SAPSYSTEMNAME = EP2
    SAPSYSTEM = 06
    SCSID = 03
    INSTANCE_NAME = ERS06
    SAPGLOBALHOST = SVSAPEP1ERP
    DIR_INSTANCE = E:\usr\sap\$(SAPSYSTEMNAME)\$(INSTANCE_NAME)
    DIR_PROFILE = $(DIR_INSTANCE)\profile
    DIR_EXECUTABLE = $(DIR_INSTANCE)\exe
    DIR_CT_RUN = \\SVSAPEP1ERP\sapmnt\EP2\SYS\exe\uc\NTAMD64
    Autostart  = 1
    rdisp/enqname = $(rdisp/myname)
    enque/process_location = REMOTESA
    enque/enrep/poll_interval = 10000
    enque/enrep/HAResourcename = SAP EP2 03 Instance
    enque/serverinst = $(SCSID)
    enque/serverhost = $(SAPGLOBALHOST)
    enque/enrep/ha_dll = ensrepntha.dll
    # Global variables
    SAPSYSTEMNAME = EP2
    SAPSYSTEM = 06
    SCSID = 03
    INSTANCE_NAME = ERS06
    SAPGLOBALHOST = SVSAPEP1ERP
    DIR_INSTANCE = E:\usr\sap\$(SAPSYSTEMNAME)\$(INSTANCE_NAME)
    DIR_PROFILE = $(DIR_INSTANCE)\profile
    DIR_EXECUTABLE = $(DIR_INSTANCE)\exe
    DIR_CT_RUN = \\SVSAPEP1ERP\sapmnt\EP2\SYS\exe\uc\NTAMD64
    Autostart  = 1
    # Start sapcpe to copy executables
    _CP  = sapcpe.exe
    Start_Program_00 = immediate $(DIR_EXECUTABLE)\$(_CP) list:$(DIR_EXECUTABLE)\REPSRV.lst pf=$(DIR_PROFILE)\$(SAPSYSTEMNAME)_$(INSTANCE_NAME)_SVSAPEP1A
    # Start sapcpe to copy profiles
    Start_Program_01 = immediate $(DIR_EXECUTABLE)\$(_CP) list:\\$(SAPGLOBALHOST)\sapmnt\$(SAPSYSTEMNAME)\SYS\profile\$(SAPSYSTEMNAME)_$(INSTANCE_NAME)_SVSAPEP1A.lst source:\\$(SAPGLOBALHOST)\sapmnt\$(SAPSYSTEMNAME)\SYS\profile target:$(DIR_PROFILE)
    # Start SAP Replicator
    _RE  = enrepserver.exe
    Restart_Program_02 = local $(DIR_EXECUTABLE)\$(_RE) pf=$(DIR_PROFILE)\$(SAPSYSTEMNAME)_$(INSTANCE_NAME)_SVSAPEP1A NR=$(SCSID)

  • Can a unsigned jar file access the tmpdir (java.io.tmpdir)?

    Hello, according to the JNLP tutor, a signed jar file can access the local file system, but a unsigned one can not. My question is, can a unsigned jar file access the temp directory (the system property java.io.tmpdir)? I think the temp directory should be accessible even though it is part of the local file system.
    Thanks,
    LyLi

    no - unsigned application has no read/write access to the temp dir, but you can use the jnlp api to read and write files with the users permssion.
    see: http://java.sun.com/javase/6/docs/jre/api/javaws/jnlp/index.html for FileOpenService, FileSaveService, and ExtendedService.
    /Andy

  • Problem: Multiple jar files in Class-Path [ IOException: line too long]

    Hello Folks,
    I am trying to create a jar file using the following command:
    jar -cvfm mygrid.jar MANIFEST.MF -C grid-jar/ .
    My MANIFEST.MF file is as following:
    Manifest-Version: 1.0
    Main-Class: com.gridftp.INSPgridFTP
    Class-Path: lib/activation.jar lib/ant.jar lib/antlr.jar lib/axis.jar lib/castor-0.9.3.jar lib/cog-abstraction-common-2.0.jar lib/cog-abstraction-examples-2.1.jar lib/cog-certmanagement-1.0.jar lib/cog-certrequest-1.0.jar lib/cog-grapheditor-0.46.jar lib/cog-gridfaces-1.0.jar lib/cog-gridshell-1.0.jar lib/cog-jglobus-1.2-050621.jar lib/cog-karajan-0.31.jar lib/cog-provider-clref-gt3_0_2.jar lib/cog-provider-clref-gt3_2_0.jar lib/cog-provider-clref-gt3_2_1.jar lib/cog-provider-clref-gt4_0_0.jar lib/cog-provider-condor-2.0.jar lib/cog-provider-gt2-2.0.jar lib/cog-provider-gt2ft-1.0.jar lib/cog-provider-gt3_0_2-2.0.jar lib/cog-provider-gt3_2_0-2.0.jar lib/cog-provider-gt3_2_1-2.0.jar lib/cog-provider-gt4_0_0-2.2.jar lib/cog-provider-local-2.0.jar lib/cog-provider-ssh-2.0.jar lib/cog-provider-webdav-1.0.jar lib/cog-resources-1.0.jar lib/cog-setup-0.91.jar lib/cog-util-0.91.jar lib/commons-discovery.jar lib/commons-httpclient.jar lib/commons-logging.jar lib/concurrent.jar lib/cryptix32.jar lib/cryptix-asn1.jar lib/cryptix.jar lib/j2ssh-common-0.2.2.jar lib/j2ssh-core-0.2.2.jar lib/jaas.jar lib/jakarta-regexp-1.2.jar lib/jakarta-slide-webdavlib-2.0.jar lib/jaxrpc.jar lib/jce-jdk13-125.jar lib/jgss.jar lib/jug-1.0.1.jar lib/junit.jar lib/log4j-1.2.8.jar lib/mail.jar lib/puretls.jar lib/saaj.jar lib/wsdl4j.jar lib/xercesImpl.jar lib/xml4j.jar lib/xml-apis-1.1.jar lib/xmlsec.jar lib/xpp3-1.1.3.4d_b4_min.jar lib/xstream-1.1.1-patched.jar .
    The grid-jar directory structure is:
    | - com -- all classes are under this dir.
    | - lib -- all the required jar files are in this dir.
    There are 59 jar files in the lib directory. When I try to create the jar file, I get the following exception:
    jar -cvfm mygrid.jar MANIFEST.MF -C grid-jar/ .
    java.io.IOException: line too long
    at java.util.jar.Attributes.read(Attributes.java:356)
    at java.util.jar.Manifest.read(Manifest.java:167)
    at java.util.jar.Manifest.<init>(Manifest.java:52)
    at sun.tools.jar.Main.run(Main.java:124)
    at sun.tools.jar.Main.main(Main.java:904)
    Any idea, why do I get this exception? Is there any restriction as to how many jar files (or characters) can be there in the Class-Path value in the MANIFEST.MF file?
    Please help.
    Thanks,
    Ana

    use as the following way to resolve the problem:
    (1) use separate lines, to avoid too long a line for java package name lists
    (2) type a preceding space before each folloing lines, for example:
    Class-Path: ...jar ...jar ...jar
    ...jar ..jar
    ...jar ...jar
    ...jar ...jar
    Hello Folks,
    I am trying to create a jar file using the following
    command:
    jar -cvfm mygrid.jar MANIFEST.MF -C grid-jar/ .
    My MANIFEST.MF file is as following:
    Manifest-Version: 1.0
    Main-Class: com.gridftp.INSPgridFTP
    Class-Path: lib/activation.jar lib/ant.jar
    lib/antlr.jar lib/axis.jar lib/castor-0.9.3.jar
    lib/cog-abstraction-common-2.0.jar
    lib/cog-abstraction-examples-2.1.jar
    lib/cog-certmanagement-1.0.jar
    lib/cog-certrequest-1.0.jar
    lib/cog-grapheditor-0.46.jar
    lib/cog-gridfaces-1.0.jar lib/cog-gridshell-1.0.jar
    lib/cog-jglobus-1.2-050621.jar
    lib/cog-karajan-0.31.jar
    lib/cog-provider-clref-gt3_0_2.jar
    lib/cog-provider-clref-gt3_2_0.jar
    lib/cog-provider-clref-gt3_2_1.jar
    lib/cog-provider-clref-gt4_0_0.jar
    lib/cog-provider-condor-2.0.jar
    lib/cog-provider-gt2-2.0.jar
    lib/cog-provider-gt2ft-1.0.jar
    lib/cog-provider-gt3_0_2-2.0.jar
    lib/cog-provider-gt3_2_0-2.0.jar
    lib/cog-provider-gt3_2_1-2.0.jar
    lib/cog-provider-gt4_0_0-2.2.jar
    lib/cog-provider-local-2.0.jar
    lib/cog-provider-ssh-2.0.jar
    lib/cog-provider-webdav-1.0.jar
    lib/cog-resources-1.0.jar lib/cog-setup-0.91.jar
    lib/cog-util-0.91.jar lib/commons-discovery.jar
    lib/commons-httpclient.jar lib/commons-logging.jar
    lib/concurrent.jar lib/cryptix32.jar
    lib/cryptix-asn1.jar lib/cryptix.jar
    lib/j2ssh-common-0.2.2.jar lib/j2ssh-core-0.2.2.jar
    lib/jaas.jar lib/jakarta-regexp-1.2.jar
    lib/jakarta-slide-webdavlib-2.0.jar lib/jaxrpc.jar
    lib/jce-jdk13-125.jar lib/jgss.jar lib/jug-1.0.1.jar
    lib/junit.jar lib/log4j-1.2.8.jar lib/mail.jar
    lib/puretls.jar lib/saaj.jar lib/wsdl4j.jar
    lib/xercesImpl.jar lib/xml4j.jar lib/xml-apis-1.1.jar
    lib/xmlsec.jar lib/xpp3-1.1.3.4d_b4_min.jar
    lib/xstream-1.1.1-patched.jar .
    The grid-jar directory structure is:
    | - com -- all classes are under this dir.
    | - lib -- all the required jar files are in
    e in this dir.
    There are 59 jar files in the lib directory. When I
    try to create the jar file, I get the following
    exception:
    jar -cvfm mygrid.jar MANIFEST.MF -C grid-jar/ .
    java.io.IOException: line too long
    at
    at
    at
    at
    java.util.jar.Attributes.read(Attributes.java:356)
    at
    at
    at java.util.jar.Manifest.read(Manifest.java:167)
    at
    at
    at java.util.jar.Manifest.<init>(Manifest.java:52)
    at sun.tools.jar.Main.run(Main.java:124)
    at sun.tools.jar.Main.main(Main.java:904)
    Any idea, why do I get this exception? Is there any
    restriction as to how many jar files (or characters)
    can be there in the Class-Path value in the
    MANIFEST.MF file?
    Please help.
    Thanks,
    Anajust

  • JAR File problems

    Hello,
    I have a jar file with some code I wrote that accesses a jar file from a 3rd party. I want to include the 3rd party jar files inside my jar file. So I basially have a jar file with my code (unjarred) and include the 3rd party jar files in my jar. In my MANIFEST.MF file I have properly set the Main-Class property correctly, as well as the Class-Path property. I have set my Class-Path value to 3rdparty.jar which is the jar file at the root directory of my jar. When I run my jar file I get a NoClassDefFoundError saying the 3rdparty jar file is not found. I have added a new line at the end of my MANIFEST.MF file, and am actually using ant to create my MANIFEST.MF file. When I unjar my file everything looks correct. What is the problem here? I have made sure the 3rd party classes that my code access are in the jar. What could I be doing wrong??

    Standard Java does not support placing a jar file within another jar.
    You can search for 3rd-party alternatives, ow write your own custom classloader.

  • Intermittent problem deploying .jar files

    OC4J 9.0.2
    Seemingly random, I get this error when I deploy a jar file
    Auto-deploying MyJar.jar (No previous deployment found)... Error compiling
    MyOC4J/j2ee/home/applications/MyApp/MyApp.jar: Syntax error in source
    To deply a jar file I do the following:
    Copy the .jar file to /applications/MyApp/ directory
    Delete the contents of /application-deployments/MyApp/MyJar.jar/
    Start OC4J
    The only way around this I have found is to keep restarting OC4J until it works, so the same .jar file will sometimes work and sometimes not.
    I have copied the same .jar file to four different OC4J environments and have had one work and three fail. Then I restart the three and have two of those work and one fail. Then I had to restart that one three more times until it worked.
    Any ideas as of what might be happening??

    I just tried the command you mentioned to start OC4J but I still get that problem.
    It's really weird because I have had this process of deployments working for months with no problem, then all of a sudden it started acting up.
    I don't think anything has changed but there must be something. I just don't know where to look.
    any other suggestions?
    -Isaac

  • Can i prevend the generation of files in temp directory

    I noticed, that a labview (7.0) application generates different files in the temp directory when executed and deleting them when stoped.
    (Except of the *cur.txt and *log.txt files which only exists once per application)
    Is there a way to prevend LabView to write this files (lvtl*.rsc; lvtr*.rsc; *.tmp)
    I've got an application, which i have to kill (there's no other way at this moment).
    If i do so, the files still exist. I kill this application about once a minute.
    Because i don't end the application the regular way, the mentioned files still exist.
    As a result the temp directory runs full.
    Suggestions are appreciated.
    Best regards,
    Rainer
    P.S.: The Suggestion to regular stop the application does not help me of course ;-)

    Rainer,
    Nice question!
    There are different ways for doing this. Unfortunately no any "100% guaranteed" way (because its not documented by NI - which temporary files are created by LV app):
    So, first suggestion with deletion of all temporary files seems to be safety, because normally Temp directory must be empty. In case if some files currently used by other applications, they locked and you cannot delete them.
    Second way - change path to temp directory especially for your application. Just add tmpdir key into assotiated ini file:
    [app]
    tmpdir=C:\MyApp\Temp
    After that lvtl*.rsc; lvtr*.rsc will be created into this directory. You can safety delete these files after kill.
    (Note, that "*" is pid of your application)
    Third way - looking for all handles, which currently opened by your application. You can do this with some utilities, for example with Handle.exe from SysInternals.
    For example for my simple application following output was generated (some not important lines are skipped):
    Handle v2.2
    App.exe pid: 656
    cc: File C:\Temp\App_7.0_Administrator_cur.txt
    144: File C:\Programme\National Instruments\Shared\LabVIEW Run-Time\7.0\lvapp.rsc
    148: File C:\MyApp\App.exe
    1f0: File C:\Temp\nix2E5.tmp
    210: File C:\MyApp\Temp\lvtr656.rsc
    214: File C:\MyApp\Temp\lvtl656.rsc
    760: File C:\MyApp
    Now you can parse output and looking for all currently opened temporary files, then kill your your application and then safety delete tmp and rsc files. Note, that files lvtl*.rsc and lvtr*.rsc are located in "local" temporary directory as described in ini file, but nix*.tmp still in "default" directory.
    Hope it help a little bit...
    Andre.

Maybe you are looking for

  • How can i call java wedynpro application to SAP R/3?

    WDY_EXECUTE_IN_PLACE will helps to get the URL of ABAP Webdynpro Application. i want to get it Java Webdynpro Application which will develop NWDS. Thanks in Advance

  • Check box in ALV - how to remove line selectors?

    Hai All, I have to display sales orders in ALV grid. A check box shoud be displayed against each row. So if the user selects few sales orders & click on SAVE the data will be saved in custom table. The problem now is, I used the statement field_cat-E

  • How do I publish to Facebook the Captions for my pictures?

    I published an album to Facebook and the Title (picture number) instead of the Caption is showing up as a description.  The manual says to set the Facebook title using metadata, but I can't find the opportunity to make this selection.

  • MacBook Pro w/Retina has moving dead pixel (white)

    I recently purchased a MacBook Pro w/Retina and have an annoying issue that comes up from time to time. Once in a while a bright white pixel will appear in the middle of the screen. It stays put while it is there and I can drag screens around and not

  • Disable Exchange 2003 Mailboxes With AD Accounts En Masse

    Hello All, We are currently running Exchange 2003 - upgrading to 2010.  We have over 300 accounts that are innactive and looking to disable the AD accounts as well the associated mailboxes.  Does anyone have any advice on how to do disable both witho