[Joost] Problem with xslt embeded in stx
Status: Beta
Brought to you by:
obecker
From: Leknín Ř. <god...@gm...> - 2013-09-16 18:29:11
|
Have a nice day. I have this problem with using joost. I ned use a xslt transformations embeded into stx stylesheet. On non xslt transformations joost works fine for me, but on sheets with xslt i have this exception: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/discovery/tools/Service at net.sf.joost.stx.TransformerHandlerResolverImpl.init(TransformerHandlerResolverImpl.java:131) at net.sf.joost.stx.TransformerHandlerResolverImpl.resolve(TransformerHandlerResolverImpl.java:258) at net.sf.joost.instruction.ProcessBase.getProcessHandler(ProcessBase.java:263) at net.sf.joost.instruction.PSelfFactory$Instance.processEnd(PSelfFactory.java:115) at net.sf.joost.instruction.NodeBase$End.process(NodeBase.java:85) at net.sf.joost.stx.Processor.doProcessLoop(Processor.java:906) at net.sf.joost.stx.Processor.processEvent(Processor.java:971) at net.sf.joost.stx.Processor.processLastElement(Processor.java:1221) at net.sf.joost.stx.Processor.startElement(Processor.java:1668) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:506) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:376) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2763) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:509) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:858) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:787) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1210) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:357) at net.sf.joost.Main.main(Main.java:434) Caused by: java.lang.ClassNotFoundException: org.apache.commons.discovery.tools.Service at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 21 more my joost.sh looks #!/bin/sh d=`dirname $(readlink -f $0)` java -cp .:/usr/share/java/saxon/saxon.jar:/home/jelen/bin/commons-discovery-0.5/commons-discovery-0.5.jar -jar $d/joost.jar "$@" I had binaries from apache jakarta sites, have I a bad version of this? I am using arch linux and my java is this https://www.archlinux.org/packages/extra/x86_64/jdk7-openjdk/ Where is the problem. Thanks Je; |