[commons] - Inconsistent way to locate filename when creating configuration

2006-06-14 Thread gabriele . garuglieri
Hi Oliver, is there any particular reason why if, when conf/conf1.properties is in classpath, doing PropertiesConfiguration pc = new PropertiesConfiguration( conf/conf1.properties); gives org.apache.commons.configuration.ConfigurationException: Cannot locate configuration source

Base64 encoding problem

2006-06-14 Thread Priti Menon
Hi All, I am facing a problem with the Base64 encoding class in the commons package. i.e. org.apache.commons.codec.binary.Base64 I am trying to encode decode a string back to its original value. I have tried this on windows linux. If you compare the hashcodes of the original string with the

Re: Base64 encoding problem

2006-06-14 Thread luc . maisonobe
Selon Priti Menon [EMAIL PROTECTED]: Could you try to remove the encoding/decoding part and performing directly: String decodedString = new String(s.getBytes()); and to compare the hash codes ? If this fails, then it would mean the special character is not valid in the default encoding of

Re: Base64 encoding problem

2006-06-14 Thread Neal Johnson
I have had a similar problem when using strings in this way, The way I got around this was to use a to specify the specific encoding when constructing the string object, by default the constructer will use the operating system character encoding witch can very dramatically even though it

[betwixt] Summary feature

2006-06-14 Thread Holger Haag
Hi, I am looking for a betwixt feature I call summary having found no better term. Requirements are as follows: A air fare list is converted to the following XML: fareList fare departure code=SXF/ destination code=JFK/ price amount=123.45 currency=EUR/ /fare fare

[configuration] Issue with combinedConfig from Factory

2006-06-14 Thread thomas peter
hi, i stumbled across the following issue, and don't know what knob to turn. i load configs (xml) via the getConfiguration Method of ConfigurationFactory and cast it to CombinedConfiguration. the file i provide to the Factory is configuration xml fileName=c.xml/-- /configuration c.xml has

Re[2]: turning on debugging with commons logging

2006-06-14 Thread Christian Hufgard
Hi Folks, I don't use Apache Struts, but I think copying the log4j.properties to WEB-INF should be OK. Put it into WEB-INF/classes, then it should be found. log4j.appender.FILE.File=output.log This whould create a file named output.log relativly to the directory from where you started your

[SCXML] nightly builds

2006-06-14 Thread Breeze Meadow
I am trying to locate the latest scxml builds but couldn't find it at: http://people.apache.org/builds/jakarta-commons/nightly/commons-scxml/. Does anybody know where it is now? Thanks in advance. flx __ Do You Yahoo!?

Re: [SCXML] nightly builds

2006-06-14 Thread Rahul Akolkar
On 6/14/06, Breeze Meadow [EMAIL PROTECTED] wrote: I am trying to locate the latest scxml builds but couldn't find it at: http://people.apache.org/builds/jakarta-commons/nightly/commons-scxml/. Does anybody know where it is now? Thanks in advance. snip/ Sorry about that, but it seems that

Re: [commons] - Inconsistent way to locate filename when creating configuration

2006-06-14 Thread Oliver Heger
[EMAIL PROTECTED] wrote: Hi Oliver, is there any particular reason why if, when conf/conf1.properties is in classpath, doing PropertiesConfiguration pc = new PropertiesConfiguration( conf/conf1.properties); gives org.apache.commons.configuration.ConfigurationException: Cannot locate

Re: [SCXML] nightly builds

2006-06-14 Thread Craig McClanahan
On 6/14/06, Rahul Akolkar [EMAIL PROTECTED] wrote: On 6/14/06, Breeze Meadow [EMAIL PROTECTED] wrote: I am trying to locate the latest scxml builds but couldn't find it at: http://people.apache.org/builds/jakarta-commons/nightly/commons-scxml/. Does anybody know where it is now? Thanks in

Re: [configuration] Issue with combinedConfig from Factory

2006-06-14 Thread Oliver Heger
thomas peter wrote: hi, i stumbled across the following issue, and don't know what knob to turn. i load configs (xml) via the getConfiguration Method of ConfigurationFactory and cast it to CombinedConfiguration. the file i provide to the Factory is configuration xml fileName=c.xml/--

[Commons DBUtils] DBUtils Query

2006-06-14 Thread Mandar Patil
Hi, I am usinf DBUtils for my Database transactions. I have an instance where in I use QueryRunner#query(Connection conn, String sqlQuery, ResultSetHandler rs). This statement returns me my desired object, but the database columns with decimal datatype is returned as zero (0). My Database