Re: [Configuration] Problems reading Chinese text from an XMLConfiguration - Problem solved, thanks

2005-09-05 Thread Matthias Bräuer
Hello XML allows you to specify the encoding of the document, otherwise it defaults to ISO-8859-1. [...] change it to ?xml encoding=UTF-8? if that isn't in the xml document or the very first item, add it. The encoding was correctly specified in the XML document. The reason for the error was

Re: [Betwixt] Customizing Vector binding with dot betwixt file

2005-09-05 Thread Rodrigo Partearroyo
Thank for your response Robert, i´ve been on vacations till today. I'll try your solution. robert burrell donkin wrote: On Tue, 2005-07-26 at 18:25 +0200, Rodrigo Partearroyo wrote: I´m trying to serialize a Vector of Strings. They are the security-roles allowed to access some part of my

Re: Digester: Problem with CallMethodRule

2005-09-05 Thread Mikko Nylén
Simon Kitching wrote: On Mon, 2005-09-05 at 07:18 +0300, Mikko Nylén wrote: Hi!, I'm having a little problem with Digester's CallMethodRule: it doesn't call the method. The XML file I try to parse is: --- configuration pages page path=/index.htm class=test.TestPage / page

AW: [VFS] URLInputStream(jar:file:/Z:/some/where.jar!/META-INF/MANIFEST.MF) ???

2005-09-05 Thread Schuett, Thomas \(EXT\)
Ups - nearly overseen this answer in the flood of postings :-) As a VFS start you can do: FileObject fo = VFS.getManager().resolveFile(jar:file://Z:/some/where.jar!/META-INF/MAN IFEST.MF); This will do what you want. Sounds good. However, as I have overseen this reply in the first hand, I

Convert list to map

2005-09-05 Thread Danny Lagrouw
Hi all, I need to do a lot of list-to-map conversions, and I'm looking for a way to use commons collections for this. I would like to do something like this: Map map = ListUtils.toMap(list, new SomeTransformerInterface() { void insertIntoMap(Object object, Map map) { SpecificObject s =

[VFS] fileObject.copyFrom ?

2005-09-05 Thread nice
Hi all! And what a great tool VFS is :-) Just having some startup difficulties. file = fsManager.resolveFile(/path/someDir); remDir.copyFrom(file, new AllFileSelector()); Ok, the file I want to copy is the directory + content. Somehow it is only the content of the dir that is copied?? How can i

[VFS] ftp and path problems?

2005-09-05 Thread nice
Hi again, I want to define the absolute path for my ftp dir like this: remDir = fsManager.resolveFile(ftp://me:[EMAIL PROTECTED]/import/home2/me); That is home2 is probably a mounted dir on the server. This does not seem to work. when using an ftp client the PWD is:

Re: [VFS] fileObject.copyFrom ?

2005-09-05 Thread Mario Ivankovits
[EMAIL PROTECTED] wrote: And what a great tool VFS is :-) Just having some startup difficulties. Thanks! file = fsManager.resolveFile(/path/someDir); remDir.copyFrom(file, new AllFileSelector()); Ok, the file I want to copy is the directory + content. Somehow it is only the content of the

Re: [VFS] ftp and path problems?

2005-09-05 Thread Mario Ivankovits
[EMAIL PROTECTED] wrote: Caused by: java.lang.NullPointerException at org.apache.commons.vfs.provider.ftp.FtpFileObject.doGetChildren(FtpFileObject.java:136) at It looks like commons-net do have some problems to parse your directory listing. What ftp server do you use?

Re: [VFS] fileObject.copyFrom ?

2005-09-05 Thread nice
Yes you got it, and it works fine thanks a lot. I guess I assumed that the FileObject returned was that actual src folder, so it seemed strange that it did not appear when copying it to dest dir. thanks again Jens Mario Ivankovits wrote: [EMAIL PROTECTED] wrote: And what a great tool

Re: [VFS] ftp and path problems?

2005-09-05 Thread nice
Boy you are fast :-) I use commons-net-1.4.0 I am not sure about the dir command. But here goes: Cmd: SYST 215: UNIX Type: L8 Cmd: NLST 425: Use PORT or PASV first. Cmd: STAT 211: FTP server status: Connected to 70.19.88.199 Logged in as schodt TYPE: ASCII

Re: [VFS] ftp and path problems?

2005-09-05 Thread Mario Ivankovits
Hi Cmd: NLST 425: Use PORT or PASV first. Do your ftp client do not have a dir or ls command? I guess it has something to do with your language setup on the ftp server, but I would like to see a directory listing to confirm this. Do you work on an linux/unix machine? Then we can try to

[jasper] compiling jsp in osgi context

2005-09-05 Thread Gilles Dodinet
hi- i'm trying to execute jsp in an osgi context with no luck as of today. i've embedded jetty as an osgi bundle and registered a BundleListener which registers installed bundles as webapp if they contain a web descriptor file. so far so good. it plays nice with simple html files. however

Re: [jasper] compiling jsp in osgi context

2005-09-05 Thread Martin Cooper
I'm not sure I understand what the relationship is between what you're doing and Jakarta Commons, if there is one. Note that Jasper is part of the Tomcat project, so I would suggest asking over there. -- Martin Cooper On 9/5/05, Gilles Dodinet [EMAIL PROTECTED] wrote: hi- i'm trying to

Re: [jasper] compiling jsp in osgi context

2005-09-05 Thread Gilles Dodinet
oh. right, my mistake! gonna ask there. thanks! -- gd Martin Cooper wrote: I'm not sure I understand what the relationship is between what you're doing and Jakarta Commons, if there is one. Note that Jasper is part of the Tomcat project, so I would suggest asking over there. -- Martin