At 02:37 18/7/00 +0100, you wrote:
>Hi guys, I feel slightly conspicuous on this low volume list, but here goes.
>
>I've checked out james and avalon from CVS and built them OK (the
>instructions are out of date, but that encourages you to dive in and work
>out whats going on!).
>
>However, when run I receive the following error;
>
>parser : org.apache.xerces.parsers.SAXParser
>configurationPath : ../conf/
>logFile : ../logs/avalon.log
>blockPath : blocks/
>
>Scanning jars for new Blocks...
>Reading configurations:
>JAMES.conf.xml
>Exception in thread "main" java.lang.AbstractMethodError:
>org/apache/james/James.getReference
>at org.apache.avalon.engine.servicemap.DefaultBlockContext.bind(Compiled
>On investigation, James does not have a method 'getReference'.
>
>Any clues??
Yup It has just recently been added to avalon. It will take a little while
to percolate through to James so I may recomend getting the avalon from
about a week ago as it didn't have this requirement. Otherwise you could
jump on Avalon list figure out what needs doing and implement it ...
FWIW I believe adding
public Reference getReference() {
return new Reference(this.getClass().getName(),
new StringRefAddr("block", name),
"org.apache.avalon.engine.BlockFactory",
null);
}
to James will fix it. Or better yet make it extend AbstractBlock instead of
implementing Block.
Cheers,
Pete
*------------------------------------------------------*
| "Nearly all men can stand adversity, but if you want |
| to test a man's character, give him power." |
| -Abraham Lincoln |
*------------------------------------------------------*
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/>
Problems?: [EMAIL PROTECTED]