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

Similar Messages

  • 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
              

  • 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

  • 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

  • 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.

  • 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

    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

  • 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

  • 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!|#]

  • 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)
    ----------------------------------------------------------------

  • 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 ---
    >

  • Accessing a collection from outside of Apex without causing a HTTP redirect

    First, some background:
    I am running Apex version 2.2.1.00.04 on Oracle9i Enterprise Edition Release 9.2.0.7. IE 6 and Flash 9
    My Apex page contains two third-party Flash controls. Each Flash control uses a passed in URL to get the data that it will display. The data that I need to pass to the Flash controls is stored in an Apex collection created in my page.
    Using the technique outlined in the following posts,
    Re: Accessing Collection through a DBMS.job
    Re: Accessing application item value from database
    I have created a stored procedure that will attach to my Apex session and query the collection. See procedure get_data below.
    The URL that the Flash controls are passed is like this:
    http://myhost/pls/mydad/get_data?p_user=MYUSER&p_session_id=535622580488397200&p_app_id=2332
    The call to WWV_FLOW_CUSTOM_AUTH_STD.POST_LOGIN causes a HTTP redirect to the Apex at page p_app_id:1. The Flash control that initiated the request never sees the data stream that the get_data procedure is sending via HTTP.P. Instead, it sees the HTML produced by the Apex page at p_app_id:1.
    Now, my question:
    Is it possible to call the WWV_FLOW_CUSTOM_AUTH_STD.POST_LOGIN command in away that does not cause a HTTP redirect? If not, then is there another series of commands that will attach to an Apex session but not cause a HTTP redirect?
    Thanks,
    Ken
    CREATE OR REPLACE procedure get_data(p_user IN VARCHAR2,
    p_session_id IN VARCHAR2,
    p_app_id IN VARCHAR2) as
    BEGIN
    APEX_CUSTOM_AUTH.DEFINE_USER_SESSION(p_user,
    p_session_id );
    APEX_APPLICATION.G_FLOW_ID:= p_app_id;
    WWV_FLOW_CUSTOM_AUTH_STD.POST_LOGIN(p_user ,
    NULL ,
    p_session_id ,
    p_app_id||':'||'1' );
    FOR c_collection_rec IN (SELECT c001
    FROM APEX_COLLECTIONS
    WHERE collection_name='MY_COLLECTION')
    LOOP
    HTP.P(c_collection_rec.c001);
    END LOOP;
    END;

    Ken - No way to prevent the redirect attempt, that's what the procedure is built to do. To use it otherwise is aberrant. I think you could use an on-demand process (FOO) callable from the URL that would spit the data back out. You do this by defining an application process (on-demand firing point) and callling it from the URL ( f?p=APP:0:SESSSION:APPLICATION_PROCESS=FOO). If the cookie is passed in the request (meaning you've authenticated) and authentication check passes again in your process request, the process will produce the result stream.
    Scott

  • Dynamic Reloading - does it work?

    Hi,
    has anyone succeded to get class files reloaded dynamically?
    I need this feature very much, but can't get it working...
    The tutorial says to put the new files at
    <J2EE_HOME>/domains/domain1/applications/j2ee-modules/context_root
    but the 'j2ee-modules' directory is empty!!!
    Instead there is a 'backup' directory that contains another 'j2ee-modules' directory.
    I have tried both these directories, also tried using the .reload files but it doesn't work...
    Can anyone give me detailed instructions?

    RockGuy23,
    I had a couple questions for you. Since this thread has been live for a while, I have put them "in context".
    Hi,
    has anyone succeded to get class files reloaded
    dynamically?I have.
    I need this feature very much, but can't get it
    working...
    The tutorial says to put the new files at
    <J2EE_HOME>/domains/domain1/applications/j2ee-modules/c
    ntext_root
    but the 'j2ee-modules' directory is empty!!!Are you using directory deployment? (the asadmin's deploydir subcommand)
    If you are, you will need to put the dot-reload file into the Location of the web app.
    To verify the correct place to put the dot-reload, use the admin console.
    Select your web-app in the tree control on the left-hand side.
    The pane to the right has a Location field (fourth from the top). The dot-reload file needs to in the listed directory
    Instead there is a 'backup' directory that contains
    another 'j2ee-modules' directory.
    I have tried both these directories, also tried using
    the .reload files but it doesn't work...
    Can anyone give me detailed instructions?

  • Dynamically reloading a Global proerty in xMII

    I would like to reload a Global property dynamically reading from a config file whenever needed. To achieve this, I created a transaction 'ConfigLoader.trx'. this transaction was checking if this global property is already loaded and if not loaded, read the contents from the config file and assign it to this global property. After assigning this new value to the Global property, I am logging this global proerty. when I run the transaction, I see the new value in the log after the assignment.
    But it looks like the new Global property value is available only inside the current transaction. Other transaction (or when you rerun the same transaction second time) dont see this newly assigned value.
    Is it a bug in the xMII?
    Thanks,
    Sara

    Not exactly. 
    Actually, there are a few other techniques to keep "memory resident data", provided that you don't need it persisted to disk.  Obviously, if you want read/write values persisted to disk, a file or database makes the most sense anyway.
    That said, there's a cool capability by adding "tags" to an instance of the simulator connector that can be read/write.  These can be analog, discrete, or string values.
    In fact, you can actually store images and XML documents in there as strings.
    The elegant aspect of this is that you simply use Current and CurrentWrite modes in a tag connector to read/write them.
    The downside is that the values are not persistent, though if you were really creative, there's an undocumented and unsupported way to make that happen, since the simulator tag configuration file is, itself, an XML file...
    Also, I wrote an action block that provides (non persistent) global read/write name/value pairs.  If you want this, let me know.
    - Rick

  • 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.

Maybe you are looking for

  • Qty.difference in MB5S & MR11

    Hi All, We are facing one issue regrding above mentioned transactions. For certain PO we found that system is showing the Qty.difference (GR Qty. is more than Invoiced Qty.) whereas in MR11 system throws the error that there is no qty. difference due

  • A simple question: think of shutdown in solaris

    i'm a beginner in Solaris. i installed it as a guest OS in virtualbox. i found these commands: "shutdown, halt, poweroff, init." can't really shutdown the machine as a non-root user. However, i can just simplely click the button "Shut Down" to shutdo

  • GetCaretPosition and getWidth for ParmInputField

    Am I crazy? Or does getCaretPosition and getWidth for "ParmInputField" show "true length - 1" with the Sun's JVM (true to their other length functions) and "true length" in the Microsoft JVM. For example: The word "BIRD" returns a 3 from sun and a 4

  • Can movies be uploaded in Photo Stream?

    Can movies made on iPhone, iPad or any camera be uploaded to Photo Stream? I took a move with iPhone and it did not upload. Then I pushed movie from iPhoto to Photo Stream and it did not upload. Thanks

  • Recall a message from the JMS destination

    We are sending messages to a queue, using IBM MQ Series for messaging and JMS as the messaging system. Could you please let me know, if there is a way we can recall messages sent to the queue? Thanks, Jayashree.