From: Jeremias M. <de...@je...> - 2006-03-08 16:22:27
|
This sounds a lot like you have a different avalon-framework JAR somewhere in your WSAD installation, possibly on a higher level in the classloader hierarchy which overrides the avalon-framework JAR you bundle with your application. Please check places in WSAD (I don't know it myself) where you can put JAR files and make sure you only have one avalon-framework JAR around. Starting the JVM using "-verbose:class" might also help identifying where the Avalon classes are loaded from. JAR hell. :-( Good luck! On 08.03.2006 17:11:03 Peigne Alain wrote: > I'm trying to make a PDf with WSAD as a standalone application > But I always have the same exception: > java.lang.NoSuchMethodError: > org.apache.avalon.framework.configuration.DefaultConfiguration: method > <init>(Ljava/lang/String;)V not found > at > org.krysalis.barcode4j.tools.ConfigurationUtil.processElement(ConfigurationUtil.java:86) > at > org.krysalis.barcode4j.tools.ConfigurationUtil.processNode(ConfigurationUtil.java:72) > at > org.krysalis.barcode4j.tools.ConfigurationUtil.buildConfiguration(ConfigurationUtil.java:49) > at > org.krysalis.barcode4j.fop0205.BarcodeElement.layout(BarcodeElement.java:187) > at > org.apache.fop.fo.flow.InstreamForeignObject.layout(InstreamForeignObject.java:251) > at org.apache.fop.fo.flow.Block.layout(Block.java:257) > at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:154) > at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:110) > at > org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java:400) > at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:338) > at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:262) > at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:223) > at > org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.java:309) > at > org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:716) > at > org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339) > at > org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710) > at > org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:425) > at > org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:216) > at > org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:425) > at > org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:216) > at > org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339) > at > org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2160) > at > org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1213) > at > org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3372) > at > org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:433) > at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source) > at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source) > at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source) > at org.apache.xerces.impl.XMLEntityManager$EntityScanner.load(Unknown > Source) > at org.apache.xerces.impl.XMLEntityManager$EntityScanner.skipSpaces(Unknown > Source) > at > org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown > Source) > at > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown > Source) > at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) > at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) > at org.apache.xalan.transformer.TrAXFilter.parse(TrAXFilter.java:134) > at org.apache.fop.apps.Driver.render(Driver.java:498) > at XXXXXXXXX.PDF.generationPDF(PDF.java:53) > at XXXXXXXXX.main(GenerPJ.java:30) > Exception in thread "main" > > I verifiy my classpath and i'm really using the good avalon-framework.jar > I tried every version of avalon-framework: > this one which is with barcode4j, the version 4.1.5, and the last one: > 4.2.0: > Same result.... > I tried also Fop20.5 and barcode4j-fop-ext-0.20.5-complete... > Any idea of problem? Jeremias Maerki |