Caching of old class files

Ok, I have a problem with oracle which appears to be that it is caching an old version of a class file. I get a class not found exception but the thing is the package that the error message is refering to doesn't even exist anymore and isn't refrenced in my code. I've verified that the class's being deployed aren't old versions as well and tried restarting the server as well as redployments of my application. Does anyone know where this caching maybe occuring? I know this happens sometimes in weblogic and you have to go in and manually delete the compiled class files from a weblogic directory.

Hi,
The caching of classes happens in the application-deployments/<you_application_name> folder. Just delete this folder and start OC4J.
Regards.

Similar Messages

  • How to clear old class files cached in JVM

    JVM stores old class files in its cache even after the corresponding files have been deleted from the database. This causes a conflict if a new file is saved with the same name as one that was deleted earlier causing old data to be fetched and not the new one.
    am using the following line of code to load the class file :
    Class.forName(className, false, this.getClass().getClassLoader())
    please help
    Thanks - N

    Why are you trying to do that?
    Dynamic Classloading(reloading) has a meaing only on "application container" like WAS.
    Not appropriate for normal applcation.
    Focus on enhancing your application logic and algorithm rather than wasting your brain on difficult and meaningless things. Applying some flexible design patterns wouldn't suffice?
    Anyway, Sun provides wonderful and simple custom classloader sample.
    http://java.sun.com/developer/onlineTraining/Security/Fundamentals/magercises/ClassLoader/help.html
    Anayzing tomcat source(which is downloadable) is another approach.
    Edited by: Dion_Cho on Nov 26, 2007 5:18 PM
    Typo...

  • Why is the application caching the old jar file

    Hi all
    I have an application that is caching the old jar file.
    even when i reboot.
    when the application starts up it appears to pick up the old jar file.
    any idea on how i can let it pick up the new jar file ?
    stev

    I'm pretty sure that it is just this one .jar file.
    You see I changed a Servlet class in the jar file and messed up the application.
    Now I'm putting back the old jar file and guess what
    it's somehow hanging on to this old servlet class. and showing the same error. What is unique is that I did the same thing on another PC a server edition and it let go of the old Servlet with no problem
    but on my PC a professional edition it is hanging onto that old Servlet even though I deleted every instance of it on the PC , shut down the PC and restart the app. I even deleted the old jar file from the recycle bin. the jar file has a very distinct name so i can easily search for it and
    This app uses tomcat as well - not that that's related.
    I have had this problem happen to me before at home with applet. I would change something and it would just hang on to it forever.
    Anybody has any idea how to go into the registry or some other place and get rid of this servlet class or jar file ?
    stev

  • Tomcat Web-server uses old .class files

    Hi Friends,
    My Tomcat webserver uses old .class files. The problem persists even if I delete old class files. The new ones are formed but then if i again recompile, the new-old ones are used :)
    Am I doing something wrong????
    Please suggest!!

    I have experienced this problem before as well. Tomcat seems to cache compiled class files for better speed. To get Tomcat to reload class files that I've recently recompiled here is what I do:
    1. Go into the Tomcat server administration area (http://localhost/admin)
    2. Choose the context that is using the classes that you want to reload (from Service / Host)
    3. Make sure reloadable is set to true
    3. Click save, and then commit changes
    Hope this helps, but if there is a better way to get Tomcat to use the most recent class files I would love to hear it!

  • My server still taking old class file

    Hi,
    I have got a J2EE application.
    In that I have to modify a Java file.
    I made the required changes and check it in the local test environment and find that it is working fine and the changes are reflecting in my application.
    Then I copied the class file in the main server and deploy the server(i m using oracle9i server) .
    After successful depletion ''THE CHANGES WERE NOT REFLECTED IN THE APPLICATION ".
    I found the latest class file is copied in the application(checked the class file using D-Complier).
    MY PROBLEM IS : WHY THE SERVER IS NOT TAKING THE LATEST CLASS FILE ??
    IS THERE ANY PROBLEM OF WEB-CACHING ??
    kindly advise how can i rectify it.
    keep smiling.....
    Debasis

    The last response is correct. You have to stop the server and start it again to reflect the changes in the class file. Only the JSP files can be changed dynamically while server is running as the container compiles it if there is any change in the file. All other files need a server restart.
    Thanks

  • Java running old class file

    When I make a change to a Swing program and compile, it runs the old version, as if the changes were never made. Any ideas?
    I make a new directory and copy the java file, re-compile and it works...but I don't want to have to do that every time.
    Dan

    If you have like
    class1.java
    class2.java
    class3.java
    class1.class
    class2.class
    class3.class
    then make changes to class1.java and class2.java, then run javac class1.java, it will see that class2.class exists so it won't bother to recompile class2.java, either delete all the classes or do javac *.java
    Shish

  • Strange Behavior with Old Class

    I had an RMI application that I started over a ssh session and then I started the client from another window. We had a network issue that dropped the connection to the server and now when I restart the server it is continuing to run the old code. I removed the jar that I was running on and put a new one out there. The class files are nowhere else on the server but I can only get new code to run by changing the class names. if I use the same name it is using the old class. I know this because of some debug statements.
    Is it possible that the JVM has cached the old class in memory and is still using it whenever I call it? I looked for any java processes running on the server and killed them but it still happens. Do I have to bounce the server itslef? Can someone tell me what may be going on?

    Check the RMI Registry, this will cache the class and send it over the network so clients get a copy from it.

  • Overwrite class files

    Hi all;
    I have a question about the class files. Let's say that I have some errors when I compile the code. I make the corrections and recompile the code again. However, for some reason the new class files are not overwriting the previous ones.
    Therefore every time I compile the code I have to go to the file manager and delete the old class files.
    I am sure this a very basic problem. Has anybody got an idea. Is is because of the class path?
    Thanks in advance

    Thats queer... if the class is an applet then it could be that the JVM has not loaded the updated version. I know that when I make applets, I have to close all the internet windows usually to shut down the java plugin console and jvm. Then I recompile with my changes and then reload the applet, it's a slow process, but it works.
    In the case of a regualar Java program I'd suggest checking out settings in Windows, as javac.exe replaces without notice or conformation on its own. Or maybe the files are going somewhere else? Anyways, that sounds more like a Windows setting thing if it's doing it with an application.

  • Flash player caches external class files

    Hi I work for a technology company in San Antonio and we use
    flash for developing interactive course ware. We use a flash shell
    which loads the separate pages of our lessons and have noticed a
    very big problem with the way the flash player caches class files.
    Basically it seems that when you use the 'import' call in
    actionscript the flash movie doesn't import the external class if
    it has already been loaded. the problem is that we have a huge
    amount of developed classes, many of which have been updated
    throughout our development. Is there any way for force clear the
    ASO cache in actionscript or force import external actionscript
    classes?

    Yes we know and use the delete aso files feature all the
    time. this however is a runtime problem. meaning that the flash
    player itself is caching class files and there is no way to get it
    to refresh these links without doing a forced refresh of the shell
    itself. this is something that is not an option as it doesn't allow
    for fluid page loading. Is there any way to force reload/import
    class files that have already been loaded, that is clear the
    class/aso cache in the flash player itself using actionscript
    code?

  • Stop IE caching  .class file

    When I recompile a .java file, IE6 does not see the changes unless I go to Tools-Internet Options- General Temporarily Internet Files - Delete Files. I guess it cached the .class file dispite the browser is set to look for new version of a page every visit to a page.
    How can I stop it caching the .class ?

    Thank you.
    The resource you mention, begins with:
    "Java Plug-in extends the functionality of a web browser, allowing applets or Java Beans to be run under Sun's Jave 2 runtime environment (JRE) rather than the Java runtime environment that comes with the web browser."
    If I understand it correctly, for testing applets I should rely on the Java runtime environment that comes with the web browser, rather than on Java Plug-in which are not necesarily installed on my visitor's computer.
    How can force the browser to use only the Java runtime environment that comes with the web browser?

  • JWS is not automatically reload the class files

    Hi,
    My problem is whenever i deploy new code in the server, My client JVM is not taking the updated code. It uses the old classes from the JVM cache. How to solve this poblem? can anyone help me :)

    >
    My problem is whenever i deploy new code in the server, My client JVM is not taking the updated code. It uses the old classes from the JVM cache. How to solve this poblem? >Time stamps on servers can delay download. The new code will not run until the time after it is downloaded (and the program is restarted). Otherwise I have found automatic update to be quite reliable.
    Have you checked that your JNLP file is valid? What is the URL of the launch file?

  • I/O error trying to open old AW files

    I have hundreds of old Appleworks files from an older version (5.0) and when I try to open them with my new Intel based iMac using Appleworks 6.2.9 it says
    " An I/O error occurred".
    All I'm trying to do is open the file - not print or anything else. I can't figure it out.
    Need help.
    Larry
    imac   Mac OS X (10.4.8)  

    Yvan Koenig has said he has some AppleWorks 5 files fail to open in AppleWorks 6 with the I/O error. I've never had a problem opening any AppleWorks 5 files whether they were created on a Mac or PC.
    Are you sure that some of these files aren't ClarisWorks 4 or earlier files? AppleWorks 6.2.9 (the current version) can't open all ClarisWorks 4 or earlier files & gives an I/O error. There doesn't appear to be a way to predict which files will cause problems. I've had it happen & not happen with all AppleWorks file types. These files can be opened by any other version of AppleWorks 6.
    I'm not clear if it's one file or all of the files you can't open. If it's just one or a few, I'd think there is some corruption in the file. If it's a lot (more than half) & you're sure they are AppleWorks 5 files, some basic troubleshooting might help.
    First step, delete the AppleWorks 6 preferences as they may be corrupt, particularly the translator cache. See my user tip, AppleWorks has stopped working correctly, for more info.
    Did you move these files from one Mac to another using a USB flash drive or other removable device? If the device is PC-formatted, some information in the files may have been lost in the transfer. Another user tip addresses this problem - AppleWorks 6 won't open my AW 5 files.
    I'd be willing to take a look at two or three of these problem files for you & see if I can figure out where the problem is. E-mail them to me with a subject line of "I/O errors." Just click my name in blue next to this post. My public e-mail address is in the biography section.

  • How do I find out if a class file has deprecated functions

    Currently I'm having problems with a old Visual Cafe class.
    It is definately using deprecated awt funcions.
    My question is..
    1) Without the source code how do I find out what deprecated functions the CLASS file is using.
    2) Has any deprecated class been truly scrapped ? If so, I cannot find
    it in the JDK API documentation or the java.sun.com search engine..

    Here is what I did, to answer your question. I unzipped the symantec jar and used a decompiler (JAD works fine, or cavaj) to create an entire src tree (you can do this with 1 command). Then, compile using your target version of Java. There are well over 100 warnings (with -deprecation on) ranging from Cafe's use of awt.Component methods (mostly), Thread.suspend in their Timer class, to the use of java.util.Date in their Calendar component.
    Cheers!

  • Developer class files are downloaded every time

    The jinit jar files are being cached. However the developer class files are being downloaded everytime. I’ve written other web aps where classes were downloaded only once - there is a way for classes to only download once and then automatically download when changed / added – similar to jinitiator – that is critical – just can’t expect a user to repetitively wait a few minutes to use an ap.
    Installed versions are:
    Java 2 Runtime SE v1.4.1_07
    Java 2 SDK, SE v1.4.1_05
    Microsoft IE 6 SP1
    Oracle JInitiator 1.3.1.17
    Microsoft Windows 2000 [Version 5.00.2195]
    Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
    Forms server 6i patch 16
    Web server 9iAS rel 1

    George,
    Forms files (jar) are cached and only checked for its timestamp. There are a few classes that are accessed directly and I don't know why - I think one of the EWT classes if i remember well. So 99.99 % of all files are cached.
    Frank

  • Missing class file for extended controller

    Any response/advice is greatly appreciated.
    I've searched the forums, and I saw some had this error, but the post wasn't resolved. We are on 12.1.3. I've done this plenty of times when we were on 11.5.10 with great success. I've personalize a page to look at my extendedController, bounced apache:
    adapcctl.sh stop
    adoacorectl.sh stop
    adoacorectl.sh start
    adapcctl.sh start
    Web page brings up:
    oracle.apps.fnd.framework.OAException: oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.classloader.util.AnnotatedNoClassDefFoundError, msg= Missing class: emsc.oracle.apps.emscper.dor.webui.ExtDocsOfRecordUpdateCO (wrong name: ExtDocsOfRecordUpdateCO) Dependent class: emsc.oracle.apps.emscper.dor.webui.ExtDocsOfRecordUpdateCO Loader: oacore.root:0.0.0 Code-Source: /demsci/applmgr/common/java/classes/ Configuration: <library> in /demsci/applmgr/common/webapps/oacore/
    Verified spelling, ensure class file is where it is suppose to be:
    $ echo $JAVA_TOP
    /demsci/applmgr/common/java/classes
    $ echo `pwd`
    /demsci/applmgr/common/java/classes/emsc/oracle/apps/emscper/dor/webui
    Created new /dor/webui directory as user applmgr.
    $ ls -ltr $JAVA_TOP/emsc/oracle/apps/emscper/dor/webui
    total 9
    -rw-r--r-- 1 apdemsci aademsci 3243 Nov 28 18:26 ExtDocsOfRecordUpdateCO.java
    -rwxrwxrwx 1 apdemsci aademsci 3710 Nov 28 18:26 ExtDocsOfRecordUpdateCO.class
    ClassPath has the $JAVA_TOP listed:
    /demsci/applmgr/common/java/classes
    Thanks

    I moved the extended class to the standard directory: $JAVA_TOP/oracle/apps/per/dor/webui
    Recompiled it there
    From Functional Administrator, changed the path of the extended controller to the standard path:
    oracle.apps.per.dor.webui.ExtDocsOfRecordUpdateCO
    Bounced apache/cleared cached.
    Received the same error, very strange....
    Missing class: oracle.apps.per.dor.webui.ExtDocsOfRecordUpdateCO (wrong name: ExtDocsOfRecordUpdateCO) Dependent class: oracle.apps.per.dor.webui.ExtDocsOfRecordUpdateCO Loader: oacore.root:0.0.0 Code-Source: /demsci/applmgr/common/java/classes/ Configuration: <library> in /demsci/applmgr/common/webapps/oacore/
    Verified the class file is there and it is where it is suppose to be:
    $ pwd
    /demsci/applmgr/common/java/classes/oracle/apps/per/dor/webui
    you have mail in /var/spool/mail/apdemsci
    $ ls -ltr ExtDocsOfRecordUpdateCO.class
    -rw-r--r-- 1 apdemsci aademsci 3710 Nov 29 15:29 ExtDocsOfRecordUpdateCO.class
    Makes no sense...
    For your other point, I don't want rename the subdirectory since we have other extensions dependent on the path name.
    Thanks

Maybe you are looking for

  • Problem with Applet for Microsoft VM

    Hi there! I implemented an applet (first for SUN JVM 1.4.1_02) that has to communicate with a servlet via serialized objects. Therefore the applet sends a request and expects the response : //establish connection URLConnection l_con= l_url.openConnec

  • Schedule Job and Read Spool

    Hi Guru's, my requirement is 1.I need to run one standard program 3 times with 3 diffrent selection's. 2.the resultant 3 diffrent ouput will be displayed in only ONE output. ( the prgram should have the capalibilty to ceate 3 diffrent jobs simulateno

  • How can I get FINAL DRAFT program from MAC to a PC

    I tried the partition thing on external western digital drive,and it didn't work. Am trying to get the program of Final Draft, the program or whole folder, from macbook pro to send it to a pc netbook with windows starter 7. How can you do this?? I sa

  • Using MXP (package) files in Flex?

    So, many of components and code libraries of different kinds and flavours get distributed in the lesser known MXP format, which many believe makes for "ideal" distribution. My problem is I am a skilled ActionScript/Flex/Flash developer who not always

  • Anyone else having freezing issues with the new photo app on yosemite?

    Whenever i send a pic or video directly from photos....it kinda freezes and won't let you do much more. I have to force quit every time