Re: Custom XML Rule Creation from Digester

2007-04-12 Thread Simon Kitching
Hi David, On Tue, 2007-04-10 at 10:44 +0200, David Zarco wrote: We're trying to create a custom rule which will be used by Digester. We follow the steps indicated in http://jakarta.apache.org/commons/digester/commons-digester-1.8/docs/api/ but we had a problem with the inner class

Re: Commons-logging 1.1 POM: why isn't servlet-api scope=provided ?

2007-01-24 Thread Simon Kitching
On Tue, 2007-01-23 at 16:54 -0500, Yoav Shapira wrote: Hola, On 1/23/07, Craig McClanahan [EMAIL PROTECTED] wrote: That's a good step, but it's not sufficient for this case and does not provide the same functionality as add scope=provided. Why? The part of C-L that depends on the

Re: Commons Logging - FileAppender Issue

2007-01-06 Thread Simon Kitching
On Fri, 2007-01-05 at 10:22 +0100, DECAFFMEYER MATHIEU wrote: Hi, I'm using Log4j to manage log, I want to convert this by Commons Logging by converting just this line : private static Logger sLogger = Logger.getLogger(LoggingManager.class); by this one : private static Log sLogger

Re: [Configuration] UTF-8 encoding problem

2006-12-28 Thread Simon Kitching
On Thu, 2006-12-28 at 11:15 +, Andrew Shirley wrote: On Thu, Dec 28, 2006 at 11:30:07AM +0100, DECAFFMEYER MATHIEU wrote: Hi, I am using Jakarta Configuration to manipulate some XML files. What do u suggest me to do ? Thank u for any help ! Will be greatly

Re: [digester] setting parent properties after the child's

2006-12-01 Thread Simon Kitching
On Fri, 2006-12-01 at 14:58 -0800, Dmitry Beransky wrote: Hi, I can't figure out how to properly set up rules so that this test does not fail: [snip] The problem is that the rules above result in roughly the following sequence of calls: JMenu menu = new JMenu() JMenuItem item

Re: [digester] setting parent properties after the child's

2006-12-01 Thread Simon Kitching
On Fri, 2006-12-01 at 16:24 -0800, Dmitry Beransky wrote: The section titled How do I get CallMethodRule to fire before SetNextRule? might be what you need.. thanks. it did help. I had to replace addSetProperties with addCallMethod, so the final sequence of rules now looks like:

Re: upload file to asp.net 2.0 server

2006-11-16 Thread Simon Kitching
On Mon, 2006-11-13 at 19:36 -0800, damon leong wrote: i wondering is that FileUpload package can upload it from java client to .net server ... ? because i starting project upload file from java client to asp.net server please tell is it can support ? Sorry, but the commons

Re: FeedParser Download

2006-11-09 Thread Simon Kitching
On Fri, 2006-11-10 at 11:01 +0530, Somnath Banerjee wrote: Hi All, Can anyone please help me in downloading the FeedParser. SVN access to the link given in the download page is not working for me. The following is the error message $ svn checkout

Re: [logging] Any takers ? (Placing commons-logging-1.1.jar into ${JAVA_HOME}/jre/lib/endorsed o.k.?

2006-11-07 Thread Simon Kitching
Hi, I don't know of any issues that might occur. I think putting libs into the java install is a pretty ugly thing to do though. Applications should stand alone. I'm also against putting webapp libs into appserver shared directories, etc. though the whole world appears to disagree with me on

Re: [Digester] troubles with xml:space=preserve

2006-11-01 Thread Simon Kitching
On Tue, 2006-10-31 at 22:35 +0200, Sharon Dagan wrote: Hi, Digester 1.7 doesn't seem to honor xml:space=preserve. And so: text xml:space=preserveHello{NEWLINE}/text Where {NEWLINE} is '\n'. Digester reports that text=Hello, omitting the new line character ('\n'). Any idea how to fix

Re: Digester : parsing ill-formed attribute ...

2006-10-20 Thread Simon Kitching
Hi Patricio, On Mon, 2006-10-16 at 22:02 +0200, Patricio Galeas wrote: I have a set of XML files which contain an ill-formed attribute: F P=10 some text /F snip Is there a way to ignore the attribute definition and parse these documents without to fix the XML files? Digester uses a

RE: [Digester] Can use inner classes?

2006-10-18 Thread Simon Kitching
Hi Eva, Firstly, your code excerpt below isn't showing inner classes; it is showing package-scope classes that happen to be in the same file: public class Parser { } class ClassA { } In this case, ClassA is a normal class (NOT an inner class), but is accessable only to code in the same

Re: [digester] WAS: FactoryCreateRule help NOW: Custom Rule help

2006-09-14 Thread Simon Kitching
to just consume it? Thanks Chris On 9/13/06, Simon Kitching [EMAIL PROTECTED] wrote: Hi Chris, On Tue, 2006-09-12 at 18:01 -0700, Chris Cheshire wrote: I have to process an XML file that contains (in part) the following structure variables Variable ID.../ID

Re: [digester] FactoryCreateRule help

2006-09-13 Thread Simon Kitching
Hi Chris, On Tue, 2006-09-12 at 18:01 -0700, Chris Cheshire wrote: I have to process an XML file that contains (in part) the following structure variables Variable ID.../ID Name.../Name Instance.../Instance Value.../Value /Variable /variables I have a predefined

Re: Call a method in an external class

2006-09-13 Thread Simon Kitching
to get the full Category object from a database and set it to my Element object Thanks again, Hernan On 9/8/06, Simon Kitching [EMAIL PROTECTED] wrote: Hi Hernan, There is no way that an ObjectCreationFactory can have access to the contents of child elements. Digester is SAX based

Re: Call a method in an external class

2006-09-08 Thread Simon Kitching
Hi Hernan, There is no way that an ObjectCreationFactory can have access to the contents of child elements. Digester is SAX based, and therefore the only info available to an ObjectCreationFactory is the xml attributes on the start element. Unfortunately, I don't really understand what you are

Re: Simple Digester ruleset for a list of String

2006-09-04 Thread Simon Kitching
On Sun, 2006-09-03 at 12:43 -0300, Agustin Barto wrote: I need to parse an XML like this: message-list messageMessage1/message messageMessage2/message ... messageMessageN/message /messge-list which should render a ListString (or at least CollectionString). Right now what I do

Re: Digester: attribute - class.field mapping

2006-09-01 Thread Simon Kitching
Hi Mike, On Thu, 2006-08-31 at 19:05 -0700, Mike J Dougherty wrote: I'm not real sure how to ask this question, so let me post some sample code and maybe it will help: Here are the classes: public class Top { private Foo value = null; public void setValue(Foo value) {

Re: [betwixt] Reading and writing objects without using getters/setters

2006-09-01 Thread Simon Kitching
Hi Ryan, On Wed, 2006-08-30 at 18:01 -0500, Ryan wrote: I would like to use betwixt to read and write objects from a 3rd party java library. Unfortunately the naming conventions used in some of these objects don't conform to the getter/setter properties that betwixt likes. Here are a few of

Re: [digester] handling mixed content

2006-08-26 Thread Simon Kitching
Hi Frank, On Fri, 2006-08-25 at 15:30 +0100, [EMAIL PROTECTED] wrote: I have been trawling through the archives in an effort to find information on how to use Digester to handle elements in mixed content. I have found some references (c2004) to a patch by Simon Kitching. But I have

Re: Roundtripping using Digester and Betwixt

2006-08-20 Thread Simon Kitching
Hi Jeff, On Fri, 2006-08-18 at 13:19 -0700, Jeff Marendo wrote: Hello, I'm using the Commons Digester, specifically, to read data from XML files in order to create objects and I later use Betwixt to write objects out to XML. I'm using Digester rules files to specifiy XML layout so

Re: Digester and Inheritance

2006-08-11 Thread Simon Kitching
Hi German, On Wed, 2006-08-09 at 14:18 -0300, German Balbastro wrote: I have an object model whith an abstract parent class Class1 and two implementations Class2 and Clas3. I don't know how i can create the implementations. For example i have this xml file: Class1 ... fields of

RE: Digester and Inheritance

2006-08-11 Thread Simon Kitching
how far advanced it is or whether it would apply in this case... Cheers, Simon -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 German, On Wed, 2006

Re: Digestor: NodeCreateRule

2006-07-30 Thread Simon Kitching
On Sun, 2006-07-30 at 17:16 -0400, rjn wrote: Hey Everyone, Thank you for the responses to my previous e-mail. I see that that NodeCreateRule would work. However, I'm wondering how to use it. This is my first time parsing XML, so please excuse my ignorance. So, here's what I have:

Re: Ignoring Specific Tags with Digester

2006-07-27 Thread Simon Kitching
On Thu, 2006-07-27 at 09:59 -0400, rjn wrote: Hi Everyone, I'm trying to write a Syndication Feed parser using Digester, however I'm running into a stumbling block. Many feeds have HTML in the entries such as a, br, etc. Digester tries to parse these as XML tags, thus leading to blanks

Re: Ignoring Specific Tags with Digester

2006-07-27 Thread Simon Kitching
On Thu, 2006-07-27 at 16:30 -0500, Paul J DeCoursey wrote: Simon Kitching wrote: On Thu, 2006-07-27 at 09:59 -0400, rjn wrote: Hi Everyone, I'm trying to write a Syndication Feed parser using Digester, however I'm running into a stumbling block. Many feeds have HTML

Re: [digester] Xinclude aware parsing

2006-07-16 Thread Simon Kitching
On Sun, 2006-07-16 at 09:53 +0100, Abhijit Akhawe wrote: Hi, Digester has a constructor that takes in SAXParser as an argument. I am trying to use this to pass a SAXParser that is XInclude aware. For some reason this is not working the way I want to. My basic requirement is to parse a

Re: SCXML - downloading latest code

2006-07-10 Thread Simon Kitching
On Fri, 2006-07-07 at 16:48 +0100, Niall Pemberton wrote: On 7/7/06, Garey Hassler [EMAIL PROTECTED] wrote: Niall, Thank you for the link. I was able to download the source code, but I am unable to build the jar file. It fails compilation in the first file (Builtin.java) while trying to

Re: Help with Digester xmlrules to create a complex object

2006-07-05 Thread Simon Kitching
Hi Hernan, On Wed, 2006-07-05 at 19:29 -0300, Hernán Seoane wrote: Hello, I'm having some trouble with Digester when trying to create a complex object from the following xml: Competition CompetitionNameCompetition/CompetitionName PrizeOnOffer2000/PrizeOnOffer

RE: xsd and org.apache.commons.digester.Digester

2006-07-03 Thread Simon Kitching
On Mon, 2006-07-03 at 10:59 -0400, Darren Hall wrote: Simon, Thanks for the response. Is there anywhere you can point me that might have an example of how to do this. Also, is this a common issue when working with commons digester and xsd? I'm not seeing a lot of information about it in my

[lang] RE: is commons-lang 2.0 compatabile with jdk 1.4

2006-07-02 Thread Simon Kitching
Hi Venkat, Firstly, when you post to the commons-user list, please put the name of the specific commons component at the start of the subject line (I've made that change here). This list is shared across multiple projects. Yes, commons-lang is compatible with jdk1.4, as Rick noted. If you want

Re: [commons-lang] seek information regarding commons-lang package

2006-07-02 Thread Simon Kitching
Hi Venkat, On Tue, 2006-06-27 at 11:04 +0530, Venkat Narayana, Noida wrote: Dear Members, we are using Commons-lang version 2.0 in our project. Recently my management took a decision to migrate the application from websphere 4.0 to websphere 6.0. I have a few queries regarding the

Re: [digester] how to make digester thread safe ?

2006-07-02 Thread Simon Kitching
On Tue, 2006-06-27 at 17:26 +0200, Nicolas De Loof wrote: Hello guys, My app recieves an XML doc that is parsed using commons-digester. As a digester instance is not thread-safe, I have to build a new digester on every incoming request based on my rules file. Is there a way to create a

Re: Digester push(null)

2006-07-02 Thread Simon Kitching
Hi Joachim, On Wed, 2006-06-28 at 14:37 +0200, Joachim Fuchs wrote: Hi, I found this code in Tomcat's ContextConfig.java: code webDigester.clear(); webDigester.push(context); webDigester.parse(is); webDigester.push(null); /code My question is what happens with the digester when

Re: Digester - help getting the !-- comments -- from a tag

2006-07-02 Thread Simon Kitching
On Fri, 2006-06-30 at 12:41 -0400, Konstantin G wrote: Hello All, I am using Digester for an xml parsing project ( quite successfully) and I need some help figuring out how to save the contents of a comment within a given tag, such as: prompt !-- audio expr=file.wav'/

Re: [Digester] Error handler not working

2006-07-02 Thread Simon Kitching
Hi Frank, On Fri, 2006-06-30 at 15:33 -0400, Frank W. Zammetti wrote: Hello... I'm parsing some XML that I am validating against a DTD... I'd like to be able to stop processing when that validation fails, and I thought setErrorHandler() would do it, but seemingly not... I have a class that

RE: xsd and org.apache.commons.digester.Digester

2006-07-02 Thread Simon Kitching
Hi Darren, On Fri, 2006-06-30 at 16:53 -0400, Darren Hall wrote: Hello again, I fixed the earlier problem I was having with parsing my xml doc, but now I'm getting another one - 2006-06-30 16:04:40,469 ERROR org.apache.commons.digester.Digester - Parse Error at line 2 column 13: Document

RE: [digester] Using the return value of a method call?

2006-06-23 Thread Simon Kitching
On Thu, 2006-06-22 at 15:45 -0500, Sloan, Noah M wrote: Is there a way to make the Digester call Rule's end() methods in the normal order instead of reverse order? Why does it do this? No, there is no way to change the order. The begin method typically pushes stuff onto the object stack,

RE: [digester] Using the return value of a method call?

2006-06-23 Thread Simon Kitching
Hi, The FactoryCreateRule provides a basic framework for this sort of thing; you would then need to write an ObjectCreationFactory that accesses the digester stack and calls your method to create the object. Alternatively, as Jared says, writing your own rule will do the trick. Actually, a

Re: Really stuck on NoClassDefFoundError org/apache/commons/logging/LogFactory

2006-06-22 Thread Simon Kitching
Hi Robert, On Wed, 2006-06-21 at 19:40 -0300, robert lazarski wrote: Hi all, I've been googling all day and I'm stuck. I'm trying to run a junit test case in eclipse 3.1 calling an axis2 web service running in jboss, that depends on HttpClient. I get this stack trace:

Re: Using Digester to store info into a Map

2006-06-20 Thread Simon Kitching
On Thu, 2006-06-15 at 07:43 -0700, Jeff Marendo wrote: Simon, Thanks for the reply and helpful information. If user is the root level, then you've not got a lot of object in the map :-) Yeah, actually, I did have a single file with multiple users listed within it as you

Re: Using Digester to store info into a Map

2006-06-15 Thread Simon Kitching
Hi Jeff, On Mon, 2006-06-12 at 08:04 -0700, Jeff Marendo wrote: Hello, Would anyone be able to tell me how to structure an XML rules file so that the Digester can create objects (from the example file below) and store them into a Map as opposed to a Collection? ?xml

Re: [logging] Commons logging in applets

2006-06-07 Thread Simon Kitching
Hi Aaron, Firstly, I presume this is commons-logging 1.1 you are using. LogFactoryImpl.java:1250 in the 1.1 release is this line: // try the parent classloader currentCL = currentCL.getParent(); which does seem to be a likely cause for the exception you report. I expect

Re: [digester] multiple parses from one inputstream

2006-05-23 Thread Simon Kitching
On Tue, 2006-05-23 at 18:12 -0500, David Durham wrote: Hi all, I'd like to use Digester to parse multiple XML messsages being passed from a server to a client. The parse method hangs until I close the server output stream. Anyway to signal to Digester.parse(InputStream) that it should

Re: .betwixt file ignored

2006-05-09 Thread Simon Kitching
Hi Marcos, I'm definitely using .betwixt files in a project at work, and they work fine for me. I used the Getting Started page you referred to (and the example java code linked from that page) and it all worked fine. You don't say whether you are using BeanReader or BeanWriter. If BeanReader,

Re: .betwixt file ignored

2006-05-09 Thread Simon Kitching
On Tue, 2006-05-09 at 20:58 +0200, David J. M. Karlsen wrote: Marcos Hass W wrote: Hi, The Getting Started section ( http://jakarta.apache.org/commons/betwixt/guide/start.html) states.: ...The XMLIntrospector will look for files of the form *className.betwixt*on the classpath using

RE: Why Log implementation is Serialized?

2006-05-04 Thread Simon Kitching
Hi Mehta, I agree with Tahir's recommendation. If you're writing an application, then just use log4j or java.util.logging, or whatever you prefer. It's simpler, faster, and less confusing to just call the specific logging API directly. If you're writing a library that will be used in some other

RE: Log4JLogger does not implement Log

2006-05-04 Thread Simon Kitching
Hi, This issue is described in the wiki (as noted by James Carman). The problem is that you have commons logging (including a copy of the Log interface) in a jar in some container classpath, then you have commons-logging in your deployed ear also (including an adapter to a specific logging

Re: [Digester] clear named stack (API request?)

2006-04-27 Thread Simon Kitching
On Wed, 2006-04-26 at 17:19 +0200, Valerio Schiavoni wrote: even if it so trivial to implement, why the following method: public void clear(String stackname){ while(!getDigester().isEmpty(stackName)) getDigester.pop(stackName); } is not present in the digester APIs ?

Re: [Digester] parameter value from a parent node attribute

2006-04-26 Thread Simon Kitching
about writing a custom rule, and it actually worked for all but one test case, and this is why i'm replying. On 4/22/06, Simon Kitching [EMAIL PROTECTED] wrote: root element id=A subelement id=B/ /element /root in the following code, root

Re: [JCL] Logging for specific classes

2006-04-21 Thread Simon Kitching
On Fri, 2006-04-21 at 15:22 -0400, Frank W. Zammetti wrote: Hi all, I seem to remember there being a way to configure JCL, when using SimpleLog, to only log certain packages, but I forgot how, and Google is failing me. I want to log messages only from those classes in my application code,

Re: [Digester] parameter value from a parent node attribute

2006-04-21 Thread Simon Kitching
On Fri, 2006-04-21 at 15:23 +0200, Valerio Schiavoni wrote: Hello, i have the following xml: root element id=A subelement id=B/ /element /root whenever I match path element/subelement, i need to invoke a 2-parameters method defined on the object on the stack ,call it

[betwixt] Thanks (and qn re next release date)

2006-04-21 Thread Simon Kitching
Hi, Just yesterday I needed to implement code to pass objects between two processes, and needed to use specific a XML schema to represent the data. It took only an hour or so with Betwixt to get this working perfectly. So thanks very much to all Betwixt contributors. Now a question: to get

Re: [JCL] Logging for specific classes

2006-04-21 Thread Simon Kitching
On Sat, 2006-04-22 at 00:00 -0400, Frank W. Zammetti wrote: Ah, ok, so then a logger is named after the package of the class it is defined in? If is the name of the logger, as the docs say, that would make sense (and that would also be the missing piece of the puzzle I needed to

Re: [JCL] Logging for specific classes

2006-04-21 Thread Simon Kitching
On Sat, 2006-04-22 at 00:23 -0400, Frank W. Zammetti wrote: package example.foo; public Widget { // log has name(aka category) of example.foo.Widget private Log log = LogFactory.getLog(Widget.class); // special log object for issuing messages that can be //

Re: [digester] Conversion Exception not passed through ErrorHandler?

2006-04-19 Thread Simon Kitching
On Tue, 2006-04-18 at 23:03 +0200, Dennis Kempin wrote: Hello, I am using digester to parse a configuration file that needs that contains class names, which shall be parsed to java.lang.Class instances. This works fine for existing classes, but when such a class cannot be found a

Re: ClassNotFound [digester]

2006-04-14 Thread Simon Kitching
Hi Michael, I think James is probably right. By default, Digester will look for classes using the same Classloader that loaded the Digester class. This means that if the commons-digester.jar file is in some container-level dir (rather than in WEB-INF/lib or similar) then it can't see that

Re: [digester] XML Parsing problem

2006-04-13 Thread Simon Kitching
Hi Qaiser, For the future, here are some recommendations: * Do not send a user type email to message to both dev and user lists. It annoys the very people you're asking for help. * Do not send the same email multiple times, for the same reason. The original authors of the xml rules

Re: logging: How to configure programatically for using java.util.logging

2006-04-06 Thread Simon Kitching
On Thu, 2006-04-06 at 02:47 -0700, David wrote: Dear members, I would like to use java.util.logging and configure it programatically, on the common-logging documentation there is information about how to do it with the properties files, but I don't see the way for doing directly on

Re: [common-logging] disabling logging

2006-04-01 Thread Simon Kitching
Hi Alex, On Sat, 2006-04-01 at 20:00 -0500, Alex wrote: I can't seem to get disabling logging to work. I made a jar file put another file 'commons-logging.properties' inside of it. Added text 'org.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog' To it. Put it the first

Re: Strange problem with Digester and Log4j

2006-03-29 Thread Simon Kitching
hi rk, That is pretty weird. BeanUtils is definitely not calling any such method directly. BeanUtils only uses commons-logging. It looks to me like the JVM is doing some major code optimisation at runtime, effectively replacing the sequence MethodUtils.getMatchingAccessableMethod --

Re: Strange problem with Digester and Log4j

2006-03-29 Thread Simon Kitching
On Tue, 2006-03-28 at 23:20 +0200, Christian Hufgard wrote: Maybe you want to take a look at http://www.qos.ch/logging/thinkAgain.jsp , also you probably won't find a solution there, it is still an interesting page. ;) Can anyone confirm, if these problems are still present? And what can be

Re: Re[2]: Strange problem with Digester and Log4j

2006-03-29 Thread Simon Kitching
On Wed, 2006-03-29 at 12:36 +0200, Christian Hufgard wrote: Hi Simon, Most of those problems never existed. That page is just wrong in many places. This is -erm- weird. The information seems to be quit reasonable, is it just a try from the log4j author to prevent people from using

Re: [logging] How to get log4j to work with commons-logging in web service app?

2006-03-28 Thread Simon Kitching
On Mon, 2006-03-27 at 21:05 -0500, Dave Hoffer wrote: I'm not sure if this is a commons-logging or log4j issue but my problem is that... I have an application (local web service) that uses Jetty and AXIS. We just started using commons-logging and we want to configure it to use log4j.

Re: Log4JLogger does not implement Log

2006-03-11 Thread Simon Kitching
On Sat, 2006-03-11 at 06:49 -0500, [EMAIL PROTECTED] wrote: Hello, I recently started encountering this classloading problem while running ant. According to the FAQ, I should post to this list so I can get some diagnostic tests to try. So... here I am! What tests should I try? Thanks very

Re: using multiple log4j.properties files

2006-03-08 Thread Simon Kitching
On Wed, 2006-03-08 at 16:41 +0200, Asaf Lahav wrote: Hi all, We are using common-logging and log4j in our product, and I was wondering whether it's possible to use log4j when using multiple log4j.properties files? What I would like to achieve is the possibility to create several

RE: commons-logging discovery process

2006-03-08 Thread Simon Kitching
On Wed, 2006-03-08 at 15:11 +0100, Boris Unckel wrote: Hi, Von: Shai Wolf [EMAIL PROTECTED] Generally, I understand what you're saying. However, I still don't understand why commons-logging can't supply an indication on whether it detected a logging implementation or not. This

Re: RSSDigester help

2006-03-06 Thread Simon Kitching
On Mon, 2006-03-06 at 21:14 +1000, Torgeir Veimo wrote: On Mon, 2006-03-06 at 12:05 +0100, Alberto Marquÿe9s wrote: need q help with RSSDigester, I want me to make a channel of the news and need an example. Why don't you just use Rome and save the trouble of parsing the myriads of

Re: How to parse an attribute whoes value is a QName

2006-03-02 Thread Simon Kitching
On Thu, 2006-03-02 at 18:16 -0800, Michelle Lin wrote: Digester Experts: I have the following simple XML doc: ?xml version=1.0 encoding=ASCII? xyz xmlns=http://mynamespace; xmlns:xsd=http://www.w3.org/2001/XMLSchema; property name=a type=xsd:string/ /xyz How can I

Re: maillist

2006-02-23 Thread Simon Kitching
On Fri, 2006-02-24 at 13:52 +0800, kruce lee wrote: Hi, How can I subscribe commons package's mail list? http://jakarta.apache.org/commons/ Click on mailing lists. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [Digester] Converting String value of an attribute to array of integers

2006-02-17 Thread Simon Kitching
On Fri, 2006-02-17 at 18:12 -0800, Craig McClanahan wrote: C ID=7 author=CT depends=4,6 flavourAAC/range /C I currently use d.addSetProperties(List/A) to read in my other attributes. As you might have figured out, you are going to need a new Rule implementation to

Re: extending LogFactoryImpl

2006-02-14 Thread Simon Kitching
On Tue, 2006-02-14 at 14:44 +0800, sreenivas velagapudi wrote: Hi, I am using commons-logging and log4j My commons-logging .properties is as shown below, org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactoryImpl

Re: [digester] using xpath to select nodes

2006-02-10 Thread Simon Kitching
On Thu, 2006-02-09 at 21:52 -0800, Craig McClanahan wrote: No. None of the rule-matching implementations support XPath expressions. It would also likely require some pretty fundamental architectural changes, since Digester uses a SAX parser underneath the covers (and never

Re: [Digester] xpp throws an ArrayIndexOutOfBoundsException with very long text nodes

2006-02-10 Thread Simon Kitching
Hi Alessio, This doesn't seem to be a problem with Digester; from the stack trace it looks to me like it is org.gjt.xpp that needs to be fixed. Does this problem occur if you simply use this xpp parser to parse the document directly, without using Digester at all? If so, you need to follow up

Re: [digester] delegate the parsing of some nodes to different parsers

2006-01-25 Thread Simon Kitching
On Wed, 2006-01-25 at 15:19 +0100, Valerio Schiavoni wrote: Hello, suppose you have something like: root foo bar . /bar /foo /root I already have the digester code to istantiate a Bar object, if given as parameter to BarParser.read(String s) i pass as actual

Re: [Digester] SetNextRule and NoSuchMethodException

2006-01-16 Thread Simon Kitching
On Mon, 2006-01-16 at 12:57 -0500, Paul Brian Coleman wrote: digester.addSetNext(recipe/ingredient, addIngredient); Is that whitespace between the opening quote and the word addIngredient, ie addIngredient? DEBUG [main] (MethodUtils.java:522) - Matching

Re: Exception in thread main java.lang.NoClassDefFoundError: org/apache/commons/collections/CursorableLinkedList

2006-01-16 Thread Simon Kitching
This is odd. A NoClassDefFoundError means that the class named in the exception message *could* be found, but that something it depends on could not. Unfortunately, java never tells you *what* that something is. So in this case, Asaf *has* got commons-collections but doesn't have something that

Re: [Digester] Digester does not seem to me to make use of StringArrayConverter (Test case here)

2006-01-06 Thread Simon Kitching
On Thu, 2006-01-05 at 12:48 +0100, Alessio Pace wrote: Well, so here 2 tests, hope it is what you meant: -the first uses ConvertUtils and passes -the second uses BeanUtils and fails Yes, that is what I meant. I was a little surprised at your results, so wrote an independent test myself, and

Re: [Digester] Digester does not seem to me to make use of StringArrayConverter (Test case here)

2006-01-05 Thread Simon Kitching
On Wed, 2006-01-04 at 18:40 +0100, Alessio Pace wrote: Hi, in my last post I was trying to dig into the String to String[] conversion with no success. So, I splitted it up and did a test case to try to figure out what's wrong. The BeanPropertySetterRule does the invocation with this line of

Re: Error with digester and JasperReports / IllegalAccessError setNestedPropertiesRule

2006-01-04 Thread Simon Kitching
On Wed, 2006-01-04 at 16:17 +, Marco Mistroni wrote: Hello all, I am running JasperReports v. 1.1.0, that uses Digester 1.7 In running my report I got following exception 04/01/06 15:55:19:797 GMT] c563211 Digester E org.apache.commons.digester.Digester TRAS0014I: The

Re: Using internal classes with Digester and XMLRules

2006-01-04 Thread Simon Kitching
On Wed, 2006-01-04 at 18:09 +0100, Thomas Dudziak wrote: On 1/4/06, Frank W. Zammetti [EMAIL PROTECTED] wrote: Anyone else, just out of curiosity, is there a best practice around this? My feeling is that if I'm configuring an object that is only used by a given class, i.e., Class foo has

Re: [Digester] How make digester call setStringArray(String[]) from single element node content?

2006-01-03 Thread Simon Kitching
On Mon, 2006-01-02 at 18:27 +0100, Alessio Pace wrote: Hi, imagine I have a class with some simple set methods (setField(String) , setOtherField(int) ) and then a more complicated setter method like this: public void setStringArray(String[] stringArray){ this.stringArray =

RE: [digester] different xml, same objective ?

2005-12-30 Thread Simon Kitching
On Wed, 2005-12-28 at 10:59 -0500, Russell Simpkins wrote: did you try: digester.addBeanPropertySetter(students/student/property[name='name']/@value); digester.addBeanPropertySetter(students/student/property[name='course']/@value);

Re: [Digester] How to map html-td elements to methods?

2005-12-30 Thread Simon Kitching
On Fri, 2005-12-30 at 14:41 +0100, Dimitri Frederickx wrote: td class=commandopen/td td class=target./tests/html/test_open.html/td I want that the value of the class-attribute maps to the property (and method name), and the value of the tag must be the value to pass to this

RE: [Digester] How to map html-td elements to methods?

2005-12-30 Thread Simon Kitching
the rules at one place. Can I do that or does it has to be in java? Regards, Dimitri -Original Message- From: Simon Kitching [mailto:[EMAIL PROTECTED] Sent: vrijdag 30 december 2005 23:40 To: Jakarta Commons Users List Subject: Re: [Digester] How to map html-td elements

Re: [digester] create parent from child node value

2005-12-21 Thread Simon Kitching
On Wed, 2005-12-21 at 09:32 +, robert burrell donkin wrote: On Tue, 2005-12-20 at 18:10 +0100, Valerio Schiavoni wrote: What I mean is: how can I istantiate 'immutable' objects that requires values in their constructors ? None of the examples I found illustrate this situation, so

Re: [digester] nested element detection

2005-12-13 Thread Simon Kitching
Hi Ryan, On Tue, 2005-12-13 at 16:00 -0700, Graham, Ryan - WMD wrote: log logitem timestamp=Fri Dec 09 14:16:18 MST 2005 error from=... message.../message /error /logitem logitem timestamp=Fri Dec 09 14:18:55 MST 2005 warning from=...

Re: [Digester] assistance - namespace-aware processing (how to write rules for digest)

2005-12-10 Thread Simon Kitching
On Sat, 2005-12-10 at 02:23 -0700, Mike Sparr - www.goomzee.com wrote: If I have a document (note the content element referencing external namespace): document author name=John Doe / titleSome name of a document/title exerptA brief description of a quotable phrase from

Re: [Urgent] Digester and Configuration

2005-12-02 Thread Simon Kitching
On Thu, 2005-12-01 at 18:21 -0500, Sravan Duggaraju wrote: Hi, I am using lot of XML configuration files for my new application,And i was searching for the tools to read the structured properties. I found two tools commons --digester and configuration. 1)Which one is the appropriate tool

Re: [Urgent] Digester and Configuration

2005-12-02 Thread Simon Kitching
. Thanks SanDi On 12/2/05, Simon Kitching [EMAIL PROTECTED] wrote: On Thu, 2005-12-01 at 18:21 -0500, Sravan Duggaraju wrote: Hi, I am using lot of XML configuration files for my new application,And i was searching for the tools to read

[collections] new sublist type?

2005-11-29 Thread Simon Kitching
Hi, I'd like opinions on adding a new collection type which represents a sublist of some larger list of data. public interface Sublist { public int getStartOffset(); public int getDatasetSize(); public List getSublistData(); } Where getSublistData() is a list of elements from

Re: logging: more then one version of 'org.apache.commons.logging.Log'

2005-11-10 Thread Simon Kitching
On Wed, 2005-11-09 at 09:17 -0500, Keith Naas wrote: Question: The LogFactoryImpl loads the interface on the ClassLoader from LogFactoryImpl.getClass().getClassLoader(). However, it loads the implementation on the Thread.currentThread().getClassLoader(). Why does it use two different

RE: logging: more then one versionof 'org.apache.commons.logging.Log'

2005-11-10 Thread Simon Kitching
On Wed, 2005-11-09 at 16:15 -0500, Keith Naas wrote: Thanks Robert, We are currently using 1.0.4. This morning I downloaded the src for 1.0.5alpha1 to see if the issue was addressed. The exact same scenario would occur since the Thread's ClassLoader is in a different EAR than the

RE: How skip dtd read by Digester?

2005-11-10 Thread Simon Kitching
On Thu, 2005-11-10 at 08:34 +0100, Zsolt wrote: Can you provide me an example please? digester.register(--/some public id, file:///var/dtds/my-dtd.dtd); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [digester] setting mnemonic on a jmenu

2005-11-02 Thread Simon Kitching
You're welcome. And thanks for your reply; it's always nice to hear when a suggestion worked out. Cheers, Simon On Tue, 2005-11-01 at 09:58 -0800, Dmitry Beransky wrote: Thanks, Simon Using CallMethodRule worked. I did trying using it before posting my question, but somehow I couldn't

RE: [digester]

2005-11-02 Thread Simon Kitching
On Tue, 2005-11-01 at 13:05 +0200, Arto Pastinen wrote: I write that Test bean only for this mail for example. Actually i am implementing ATOM 0.3, and there is this atom:content tag: atom:entry atom:content x /atom:content /atom:entry .. and it can

RE: [digester]

2005-11-02 Thread Simon Kitching
On Wed, 2005-11-02 at 10:37 +0200, Arto Pastinen wrote: Hi! Yes i know the problem, i think that it was bug in ATOM 0.3 specification, i havent find DTD or Schema for it, and my test data is taken from specification text, and there is no CDATA for content, but i think there should be.. I

Re: [digester] setting mnemonic on a jmenu

2005-10-28 Thread Simon Kitching
On Thu, 2005-10-27 at 13:05 -0700, Dmitry Beransky wrote: Hi, I'm using the digester to build a swing menu from an xml descriptor and having a hard time getting JMenu.setMnemonic to work. Here's an XML sample: menuBar menu title=File hotKey=F/ /menuBar and Digester rules:

Re: [Logging] Using FOP in JBoss

2005-10-24 Thread Simon Kitching
On Mon, 2005-10-24 at 08:44 +0100, Chris Bowditch wrote: Christian Hufgard wrote: Hi Chris, think you should take a look into your jboss/server/(minimal/default/full/whatver you use)/conf/log4j.xml file. in there you can define whatever you want. maybey jboss uses commons logging,

Re: [Logging] Using FOP in JBoss

2005-10-20 Thread Simon Kitching
On Thu, 2005-10-20 at 12:10 +0100, Chris Bowditch wrote: I'm trying to deploy an application based on the new FOP into a Application Server JBoss. JBoss and FOP both use Commons Logging. The messages generated by FOP are sent to the same log instance created by JBoss. However, I want to

  1   2   3   4   >