Multiple weblogic.properties

Under the myserver directory there's a weblogic.properties file that controls the deployment of the beans and servlets. Does any one know if it is possible to have multiple weblogic.properties files (named differently) under the myserver dir. and how to set them up?

[This followup was posted to weblogic.developer.interest.environment and
a copy was sent to the cited author.]
In article <3a941411$[email protected]>,
[email protected] says...
Under the myserver directory there's a weblogic.properties file that controls the deployment of the beans and servlets. Does any one know if it is possible to have multiple weblogic.properties files (named differently) under the myserver dir. and how to set them up?
Rick,
Are you asking the right question? WebLogic finds a weblogic.properties
file in the "root" directory, the "server/cluster" directory and the
instance directory (only really applies to a cluster in which each
instance has its own directory under the server/cluster directory.
These files are more significant the deeper they go; meaning the same
property found in the top level file is changed if set again in a lower
level file.
You may want to have different properties files that, upon startup, are
copied to the proper location/name by a script, thus being able to
change configurations at startup.
Jesse Tilly
Senior Developer, HotelTools INC
[email protected]

Similar Messages

  • Multiple weblogic.properties files?

    Hi all,
    We're in the stage now where I need to "quickly" switch between different
    versions of our app running on WLS 5.1.
    Can I pass the path to the weblogic.properties file to the java command in
    startWebLogic, or is it based solely on the weblogic.home property?
    If it is based on the weblogic.home property, what else depends on that
    property. Ideally, I'd like to not to have to duplicate the weblogic tree.
    Thanx!
    Will Hartung
    ([email protected])

    You can specify server name in the command line (startWebLogic.cmd foo)
    and add -Dweblogic.server.name=%1 to the list of java arguments. When
    weblogic starts it will read wl_home/weblogic.properties first and
    wl_home/foo/weblogic.properties second.
    (with clustering enabled it reads weblogic.properties from wl_home
    first, wl_home/cluster_name second and wl_home/cluster_name/server_name
    third).
    Will Hartung <[email protected]> wrote:
    Hi all,
    We're in the stage now where I need to "quickly" switch between different
    versions of our app running on WLS 5.1.
    Can I pass the path to the weblogic.properties file to the java command in
    startWebLogic, or is it based solely on the weblogic.home property?
    If it is based on the weblogic.home property, what else depends on that
    property. Ideally, I'd like to not to have to duplicate the weblogic tree.
    Thanx!
    Will Hartung
    ([email protected])
    Dimitri

  • Commas in the weblogic.properties file

    I hate to ask this question because I'm sure the answer is a)obvious, and
    b)well-known, but I'm playing in the slow group today.
    How does one include a comma in a property value in the weblogic.properties
    file. Specfically, I'm trying to set weblogic.system.startupArgs as follows
    weblogic.system.startupArgs.xxxx=sql=select sysdate from dual where
    mod(to_number(to_char(sysdate, 'MI')), 2) = 0
    The value assigned to the "sql" arg is truncated at the first comma and a
    second argument "'MI'))" is created. Very irritating. Any ideas on how to
    prevent this from happening?
    Ignore the details of the sql statement, its just for testing.
    Brian Murray
    Management Information Systems
    Vanderbilt University

    Thanks for the reply, but that didn't seem to work. Escaping the commas
    with back-slash delivered the same result.
    It seems that since the value for the weblogic.system.startupArgs.xxxx
    property can itself be a set of multiple properties, the normal parsing
    rules don't apply when the "inner" set of properties is parsed. For
    example, if weblogic.properties has
    weblogic.system.startupArgs.xxxx=aaaa=X\,Y
    then it appears that "startupArgs.xxx" is being assgined "aaaa=X,Y".
    However, when the startup class gets the arguments, whatever routine is
    parsing the value of "startupArgs.xxx" is seeing the comma and deciding that
    there are two properties, not one. So the startup method of my startup
    class gets 2 arguments: "aaaa=X" and "Y=".
    I tried all the old Korn shell tricks I could remember like aaaa=X\\\,Y.
    But all I got was "aaaa=X\" and "Y=".
    Any other thoughts or am I trying something I wasn't supposed to do?
    ----- Original Message -----
    From: "Dimitri Rakitine" <[email protected]>
    escape commas with \'s
    Brian Murray <[email protected]> wrote:
    How does one include a comma in a property value in the
    weblogic.properties
    file. Specfically, I'm trying to set weblogic.system.startupArgs asfollows
    >
    weblogic.system.startupArgs.xxxx=sql=select sysdate from dual where
    mod(to_number(to_char(sysdate, 'MI')), 2) = 0

  • NT startup parmaters for multiple weblogic servers started as a service

    I have the need to start multiple weblogic servers, using NT services.
    I have created a second folder with a properties file listening on another
    port.
    I am using the following startup parameter
    -J-Dweblogic.system.name=Test
    My question, this works when I type the startup parameter, is their anyway
    to have this automatically entered
    on server startup.
    Is their a registry setting to make this permanent
    Thanks

    The answer is...
    - Use a product to turn applications into an NT Service (e.g.
    ServiceMill)
    - Directly run the Weblogic Server Java class via that application
    --> As many WLs on one machine as you like.
    Send mail if you need specific details.
    Best regards
    Daniel Hoppe
    -----Original Message-----
    From: [email protected] (Ed) [mailto:[email protected]]
    Posted At: Wednesday, August 30, 2000 2:34 AM
    Posted To: install
    Conversation: NT startup parmaters for multiple weblogic servers started
    as a service
    Subject: Re: NT startup parmaters for multiple weblogic servers started
    as a service
    I wish that was the case.
    The problem is, while you enter the startup parameter once, it only
    is good for that startup of the weblogic server,
    The next time the server reboots and the services start, unless you
    re-enter the startup parameter -J-Dweblogic.system.name=Foldername
    The weblogic server starts using the wrong properties file.
    Is their anyway using NT services to have the correct instance of WL
    to start everytime.
    I have checked this newsgroup and this question has been posted
    before, but so far no one seems to have the answer.
    I know in a production eniviorment someone must be running more that
    one instance of a WL server as a service, Hopefully their is an
    answer on how this is done.
    Thank you
    Kumar Allamraju <[email protected]> wrote:
    Not that i know of.
    but you are specifying this startup parameter only one time too!!!
    Kumar
    None of your bussines wrote:
    I have the need to start multiple weblogic servers, using NT
    services.
    I have created a second folder with a properties file listening onanother
    port.
    I am using the following startup parameter
    -J-Dweblogic.system.name=Test
    My question, this works when I type the startup parameter, is theiranyway
    to have this automatically entered
    on server startup.
    Is their a registry setting to make this permanent
    Thanks

  • Multiple WebLogic server configurations

    I am using WebLogic server in a non-clustured environment. Is there anyway
    to:
    a) start up the WebLogic server so it listens on multiple ports where each
    port corresponds to a specific configuration; or,
    b) start up multiple WebLogic servers each listening a unique port.
    Essentially, I would like to have multiple configurations (myserver,
    myserver2, myserver3, etc.). Is this possible and if so where is the best
    place to look in the documentation to do this.
    Thanks.
    Steven R. Baturin

    Sure, it's very easy. Just clone your Myserver directory and modify the
    weblogic.properties file in each directory to have the port you want. So
    you would end up with a /weblogic/myserver and a /weblogic/myserver2, each
    one has a weblogic.properties file with two different ports configured.
    Then you start Weblogic with the -D<name> command line option that tells it
    what instance to load. Read the docs for details.
    Steven R. Baturin wrote in message <3a82cbc9$[email protected]>...
    I am using WebLogic server in a non-clustured environment. Is there anyway
    to:
    a) start up the WebLogic server so it listens on multiple ports where each
    port corresponds to a specific configuration; or,
    b) start up multiple WebLogic servers each listening a unique port.
    Essentially, I would like to have multiple configurations (myserver,
    myserver2, myserver3, etc.). Is this possible and if so where is the best
    place to look in the documentation to do this.
    Thanks.
    Steven R. Baturin

  • How can I get all the settings from weblogic.properties ?

    Hi, and excuse me for my poor english.....
    I have a T3Client and I want to obtain all the settings from weblogic
    properties...
    With the sentence getT3Services().config().getProperty("......"), I can
    obtain the property, but my problem is that at runtime, I don`t know
    established names....
    I want to obtain something as the AdminProps servlet, but with a non-web
    client.....
    Can anybody help me ?

    Hi, and excuse me for my poor english.....
    I have a T3Client and I want to obtain all the settings from weblogic
    properties...
    With the sentence getT3Services().config().getProperty("......"), I can
    obtain the property, but my problem is that at runtime, I don`t know
    established names....
    I want to obtain something as the AdminProps servlet, but with a non-web
    client.....
    Can anybody help me ?

  • How to update weblogic.properties in order to support English & Chinese

    <URGENT PROBLEM>
    hi,
    how to update weblogic.properties in order to support English & Chinese
    version in a sing weblogic server?
    Thanks in advance
    <URGENT PROBLEM>

    If you are using JSP as your mechanism for content display, you should use
    the contentType parameter to specify the character and coding of the JSP
    page any character encoding of the resulting stream. So far, we have not
    done a good job of documenting how to produce localized content in JSP. I
    have filed an issue for the documentation folks to work on it. For now,
    take a look at section 2.7.4 of the JSP specification version 1.1.
    Thanks,
    Michael
    Michael Girdley
    Product Manager, WebLogic Server & Express
    BEA Systems Inc
    fxy <[email protected]> wrote in message
    news:8ffr11$59d$[email protected]..
    <URGENT PROBLEM>
    hi,
    how to update weblogic.properties in order to support English & Chinese
    version in a sing weblogic server?
    Thanks in advance
    <URGENT PROBLEM>

  • How Can I Use Multiple Weblogic Instances in a Single OS

    Hello Everyone,
    Actually I have to install Some different applications. Few of them need weblogic 10.3.6 and others need 10.3.4. The OS am using is Oracle  Enterprise Linux 5.
    Now I am able to install 2 separate(One of 10.3.4 and 10.3.6) instances with two different users,In two different directories.
    I have installed the weblogic 10.3.6 version with a user webadmin and installed node manager with port 5556. This is working fine.
    The main problem here is :
    In the second instance (10.3.4 ) installed with a a different user and gave the port number to NodeManager as 1600 and its not getting started. Its throwing error and also after some errors in the terminal am able to see that its reverting to port number 5556 only.
    What might be the issue?
    I have to install 2 different versions of weblogic in a single Server. But am failing with NodeManager. What Can I do to have multiple weblogic instances with multiple versions in a single server ?
    Can anyone suggest a resolution for this please ?
    Thanks in advance.

    Pl do not spam these forums with multiple posts - How Can I Use Multiple Weblogic Instances in a Single OS

  • Issue in reading multiple time properties file

    Use Case:
    I have a page in which i have to show some Outage Messages on page. So I have configured outage message in properties files. This message should me rendered each time when it finds that properties file in class path or it finds the values w.r.t their keys.
    So what I decide that I shall write java method and call this method on Loading the page but here what happen is that whenever that page is load each time that reader file will call , that will create memory leak .
    So, anyone help me on this. What will be the best approach for that reading multiple times properties file?
    I will be grateful for any help you can provide
    Thanks

    Hi,
    have a bean at applicationScope, somewhat like this
    import java.util.HashMap;
    public class ApplnProperties {
        private HashMap _propMap;
        public HashMap getPropMap() {
            if(_propMap == null){
                //read the properties file and populate _propMap
            return _propMap;
    }here we put condition _propMap == null so it would be called only once during application lifecycle.
    and on page you can refer the prop map like following
    #{beanName.propMap['KEY1']}Regards,

  • Multiple binary properties in a asset

    Hi,
    I have created an asset type in BEA content repository which as multiple
    binary properties, how can I use bulkloader to load data into this
    asset?(see example below)
    I am using BEA WLP 8.1 SP4 on Windows and PB as DB
    Asset Type: myArticle
    Asset Properties:
    1. id (string, single unrestricted)
    2. absbody(binary)
    3. detbody(binary, isPrimary set true)
    I have content for this as
    id:100
    abs100.txt (contains absbody data)
    det100.txt (contains detbody data)
    I want to load this data into a single myArticle type content with id as
    100.
    I am able to load either absbody or detbody but not both. Please let me know
    if there is a way to do this.
    I have similar requirements for myImage asset type , where it has more than
    one binary properties(smallImage, largeImage, thumbImage). We need to load
    them under one myImage type content, as functionally they represent one
    image with different sizes.
    Thanks in advance
    UDay

    Hi
    I have the same problem as yours. I want to bulkload a custom type with two binary properties (one small thumbnail and one big image)
    In the bulkloader doc, I found this :
    "You can load only one binary property per node, and it must be defined as the primary property"
    I would like to know if there is a tip to do it nevertheless, pehaps bulkloading twice to update the second image ?

  • Where is the weblogic.properties file in weblogic6.1?

    I could only find this file in directory: ..\wlserver6.1\samples\examples\tutorials\migration\banking
    why i cannot find it in wlserver6.1 directory? Is there any other properties file
    whose function is the same as this one so that i can change setting?
    Thanks in advance,
    moonriver

    The weblogic.properties file is only used for weblogic 5.x, it is no longer used
    in 6.x anymore. Instead, a config.xml file is used as similar purpose.
    Allen.
    "Moonriver" <[email protected]> wrote:
    >
    I could only find this file in directory: ..\wlserver6.1\samples\examples\tutorials\migration\banking
    why i cannot find it in wlserver6.1 directory? Is there any other properties
    file
    whose function is the same as this one so that i can change setting?
    Thanks in advance,
    moonriver

  • Servlet configuration in Weblogic 5.1.. web.xml vs weblogic.properties..

    Can someone please tell me how the <servlet> entry differs from
              weblogic.httpd.register.snoop=examples.servlets.SnoopServlet
              in weblogic properties?
              Do these perform identical functions?
              

    Yes this is the source of my confusiong. It seems to be that WL can be told
              about servlets
              two ways. Firstly through the web.xml file and also via weblogic.properties.
              I don't understand
              why the second one exists.
              "Cameron Purdy" <[email protected]> wrote in message
              news:[email protected]...
              > I only work with WAR files, so I cannot speak to non-WARd servlets with
              any
              > confidence. I know that WL could use web.xml for non-WARd servlets in
              order
              > to obtain the other information associated with the servlet:
              >
              > <!ELEMENT servlet (icon?, servlet-name, display-name?, description?,
              > (servlet-class|jsp-file), init-param*, load-on-startup?,
              > security-role-ref*)>
              >
              > --
              >
              > Cameron Purdy
              > http://www.tangosol.com
              >
              >
              > "Robert Nicholson" <[email protected]> wrote in message
              > news:[email protected]...
              > > If what you say is true then why is there the need to also tell WL about
              > the
              > > servlets themselves?
              > >
              > > Presumably this is for when the servlets exist outside of a WAR then?
              > >
              > > "Cameron Purdy" <[email protected]> wrote in message
              > > news:[email protected]...
              > > > The weblogic.properties tells WL to load a WAR or specific servlet.
              The
              > > > <servlet> entry (I assume you refer to
              > > > http://java.sun.com/j2ee/dtds/web-app_2_2.dtd) defines the presence of
              a
              > > > servlet within a WAR (a deployment unit):
              > > >
              > > > >
              > > > The servlet element contains the declarative data of a
              > > > servlet. If a jsp-file is specified and the load-on-startup element is
              > > > present, then the JSP should be precompiled and loaded.
              > > > [end-quote]
              > > >
              > > > In the case of a WAR deployment, you have to tell WL that the WAR
              > exists,
              > > > then it will look in the WAR and figure out what servlets are there
              from
              > > the
              > > > <servlet> tags in your web.xml. You set up a WAR in the
              > > weblogic.properties
              > > > as such:
              > > >
              > > > weblogic.httpd.webApp.<http-path>=<os-path>
              > > >
              > > > For example:
              > > > weblogic.httpd.webApp.website=c:/weblogic/website.war
              > > >
              > > > --
              > > >
              > > > Cameron Purdy
              > > > http://www.tangosol.com
              > > >
              > > >
              > > > "Robert Nicholson" <[email protected]> wrote in message
              > > > news:[email protected]...
              > > > > Can someone please tell me how the <servlet> entry differs from
              > > > >
              > > > > weblogic.httpd.register.snoop=examples.servlets.SnoopServlet
              > > > >
              > > > > in weblogic properties?
              > > > >
              > > > > Do these perform identical functions?
              > > > >
              > > > >
              > > >
              > > >
              > >
              > >
              >
              >
              

  • Can I reference 2 different SSL certificates in the same weblogic.properties

    Hello,
    Can I reference 2 different SSL certificates in the same
    weblogic.properties
    file?
    Reason is we have 2 groups of users for a web application: one will use
    a
    French-language DNS to access
    the application, and the other will use English DNS. Both DNS will point
    to
    the same application on the same
    server.
    Example of what we require:
    weblogic.security.certificate.server=mycert1.pem
    weblogic.security.key.server=mykey1.der
    weblogic.security.certificate.authority=rootCertificate1.pem
    ----and---
    weblogic.security.certificate.server=mycert2.der
    weblogic.security.key.server=mykey2.der
    weblogic.security.certificate.authority=rootCertificate2.pem
    mycert1 will correspond to DNS1, and mcert2 will correspond to DNS2, and
    both
    DNS1 and DNS2 point to the same application on the same box.
    Thanks,
    Ragu

    I think that you can only have one server certificate per server currently
    since the certificate establishes the server's identity and there isn't
    support for a server to have two identities at the same time.
    "RAGUTAM BOMMAREDDY" <[email protected]> wrote in message
    news:[email protected]..
    Hello,
    Can I reference 2 different SSL certificates in the same
    weblogic.properties
    file?
    Reason is we have 2 groups of users for a web application: one will use
    a
    French-language DNS to access
    the application, and the other will use English DNS. Both DNS will point
    to
    the same application on the same
    server.
    Example of what we require:
    weblogic.security.certificate.server=mycert1.pem
    weblogic.security.key.server=mykey1.der
    weblogic.security.certificate.authority=rootCertificate1.pem
    ----and---
    weblogic.security.certificate.server=mycert2.der
    weblogic.security.key.server=mykey2.der
    weblogic.security.certificate.authority=rootCertificate2.pem
    mycert1 will correspond to DNS1, and mcert2 will correspond to DNS2, and
    both
    DNS1 and DNS2 point to the same application on the same box.
    Thanks,
    Ragu

  • JSP Subclassing in weblogic.properties

    Hi,
              I'd like to have my JSP classfiles subclass one of our servlet classes,
              rather than the default. I'm able to do this at the command-line, by using a
              command like:
              java weblogic.jspc -keepgenerated -d /home/gkushida/weblogic/jsp -package
              com.kiko.jsp -superclass com.kiko.servlet.CustomJSP test.jsp
              This works fine, but I have two additional questions:
              1. I noticed that I have to provide an abstract _jspService() method in my
              CustomJSP servlet class, and then call it from within my doGet/doPost
              service methods manually. Is this the right thing to do?
              2. I'd like to do this automatically in my weblogic.properties file, where
              the JSPServlet is registered for *.jsp. I can't find any reference to a
              'superclass' initArg for the JSPServlet - is this functionality only
              available from the command-line compiler?
              We are running WebLogic 5.1.0, Service Pack 6 on Sun Solaris 2.7, JDK 1.3.
              Gene Chuang
              Join Kiko.com!
              

    See JSP 1.1 spec 3.2.4 for the contract of JSP page superclass.
              Gene Chuang <[email protected]> wrote:
              > Hi,
              > I'd like to have my JSP classfiles subclass one of our servlet classes,
              > rather than the default. I'm able to do this at the command-line, by using a
              > command like:
              > java weblogic.jspc -keepgenerated -d /home/gkushida/weblogic/jsp -package
              > com.kiko.jsp -superclass com.kiko.servlet.CustomJSP test.jsp
              > This works fine, but I have two additional questions:
              > 1. I noticed that I have to provide an abstract _jspService() method in my
              > CustomJSP servlet class, and then call it from within my doGet/doPost
              > service methods manually. Is this the right thing to do?
              > 2. I'd like to do this automatically in my weblogic.properties file, where
              > the JSPServlet is registered for *.jsp. I can't find any reference to a
              > 'superclass' initArg for the JSPServlet - is this functionality only
              > available from the command-line compiler?
              > We are running WebLogic 5.1.0, Service Pack 6 on Sun Solaris 2.7, JDK 1.3.
              > Gene Chuang
              > Join Kiko.com!
              Dimitri
              http://dima.dhs.org
              

  • Add  weblogic.properties to the weblogic.

    hi people
              how do i can to tell to the weblogic to start with another
              weblogic.properties when he starts,
              that is, to start with the weblogic.properties and other property into
              another directory ?
              any help will be appreciated
              

    You can set the system property weblogic.system.name:
              java ... -Dweblogic.system.name=foo ... weblogic.Server,
              and create directory 'foo' and put server-specific weblogic.properties
              there.
              ruben <[email protected]> wrote:
              > hi people
              > how do i can to tell to the weblogic to start with another
              > weblogic.properties when he starts,
              > that is, to start with the weblogic.properties and other property into
              > another directory ?
              > any help will be appreciated
              Dimitri
              

Maybe you are looking for