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

Similar Messages

  • JRun to reload a web application

    We are using a combination of ColdFusionMX Hibernate and
    JAVA. Is there a way to get JRun to update when we have altered the
    JAVA side of things. At the moment have to stop and start the
    server to get it to pick up the changes which is a pain when
    developing. It does seem to reload if you touch the
    WEB-INF/jrun-web.xml file.
    Cheers Dafydd

    You can set the following in the WEB-INF/jrun-web.xml file:
    <reload>true</reload>
    <compile>true</compile>
    This isn't reccommended in a production environment as it can
    degrade performance.
    Ted Zimmerman

  • Stuck in Tutorial 2 of David Powers tutorials "Build dynamic sites and web applications".

    PLEASE NOTE - THIS IS ANEW SESSION! Apologies to those that have contributed already but I have been unable to reply unless by email on the original session!
    ========================================================================================== ==============================
    I am very new to Dreamweaver and indeed to mySql. So, I am going through the the 3 David Powers Tutorials that are available for PHP & MySQL. I have successfully negotiated the 1st tutorial and am on the 2nd one and have got to a place where I am stalled!I am working on the file "manage_posts.php" and have got successfully "Building a simple recordset" - successfully built the Recordset via that dialog box which tests perfectly showing the contents of the news Table in MySQL. I can bind the recordset results in the page and save the file "manage_posts.php" but when I click Live View the live view fails and I get a 404 error - in other words manage_posts.php does not show the last entry of the news table! I have tried everything that I can think of including deleting manage_posts.php and starting over, but still no good!
    Can anyone advise me on this please as to waht may be wrong and how perhaps to analyse what the error may be? I would appreciate any help as it is very frustrating not to be able to progress further.

    PLEASE NOTE - THIS IS ANEW SESSION! Apologies to those that have contributed already but I have been unable to reply unless by email on the original session!
    ========================================================================================== ==============================
    I am very new to Dreamweaver and indeed to mySql. So, I am going through the the 3 David Powers Tutorials that are available for PHP & MySQL. I have successfully negotiated the 1st tutorial and am on the 2nd one and have got to a place where I am stalled!I am working on the file "manage_posts.php" and have got successfully "Building a simple recordset" - successfully built the Recordset via that dialog box which tests perfectly showing the contents of the news Table in MySQL. I can bind the recordset results in the page and save the file "manage_posts.php" but when I click Live View the live view fails and I get a 404 error - in other words manage_posts.php does not show the last entry of the news table! I have tried everything that I can think of including deleting manage_posts.php and starting over, but still no good!
    Can anyone advise me on this please as to waht may be wrong and how perhaps to analyse what the error may be? I would appreciate any help as it is very frustrating not to be able to progress further.

  • 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

  • Updating a remote web application

              Hi all.
              We are developing a web application in team.
              We develop on Windows, but the web application runs under unix/linux.
              The unix machine has an Admin server and a Managed server (same machine).
              The web application we are developing is already deployed to the target server
              and (of course) we have a directory on the Admin Server where all the components
              are stored. The web application is in exploded format (no war - no hidden peace
              message here :) ).
              We'd like to run - locally on our windows machine - the command line "java ...
              weblogic.deploy ..." to update the Web Application as a result of a build script.
              We found that the "source" paramenter confuses us: shall we give the "remote"
              path (i.e. /var/wlhome/applications/<app name>") as given to WL Admin when we
              CONFIGURED a new web application from the console or should we give a LOCAL direcotry
              name? (i.e. D:\DEVEL\<app name>)
              Giving a remote (i.e. on the unix machine) path we have the following:
              D:\DEVEL\groc>java -classpath lib/weblogic.jar weblogic.deploy -host <managed
              host machine> -port <managed host port> update <password> <appname> /var/wlhome/applications/groc
              Bad URL or file name: /var/wlhome/applications/groc
              Giving a local (i.e. on the windows machine) path:
              D:\DEVEL\groc>java -classpath lib/weblogic.jar weblogic.deploy -host <managed
              host machine> -port <managed host port> update <admin system password> groc /var/wlhome/applications/groc
              Weblogic says: "Done updating groc with ./config/svildomain/.wlstaging/groc
              But when reloading the web application, changes (done to the LOCAL files) are
              not reflected in the output.
              Am I missing something? (Should the local weblogic.jar be the same service pack
              level as the ManagedServer?)
              Thanks in advance
              ALX
              

    Hi,
    Azure RemoteApp is used for deploying the front end of your application, so in the case of a web app you would publish IE/Firefox/Chrome and have the backend components (website, Azure SQL Database, services, etc.) running in Azure or on-premises connected
    via VNet.
    -TP

  • Web application restarts when JSP or .class files on disk change

    Hello,
    I am deploying a Spring enabled web application into WLS 12 using IntelliJ11.
    I am building an exploded war in a target directory and have my WLS domain's config.xml set up to pick up the application from that directory directly. I am not using a staging approach.
    The application starts up fine in debug mode in IntelliJ 11. I am able to make changes to Java classes, hit Ctrl+F9 to "Make the Project" and changed Java classes get reloaded and I see the changes I have made.
    All this happens without WLS reloading the web application, which is as it should be.
    When I try to make changes to JSPs, I start seeing a different behavior. This is how I'm changing my JSPs:
    1) I edit the file in IntelliJ.
    2) I hit Ctrl+F9....nothing happens, I don't see my changes in the JSP, I don't see any web application restarts. This is because with a Ctrl+F9, IntelliJ does not update the JSP in the target directory.
    3) When I hit Ctrl+F10 instead, i.e. "Update application", IntelliJ presents me with a choice to "Update resources", "Update classes & resources", "redeploy", "restart the server".
    I choose "Update resources"
    When I do this, I see on the file system that IntelliJ has changed the JSP in the target directory. As it should. WLS is also using this directory, so it should see the changed JSP and recompile and show me my changes.
    Now when I access the application, I see varying behavior.
    Sometimes I see my JSP changes just fine and sometimes instead of seeing my changes, my entire web application starts shutting down and attempts to restart. Note, I said the web application and not the WLS server.
    It's almost as if I've hit a Redeploy.
    I have disabled "Fast Swap", as I cannot get my Spring application context to load when this is enabled. So, I'm just using Hot Swap.
    Why is WLS restarting my web application once in a while when my JSPs change?
    And this is not restricted to JSP files only. If I choose the option to "Update classes & resources", any Java classes I've changed get updated on the disk in the target directory. Now WLS once in a while decides that it needs to restart my web application. I can get away with hitting Ctrl+F9, which does not update the .class on the disk and only in the JVM, and see my changes.
    But I have no such option for JSPs. So hot swap essentially is erratic for JSPs in my deployment in WLS 12.

    There is a workaround for this. Not pretty, but it works for me.
    Instead of having IntelliJ update the exploded war when I do a Make (Ctrl+F9), I tell IntelliJ to NOT do any updates to the artifact on the disk.
    That is, just compile. As explained before, that works for changes to Java classes. IntelliJ/Java does a hot swap in memory, so your Java changes are seen.
    Now for JSPs. Write an ant target that copies the JSPs into the deployed exploded war.
    For some reason, when ant does the copying, WLS doesn't freak out and decide to restart the web application. I have no idea why. I did a directory compare when IntelliJ did the copying, and the only thing that had changed was the JSP I had modified.
    Anyways that's one solution.
    The other is, as my colleague tested out, run in Production mode, and have the jsp reload check parameter set to 0, which means check the JSPs always. This is needed because in Production mode, -1 is the default value, which means never check for JSP changes.

  • Dynamic class reloading in modular web application

    Hi.
    My web application has these requirements:
    A. Functional modularization (like plug-ins). Modules will be simple jars containing application logic classes: dto beans, business logic services, dao (jpa), framework stuff (Struts2), etc...
    B. At runtime and without restarting the application "class loading" must be aware of classes inside new, changed and removed modules.
    C. Some of these jars will be outside the web application folder (WEB-INF/lib), possibly outside the container itself too.
    My question:
    1. Can I achieve all or some of my requirements with a Java web application?
    2. How should I manage the modules?
    3. Do I need some special web container feature (maybe osgi)?
    4. Can I use a custom class loader in my application?
    The architecture objectives are:
    I. Provide scalability.
    II. Efficient development process (independent deployment and no application restart required).
    III. Better production support (no application restart required for changes).
    More on the architecture:
    a). Functional scalability, meaning this that my application may functionally grow up to an indeterminate number of small functional modules.
    b). Modules will be developed, deployed and maintained independently so the application discovers and loads classes on demand.
    c). Avoid a big .war file containing all the small modules because a small change in one module would involves deploying all the other modules (possibly hundreds o even thousands of them) and restarting the application.
    d). Above point involves dynamic class reloading.
    I guess this is addressed by OSGI (looks like heavy to deal with), Jigsaw (still under development) and maybe others. I think the key point is the class loader. I will develop a custom class loader but maybe you have some advice for me before starting to develop.
    Thanks and regards.

    Classes maintained by the container should not be loaded by an application. You want the container to read those classes and react accordingly. Most of those classes are read when the container starts up a container restart will be required. Trying to leverage another container within a container does not sound like it will be worth (if you can get it to work).
    Perhaps you should state the problem that you are trying to solve with these modules so that others may suggest more feasible solutions to achieve your target goals.

  • Dynamic Servlet reload activation in Weblogic 6.0 using web applications

    Dynamic Servlet reload activation in Weblogic 6.0 using web applications
              Add the next lines to your web.xml file
              <context-param>
              <param-name>weblogic.httpd.servlet.reloadCheckSecs</param-name>
              <param-value>0</param-value>
              </context-param>
              <context-param>
              <param-name>weblogic.httpd.servlet.classpath</param-name>
              <param-value>C:/bea/wlserver6.0/config/myServer/applications/MyApp/WEB-INF/serverclasses</param-value>
              </context-param>
              Register your servlet on web.xml file.
              <servlet>
              <servlet-name>Test</servlet-name>
              <servlet-class>Test</servlet-class>
              </servlet>
              <servlet-mapping>
              <servlet-name>Test</servlet-name>
              <url-pattern>/Test/*</url-pattern>
              </servlet-mapping>
              <servlet>
              Create a directory under WEB-INF called "serverclasses"
              copy your servlet(also directories under serverclasses if your class has a package).
              Don't forget to remove from \classes the same servlet class file.
              I hope it could be helpfull for the community.
              Regards
              

    Dynamic Servlet reload activation in Weblogic 6.0 using web applications
              Add the next lines to your web.xml file
              <context-param>
              <param-name>weblogic.httpd.servlet.reloadCheckSecs</param-name>
              <param-value>0</param-value>
              </context-param>
              <context-param>
              <param-name>weblogic.httpd.servlet.classpath</param-name>
              <param-value>C:/bea/wlserver6.0/config/myServer/applications/MyApp/WEB-INF/serverclasses</param-value>
              </context-param>
              Register your servlet on web.xml file.
              <servlet>
              <servlet-name>Test</servlet-name>
              <servlet-class>Test</servlet-class>
              </servlet>
              <servlet-mapping>
              <servlet-name>Test</servlet-name>
              <url-pattern>/Test/*</url-pattern>
              </servlet-mapping>
              <servlet>
              Create a directory under WEB-INF called "serverclasses"
              copy your servlet(also directories under serverclasses if your class has a package).
              Don't forget to remove from \classes the same servlet class file.
              I hope it could be helpfull for the community.
              Regards
              

  • Dynamic Wrapping of text in Web Application Designer of BEx.

    Hi
    Dynamic wrapping of text is to be done in Web application Designer of BEx.
    How is the code that was given earlier to be incorporated using stylesheets???Please explain in detail.
    Also if any other way is possible,plz deliberate.
    Thanks.

    Hi Sachin,
    stylesheet parameter is:
    white-space:
    options:
    normal
    pre
    nowrap
    pre-wrap
    pre-line
    regards Sven

  • Dynamic deployed web application doesnt' work in managed server

    Hi:
    Can anyone tell me what I have done wrong:
    1. I create a new web application DYNAMICALLY (i.e. copy directory to
    applications directory)
    2. I assigned one of the managed server as target for the new
    application
    3. Restart managed server
    4. Try to access the new application in managed server, and get error
    message:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is
    given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the
    client, the status code 403 (Forbidden) can be used instead. The 410 (Gone)
    status code SHOULD be used if the server knows, through some internally
    configurable mechanism, that an old resource is permanently unavailable and
    has no forwarding address.
    Any ideas?
    Thanks in advance.
    Alex

    See my answer to your last post. The short answer is that the HttpClusterServlet is
              likely to be the problem and not the cluster. You can try one of the web server plugins
              or a hardware load balancer as a temporary workaround. You should file a case with
              support too...
              Manu Kar wrote:
              > Hai All!
              >
              > Here is my problem ! I started Admin Server and Managed server in a same machine.
              > I deployed HttpClusterServlet in web.xml of Managed server. When i started servers
              > they start fine and says Clustering started.... But when i tried to Access index.jsp
              > that is in Managed Server default web application ..Nothing happens. It neither
              > throws exception nor shows the desired page.. Seems to be Browser hang and server
              > hang. At this stage i am unable to access Admin console also.(I can access before
              > i tried index.jsp of managed server).. It seems to be Hang Allover..
              >
              > Pls suggest me how to come out of this hanging...
              >
              > Rgds
              > Manohar
              

  • Can you reload web application from the Weblogic console?

              Good day, eh!
              Can you reload all your jsp/servlet classes of your
              web application from the Weblogic console?
              A one big button labeled 'Reload application' would be very
              good property in Weblogic
              Thanks for Your answers
              - hoser
              

    Hi,
              I agree it is a much needed feature. Suppose I just change an init
              param of one application in the web.xml, I don't want to take down the
              15 other webapps running on my server just to be able to have that web
              app restart and re-read is configuration. Of course, I could program
              some servlet that allows changing application attributes and to enable
              restarting, but really this a)does not cover all the cases (i.e. addind
              an EBJ reference binding to web.xml) b) should be provided by the app
              server, not programmed by every little programmer again & again.
              Mathieu
              Jeff Nowakowski wrote:
              >
              > The URL you give refers to redeploying EJBs, not web applications. Being
              > able to redeploy a web application would be a very convenient feature.
              >
              > -Jeff
              >
              > Gene Chuang <[email protected]> wrote in message news:[email protected]...
              > > Button is already there!
              > >
              > > http://www.weblogic.com/docs51/techdeploy/hotdeploy.html#consoledeployejb
              > >
              > > Gene
              > >
              > > "hoser" <[email protected]> wrote in message
              > > news:[email protected]...
              > > >
              > > > Good day, eh!
              > > >
              > > > Can you reload all your jsp/servlet classes of your
              > > > web application from the Weblogic console?
              > > >
              > > > A one big button labeled 'Reload application' would be very
              > > > good property in Weblogic
              > > >
              > > > Thanks for Your answers
              > > >
              > > > - hoser
              > >
              > >
              

  • NetBeans - Reloadable web application

    Hi can someone tell how can I make a web application reloadable.
    I am using Netbeans 3.6 and its embedded tomcat 5.0 server and I do not want recompile and execute my application everytime I make changes and compile a single servler/jsp. Can someone suggest me thow to achieve this.
    Thanks,
    rahul.

    JSP and HTML pages should already update. If you want servlets to then you need to set the reloadable attribute of the contetxt to true. This is located in:
    C:\Documents and Settings\{user.id}\.netbeans\3.6\jakarta-tomcat-5.0.19_base\conf\Catalina\localhost\{app name}.xml
    Here is where you'll find information on the servlet context
    http://localhost:8084/tomcat-docs/config/context.html
    You could also use the tomcat manager app to reload the context.

  • Web application with RAD tool inside for dynamic JSP building

    I would realize a J2EE Web application based on JSP,Struts and eventually Spring for transaction management and iBatis for data access in my opinion very complex.
    The application presents search, list and detail pages, and the information visibility depends on the user.
    Each edit page could be based on a single page or many tabs, and a tab could contain entity's information or information associated to the entity subject of the page, displayed as list. The informations in editing phase will be controlled by javascript rules.
    A web application administrator will set the information's grants (hidden, readonly, read and write) for each entity managed inside the application.
    Now there is the complication: each page (search, list, detail) must be built by the web application administrator with a configurator/builder directy inside the same web application on the server!
    For example, for a detail page:
    1) each tab must be defined and named: so I can't develop a static number of tabs, in which I managed a fixed set of data inside each of these tabs. I must develop a page with all the entity's fields and all the rules, and then the web application administrator set which informations must be available for each tab from the same page detail developed. The tabs in which there's a list could be displayed or not, and the data in the list follow the grants setted by the web application administrator.
    2) the web application administrator can specify all the data inside a tab: every tab will be built indicating which fields show or edit if the user has the grants. For example for entity1, we could define a detail page for user1 with field1, field3 and field2, while for user2 we could define the detail page with tab1 within field2, and a second tab, tab2 within field3.
    3) the web application administrator can specify the layout inside the tab, indicating the pixel position inside the tab, or the application could provide a visual tool, in HTML, in which there is a design area, and in which the web application administrator clicks in a point and positions in it an information, and even specify the style's properties (color, font, background,...)
    4) the application must provide to the users the possibility to define new fields for an entity, and must manage them adding in whichever tab for that entity. For such informations will be possible only management without controls except the controls of type (data, int, money, ...)
    In my opinion point 3 I think it's part of a report tool and not of detail visualization; moreover all the styles of a page must be personalized, not only the informations contained inside the tabs. I think the only solution in a highly configurabile application is to show the search/detail fields 1 for row, and not with a positioning based on pixel coordinates or positioning with a RAD tool.
    I ask to you:
    - have you ever seen or realized web application that they supply application design tools within the same application, realized in HTML+Javascript?
    - is realizable this kind of application?
    - ...any suggestion to supply for proceeding?
    Honestly my ideas are to realize points 1 and 2; I suppose point 3 is not feasible and that the result of the styles customization is little appropriated; for point 4 I suppose to simplify the management of new data by managing all the new ones inside the same tab, or I will have to think another possible solution...
    Thanks to everyone has interesting ideas or suggestions to give.

    have you ever seen or realized web application that they supply >application design tools within the same application, realized in >HTML+Javascript? Yes, Oracle HTML DB is one such purchasable off the shelf :)
    is realizable this kind of application? I would think so - yes. It requiresa good team - 4 or 5 developers with excellent jsp/servlet knowledge :)
    - ...any suggestion to supply for proceeding? Such kind of functionality is achievable only in 1 way-DB, always. You would store the information for each entity and the permissions for each attribute of that entity per user in the db. You can consider having roles (teams), assign permissions to the roles and then add users to the roles so that they inherit the permissions. You should be able to ovderride the permissions per individual user too.
    I would say you first plan this out in a piece of paper, convert it into relationships in the db. Implementing the jsp solution is by far the easist (& tedious :)), IMO
    ram.

  • How to dynamically define a file name and its path in a web application

    Hi, I want to create a simple web application that reads from an XML file and displays the data back to the user. The xml file is created independent of my application on the same machine that the Application Server runs. How can I define my xml file name and/or path to be independent of my code and not hard-coded in my application?

    By an external configurationfile? That can be a propertiesfile, a xml file, an ini file, a plain vanilla txt file, etcetera.

  • BPS Web Application - How to change function button property dynamically

    We have created BPS web application for sales force, it contains 2 button.
    1. To send Workflow notification to Managers 'Request for Approval' - This would be used by sales person
    2. Button for Manager to approve the Plan 'Manager Approval' - This would be used by the Manager
    We are using Territory Management in CRM to determine who is the manager and sales person.
    We would like to use the same Web application to be used by both sales person as well as the manager. However depending on the user ID, we need to access the Territory Management table in BW to determine whether the person logging in is Manager / Sales person. If it is a Sales Person, we need to display 'Request for Approval' button and hide 'Manager Approval'  button. Similarly, if it is Manager,   'Manager Approval'  button to be displayed and 'Request for Approval' button to be hidden.
    Would appreciate, if any one has faced similar requirement and how to do this.
    Thanks,
    VJ Sudharsan

    Thanks Ananad and Srini for the suggestion. Actually I was working on the direction Anand Suggestion and make it working but I am not sure what I did is correct or not.
    I have a bogus variable that checks for Manager / Sales person and brings back following code in the variable, if it is manager:
    '<style> #Req_Approval_s </style>'
    and I added a new text component of type HTML and code
    <%=descr(VarvlSel2/value)%>
    it works. Is this the correct way of doing the enhancement. Or is there a different place where we can add JavaScript.
    Srini - I am using exit function, can you explain how we can I use BPS authorization to achieve this.

Maybe you are looking for