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
Similar Messages
-
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 -
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 -
Hi Everyone:
We are using JDev 11.1.2 and JHeadstart 11.1.2. We have been having a multitude of problems when running applications through the migrator (and we have now been told by an Oracle consultant that the migrator is problematic), so we are trying to re-write things from scratch to bring them over from 11.1.1.4 to 11.1.2.
I have been working on a simple application from scratch and discovered that the messages for constraints on the entities that I am using are not showing up in the ApplicationResources_en.properties.file. We noticed a similar thing with converting an application using the migrator and that post is found here - java.lang.NullPointerException ADF_FACES-60097 message ***WITH SOLUTION*** -.
However, I didn't get a single reply to that thread.
I initially thought it was a migration issue, but this application is from scratch. Whenever I tried to input an invalid value into a page column, the following exception would be received.
"java.lang.NullPointerException ADF_FACES-60097:For more information, please see the server's error log for an entry beginning with: ADF_FACES-60096:Server Exception during PPR, #"
This Null Pointer turned out to be the missing message from the ApplicationResources_en.properties file. In the new application I just wrote, I had to manually edit to add the following lines to the ApplicationResources_en.properties file and the application no longer gives me the error if I input an invalid value.
VALIDATE_FEE_CATEGORY_3=Feecategory with this FeeCategory does not exist
VALIDATE_ACADEMIC_TERM36=Academicterm with this EffectiveTermStart does not exist
VALIDATE_ACADEMIC_TERM36_CASDEL=Cannot delete Academicterm while dependent Specialexchange exists
VALIDATE_ACADEMIC_TERM37=Academicterm with this EffectiveTermEnd does not exist
VALIDATE_ACADEMIC_TERM37_CASDEL=Cannot delete Academicterm while dependent Specialexchange exists
VALIDATE_CURRENCY23=Currency with this Currency does not exist
VALIDATE_CURRENCY23_CASDEL=Cannot delete Currency while dependent Specialexchange exists
VALIDATE_FEE_CATEGORY_3=Feecategory with this FeeCategory does not exist
VALIDATE_FEE_CATEGORY_3_CASDEL=Cannot delete Feecategory while dependent Specialexchange exists
These constraints are found in the Entities .xml files as shown below. We are using a re-usable business components .jar file to import them in.
<Key
Name="UniqueFeeCategory"
PrimaryKey="true">
<DesignTime>
<Attr Name="_DBObjectName" Value="UNIQUE_FEE_CATEGORY"/>
</DesignTime>
<AttrArray Name="Attributes">
<Item
Value="its.sis.uwbm.AREdit.entityobjects.Specialexchange.FeeCategory"/>
<Item Value="its.sis.uwbm.AREdit.entityobjects.Specialexchange.Currency"/>
<Item
Value="its.sis.uwbm.AREdit.entityobjects.Specialexchange.EffectiveTermEnd"/>
</AttrArray>
</Key>
<Key
Name="ValidateAcademicTerm36">
<DesignTime>
<Attr Name="_referencedKey" Value="UNIQUE_ACADTERM_CODE"/>
<Attr Name="_isForeign" Value="true"/>
<Attr Name="_DBObjectName" Value="VALIDATE_ACADEMIC_TERM36"/>
</DesignTime>
<AttrArray Name="Attributes">
<Item
Value="its.sis.uwbm.AREdit.entityobjects.Specialexchange.EffectiveTermStart"/>
</AttrArray>
</Key>
<Key
Name="ValidateAcademicTerm37">
<DesignTime>
<Attr Name="_referencedKey" Value="UNIQUE_ACADTERM_CODE"/>
<Attr Name="_isForeign" Value="true"/>
<Attr Name="_DBObjectName" Value="VALIDATE_ACADEMIC_TERM37"/>
</DesignTime>
<AttrArray Name="Attributes">
<Item
Value="its.sis.uwbm.AREdit.entityobjects.Specialexchange.EffectiveTermEnd"/>
</AttrArray>
</Key>
<Key
Name="ValidateCurrency23">
<DesignTime>
<Attr Name="_referencedKey" Value="UNIQUE_CURRENCY_CODE"/>
<Attr Name="_isForeign" Value="true"/>
<Attr Name="_DBObjectName" Value="VALIDATE_CURRENCY23"/>
</DesignTime>
<AttrArray Name="Attributes">
<Item Value="its.sis.uwbm.AREdit.entityobjects.Specialexchange.Currency"/>
</AttrArray>
</Key>
<Key
Name="ValidateFeeCategory3">
<DesignTime>
<Attr Name="_referencedKey" Value="UNIQUE_FEECAT_CODE"/>
<Attr Name="_isForeign" Value="true"/>
<Attr Name="_DBObjectName" Value="VALIDATE_FEE_CATEGORY_3"/>
</DesignTime>
<AttrArray Name="Attributes">
<Item
Value="its.sis.uwbm.AREdit.entityobjects.Specialexchange.FeeCategory"/>
</AttrArray>
Is this a known bug (I have searched and havent found it) and is there anything that I can do about it without having to manually add the messages?
Mary
UofWHi Everyone:
I have done some further testing. We are using a re-usable Business Components .jar file to access our entities. We import the .jar file into the project and create the ViewObjects and ViewLinks from that .jar file.
It APPEARS that a test case using the HRSchema and using the Entities & Associates generates the constraint error messages, but when I use the .jar file of re-usable business components imported into the project, those constraint error messages are not created in the ApplicationResources_en.properties file. I have created two testcases as well as the re-usable .jar file that I can send to you to show what I mean.
This behaviour seems to have shown up in 11.1.2 as there was no problem before this.
Please let me know where you'd like me to upload the testcases.
Thank you.
Mary
UofW -
I have been defining Big5 as an alias of Big5-HKSCS in charsetalias.properties. This makes Firefox renders pages declared as "Big5" to be rendered in Big5-HKSCS instead. Big5-HKSCS is a standard published by the Hong Kong government because the Big5 charset does not contain many common Chinese characters used in Hong Kong. However, Big5-HKSCS is just an extension of Big5, so most (if not all) Chinese web sites in Hong Kong using Big5-HKSCS declare their pages to be in Big5 in the <meta> tag.
I am now trying out Firefox 4 RC and found that the charsetalias.properties file is no longer there. So in order to read pages containing characters that are in Big5-HKSCS but not in Big5, I need to switch the encoding manually. This is extremely inconvenient. Can you consider bringing charsetalias.properties back?
[http://groups.google.com/group/mozilla.dev.i18n/browse_thread/thread/415caa98a6246a00 Someone noticed this issue as well.]Here's the script I was working on.
It determines the encoding of the site by checking a couple of different ways the meta tag can supply encodings. One way is to have a charset attribute on a meta tag, and the other way is to have a meta tag with http-equiv="content-type" and have charset= be part of the content attribute.
(note: I think [https://developer.mozilla.org/en/DOM/document.characterSet document.characterSet()] might be a far more reliable way to detect encoding since it doesn't depend on the specific way the meta tag was written. But I haven't tested it.)
Debugging messages showed that it could detect the specified encodings fine on the few test pages I was trying it on. The problem is in the way I change the encoding.
It currently uses .setAttribute to attempt to modify the meta tags once it finds the encodings. Unfortunately, this doesn't change the selected encoding in Firefox. It doesn't affect the page source, either.
I have to replace those setAttribute calls with something that will actually affect the selected encoding in Firefox.... but I'm not sure what would accomplish that.
http://pastebin.com/Yt7fygXe
Just a little warning, it's case- and whitespace-sensitive because I didn't get around to using regular expressions yet. So if a page says charset="BIG5", you'll probably need to make it uppercase in the script as well. Sorry, I'm lazy!
Nonetheless, I ''hope'' this is a start... -
Where is the swing.properties file?
In J2SDK 1.5 beta, where is the swing.properties file.
The file is supposed to be located in <Java Home>/lib/ but it is not there.
Thanks,I'm not sure about 1.5, but normally there isn't one. The defaults are just used unless there is one.
Look here
http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/UIManager.html -
SAP-XI, permission of the instance.properties file changes unexpectedly
Hi forum,
I have XI installed in HP-UX,
the permission of the instance.properties file (/usr/sap/<SID>/<instance name>/j2ee/cluster/instance.properties) in my XI system (installed in HP-UX), changes automatically, and hence the server starts giving problem like, JCO error while message-mapping, etc,
can u tell me how the permission changes on the fly,
I mean to say, in proper condition we keep it as rw_rw_rw, but it changes to rw_ ___ ___,
pls help,Hi Sudeep
I just checked on two systems. It looks like the permissions should be:
sidadm > ll j2ee/cluster/instance.properties
-rw-r--r-- 1 sidadm sapsys 3669 Nov 25 12:41 j2ee/cluster/instance.properties
Can you please check if <b>sidadm> umask</b> returns 022?
Regards Michael -
By mistake i deleted the Propertysheet.properties file in VC admin
Hi All,
I have an issue in visual composer, I did the following.. then i got the error when I logged into VC that "Proxy error : Server error : Failed to read models list"
1. Log on to Visual Administrator.
2. In the left panel, make sure the Global Configuration tab is chosen.
3. In the tree, expand the Services node and choose the Configuration Adapter service. In
the main pane, in the Display configuration tab, the Configurations tree is displayed.
4. Expand the development server node to display the client workspaces.
Under client workspaces i have gone to my login name under that by mistake i deleted the Propertysheet.properties file.
Then i refreshed the my model name, then the Propertysheet.properties file came.
Still I am getting the error. Can you help me out... Its very urgent to resolve this.. I will give points for good answers.
Thanks
Suresh.Hi,
does this only happen for your user or for all?
Anja -
Revision: 8057
Author: [email protected]
Date: 2009-06-22 12:27:26 -0700 (Mon, 22 Jun 2009)
Log Message:
Some errant renames in the project properties files.
Modified Paths:
flex/sdk/trunk/development/eclipse/flex/airframework/.actionScriptProperties
flex/sdk/trunk/development/eclipse/flex/flash-integration/.project
flex/sdk/trunk/development/eclipse/flex/sparkTest/.actionScriptPropertiesThats good news.
-
Add OWN property to the weblogic.properties
Hi.
I tried to add my own property to the weblogic.properties.
ERROR: "Found undeclared property"
Is it at all possible?
TIA,If you simply want to define a Java System property, you can do that
like so:
java.system.property.my.property=foo
This has the same effect as using the -Dmy.property=foo argument to the
JVM and is retrievable programmatically by calling
System.getProperty("my.property")
Hope this helps,
Robert
Daniel Ilkanayev wrote:
Hi.
I tried to add my own property to the weblogic.properties.
ERROR: "Found undeclared property"
Is it at all possible?
TIA, -
Where can I find the wrapper.properties file?
Does anyone know where I can find the wrapper.properties file?
Yes I am talking about tomcat, except it is not in this directory. I even did a search my entire hard drive and could not find it. Why is this? and how do I change the class path for the server? I thought you do so in this file?
-
Revision: 11314
Author: [email protected]
Date: 2009-10-30 10:38:34 -0700 (Fri, 30 Oct 2009)
Log Message:
add the empty properties file to svn to fix the build.properties
QE notes:
Doc notes:
Bugs: fix the build
Reviewer: Pete
Tests run: checkintests
Is noteworthy for integration: no
Added Paths:
flex/sdk/trunk/frameworks/projects/playerglobal/bundles/de_DE/empty.properties
flex/sdk/trunk/frameworks/projects/playerglobal/bundles/fr_FR/empty.properties
flex/sdk/trunk/frameworks/projects/playerglobal/bundles/ja_JP/empty.properties
flex/sdk/trunk/frameworks/projects/playerglobal/bundles/ru_RU/empty.properties
flex/sdk/trunk/frameworks/projects/playerglobal/bundles/zh_CN/empty.propertiesThats good news.
-
Can I programatically read the wls properties file
I'd like to set my own application specific properties in the properties
file and then read them programmatically. Can I do this?
thanks for any help,
Edwin Marcial
http://homepage.beasys.com/denali/classdocs/javadocs/weblogic/common/ConfigServicesDef.html#getProperty(java.lang.String)
Yes, you can programmatically get this information with the help of a t3
client. I am sure there is documentation on the web on how to do this.
-- Prasad
Edwin Marcial wrote:
> I'd like to set my own application specific properties in the properties
> file and then read them programmatically. Can I do this?
>
> thanks for any help,
>
> Edwin Marcial
-
How to Aoid \ charcters in the stored properties file
I m using the code to store into .properties files but it adds \ before : How can i avoid this
Properties prop = new Properties();
prop.setProperty("URL", "jdbc:oracle:thin:@:host:port:schema");
properties.store(new FileOutputStream(db.properties), null);But my db.properties files is below
jdbc\:oracle\:thin\:@\:host\:port\:schemaI want to avoid '\' while storing.http://www.docjar.com/html/api/java/util/Properties.java.htmlThat would be the code for java.util.Properties Class.
If you can notice through code there is a method called
private void formatForOutput(String str, StringBuffer buffer, boolean key)and inside the method there is a switch case
case '\\':
case '!':
case '#':
case '=':
case ':':
buffer.append('\\').append(c);
break;you might think of removing it as per your stated requirement and use the final implementation class accordingly.
Hope that might help :)
REGARDS,
RaHuL -
Where to include the jpos.properties file?
Hi,
We have a code that needs to be run. I have used the netbeans to do it. I understand that netbeans has its own environment variables that makes the application independent. The code works in netbeans but when i try to run it in the command line, this appears:
"jpos/res/jpos.properties not found"
As i had traced it, the directory(where jpos.properties resides) which i added in the Libraries was not copied in the dist folder. It says that it "...is a directory or can't be read. Not copying the libraries."
It is very important that this jpos.properties be copied since there are a lot of abstract classes used in the code.
Does anyone know where i should include this jpos.properties file?
thanks. :)I've already made it run through the command line. I just included the jpos.properties in the jar package.
Thanks to all the replies.
Apology to someone who was bugged due to my crosspost.
Maybe you are looking for
-
I was wondering if anyone knows if there is a way to set your Macbook so that when you use Webex and share your desktop you can broadcast any number of the multiple desktops on the Mac. Yesterday I found myself needing to share my desktop on a Webex.
-
Mail "unexpectedly" quits at launch - EVERY TIME
...I suppose that makes it not so unexpected. I installed Leopard (and the 10.5.1 update) within the last week. Mail intermittently 'unexpectedly quit' several times over the subsequent days. Starting 3 days ago I couldn't download or send any mail t
-
Same question.... I want mini- bridge back in Photoshop cc 2014? roger I am waiting for my answer.
-
This is probably a simple issue, but I just can't seem to figure it out. I have a caption with two lines on all the photos, On one caption I need it to be three lines, but I want The line that is usually second to stay in the same place without movin
-
Mac os 10.5.8 upgrade to snow leopard
i have os 10.5.8 on my imac - just received the mac box set with os x snow leopard, ilife 11, and iwork 11 - do i need to do any other downloads or anything else before i put the disc in to upgrade i need snow leopard for a software i want to downloa