第八个奇妙图书商店
源码报错
类找不到的异常,怎么解决
根号申 发表于2019-06-05 13:50
提供完整的控制台异常日志
6月 07, 2019 11:52:36 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server.服务器版本: Apache Tomcat/9.0.20
6月 07, 2019 11:52:36 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server.构建: May 3 2019 22:26:00 UTC
6月 07, 2019 11:52:36 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version number: 9.0.20.0
6月 07, 2019 11:52:36 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name: Windows 10
6月 07, 2019 11:52:36 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS.版本: 10.0
6月 07, 2019 11:52:36 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: 结.造: amd64
6月 07, 2019 11:52:36 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java 环境变量: D:\jdk-12.0.1_windows-x64_bin\jdk-12.0.1
6月 07, 2019 11:52:36 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM 版本: 12.0.1+12
6月 07, 2019 11:52:36 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM.供应商: Oracle Corporation
6月 07, 2019 11:52:36 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE: C:\Users\16935\Desktop\java大作业\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
6月 07, 2019 11:52:36 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME: C:\Users\16935\Desktop\java大作业\apache-tomcat-9.0.20
6月 07, 2019 11:52:36 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=C:\Users\16935\Desktop\java大作业\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
6月 07, 2019 11:52:36 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=C:\Users\16935\Desktop\java大作业\apache-tomcat-9.0.20
6月 07, 2019 11:52:36 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dwtp.deploy=C:\Users\16935\Desktop\java大作业\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
6月 07, 2019 11:52:36 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=GBK
6月 07, 2019 11:52:36 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [D:\jdk-12.0.1_windows-x64_bin\jdk-12.0.1\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:/jdk-12.0.1_windows-x64_bin/jdk-12.0.1/bin/server;D:/jdk-12.0.1_windows-x64_bin/jdk-12.0.1/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;D:\jdk-12.0.1_windows-x64_bin\jdk-12.0.1\bin;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Users\16935\AppData\Local\Microsoft\WindowsApps;;C:\Users\16935\Downloads\eclipse;;.]
6月 07, 2019 11:52:37 上午 org.apache.coyote.AbstractProtocol init
信息: 初始化协议处理器 ["http-nio-8080"]
6月 07, 2019 11:52:37 上午 org.apache.coyote.AbstractProtocol init
信息: 初始化协议处理器 ["ajp-nio-8009"]
6月 07, 2019 11:52:37 上午 org.apache.catalina.startup.Catalina load
信息: 服务器在[1,592]毫秒内初始化
6月 07, 2019 11:52:37 上午 org.apache.catalina.core.StandardService startInternal
信息: Starting service [Catalina]
6月 07, 2019 11:52:37 上午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet engine: [Apache Tomcat/9.0.20]
6月 07, 2019 11:52:38 上午 org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
警告: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [219] milliseconds.
6月 07, 2019 11:52:39 上午 org.apache.jasper.servlet.TldScanner scanJars
信息: 至少有一个JAR被扫描用于TLD但尚未包含TLD。 为此记录器启用调试日志记录,以获取已扫描但未在其中找到TLD的完整JAR列表。 在扫描期间跳过不需要的JAR可以缩短启动时间和JSP编译时间。
6月 07, 2019 11:52:39 上午 org.apache.coyote.AbstractProtocol start
信息: 开始协议处理句柄["http-nio-8080"]
6月 07, 2019 11:52:39 上午 org.apache.coyote.AbstractProtocol start
信息: 开始协议处理句柄["ajp-nio-8009"]
6月 07, 2019 11:52:39 上午 org.apache.catalina.startup.Catalina start
信息: Server startup in [2,154] milliseconds
6月 07, 2019 11:52:47 上午 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet [jsp] in context with path [/BookShop] threw exception [在 [8] 行处理 [front/index.jsp] 时发生异常
5: <jsp:useBean id="conn" scope="page" class="com.tools.ConnDB" />
6: <%
7: /* 最新上架图书信息 */
8: ResultSet rs_new = conn.executeQuery("select top 12 t1.ID, t1.BookName,t1.price,t1.picture,t2.TypeName "
9: + "from tb_book t1,tb_subType t2 where t1.typeID=t2.ID and "
10: + "t1.newBook=1 order by t1.INTime desc");//查询最新上架图书信息
11: int new_ID = 0;//保存最新上架图书ID的变量
影子_1559660729 发表于2019-06-07 11:59
6月 07, 2019 11:52:36 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server.服务器版本: Apache Tomcat/9.0.20
6月 07, 2019 11:52:36 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server.构建: May 3 2019 22:26:00 UTC
6月 07, 2019 11:52:36 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version number: 9.0.20.0
6月 07, 2019 11:52:36 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name: Windows 10
6月 07, 2019 11:52:36 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS.版本: 10.0
6月 07, 2019 11:52:36 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: 结.造: amd64
6月 07, 2019 11:52:36 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java 环境变量: D:\jdk-12.0.1_windows-x64_bin\jdk-12.0.1
6月 07, 2019 11:52:36 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM 版本: 12.0.1+12
6月 07, 2019 11:52:36 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM.供应商: Oracle Corporation
6月 07, 2019 11:52:36 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE: C:\Users\16935\Desktop\java大作业\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
6月 07, 2019 11:52:36 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME: C:\Users\16935\Desktop\java大作业\apache-tomcat-9.0.20
6月 07, 2019 11:52:36 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=C:\Users\16935\Desktop\java大作业\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
6月 07, 2019 11:52:36 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=C:\Users\16935\Desktop\java大作业\apache-tomcat-9.0.20
6月 07, 2019 11:52:36 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dwtp.deploy=C:\Users\16935\Desktop\java大作业\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
6月 07, 2019 11:52:36 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=GBK
6月 07, 2019 11:52:36 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [D:\jdk-12.0.1_windows-x64_bin\jdk-12.0.1\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:/jdk-12.0.1_windows-x64_bin/jdk-12.0.1/bin/server;D:/jdk-12.0.1_windows-x64_bin/jdk-12.0.1/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;D:\jdk-12.0.1_windows-x64_bin\jdk-12.0.1\bin;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Users\16935\AppData\Local\Microsoft\WindowsApps;;C:\Users\16935\Downloads\eclipse;;.]
6月 07, 2019 11:52:37 上午 org.apache.coyote.AbstractProtocol init
信息: 初始化协议处理器 ["http-nio-8080"]
6月 07, 2019 11:52:37 上午 org.apache.coyote.AbstractProtocol init
信息: 初始化协议处理器 ["ajp-nio-8009"]
6月 07, 2019 11:52:37 上午 org.apache.catalina.startup.Catalina load
信息: 服务器在[1,592]毫秒内初始化
6月 07, 2019 11:52:37 上午 org.apache.catalina.core.StandardService startInternal
信息: Starting service [Catalina]
6月 07, 2019 11:52:37 上午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet engine: [Apache Tomcat/9.0.20]
6月 07, 2019 11:52:38 上午 org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
警告: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [219] milliseconds.
6月 07, 2019 11:52:39 上午 org.apache.jasper.servlet.TldScanner scanJars
信息: 至少有一个JAR被扫描用于TLD但尚未包含TLD。 为此记录器启用调试日志记录,以获取已扫描但未在其中找到TLD的完整JAR列表。 在扫描期间跳过不需要的JAR可以缩短启动时间和JSP编译时间。
6月 07, 2019 11:52:39 上午 org.apache.coyote.AbstractProtocol start
信息: 开始协议处理句柄["http-nio-8080"]
6月 07, 2019 11:52:39 上午 org.apache.coyote.AbstractProtocol start
信息: 开始协议处理句柄["ajp-nio-8009"]
6月 07, 2019 11:52:39 上午 org.apache.catalina.startup.Catalina start
信息: Server startup in [2,154] milliseconds
6月 07, 2019 11:52:47 上午 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet [jsp] in context with path [/BookShop] threw exception [在 [8] 行处理 [front/index.jsp] 时发生异常
5: <jsp:useBean id="conn" scope="page" class="com.tools.ConnDB" />
6: <%
7: /* 最新上架图书信息 */
8: ResultSet rs_new = conn.executeQuery("select top 12 t1.ID, t1.BookName,t1.price,t1.picture,t2.TypeName "
9: + "from tb_book t1,tb_subType t2 where t1.typeID=t2.ID and "
10: + "t1.newBook=1 order by t1.INTime desc");//查询最新上架图书信息
11: int new_ID = 0;//保存最新上架图书ID的变量
Stacktrace:] with root cause
java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1363)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1186)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.sendLogon(SQLServerConnection.java:4098)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.logon(SQLServerConnection.java:3160)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.access$100(SQLServerConnection.java:43)
at com.microsoft.sqlserver.jdbc.SQLServerConnection$LogonCommand.doExecute(SQLServerConnection.java:3123)
at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:7505)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:2445)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1981)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:1628)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectInternal(SQLServerConnection.java:1459)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:773)
at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:1168)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:228)
at com.tools.ConnDB.getConnection(ConnDB.java:26)
at com.tools.ConnDB.executeQuery(ConnDB.java:70)
at org.apache.jsp.front.index_jsp._jspService(index_jsp.java:140)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:476)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:200)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:836)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1839)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Thread.java:835)