gpt4 book ai didi

java - Eclipse JSP项目错误: org. apache.catalina.core.ApplicationContext日志严重:操作:null

转载 作者:行者123 更新时间:2023-12-01 18:42:00 25 4
gpt4 key购买 nike

我需要在我的个人 PC 上运行现有 JSP Web 服务的实例,该项目当前正在具有 tomcat 6 和 java 6 的服务器上运行。但是,尝试在 eclipse kepler 上运行它时出现以下错误 (Kepler因为它与我的设置中的 java 6) 和 tomcat 6 兼容。错误是:

 26 Jan 2020 2:13:25 AM org.apache.catalina.core.ApplicationContext log
SEVERE: action: null
java.lang.NullPointerException
at java.util.Properties$LineReader.readLine(Properties.java:418)
at java.util.Properties.load0(Properties.java:337)
at java.util.Properties.load(Properties.java:325)
at com.samaxes.webreport.birt.BirtEngine.loadEngineProps(BirtEngine.java:148)
at com.samaxes.webreport.birt.BirtEngine.initBirtConfig(BirtEngine.java:52)
at com.samaxes.webreport.plugin.BirtInitializationPlugin.init(BirtInitializationPlugin.java:33)
at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4420)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4733)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
26 Jan 2020 2:13:25 AM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet action as unavailable
26 Jan 2020 2:13:25 AM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet threw load() exception
javax.servlet.UnavailableException
at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:880)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4420)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4733)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

如有任何帮助,我们将不胜感激!

最佳答案

这是您的问题:

 java.lang.NullPointerException
at java.util.Properties$LineReader.readLine(Properties.java:418)
at java.util.Properties.load0(Properties.java:337)
at java.util.Properties.load(Properties.java:325)
at com.samaxes.webreport.birt.BirtEngine.loadEngineProps(BirtEngine.java:148)

由于缺少带有 Birt 配置的 .properties 文件,因此引发了期望。开始:https://www.eclipse.org/birt/getting-started/

关于java - Eclipse JSP项目错误: org. apache.catalina.core.ApplicationContext日志严重:操作:null,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59914629/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com