Bristle Software BEA WebLogic Tips

This page is offered as a service of Bristle Software, Inc.  New tips are sent to an associated mailing list when they are posted here.  Please send comments, corrections, any tips you'd like to contribute, or requests to be added to the mailing list, to tips@bristle.com.

Table of Contents:
  1. Reloading Servlets More Often
  2. Reloading JSPs More Often
  3. WebLogic Console
    1. Starting the WebLogic Console
    2. Changing the Location of a Webapp
Details of Tips:
  1. Reloading Servlets More Often

    Last Updated: 1/7/2006
    Applies to: WebLogic 8.1 SP3+

    To cause WebLogic to more frequently check for and load updated Java servlet *.class files, edit the file:

            WEB-INF\weblogic.xml

    in the directory of the deployed Web application, changing the value of:

            servlet-reload-check-secs

    The change won't take effect till you restart the server.

    You may not want to do this for a production server, since it wastes unnecessary CPU cycles in an environment where files do not change often, but it's very handy on a development server.

    --Fred

  2. Reloading JSPs More Often

    Last Updated: 1/7/2006
    Applies to: WebLogic 8.1 SP3+

    To cause WebLogic to more frequently check for, compile and load updated JavaServer Pages *.JSP source files, edit the file:

            WEB-INF\weblogic.xml

    in the directory of the deployed Web application, changing the value of:

            pageCheckSeconds

    The change won't take effect till you restart the server.

    You may not want to do this for a production server, since it wastes unnecessary CPU cycles in an environment where files do not change often, but it's very handy on a development server.

    --Fred

  3. WebLogic Console

    1. Starting the WebLogic Console

      Last Updated: 1/7/2006
      Applies to: WebLogic 8.1 SP3+

      WebLogic has a Web-based console that you can use to configure and manage webapps.  To invoke it, browse to a URL like:

          http://localhost:7001/console/

      using the appropriate port number, and login with your WebLogic credentials.

      --Fred

    2. Changing the Location of a Webapp

      Last Updated: 1/7/2006
      Applies to: WebLogic 8.1 SP3+

      You cannot change the location of a deployed app in the WebLogic console.  Instead, you must delete the deployment, and re-deploy the app.  The steps look like the following, for example:

          - <server name> | Deployments | Applications | <app name> | RightClick | delete
          - <server name> | Deployments | Applications | Deploy a new application | <navigate to location>
              - yes = <cluster name>
              - Target Application button
              - <server name> | Clusters | <managed server name> | Continue
              - Source Accessibility
              - yes = I will make the application accessible from the following location.
              - Deploy

      --Fred