Tomcat 4.1无法在eclipse中启动但它可以通过终端启动

时间:2014-09-16 06:59:22

标签: eclipse tomcat

我可以通过终端运行我的tomcat 4.1但是我无法使用eclipse运行。当我启动tomcat时会抛出错误:

  

Sep 16, 2014 12:05:06 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-4040
Starting service Tomcat-Standalone
Apache Tomcat/4.1.31
Install path.1:/home/likewise-open/GLOBAL/Workspace/V4.3/WEBROOT
Install path.2:/home/likewise-open/GLOBAL/Workspace/V4.3/WEBROOT
Install path.3:/home/likewise-open/GLOBAL/Workspace/V4.3/WEBROOT
Install path.4:/home/likewise-open/GLOBAL/Workspace/V4.3/WEBROOT
Echain Real path.5:/home/likewise-open/GLOBAL/Workspace/V4.3/WEBROOT
Sep 16, 2014 12:06:13 PM org.apache.commons.digester.Digester endElement
SEVERE: End event threw exception
java.lang.reflect.InvocationTargetException
    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:324)
    at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)
    at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
    at org.apache.commons.digester.Rule.end(Rule.java:276)
    at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at org.apache.commons.digester.Digester.parse(Digester.java:1567)
    at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:338)
    at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
    at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:395)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:352)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:671)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1149)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:707)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)
    at org.apache.catalina.core.StandardService.start(StandardService.java:450)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
    at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
    at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
    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:324)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
Caused by: java.lang.OutOfMemoryError
Sep 16, 2014 12:06:16 PM org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw error
java.lang.OutOfMemoryError

但同样的tomcat在我的终端中运行。 请建议我哪里出错。

P.S:我正在使用ubuntu 10.10,使用tomcat 4.1版本eclipse开普勒。

1 个答案:

答案 0 :(得分:0)

Jakarta Tomcat 4.x在2002年至2003年期间发布。我没有使用像这样的旧东西。在我看来,你应该说:

*下载并安装Eclipse旧版本,尽可能好(http://en.wikipedia.org/wiki/Eclipse_(software)#Releases)。

*尝试Tomcat 4.x plugin for Eclipse IDEhttp://www.eclipsetotale.com/tomcatPlugin.html

在从Tomcat运行Tomcat之前停止独立的Eclipse实例。