IAS Dynamic Reloading doesn't reload related classes!

Hi,
I am trying to configure dynamic reloading on the development machine [on
Solaris 5.8] in order to get servlets and classes invoked by those servlets
updated dynamically without having to restart the process. What I'd done was
setting the SYSTEM_JAVA/Versioning/Disable value to 0, according to the
Appendix B in Programmer's Guide.
Dynamic reloading works fine for individual servlets but not the classes
that the servlets invoke. I'd tried putting those classes name as
GX_VERSIONABLE value, but it still didn't work.
Are there any ways that I can get those classes dynamically reloaded along
with the servlets? This will greatly save time for our application
development.
Any help would be really appreciate.
Phatrakom S.

Not that it will be of great help, but I am also unable to dynamically reload a standard class, only those that are of type servlet.

Similar Messages

  • Dynamically reloading recompiled class files

    How can I configure standalone OC4J to automatically reload class files compiled to WEB-INF/classes without restarting the server? I have tried different settings in orion-web.xml (development="true", added classpath, search-local-classes-first="true") but nothing seems to work.

    I think this bug (3473628) has to do with something different than what I am referring to. It deals with JSP files located under WEB-INF not compiling (which is a non-standard location for JSP files anyway).
    The behavior I am looking for is: if I change a Java source class (e.g., a bean class) and recompile it to WEB-INF/classes, I want the server (OC4J) to notice that a new .class file for my bean now exists, unload the existing class file, and load the new one into the VM, without restarting.

  • Disabling dynamic reloading

    Hi, i'm using iWS 6.0 SP2 on solaris 8 and i don't know how to disable dynamic reloading of classes. I have tried to set the reload-interval parameter to a negative number, to set the class-loader classpath parameter to "", but it still reloads the classes.
    The only thing i can think of is setting the reload-interval to a huge number, but there must be another way.
    Juan

    It's always Microsoft who gets blaimed ;-)
              First, I am almost certain that any OS will not let you copy a file if there
              is an opened file descriptor of the file owned by some other process.
              Second, luckily the class loader code that handles this is pure Java, so it
              takes advantage of garbage collection here: if there is a live reference to
              an object, it's not going to be freed under you.
              Hope this helps.
              -ruslan
              Andy Nuss wrote:
              > Hi,
              >
              > Question concerning dynamic reloading, as regards the property:
              > weblogic.httpd.servlet.reloadCheckSecs=xxx
              >
              > While the NT OS is copying the file, rewriting the class file which was
              > previously there, is the dynamic class loader smart enough to figure out
              > that the bytecodes where in the middle of being copied, hence in an
              > inconsistent state, or does it crash?
              >
              > Thanks,
              > Andy
              

  • Dynamic reloading - jars

    Hi,
    We have some jars (not listed in the modules.xml) in our ear, from which we want to be able to dynamically reload some classes during development.
    Is there a way to expand these jars during deployment, so that we can use the regular dynamic reloading mechanisms?
    We use sun app server platform edition 8.1.
    Thanks,
    Ronny.

    But in the original question, there are some external jars which are not part of the ear and therefore not exploded as part of the deployment.
    I assume these jars are module jars (ejb, war etc) instead of the library jars? For library jars, you probably can just copy the jars to the exploded location and then reload.
    For module jars, our current .reload function won't try to explode those jars and redeploy them...

  • Dynamic Reloading of Web Applications

    Should I be able to trigger dynamic reloading of web applications by "touching" the related web.xml file? It doesn't appear to work under Win2K server, JWS 6.1 SP4.
    When I "touch" a related servlet class file under the WEB-INF directory, it seems to trigger reloading of all applications under that virtual server. Is that expected behavior?
    Is there any other method of triggering dynamic reloading of web applications?

    I have not really tested in in V6.1 but in V6.0 it was possible to add the line into web-apps.xml file with the following:
    <class-loader reload-interval="XX"/>
    where XX is seconds between reloads. i.e. 3600 to reload every hour.
    In V6.1 that setting is in server.xml
    and is called "dynamicreloadinterval". You can try playing with it. But as I said I have not really tested how that works...
    Regards,
    Sasha aka ttalex

  • Ejb dynamic reloading

    Hello
    I read about ejb dynamic reloading in a few places in ias documentation and
    i have the following quastions:
    - what will happen if i change deployment descriptors of ejb?
    - what will happen if i change some other classes like value object classes
    or other helper classes?
    - what will happen if i change remote or home interface of ejb?
    Does dynamic reloading work in that sytuation?
    I also found that I have to call create method for stateless session bean
    and entity bean to reflect the changes of dynamic reloading. Is it true?
    Artur

    Hi Artur,
    Please find answer inline.
    Artur Kaszczyszyn wrote:
    Hello
    I read about ejb dynamic reloading in a few places in ias documentation and
    i have the following quastions:
    - what will happen if i change deployment descriptors of ejb?
    - what will happen if i change some other classes like value object classes
    or other helper classes?
    - what will happen if i change remote or home interface of ejb?
    Does dynamic reloading work in that sytuation?
    Dynamic reloading works fine if you change only in Bean Implementation
    class. It does not support change in Home, Remote Interface or any other
    helper class.
    I also found that I have to call create method for stateless session bean
    and entity bean to reflect the changes of dynamic reloading. Is it true?
    Yes it's absolutely correct.
    Thanks
    Deepak

  • Dynamic reloading in iWS 6.0 causes my http session to be lost

    Hi,
    I have a problem with dynamic reloading in iWS 6.0 Sp2 on Solaris 8. I have not set the reload-interval for the class-loader, in fact i haven't included anything related to the classloader in the web-apps.xml file.
    The default behaviour is observed, the classes are reloaded every 30 seconds. So far, so good.
    I have seen that if a change a class, iWS reloads the entire application, destroying all the servlets in it. This destroys my HTTP session.
    The same behaviour is observed in a redeployment, and in a reloading of config files.
    Is there any way of avoiding this?
    Thanks.
    By the way, could anyone describe the classloader architecture of iWS.
    Juan

    Scott,
    Does the problem only occur on MSIE clients? Do this work properly on Communicator? If so, you may be running into a problem with how MSIE determines the maxage for a cookie.
    The criteria that IE uses for creating a new session is the length of time that a session has been alive. For this reason, when a user tries to connect to a web application on the iWS webserver through IE, the time on the client server and on the webserver must be set correctly. Otherwise, the user could experience problems with session data getting lost or discarded by the client.
    This problem does not occur on Netscape browsers, as Netscape browsers set the cookie using the client-side clock and the maxage sent by the server.
    Refer to this technote and see if the helps:
    http://knowledgebase.iplanet.com/ikb/kb/articles/4704.html

  • How to use dynamic reloading un SUN AS 8.1 ?

    Hi
    I have enabled dynamic reloading, but it doesn't work for me.
    Maybe I am copying class to a wrong directory ?
    I have modified a class and copied it to
    c:\Sun\AppServer\domains\domain1\applications\j2ee-modules\MyWEBApp\WEB-INF\classes
    but server deosn't reload it.
    I need to restart the server to have that class reloaded.
    Why ?

    Hi
    When I create .reload or update it's timestamp in
    c:\Sun\AppServer\domains\domain1\applications\j2ee-modules\IDEGATransactionGateway\.reload
    then AS tries to autodeploy the application and it fails, because I already have an application with such name.
    Isn't that strange ? Does this reload thing work for someone ?
    [#|2005-06-03T13:34:47.437+0300|SEVERE|sun-appserver-pe8.1_01|javax.enterprise.system.tools.deployment|_ThreadID=19;|Exception occured in J2EEC Phase
    com.sun.enterprise.deployment.backend.IASDeploymentException: Deployment Error -- Cannot deploy IDEGATransactionGateway. The name is already registered to a different type of Module or App: Web Module. If you want to deploy this Module or App either (a) change the name or (b) undeploy the other Module or App first.
         at com.sun.enterprise.deployment.backend.Deployer.checkRegisteredAnywhereElse(Deployer.java:412)
         at com.sun.enterprise.deployment.backend.ModuleDeployer.setDeployCommand(ModuleDeployer.java:936)
         at com.sun.enterprise.deployment.backend.ModuleDeployer.begin(ModuleDeployer.java:239)
         at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestPrepare(ModuleDeployer.java:105)
         at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:112)
         at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:71)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:633)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:185)
         at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsConfigMBean.java:519)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:302)
         at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:357)
         at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
         at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
         at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
         at $Proxy1.invoke(Unknown Source)
         at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:272)
         at com.sun.enterprise.deployment.autodeploy.AutoDirReDeployer.invokeDeploymentService(AutoDirReDeployer.java:82)
         at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployModule(AutoDeployer.java:485)
         at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployWarModule(AutoDeployer.java:433)
         at com.sun.enterprise.deployment.autodeploy.AutoDirReDeployer.redeploy(AutoDirReDeployer.java:56)
         at com.sun.enterprise.server.StandaloneWebModulesManager.reload(StandaloneWebModulesManager.java:158)
         at com.sun.enterprise.server.ReloadMonitor.run(ReloadMonitor.java:296)
         at java.util.TimerThread.mainLoop(Timer.java:432)
         at java.util.TimerThread.run(Timer.java:382)
    |#]
    [#|2005-06-03T13:34:47.437+0300|SEVERE|sun-appserver-pe8.1_01|javax.enterprise.system.tools.deployment|_ThreadID=19;|"DPL8011: autodeployment failure while deploying the application : Deployment Error -- Cannot deploy IDEGATransactionGateway.  The name is already registered to a different type of Module or App: Web Module.  If you want to deploy this Module or App either (a) change the name or (b) undeploy the other Module or App first.
    "|#]
    [#|2005-06-03T13:34:47.437+0300|INFO|sun-appserver-pe8.1_01|javax.enterprise.system.core|_ThreadID=19;|CORE5003: [IDEGATransactionGateway] failed to reload!|#]

  • Reloading support classes in a web-app?

              Hi,
              I had previously been successful in compiling classes
              to a directory which was specified in the weblogic.properties
              file as the weblogic.httpd.servlet.classpath. If a class
              were recompiled, the updated .class file would be reloaded.
              However, now we're adhering to the java web application hierarchy,
              where weblogic.httpd.servlet.classpath doesn't apply. Is
              there a way of specifying a directory which should reload
              updated ,class files?
              Thanks,
              j.joseph
              

    You should not put application scope objects in your session regardless of
              its size (which session would you put it in anyways?). Put it in your
              application scope servlet context, which is available to all JSPs and
              servlets. You can do more fancy things but this should be okay.
              Tinou Bao
              www.tinou.com
              "Zaska" <[email protected]> wrote in message news:3b169cff$[email protected]..
              >
              > Hi,
              >
              > I have a situation where I must read data from the database when a web
              application
              > starts. I should store that data somewhere (not to session object, because
              it
              > might grow to large). What could be a good place to save a big object
              containing
              > data which is afterwards retrieved from allmost all JSP/Servlets in the
              same application?
              > I can use database only once, when the application is loaded.
              > Br -z
              >
              

  • How to configure Dynamic Reloading?

    The Java Developer's Guide of iAS 6.0 describes the Dynamic Reloading
    feature can be turn on/off by the registry entry:
    SYSTEM_JAVA\Versioning\Disable
    Would you mind let us know the full path of this entry? We cannot find
    it from kregedit.
    Thanks!
    Angus

    \\SOFTWARE\\iPlanet\\Application
    Server\\6.0\\CCS0\\SYSTEM_JAVA\Versioning\Disable
    Angus Yiu wrote:
    The Java Developer's Guide of iAS 6.0 describes the Dynamic Reloading
    feature can be turn on/off by the registry entry:
    SYSTEM_JAVA\Versioning\Disable
    Would you mind let us know the full path of this entry? We cannot find
    it from kregedit.
    Thanks!
    Angus

  • How to config dynamic reload in websphere

    I would like to update the web.xml without the server stops or only restart the application, how to achieve that? In addition, how can I configure the dynamic reload in Websphere? I only select the Reload Enable checkbox in the console, but it seems it doesn't take effect..

    I've not used Websphere but I think the 'Reload Enable' would probably refer to the reloading of servlets on change ( which is normally disabled meaning you have to restart in order to load a new, modified instance of a servlet )
    When you change your DD ( web.xml ) you have to redeploy your app. But most production level servers allow you to do a 'hot' deploy meaning you can manage your apps ( deploy/ start/ stop ) without affecting others or restarting the server. You'll have to look up how this is done for Websphere.
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • Dynamic Reloading

    Well, after a lot of questions and a loft of responses, i can't restart my webapps automatically.
    Now, i'm working on the FCS/final release and the problem is the same.
    I enabled dynamic reloading in the Applications Page,
    I created a file .reload at the root of my webapps.
    I modified the reload to change the date...nothing append.

    Hi.
    When you say that you "modified your .reload at the root of your webapps", are you saying that you have only one .reload for all of your webapps. That would be a mistake.
    Make sure that you have a .reload at the root of every deployed web application that you need to enable reloading.
    Make sure you read the chapter that discusses dynamic reloading in theGetting Started Guide (which ships wit hthe server and is also available at http://docs.sun.com/db/doc/816-7146-10 )
    Thanks,
    - deepak

  • Dynamically reload xml file

    hi
    What is the technique for dynamically change a xml source file (without changing the structure) for use with jdbc XML driver ?

    see https://bugs.eclipse.org/bugs/show_bug.cgi?id=27980
    Per Digre wrote:
    > I need to dynamically set editor file extensions from a preference page.
    > However I do not find any APIs to do this. It seems like it has to be
    > loaded from the plugin.xml when the plugin initializes.
    >
    > One thing I thought of was following..
    > 1. Create a add-on plugin just for the file extensions.
    > 2. Manipulate the add-on's "plugin.xml" with new file extensions
    > 3. Dynamically reload the add-on plugin to make the new extensions take
    > effect
    > Please stop me if I'm out of my mind!
    >
    >
    > --- Per ---
    >

  • How to reload Properties class

    Hi,
    I am using the following code to reload ResourceBundle.
    Now I have decided o switch from ResourceBundle to Properties.
    I would liek to know the modifications needed in this code to reload Properties class.
    When I use the same code I am getting NoSuchFieldException when the method 'getDeclaredField("cacheList")' is called.
    Class<Properties> type = Properties.class;
    Field cacheList = type.getDeclaredField("cacheList");
    cacheList.setAccessible(true);
    ((Map)cacheList.get(Properties.class)).clear();
    Please help.
    Thanks in advance,
    Neelambary

    Why don't you just use clear() and load(InputStream)?
    regards
    slowfly

  • Reload a class

    Hi,
    In my application I need to modify a specific class and recompile it. After recompilation is necessary to reload the class (the recompilation is done in the same folder, the folder is in classpath). The problem is that classloader load the same class, NOT the new version. I don't know very much about classloaders...
    Is there a way to fix it? (I can't remove the compilation folder from classpath)
    My code is shown below,
    Thanks!
    Andr�
    protected Class loadSuiteClass(String suiteClassName) throws ClassNotFoundException {  
    URL[] urls = null;
    try {
    // Convert the file object to a URL
    String path = getMyApplicationPath();
    File dir = new File(path);
    URL url = dir.toURL();
    urls = new URL[]url;
    } catch (MalformedURLException e) {
    try {
    // Create a new class loader with the directory
    ClassLoader cl = new URLClassLoader(urls);
    // Load in the class
    Class cls = cl.loadClass(suiteClassName);
    return cls;
    } catch (ClassNotFoundException e) {
    return null;

    Hi,
    In my application I need to modify a specific class
    and recompile it. After recompilation is necessary to
    reload the class (the recompilation is done in the
    same folder, the folder is in classpath). The problem
    is that classloader load the same class, NOT the new
    version. I don't know very much about classloaders...The class must NOT be in the class path.
    You MUST use a new class loader instance each time you want to reload it.
    You must NOT hold on to any instances of the old class when you reload it (this is best done using a proxy.)
    Presumably you are using an interface or abstract/parent class everywhere in your code that you use the object. If you explicitly use the name of the class anywhere then the system class loader will load it (which is why it must not be in your class path.)

Maybe you are looking for

  • Question on SNP

    Hi gurus pl give me answers. 1     The Following Can be done in SNP A     Cross Plant Mid-Term rough cut bucket oriented planning B     Simultaneous material and capacity planning C     Detailed Planning D     Prioritization of demand & receipt 2    

  • PLEASE HELP ! While updating My Xperia Z1 , my pc hanged during the process and .

    While updating My Xperia Z1 , my pc hanged during the process ( so , installation of update was interrupted , guess it's same as getting your USB connection disconnected )and now the phone won't turn on . Its shows the Sony Xperia logo , then shows a

  • Blank form fields with data?

    I've created a form in Acrobat and sent it to a few people to test. When they send it back to me, some people say even though they saved their data, when it's previewed in their browser (email) it looks blank. When I receive forms sent back to me, th

  • How to use the One-to-One mapping in Java Code

    Dear all: I have set the direct mapping and named query, and have written web service of login. I can login successfully. Now,I want learning about One-to-One mapping. I have setting the One-to-One mapping, then what can I do latter? I do not found a

  • How do I replace a file?

    Hi Guys, This is my first time to post a question so please bear with me. I recently got done editing a set of shows for a client. They're standard 28:30 show with lots of Graphics, lower thirds and Full Screen Graphics, many of which have the client