Re: Attribute question for Commons Digester

2007-06-29 Thread James Carman
Have you tried an ObjectCreate followed by a SetProperties? On 6/29/07, Poulton, Jonathan [EMAIL PROTECTED] wrote: Surely someone has done this before? -Original Message- From: Poulton, Jonathan [mailto:[EMAIL PROTECTED] Sent: 28 June 2007 17:41 To: commons-user@jakarta.apache.org

Re: Digester problem

2007-06-29 Thread James Carman
Have you tried an ObjectCreate followed by a SetProperties? On 6/28/07, Poulton, Jonathan [EMAIL PROTECTED] wrote: Hi there, I've tried finding a solution to what I think should be quite a simple problem using the Commons Digester, but the tutorials I can find on the subject only really cover

Re: Attribute question for Commons Digester

2007-06-29 Thread James Carman
instead. I assume that this is because of the underscore in the id field. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of James Carman Sent: 29 June 2007 11:48 To: Jakarta Commons Users List Subject: Re: Attribute question for Commons Digester Have you tried

Re: Attribute question for Commons Digester

2007-06-29 Thread James Carman
:[EMAIL PROTECTED] On Behalf Of James Carman Sent: 29 June 2007 11:59 To: Jakarta Commons Users List Subject: Re: Attribute question for Commons Digester Yeah, I didn't notice the _ (or read the rest of the request). You'll need a custom rule here to convert that value, otherwise SetProperties

Re: [betwixt] Problem with java.awt.Color

2007-05-21 Thread James Carman
What platform are you using when you see this problem? Is it a unix-based platform (headless by any chance)? On 5/20/07, Markus Härnvi [EMAIL PROTECTED] wrote: Hi! I have an issue (de)serializing instances of java.awt.Color. I have a working solution: I Added a java.awt packages in my own

Re: [betwixt] Problem with java.awt.Color

2007-05-21 Thread James Carman
I would expect problems in the headless environment because you're using AWT classes. Sometimes, it gives you a not-so-useful NoClassDefFoundError rather than telling you that you need a graphics environment. Try installing Xvfb on your headless environment to see if it gets rid of it. I've

Re: [upload] Uploading a word file

2007-05-15 Thread James Carman
What sort of error are you getting? On 5/14/07, Vrunda Joshi [EMAIL PROTECTED] wrote: Hi, I am using File Upload 1.1 version. It works fine on my laptop with tomcat 5 and mysql5.0. I can upload word/txt files. But on my server , I have mysql 4.0 and tomcat5.0. So with same code I am not able

Re: Problem with writing a Base64 encoded string to a text file ...

2007-03-28 Thread James Carman
Enrico, that's not very nice. Please try to be constructive with your comments. The point Mr. Dimarco is trying to make is that Base64 encoding your passwords isn't really securing them very well. Are you sure this is the best strategy? Are you just trying to prototype something? Maybe you

Re: [primitives] some support for size-limited List ?

2007-02-15 Thread James Carman
I would start a new thread if you're asking a different question. On 2/15/07, Tahir Akhtar [EMAIL PROTECTED] wrote: Hi, Do we have map implementations that use object keys and primitive values? Moreover, are there any links between commons-collections and commons-primitives? [Tahir Akhtar]

Re: [primitives] Map for storing primitive values

2007-02-15 Thread James Carman
Please ignore my reply to your previous post. :-) On 2/15/07, Tahir Akhtar [EMAIL PROTECTED] wrote: [it's a re-post. Sorry for wrong subject in previous post] Hi, Do we have map implementations that use object keys and primitive values? Moreover, are there any links between

Re: [collection] some support for size-limited List ?

2007-02-13 Thread James Carman
If you don't like those particular implementations, you can decorate any buffer using the BoundedBuffer class. On 2/13/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Have you looked at CircularFifoBuffer and BoundedFifoBuffer? nicolas de loof [EMAIL PROTECTED] wrote: This one does not

Re: Struts+Hibernate many-to-many mismatch

2007-02-03 Thread James Carman
Well, this should probably be asked on the Struts list. Here's what I would suggest, though. 1. Do not extend a view-layer class in your domain. User and Role should not extend any Struts-specific classes. 2. Create a new form bean class for this form called UserEdit or something. 3. Give

Re: String[] to Set Converter

2007-02-01 Thread James Carman
Try this: java.util.Set s = new java.util.HashSet(java.util.Arrays.asList(stringArray)); On 2/1/07, Abbas Adel [EMAIL PROTECTED] wrote: I want to Convert String[] to a java.util.Set This is my User bean public class User extends org.apache.struts.action.ActionForm { private

Re: String[] to Set Converter

2007-02-01 Thread James Carman
What type of component are you using to edit your set? Are you trying to bind directly to a Hibernate entity with a Set property? On 2/1/07, Abbas Adel [EMAIL PROTECTED] wrote: Dear Mr. James Carman Thanks a lot for your respond. I think I wasn't clear enough in my email. I am using Struts

Re: [configure] - context.xml vs Tomcat Admin

2007-01-23 Thread James Carman
The paranoid point of view can be a good thing. So far, though, it has worked for us. We just have different flavors of our build.properties file for each of our environments. On 1/22/07, Craig McClanahan [EMAIL PROTECTED] wrote: On 1/22/07, James Carman [EMAIL PROTECTED] wrote: Using

Re: [configure] - context.xml vs Tomcat Admin

2007-01-22 Thread James Carman
If you want to be able to just drop in your war file, then it's nice to just use the context.xml file. On 1/22/07, Garth Keesler [EMAIL PROTECTED] wrote: In the Tomcat Admin page, it is possible to configure data sources for various services, in particular Axis2. All of the same info is input

Re: [configure] - context.xml vs Tomcat Admin

2007-01-22 Thread James Carman
Using the server admin lets you take the same web application and deploy it *unmodified* in different environments where you really want to connect to different services (such as a testing server, a staging server, and a production server). If you make your build system smart enough, you can

Re: Cannot find FileItemIterator.

2006-11-15 Thread James Carman
As a side note, you might consider not polluting your view code (your JSPs) with such complicated logic. Try moving this sort of code into a helper bean or something. On 11/15/06, Shervin Asgari [EMAIL PROTECTED] wrote: Hello. I am trying to test FileUpload, and used a sample from the User

Re: [pool] GenericKeyedObjectPool, WHEN_EXHAUSTED_BLOCK multiple threads

2006-10-28 Thread James Carman
The java.util.concurrent package didn't arrive until JDK5, so I would doubt that you can use that stuff in Commons Pool anyway. The Ant build says that the source version is 1.4. On 10/28/06, Holger Hoffstaette [EMAIL PROTECTED] wrote: On Sat, 28 Oct 2006 17:15:41 +0100, Marc Carter wrote:

Re: [dbcp] System.out ???

2006-10-25 Thread James Carman
Yuck! I would agree. This should be removed. Did someone put this in to debug and forget to take it out before they committed? On 10/25/06, Nicolas DE LOOF [EMAIL PROTECTED] wrote: AbandonedObjectPool uses System.out to log from constructor.

Re: fileupload makes tomcat 5.5 unresponsive for other users

2006-10-25 Thread James Carman
Are you saying that Tomcat isn't responding to any other of the same type of requests (other file uploads) or it's not responding to *any* requests at all (even requests to other webapps within the same instance)? On 10/25/06, Richard Koch [EMAIL PROTECTED] wrote: I am using the commons

Re: FW: Using tomcat with commons-digester in commons/lib won't work

2006-10-21 Thread James Carman
Have you tried putting it within your WEB-INF/lib directory? On 10/20/06, Allen,Eva [EMAIL PROTECTED] wrote: I sent this message to the tomcat users list also because I wasn't sure where the actual problem lies--with tomcat or with the digester. Anyway, here's the problem: I want to use the

Re: DBCP configuration

2006-09-02 Thread James Carman
? Dev On 9/2/06, Abhijit Akhawe [EMAIL PROTECTED] wrote: Wht DBCP? On 9/2/06, dev dev [EMAIL PROTECTED] wrote: How do i configure DBCP to support *caching* and reusing * PreparedStatements?* ** *Thanks* *dev* -- Regards, Abhijit Akhawe. James Carman, President

RE: Digester and Inheritance

2006-08-11 Thread James Carman
The XSLT solution isn't really that bad. The XSLT would be somewhat trivial (if you're familiar with XSLT). -Original Message- From: Simon Kitching [mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 7:31 AM To: Jakarta Commons Users List Subject: Re: Digester and Inheritance Hi

RE: Digester and Inheritance

2006-08-11 Thread James Carman
- From: Simon Kitching [mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 9:01 AM To: Jakarta Commons Users List Subject: RE: Digester and Inheritance Hi James, On Fri, 2006-08-11 at 07:38 -0400, James Carman wrote: The XSLT solution isn't really that bad. The XSLT would be somewhat trivial

RE: Digester and Inheritance

2006-08-10 Thread James Carman
/ Class2 /Class1 Class1 code2/code Class3 typeaType/type / Class3 /Class1 My generate object class2 need to have both properties setted (code=1 and name=test) and the object class3 = {code=2, tye=atype} -Mensaje original- De: James Carman [mailto:[EMAIL

RE: Digester and Inheritance

2006-08-09 Thread James Carman
Can't you add a create rule with a path of Class1/Class2 for Class2 and a create rule for Class1/Class3 for Class3? -Original Message- From: German Balbastro [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 09, 2006 1:19 PM To: commons-user@jakarta.apache.org Subject: Digester and

RE: [collections] Re: Why doesn't Bag have a get() method?

2006-07-13 Thread James Carman
Why don't you write Sun and ask them to add a get() method to the java.util.Set interface too? -Original Message- From: Nentwig, Timo [mailto:[EMAIL PROTECTED] Sent: Thursday, July 13, 2006 4:10 PM To: Jakarta Commons Users List Subject: Re: [collections] Re: Why doesn't Bag have a get()

RE: [scxml] Handling exceptions thrown by custom actions

2006-05-16 Thread James Carman
We're not replaceable, but we all have DNA. So we all implement java.lang.Cloneable. Sorry, couldn't resist the geek joke! :-) -Original Message- From: Fasih [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 16, 2006 3:16 PM To: Jakarta Commons Users List Subject: Re: [scxml] Handling

RE: Commons collection framework and generics?

2006-05-12 Thread James Carman
Checkout the sourceforge (http://collections15.sourceforge.net/) project if you need it now. As for the real project here at ASF, I don't think we've decided how we want to go forward with it just yet. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday,

RE: Log4JLogger does not implement Log

2006-05-03 Thread James Carman
Did you read the FAQ first? http://wiki.apache.org/jakarta-commons/Logging/FrequentlyAskedQuestions This is one of the most common problems with JCL inside JBoss. I believe all you have to do is place the logging library jar in the same place as the commons-logging.jar and make sure that the

RE: starting a new project

2006-04-21 Thread James Carman
happened before. Have seen discussion on the subject somewhere and not sure what the resolution was. Hen On 4/19/06, James Carman [EMAIL PROTECTED] wrote: Do you have existing code? Any outside code that comes into Apache should go through the incubator to make sure there aren't any problems

RE: starting a new project

2006-04-19 Thread James Carman
Do you have existing code? Any outside code that comes into Apache should go through the incubator to make sure there aren't any problems with IP. Otherwise, if you're a committer already, then you can just start a sandbox project. If you're not a committer, then it gets a bit more difficult.

RE: ClassNotFound [digester]

2006-04-14 Thread James Carman
Try this: Thread.currentThread().getContextClassLoader().loadClass( mycompany.service.ups.dto.UPSResponseDTO ) Digester, by default, uses the thread context classloader. So, if it can't find the class, then Digester can't instantiate it. You can optionally tell Digester what classloader to use

RE: [All] Newbies and questioners: Please respect the policy of this list

2006-02-07 Thread James Carman
I read enough to find the click here to confirm link. -Original Message- From: Martin van den Bemt [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 07, 2006 12:56 PM To: Jakarta Commons Users List Subject: Re: [All] Newbies and questioners: Please respect the policy of this list Can

RE: Digester and Threads Question

2004-03-24 Thread James Carman
As long as you use a new Digester each time (like as a local variable inside a method), you'll be fine. What that means is that you CANNOT use one single digester instance in multiple threads at the same time. -Original Message- From: Alan Pocklington [mailto:[EMAIL PROTECTED] Sent:

RE: Digester and Threads Question

2004-03-24 Thread James Carman
you think? Cheers, Adrian P.J. James Carman wrote: As long as you use a new Digester each time (like as a local variable inside a method), you'll be fine. What that means is that you CANNOT use one single digester instance in multiple threads at the same time. -Original Message- From

RE: Digester and Threads Question

2004-03-24 Thread James Carman
! That's just what I was looking for! (Well... I didn't search too much) Thank you very much James for your answer, thank you very much Alan for your question ;) This list is just cool . Cheers, Adrian. James Carman wrote: Check out the ThreadLocal class for this. It's part of the core Java

RE: [FUNCTOR] Does functor have a class for this?

2004-03-19 Thread James Carman
Does nobody monitor the functor project? -Original Message- From: James Carman [mailto:[EMAIL PROTECTED] Sent: Thursday, March 18, 2004 9:18 AM To: [EMAIL PROTECTED] Subject: [FUNCTOR] Does functor have a class for this? I want to turn a BinaryPredicate into a Predicate by using

RE: [BeanUtils] Converting Date to String String to Date.

2004-03-19 Thread James Carman
at archives). It converts a String to Date. When data is copied from a bean which have Date type to bean with String property it is not formatting date. Do you understand else I will post code of what I did. Antony Paul - Original Message - From: James Carman [EMAIL PROTECTED] To: 'Jakarta

[FUNCTOR] Does functor have a class for this?

2004-03-18 Thread James Carman
I want to turn a BinaryPredicate into a Predicate by using Functions for the left/right operands to the BinaryPredicate. public class BinaryPredicateToPredicate implements Predicate { private final Function leftFunction; private final Function rightFunction; private final