异常_LifecycleException: Manager has not yet been started .

本文解决使用Eclipse部署项目时出现的java.lang.OutOfMemoryError错误,通过调整JAVA_OPTS环境变量和在命令行中加入-Xms32m-Xmx800m参数来增加Java堆栈大小,最终成功解决了问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

现在项目采用Eclipse+Myeclipse+JBOSS。现在的情况是这样子的,在eclipse下,我部署项目,然后运行,会报错。如下

15:19:02,475 ERROR [Registry] Null component jboss.web:type=JspMonitor,name=/NeedAuthTools/DCViewer.jsp,WebModule=//localhost/,J2EEApplication=none,J2EEServer=none
15:19:03,444 ERROR [Registry] Null component jboss.web:type=JspMonitor,name=/NeedAuthTools/RefreshServFromMISCByID.jsp,WebModule=//localhost/,J2EEApplication=none,J2EEServer=none
15:19:03,866 ERROR [Registry] Null component jboss.web:type=JspMonitor,name=/NeedAuthTools/ViewIt.jsp,WebModule=//localhost/,J2EEApplication=none,J2EEServer=none
15:19:04,257 ERROR [Registry] Null component jboss.web:type=JspMonitor,name=/NeedAuthTools/RefreshSPAllServBySPID.jsp,WebModule=//localhost/,J2EEApplication=none,J2EEServer=none
15:19:09,194 INFO  [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
15:19:16,835 ERROR [Registry] Null component jboss.web:type=JspMonitor,name=jsp,WebModule=//localhost/jmx-console,J2EEApplication=none,J2EEServer=none
15:19:17,647 ERROR [BaseModelMBean] Exception invoking method addChild
java.lang.OutOfMemoryError: Java heap space
15:19:17,647 ERROR [BaseModelMBean] Exception invoking method init
LifecycleException:  Manager has not yet been started
 at org.apache.catalina.session.StandardManager.stop(StandardManager.java:659)

 

 

但是,我直接在JBOSS下运行就没有问题,现在还不知道怎么解决?

 

 

 

这个问题主要还是由这个问题 java.lang.OutOfMemoryError: Java heap space 引起的。第一次出现这样的的问题以后,引发了其他的问题。在网上一查可能是JAVA的堆栈设置太小的原因。
跟据网上的答案大致有这两种解决方法:
1、设置环境变量
 set JAVA_OPTS= -Xms32m -Xmx512m
可以根据自己机器的内存进行更改。

2、java -Xms32m -Xmx800m className
就是在执行JAVA类文件时加上这个参数,其中className是需要执行的确类名。(包括包名)
这个解决问题了。而且执行的速度比没有设置的时候快很多。

如果在测试的时候可能会用Eclispe 这时候就需要在Eclipse ->run -arguments 中的VM arguments 中输入-Xms32m -Xmx800m这个参数就可以了。

 后来在Eclilpse中修改了启动参数,在VM arguments 加入了-Xms32m -Xmx800m,问题解决。

java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[]] at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:192) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:939) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:872) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) ... 6 common frames omitted Caused by: org.apache.catalina.LifecycleException: Failed to start component [Pipeline[StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[]]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5099) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 6 common frames omitted Caused by: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.authenticator.NonLoginAuthenticator[]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) at org.apache.catalina.core.StandardPipeline.startInternal(StandardPipeline.java:170) at org.apache.catalina.util.LifecycleBase.start(Life
最新发布
08-07
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值