Re: [daemon] Unable to find Java Runtime Environment

2010-09-14 Thread Michael Hagedorn
--StartMode=java --JavaHome=jre ends up in [error] ServiceStart returned 5 I guess '5' means access denied. So it needs a valid --JavaHome (--StartMode=jre wont work too). BTW my very favorite StartMode would be 'jvm' of course but it fails. I'm using RMI within localhost (talking from the

[VFS][SFTP] access path containing %0

2010-09-14 Thread Nicolas Delsaux
Hi all, I'm trying to access through SFTP and Commons VFS a file in a path containing the %0 sequence (as an example sftp://u...@server/mnt/data/data_files/path%0/System%20Folder/Librairies/Directory%20Management/LDAP%20Sync/LDAPSync.c) but each time I do an exception occurs. More precisely, I can

Re: [VFS][SFTP] access path containing %0

2010-09-14 Thread sebb
On 14 September 2010 14:50, Nicolas Delsaux nicolas.dels...@gmail.com wrote: Hi all, I'm trying to access through SFTP and Commons VFS a file in a path containing the %0 sequence (as an example

Re: [VFS][SFTP] access path containing %0

2010-09-14 Thread Nicolas Delsaux
On Tue, Sep 14, 2010 at 4:03 PM, sebb seb...@gmail.com wrote: If the path really contains: /mnt/data/data_files/path%0/ Oh yes it does, and I know it's a bad idea. then try using /mnt/data/data_files/path%250/ where % is replaced by %25. it works ! But isn't there any way to make that

Re: [VFS][SFTP] access path containing %0

2010-09-14 Thread sebb
On 14 September 2010 15:27, Nicolas Delsaux nicolas.dels...@gmail.com wrote: On Tue, Sep 14, 2010 at 4:03 PM, sebb seb...@gmail.com wrote: If the path really contains: /mnt/data/data_files/path%0/ Oh yes it does, and I know it's a bad idea. then try using /mnt/data/data_files/path%250/

[Common Configuration] Bad Exception Handling in ConfigurationFactory

2010-09-14 Thread Nicolás Meléndez
Hi there, i was looking code at ConfigurationFactory and maybe a find a problem, what do you think? in class ConfigurationFactory, line 184: if digester.parse(input); throws an exception, the input stream doesn't close, and a process will leak of resources. i think there should be a finally

Re: [daemon] Unable to find Java Runtime Environment

2010-09-14 Thread Mladen Turk
On 09/14/2010 10:29 AM, Michael Hagedorn wrote: --StartMode=java --JavaHome=jre ends up in [error] ServiceStart returned 5 :) I said it would be nice to *have* --JavaHome=jre Create an JIRA feature request issue (https://issues.apache.org/jira/browse/DAEMON) explaining the problems you are

Re: [VFS][SFTP] access path containing %0

2010-09-14 Thread Nicolas Delsaux
On Tue, Sep 14, 2010 at 4:37 PM, sebb seb...@gmail.com wrote: So just make sure that you also encode literal % characters as well. Note that the path /mnt/data/data_files/path%0/System%20Folder/etc. is partially URL-encoded already; encoding it again will cause problems. OK, seems like a

Re: [exec] Getting Error opening terminal error while trying to execute command on linux

2010-09-14 Thread Mohammed Sanaulla
Siegfried, Thanks a lot. Regards, On 14 September 2010 01:28, Siegfried Goeschl siegfried.goes...@it20one.atwrote: Hi Mohammed, added the following test /** * Call a script to dump the environment variables of the subprocess * after adding a custom environment variable.

RE: Building Apache VFS with sandbox

2010-09-14 Thread Patel, Ronak Avinash (US SSA)
Hi, Thanks for the reply. I am looking to build the full library including the sandbox...I need support for the CIFS filesystem...as I'm sure many other people need as well on their projects. Has anyone built the sandbox-core bundle successfully? Ronak -Original Message- From: sebb

[daemon] Using RMI without security manager

2010-09-14 Thread Michael Hagedorn
My App is using RMI to talk between daemon component and GUI. Everything runs within one machine. If I deploy daemon component with '--StartMode=jvm' App runs into exceptions by RMI class loader. It misses a security manager. But I don't want to install security manager and if I deploy

Re: [Common Configuration] Bad Exception Handling in ConfigurationFactory

2010-09-14 Thread Oliver Heger
Am 14.09.2010 16:48, schrieb Nicolás Meléndez: Hi there, i was looking code at ConfigurationFactory and maybe a find a problem, what do you think? in class ConfigurationFactory, line 184: if digester.parse(input); throws an exception, the input stream doesn't close, and a process will leak of