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

Similar Messages

  • 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 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 AM agent with websphere app server which binded http server??

    Hi, thanks for your concern.
    I am configuing AM policy agent with websphere 6.0 application server , the difference to the normal situation is : the IBM application server is binding with IBM http server so the server can deal with request from the port 80. It puzzled me much what shall I do when I installing the agent, the following are the questions:
    1. Enter the Instance Config Directory: -- shall i use the config folder for "server1" or "webserver1"?
    2. Enter the Server Instance name. -- shall i use the "server1" or "webserver1"?
    3. Enter the preferred port number on which the application server provides its services: -- shall i use "80"(web server) or "9080"(app server) ,
    4. Enter the preferred port number on which the application server provides its services: -- yes i should fill "/agentapp" here, but when i deploy this application, the web module should be "webserver1" or "server1"?
    And yet I only need SSO here , what is the easiest way to configue them well? I do not want to obey the contents from DOC, at fact it makes my websphere crashed ... I think maybe I can use "filter" for application only after I installed the agent, is that right? but it make me crazy that, websphere told me it can not find the class javax.servlet.Filter ... I copied one for it ,but it still can not work. I think maybe I make wrong configuration before .
    Is the document "Sun Java SystemAccess Manager PolicyAgent 2.2 Guide for IBM WebSphereApplication Server 6.0" only for stand alone application server?
    Any help will be most appriciated! thank you!

    If you are trying to install j2ee Agent 2.2 then the below answers may be helpful. i am not sure what webserver1 is ?
    Remeber all config for j2ee agent is for the app server.
    1. Enter the Instance Config Directory: -- shall i use the config folder for "server1" or "webserver1"? You should be using the 1 which your app server is using. The server.xml will be modified for the corresponding server instance.
    2. Enter the Server Instance name. -- shall i use the "server1" or "webserver1"? depends on above config
    3. Enter the preferred port number on which the application server provides its services: -- shall i use "80"(web server) or "9080"(app server) , for j2ee agent ot should be 9080
    4. Enter the preferred port number on which the application server provides its services: -- yes i should fill "/agentapp" here, but when i deploy this application, the web module should be "webserver1" or "server1"?it should be ur app server port.
    And yet I only need SSO here , what is the easiest way to configue them well? try sso_only mode
    I do not want to obey the contents from DOC, at fact it makes my websphere crashed ... I think maybe I can use "filter" for application only after I installed the agent, is that right? without the agent filter in the web.xml the agent wont intercept any traffic.
    but it make me crazy that, websphere told me it can not find the class javax.servlet.Filter ... I copied one for it ,but it still can not work. I think maybe I make wrong configuration before .
    Is the document "Sun Java SystemAccess Manager PolicyAgent 2.2 Guide for IBM WebSphereApplication Server 6.0" only for stand alone application server?
    Follow the SUN Docs strictly and it should work fine.

  • 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
              

  • How config dynamic arp inspection for 300 or 500 series ?

    Hi Cisco Expert ,
    How config dynamic arp inspection for 300 or 500 series ? Do you have clearly document for this solution ? Could you please to share ?
    i find in admin guide it's no simple to do
    Thank you for kindly support.

    Hi Siriphan, using the command line is the easiest way to deal with this.
    You need to understand the difference between trusted  and untrusted interfaces. The untrusted interfaces are the ports that  will be inspected and if not specified within the arp entry list then  will get dropped.
    Any port you do not want arp inspection to be a part of, you need to trust that port.
    Below is how to make a port trusted.
    configure terminal
    interface fe1
    ip arp inspection trust
    Once you establish the trusted ports, you can build your arp list.
    configure terminal
    ip ap inspection list create ARP_INSPECTION  (the word after the create can be anything you want)
    ip 192.168.100.3 mac-address 64:31:50:1c:50:a1
    This  is the example of adding 1 entry to your arp list. You can add128 of  these entries. These IP/mac binds are the devices that are "safe" from  being dropped.
    Lastly, you need to enable the arp  inspection globally. You DO NOT want to toggle the arp inspection  without establishing your interfaces or bind list. If you do not  establish your trust interfaces and list first, you will lock down any  connection through the switch and essentially brick it.
    To toggle the global arp inspection
    configure terminal
    ip arp inspection
    Once you're done, save your running config to the start up config.
    -Tom
    Please mark answered for helpful posts

  • 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 make servlets reloadable in iplanet web server in solaris??

    hi all,
    does anyone know how to make servlets reloadable in iplanet ??? Thanks for help

    Hi there,
    I think your question is about "Dynamic Class Reloading", also named as Hot deployment. and the following lines may be helpful.
    iAS 6.0 SP3 and later version supports new hot deployment features through dynamic class
    reloading of EJBs.By default, dynamic servlet, EJB and registered JSP reloading is disabled in iPlanet Application Server.
    To enable dynamic reloading of servlets, EJBs and registered JSPs, perform the following steps:
    1.Start iPlanet Registry Editor, kregedit, and modify the Disable value under the Versioning key:
    SOFTWARE/iPlanet/Application Server/6.0/CCS0/SYSTEM_JAVA/Versioning
    2.Set the Disable value to 0 (By default, the Disable value is set to 1)
    3.Restart iPlanet Application Server to enable the change
    To hot deploy your application, simply compile and replace the file in the appropriate directory or, use iasdeploy to redeploy
    applications.
    I recommand you to check out the iAS's release notes (http://docs.iplanet.com/docs/manuals/ias/60/sp3/rn_sp3.html#20766) for more infomation.
    Good luck
    Shen Jie
    Developer Technical Support
    Sun Microsystems
    http://sun.com/developers/support

  • 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 can I run JNI in websphere

    Dear all,
    I can run my JNI program with dll file called process.dll in ms dos platform. How can I run it in websphere? Please help me. Thank you!
    Regards,
    kzyo

    By placing & making sure your dynamic link libary exists under the scope of ur classpath.typically @ /WEB-INF/classes folder.
    tht is how it has to work with any typical webserver / appln server and i'm sure WAS is no exception.

  • How to Use Dynamic SQL

    Can anybody please send me a small program on How to Use Dynamic SQL.
    How to execute and run give details.
    Thanks
    null

    You can certainly use the INTO (and USING) clauses of EXECUTE IMMEDIATE to pass in and return data, i.e.
    EXECUTE IMMEDIATE sqlStmt
      USING variable1, variable2
       INTO output1, output2The more complex the statement, however, the more appropriate DBMS_SQL is. DBMS_SQL also has the potential to allow you to use bind variables rather than reparsing the statement many times.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • How to increase dynamically open_cursors and session_cached_cursors

    how to increase dynamically open_cursors and session_cached_cursors
    for Ex. alter system open_cursors = 500

    instane level:
    alter system set session_cached_cursors=200 scope = spfile; or set init.ora file.
    alter system set open_cursors=400;
    More details about open_cursor and session_cached_cursor, refer the below link
    http://www.orafaq.com/node/758
    Regards
    RajaBaskar

  • How do I dynamically open a VI and load values into its connector pane?

    I'm trying to open a VI as a prompt to another VI without opening the second VI's front panel until the user clicks OK in the first window. The second VI takes inputs from the first thru its connector pane. How do I dynamically open the second VI?

    I think what you mean is call by reference dynamically loading VI's
    You can read up on it here
    If you want to make a static call to the sub vi just set the  Front Panel Options to "Open Front Panel when called"
    See here for more info
    Hope that answers your question

  • How to config a new remote on apple tv (first generation). I have lost my remote which came with the apple tv

    How to config a new remote on apple tv (first generation). I have lost my remote which came with the apple tv.

    Do you mean you've replaced your remote and it wont work because your AppleTV is paired to your lost remote?
    If so, http://support.apple.com/kb/HT1555 has you covered.

  • How to create Dynamic Window in Smartforms

    Hi all,
    Could you please help me out on how to create Dynamic Window in smartforms excluding Main Window.
    Thanks in Advance.
    Vinay.

    hi,
    Hi,
    1.If you are creating the Different windows for the Countries,then In conditions tab of window specify the Condition i.e.
    company -code = '2201'.
    2.Then that window can trigger ofr that condition.
    3.Other wise, if you are using the different layouts ,then write the condition in Print program and call that form .
    reward me if helpful.

Maybe you are looking for