[commons-vfs] accessing exploded WAR content at runtime

2009-10-20 Thread nodje
What'd be a good way to get access to a deployed WAR's content using VFS? Right now, I'm doing: servletContext.getRealPath() + File.separator + WEB-INF + File.separator + classes + File.separator + path; And this quite inconvenient to rely on servletContext since I don't have access to it in

math KMeansPlusPlusClusterer Failing unittest

2009-10-20 Thread VanIngen, Erik (FIES)
Hi all, I have a problem with KMeansPlusPlusClusterer in the trunk. See below for the unittest. Am I doing something wrong here or is there a bug? Kind Regards, Erik @Test public void testPerformClusterAnalysis2() { KMeansPlusPlusClustererEuclideanIntegerPoint transformer =

[SCXML] Retrieving a (wrapped) NodeSet for an XPath / user defined XPath functions

2009-10-20 Thread Jaroslav Pullmann
Dear Rahul, dear all, the result value of an XPath-selection is limited to an XPathConstants.NODE as of XPathEvaluator#evalLocation(Context, String). Having a root element is reasonable for assignments etc. but I'd need to select a NodeSet based on the XPath predicates first (and then

Re: math KMeansPlusPlusClusterer Failing unittest

2009-10-20 Thread Ted Dunning
Can you say more about exactly what problem you are having? On Tue, Oct 20, 2009 at 2:54 AM, VanIngen, Erik (FIES) erik.vanin...@fao.org wrote: Hi all, I have a problem with KMeansPlusPlusClusterer in the trunk. See below for the unittest. Am I doing something wrong here or is there a bug?

RE: math KMeansPlusPlusClusterer Failing unittest

2009-10-20 Thread Martin Gainty
can we see the import statement for Test? thanks, Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine

Re: FileCleanerCleanup question

2009-10-20 Thread Davis Ford
Hi, is anyone on this list familiar with commons-io / commons-fileupload? If not, is there somewhere else I should be asking questions? I still have the issue indicated below, and I have an additional question. When you parse the request... = final ListFileItem items = (ListFileItem)

Re: [JCI] Complication Error

2009-10-20 Thread Ben Short
Hi, Is the JspGenerator mean to be production ready? As I don't believe it working correctly. Given the simple.jsp it generates the simple.java which just writes everything to the http response. simple.jsp %@ page contentType=text/html;charset=UTF-8 language=java % %@ page import=javax.jcr.Node

Re: [SCXML] Retrieving a (wrapped) NodeSet for an XPath / user defined XPath functions

2009-10-20 Thread Rahul Akolkar
On Tue, Oct 20, 2009 at 10:42 AM, Jaroslav Pullmann jaroslav.pullm...@fit.fraunhofer.de wrote:  Dear Rahul, dear all,  the result value of an XPath-selection is limited to an XPathConstants.NODE  as of XPathEvaluator#evalLocation(Context, String). Having a root element is  reasonable for

Re: monitor file update help

2009-10-20 Thread geek.shrek
Thanks for the reply :) I had a look the sites before I post the question. So far I have this code, but when there's an event for the folder it doesn't trigger the monitor. I would like to monitor a folder for any event, such as file creation, delete, or update. Any idea what did I do wrong?

Re: FileCleanerCleanup question

2009-10-20 Thread Anand Shankar
Hi You can get both form fields as well as non form fields ( file fields) by commons file upload and store where you want. I am giving a complete code for file upload. Hope it will be helpful for you. import java.io.*; import javax.servlet.*; import javax.servlet.http.HttpServletRequest; import

Re: FileCleanerCleanup question

2009-10-20 Thread Martin Cooper
On Tue, Oct 20, 2009 at 10:22 AM, Davis Ford davisf...@zenoconsulting.biz wrote: Hi, is anyone on this list familiar with commons-io / commons-fileupload? If not, is there somewhere else I should be asking questions? I still have the issue indicated below, and I have an additional question.