当尝试访问部署在tomcat 7.0.82上的.war中的特定.jsp时,我遇到javax.servlet.ServletException:java.lang.reflect.InvocationTargetException。但是,当我使用tomcat 6.0.32直接从netbeans访问时,没有发现错误。该应用程序上的任何其他形式都可以正常工作。
Catalina.log显示以下错误:
jun 11, 2019 10:50:29 AM org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor run
GRAVE: Unexpected death of background thread
ContainerBackgroundProcessor[StandardEngine[Catalina]]
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Unknown Source)
at java.lang.String.<init>(Unknown Source)
at java.io.Win32FileSystem.resolve(Unknown Source)
at java.io.File.<init>(Unknown Source)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1185)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:530)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1793)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:366)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1500)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1671)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1681)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1649)
at java.lang.Thread.run(Unknown Source)
还有localhost.log:
jun 11, 2019 10:50:34 AM org.apache.catalina.core.ApplicationDispatcher invoke
GRAVE: El Servlet.service() para servlet jsp lanzó una excepción
java.lang.OutOfMemoryError: Java heap space
我将不胜感激
预先感谢