当前位置: 技术问答>java相关
jsp,servelt出错了,NoClassDefFoundError: javax/xml/parsers/DocumentBuilderFactory
来源: 互联网 发布时间:2015-10-21
本文导语: java.lang.NoClassDefFoundError: javax/xml/parsers/DocumentBuilderFactory at bussiness.order_servlet.doGet(order_servlet.java:29) at bussiness.order_servlet.doPost(order_servlet.java:64) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.Http...
java.lang.NoClassDefFoundError: javax/xml/parsers/DocumentBuilderFactory
at bussiness.order_servlet.doGet(order_servlet.java:29)
at bussiness.order_servlet.doPost(order_servlet.java:64)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597)
at org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Thread.java:484
at bussiness.order_servlet.doGet(order_servlet.java:29)
at bussiness.order_servlet.doPost(order_servlet.java:64)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597)
at org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Thread.java:484
|
应引入jaxp.jar
|
classpath加如路径!1就可以了!!