SEVERE: Servlet.service() for servlet [Servlets.VeiculoServlet] in context with path [/ExamplePath] threw exception [Servlet execution threw an exception] with root cause
java.lang.ClassNotFoundException: org.glassfish.jaxb.core.v2.model.annotation.AnnotationReader
在线
JAXBContext context = JAXBContext.newInstance(ExportVeiculo.class);
我非常有信心这与我的项目中的图书馆设置有关,在这里是
我还尝试将所有JAR文件添加到服务器LIB文件夹中,但这似乎没有任何效果。
thank thank thank您提前,如果需要更多信息,我很乐意提供。
评论中的一些反馈后,我添加 然后,我在同一条线上遇到了一个不同的错误
SEVERE: Servlet.service() for servlet [Servlets.VeiculoServlet] in context with path [/ExamplePath] threw exception [Servlet execution threw an exception] with root cause java.lang.ClassNotFoundException: com.sun.istack.Pool
I添加了istack-commons-runtime-3.0.1.jar,我现在在同一行中遇到一个不同的错误
SEVERE: Servlet.service() for servlet [Servlets.VeiculoServlet] in context with path [/ExamplePath] threw exception [Servlet execution threw an exception] with root cause
java.lang.ClassNotFoundException: jakarta.activation.DataSource
i通过安装Jaxb-core-3.0.1.jar及其所有依赖项来解决我的问题。