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
Similar Messages
-
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] -
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 UniversityThanks 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 -
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
ThanksHi,
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, -
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,
moonriverThe 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 -
@WEBLOGIC in properties file
Hi,
What am I supposed to replace this. My weblogic is installed
on drive E: on NT.
E:\weblogic
However, when I didn't replace, and tried to access the cloudscape
DB, I noticed that a directory @WEBLOGIC was created in
E:\weblogic !
Should I just replace @WEBLOGIC in the weblogic.properties file
with empty string?
Thanks,
AndyI don't believe that feature is available until 6.1.
Peace,
Cameron Purdy
Tangosol Inc.
<< Tangosol Server: How Weblogic applications are customized >>
<< Download now from http://www.tangosol.com/download.jsp >>
"Kevin White" <[email protected]> wrote in message
news:3b89b178$[email protected]..
>
Does anyone know if Weblogic 5.1 has a way to encrypt the Databasepassword that
is stored in the weblogic.properties for DB pools. System Administratorsusually
do not have access to database passwords. Also, there is a security riskin having
a production password in the clear. If Weblogic 5.1 doe not have thiscapability,
then has anyone done a work around to resolve this issue?
Thanks,
Kevin White -
Help: why I cannot find the weblogic.mycluster.properties file
When I first config the cluster. While Setting up the weblogic.properties
Files, Open and read the cluster properties file (installed by default as
weblogic/mycluster). Any properties set in the cluster properties file will
override the same properties that were set from the global properties file.
But I cannot find this file, Also I copy the weblogic.properties to
weblogic.mycluster.properties,Also,I cannot find the
weblogic.cluster.enable=true,etc.
thanks
It is required to put it in command line.
Cheers - Wei
Atish Ray <[email protected]> wrote in message
news:[email protected]...
> What happens if I set this property thru the properties file ? It still
> works. Is there a known problem on this ?
>
>
>
> Wei Guan wrote in message <[email protected]>...
> >Yes, the default cluster name is mycluster.
> >
> >Create an directory named 'mycluster' under your weblogic home, copy
> >weblogic.properties to mycluster/weblogic.properties will do the trick.
> >
> >weblogic.cluster.enable=true has to be set via command-line. That is, add
> >'-Dweblogic.cluster.enable=true' in your startup script.
> >
> >--
> >Cheers - Wei
> >
> >
> >
> >hhb <[email protected]> wrote in message
> >news:[email protected]...
> >> When I first config the cluster. While Setting up the
weblogic.properties
> >> Files, Open and read the cluster properties file (installed by default
as
> >> weblogic/mycluster). Any properties set in the cluster properties file
> >will
> >> override the same properties that were set from the global properties
> >file.
> >> But I cannot find this file, Also I copy the weblogic.properties to
> >> weblogic.mycluster.properties,Also,I cannot find the
> >> weblogic.cluster.enable=true,etc.
> >>
> >> thanks
> >>
> >>
> >>
> >
> >
>
>
-
Weblogic 6.0 install on unix:: conversion of properties file.
I followed the instructions to convert my weblogic properties file from a WL5.1
install. Copied the *.war file from the default domain into the new domain and
tried to start the application server with the script for the domain. It asks
for a boot password which I am assuming should be the same one that I set during
the weblogic install. When I enter the password, it refuses to boot the application
server complaining about the password. Yet when I try to start the default server,
it boots up
fine with the same password. Now my question is, it the password
the same or not? If not then what is the boot password for the
new domain and where is it set?
Any help will be appreciated
Thanks,
Hemant"Hemant Varma" <[email protected]> wrote:
>
I followed the instructions to convert my weblogic properties file from
a WL5.1
install. Copied the *.war file from the default domain into the new domain
and
tried to start the application server with the script for the domain.
It asks
for a boot password which I am assuming should be the same one that I
set during
the weblogic install. When I enter the password, it refuses to boot the
application
server complaining about the password. Yet when I try to start the default
server,
it boots up
fine with the same password. Now my question is, it the password
the same or not? If not then what is the boot password for the
new domain and where is it set?
Any help will be appreciated
Thanks,
Hemant
Sorry for my english. I am french
The user/password is coming from your properties file that you
have converted -
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. BaturinSure, 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 -
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,
RaguI 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
-
Convert weblogic.properties
All,
I'm trying to convert an existing 5.1 installation to 6.0 and am having a bit of difficulty with creating a new config.xml based on an existing weblogic.properties. Has anyone gone through this process yet? The documentation seems vague and incomplete (references things like "<insert-ref>").
Also, the conversion html page/applets also seem very confusing. They present 2 list boxes that were created from your existing weblogic.properties file. These list boxes are labeled "server weblogic.properies" and "cluster weblogic.properies". Instead of containing discernable properties, they contain lists of directories. Selecting any of these directories will generally cause a conversion failure. Is this thing just not there yet, and should I be building up my own weblogic.properties/config.xml from scratch?
I'd be interested in anyone else's experiences with these issues. TIA.
JohnHHi John,
I'm trying to do conversion from WL 5.1 and as you just described it doesn't seem to work.
Have you solved your problem? If yes, how did you do it?
Thanks!
"John Hogan" <[email protected]> wrote:
>
All,
I'm trying to convert an existing 5.1 installation to 6.0 and am having a bit of difficulty with creating a new config.xml based on an existing weblogic.properties. Has anyone gone through this process yet? The documentation seems vague and incomplete (references things like "<insert-ref>").
Also, the conversion html page/applets also seem very confusing. They present 2 list boxes that were created from your existing weblogic.properties file. These list boxes are labeled "server weblogic.properies" and "cluster weblogic.properies". Instead of containing discernable properties, they contain lists of directories. Selecting any of these directories will generally cause a conversion failure. Is this thing just not there yet, and should I be building up my own weblogic.properties/config.xml
from scratch?
I'd be interested in anyone else's experiences with these issues. TIA.
JohnH -
Debug weblogic.properties conversion error
All,
I'm attempting to use the web console application/Convert weblogic.properties link to perform a propterties file conversion.
I'm getting a conversion error when converting our current weblogic.properties file. This properties file is working fine in WL5.1. The web console begins the conversion process ok, but it fails before completion (html err msg below).
I'm trying to determine the cause of this error, but there's very little output reported to the console, except a couple of warnings. Also, I don't see any log files.
I do get what looks like some partial conversion results in my new domain directory in fileRealm.properties. There are recognizable properties from the converted weblogic.properties file in here.
Has anyone encountered/surmounted similiar difficulty? Any debugging tips would be appreciated. TIA.
JohnH
p.s. The output/error message on the html page looks like:
New Domain name is MyDomain-1
Converting Server properties
Converting Server Debug Properties
Converting WebServer properties
Converting WebApp Component Properties
Converting JDBC Specific properties
Converting CORBA IIOP properties
Converting StartupClass properties
Converting Shutdown Class properties
Converting MailSession Properties
Converting FileT3 properties
Converting JMS properties
Converting Security Properties
Converting the PasswordPolicy properties
Converting User Group and ACL properties
Conversion failedYa it will be corrected in the next beta refresh.
Jim Clark <[email protected]> wrote in message
news:[email protected]..
Typo in weblogic.properties conversion console page
"Select server weblogic.properies"
and
"Select cluster weblogic.properies"
Both are missing the "t" -
How do I read weblogic properties in my code
Hi,
I want to pick up the port number from my weblogic properties file and
use it to set the context for the EJB's. Are there any weblogic API's
that I can use to do this. I am trying to avoid hardcoding the port
number anywhere in the code.
Appreciate your help.
AshwinIt is not a "Buggers".
WLAS registered her own properties internally. "weblogic.password" is
regiserted as a hashtable with username as "key", and password as "value".
So does connection pool. "getProperty()" will give your the String
representation of the hashtable.
Cheers - Wei
Dean Jackman <[email protected]> wrote in message
news:[email protected]...
The code that Wei shows is correct, however, I'm experiencing thefollowing
"Funny Buggers":
Am experiencing weird results when I do the following within my clientcode
(as you'll no doubt notice, I'm trying to get my password value for myuser
'jackmand'):
System.out.println(
"weblogic.password '" +
this.getT3ServicesDef().config().getProperty("weblogic.password"));
// the above works fine, it prints out weblogic.password.jackmand=*******,
along with all of the other registered users
System.out.println(
"weblogic.password.jackmand '" +
this.getT3ServicesDef().config().getProperty("weblogic.password.jackmand"));
>
// the above just returns a null, even though the earlierweblogic.password
shows jackmand to exist.
Also note, that this isn't necessarily restricted to password. I've tried
things like weblogic.jdbc.connectionPool in an attempt to get the jdbc URL
of my server. Just doing plain connectionPool shows the name of my server,
whilst if I do a getProperty("weblogic.jdbc.connectionPool.rhubarb") where
rhubard is the name of my connectionPool, I get null? (strewth).
Can anyone shed any light on: why its not working/what I'm doing
wrong/whether I'm able to do this?
Thanks, Dean Jackman
Wei Guan wrote:
T3Services.getT3Services().config().getProperty(<property-name>);
Cheers - Wei
Ashwin Srinivasan <[email protected]> wrote in message
news:[email protected]...
Hi,
I want to pick up the port number from my weblogic properties file and
use it to set the context for the EJB's. Are there any weblogic API's
that I can use to do this. I am trying to avoid hardcoding the port
number anywhere in the code.
Appreciate your help.
Ashwin -
Setup weblogic.properties
Reading through the docs on cluster setup brings up a simple
question....
In the docs it suggests putting system password/identity info, and
servlet registration in the system/global level weblogic properties
file...and setup for EJBs, JDBC connection pools in the per-cluster
setup file... my question is, why not put servlets registrations in the
per-cluster weblogic.properties file? Seems to me that really
everything should be in the cluster property file, almost or entirely
nothing in the system lever weblogic.properties.
Thanks,
-Brian
Brian,
I think it depends on your particular configuration. If your configuration
is such that each cluster is serving up a different set of functionality,
then your suggestion makes sense (though you might want all clusters to
have the same "system password"). If not, then putting things in the
"system-level" properties file might make more sense.
Just my two cents,
Robert
Brian Burke wrote:
> Reading through the docs on cluster setup brings up a simple
> question....
> In the docs it suggests putting system password/identity info, and
> servlet registration in the system/global level weblogic properties
> file...and setup for EJBs, JDBC connection pools in the per-cluster
> setup file... my question is, why not put servlets registrations in the
> per-cluster weblogic.properties file? Seems to me that really
> everything should be in the cluster property file, almost or entirely
> nothing in the system lever weblogic.properties.
> Thanks,
> -Brian
Maybe you are looking for
-
OS X Mavericks 10.9.1 download, where are my notes and reminders?
I downloaded Mavericks 10.9.1 and my Notes, that used to be apart of mail, and Reminders, that used to be a part of iCalendar ,have disappeared into the depths of cyberspace. Anybody tell me where how I might get them back or where they might be in t
-
Hey, I'm about to purchase Dreamweaver and will need to imbed flash players in my page for audio samples. Please see soundrangers.com or http://www.soundrangers.com/category-results.cfm?storeid=1&cat_id=0253 Do I need to purchase Flash as well, or is
-
Recently I have just got my hands on mtion 5, and the first I notice is the in motion 5 is really jerky. I also had the same issue when I was using motion 4. I'm using a 2010 15" macbook pro with the 2.4GHz Intel core i5 with a 320GB HDD (hope to upg
-
My macbook pro says connection lost when I try to connect to my wifi.
I cannot connect to my wifi at home via wireless. It only works if I'm connected via ethernet cable. When I would attempt to connect to my wifi, it says connection lost. Does anybody have a solution? (not sure if this is helpful or not, but is says n
-
How to set Action type of Message Text Input Programatically.
Hi, I am trying to create a PPR Event on a Message Text Input of Standard Page. I am extending the controller and trying to set the Action Type to firePartialAction and Event to XXXX Is it possible to set those properties? Regards, Krishna