Java web书城练手小项目在做注册页面时一直无法正常跳转,明明首页是正常的,一到注册页面提交后就显示500,刷新后显示404
百度了很久都没有找到问题,无奈重敲了一遍发现还是出错。

并且发现控制台也显示tomcat启动失败,就开始思考是不是tomcat的问题导致的,又看了半天百度找解决方案,几乎把下面链接里的解决方案都试了一遍还是不行。
![Connected to server [2022-02-17 04:06:42,736] Artifact mybook:war exploded: Artifact is being deployed, please wait... 17-Feb-2022 16:06:43.608 信息 [RMI TCP Connection(5)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. [2022-02-17 04:06:43,644] Artifact mybook:war exploded: Artifact is deployed successfully [2022-02-17 04:06:43,644] Artifact mybook:war exploded: Deploy took 908 milliseconds 17-Feb-2022 16:06:52.645 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\JAVA\tools\Java\apache-tomcat-8.0.50\webapps\manager 17-Feb-2022 16:06:52.702 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\JAVA\tools\Java\apache-tomcat-8.0.50\webapps\manager has finished in 56 ms](https://i-blog.csdnimg.cn/blog_migrate/f067203cb2e5fd1831943cc38fe13085.png)
最后发现是因为我太粗心了!jar包少了一个!导进去之后就可以正常跳转了!!!气哭!

不过回来发现控制台依然显示 [localhost-startStop-1] ,还是不懂这是啥问题?难道这不是启动失败的意思?是我理解错了?
博主在开发JavaWeb书城练手项目时遇到注册页面提交后显示500错误和404问题,经过排查发现是缺少jar包导致。修复后虽然能正常跳转,但控制台仍显示'[localhost-startStop-1]',对此感到困惑。最终确定控制台信息并不影响应用运行,问题得到解决。
474

被折叠的 条评论
为什么被折叠?



