尝试连接到本地主机上的tomcat服务器时收到http 500错误

uurv41yg  于 2021-07-08  发布在  Java
关注(0)|答案(0)|浏览(247)

我正在尝试在springtools套件中运行tomcat9.0服务器,这个有问题的项目适用于与我一起工作的其他开发人员,但是当我尝试加载它时,我无法连接到我的tomcat服务器。
这是我在浏览器中收到的http 500通知旁边的错误。

Message Servlet.init() for servlet [UsersTestServlet] threw exception

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

javax.servlet.ServletException: Servlet.init() for servlet [UsersTestServlet] threw exception
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
    org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
    org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:373)
    org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
    org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
    org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1589)
    org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    java.lang.Thread.run(Thread.java:748)

Root Cause

com.deere.u90.iaf.exception.ContextRuntimeException: Error determining 'full path'.  'config/Local.properties' not found in ''
timestamp: 2020-08-20 09:27:47.454 AM CDT (1597933667454)
    com.deere.u90.iaf.configuration.ConfigurationPropertiesHelper.DetermineFullPath(ConfigurationPropertiesHelper.java:441)
    com.deere.u90.iaf.configuration.IAFConfigurationLocation.determineFullPath(IAFConfigurationLocation.java:309)
    com.deere.u90.iaf.configuration.IAFConfigurationLocation.loadPropertiesAsResource(IAFConfigurationLocation.java:233)
    com.deere.u90.iaf.configuration.IAFConfigurationLocation.loadPropertiesFromFile(IAFConfigurationLocation.java:181)
    com.deere.u90.iaf.configuration.IAFConfigurationLocation.loadProperties(IAFConfigurationLocation.java:146)
    com.deere.u90.iaf.configuration.IAFConfigurationAdapter.initialize(IAFConfigurationAdapter.java:209)
    com.deere.u90.iaf.configuration.ConfigurationFactory.initializeView(ConfigurationFactory.java:119)
    com.deere.u90.iaf.configuration.ConfigurationFactory.initializeView(ConfigurationFactory.java:108)
    com.deere.u90.iaf.configuration.ConfigurationFactory.getInstance(ConfigurationFactory.java:43)
    com.deere.u90785.application.Application.getConfigurationView(Application.java:1314)
    com.deere.u90785.application.ApplicationProperties.GetString(ApplicationProperties.java:296)
    com.deere.u90785.application.ApplicationProperties.GetUrlBaseJsp(ApplicationProperties.java:329)
    com.deere.u90785.view.servlets.ApplicationServlet.init(ApplicationServlet.java:276)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
    org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
    org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:373)
    org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
    org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
    org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1589)
    org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    java.lang.Thread.run(Thread.java:748)
Note The full stack trace of the root cause is available in the server logs.

我和其他开发人员很困惑,因为他们没有收到这个问题,那些已经在项目中工作了一段时间的人从来没有看到过这个错误。我不知道问题出在哪里,也不知道我什么时候去控制台点击了这行 org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) 我得到这个信息弹出窗口: Source not found for org.apache.tomcat.util.threads.TaskThread 我对使用tomcat和springtools还比较陌生,所以我不确定是否用java环境或springtools设置了一些配置,或者是否设置了tomcat服务器。当我收到这个问题时,我的合作开发人员也被难住了,即使在我设置另一个工作区的时候,我在设置这个工作区时遇到了问题。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题