java.lang.ClassNotFoundException: org.xmlpull.v1.XmlPullParserException

在工作中遇到这么一个xml转换的问题:
nested exception is java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException] with root cause
java.lang.ClassNotFoundException: org.xmlpull.v1.XmlPullParserException
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1333)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1167)
at com.thoughtworks.xstream.XStream.(XStream.java:350)
at com.vkl.hblw.common.util.JdzBeanToXml.jdzBeabToXml(JdzBeanToXml.java:20)
at com.vkl.hblw.service.api.submit.SubmitUploadService.upLoadCommon(SubmitUploadService.java:29)
at com.vkl.hblw.controller.api.submit.SubmitUploadController.testUpload(SubmitUploadController.java:43)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:111)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:806)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:729)

原因是缺少解析xml的jar xmlpull xmlpull_1_0_5.jar下载

你可能感兴趣的:(java异常)