Uncaught Throwable java.lang.NoClassDefFoundError:com / sun / xml / internal / bind / v2 / runtime / reflect / opt / Const

时间:2014-10-30 10:48:28

标签: java cq5

当我提交表单时,我在cq中得到以下错误....此行存在一些问题 dataFileType =(DataFileType)jaxbUnmarshaller.unmarshal(url); 我把日志发到这一行之前。

30.10.2014 15:48:12.912 *INFO* [jackrabbit-pool-8] org.apache.jackrabbit.core.query.lucene.IndexMerger merged 15 documents in 43 ms into _1sew.
30.10.2014 15:48:14.541 *ERROR* [0:0:0:0:0:0:0:1 [1414664289775] POST HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught Throwable java.lang.NoClassDefFoundError: com/sun/xml/internal/bind/v2/runtime/reflect/opt/Const
    at com.sun.xml.internal.bind.v2.runtime.reflect.Accessor.receive(Unknown Source)
    at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.endElement(Unknown Source)
    at com.sun.xml.internal.bind.v2.runtime.unmarshaller.SAXConnector.endElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)

1 个答案:

答案 0 :(得分:0)

您的类路径中似乎缺少jaxb-impl.jar。下载并将其添加到类路径中。