Eclipse tomcat启动失败 [英] Eclipse tomcat startup failure

查看:192
本文介绍了Eclipse tomcat启动失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Windows 7(x64位)上运行Eclipse Indigo(3.7),当我启动Tomcat 7.0.12时,使用Mongrel(用于在
Eclipse中运行Tomcat的Eclipse插件),我得到:

  2012年5月24日7:56:17 PM org.apache.catalina.startup.Bootstrap initClassLoaders 
SEVERE:创建类加载器异常
java.lang.NoSuchMethodError:org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(Ljava / util / List; Ljava / lang / ClassLoader;)Ljava / lang / ClassLoader;
在org.apache.catalina.startup.Bootstrap.createClassLoader(Bootstrap.java:150)
在org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java:91)
在org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:227)
在org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)

我的电脑上有jdk1.7.0_04。



尝试:



- 其他版本的Tomcat



- 删除并重新添加Tomcat服务器



- 确定系统java和Eclipse java都是jdk1.7.0_04



- 为现在可能的解决方案--googling。 / p>

没有任何这些的运气。任何想法?

解决方案

也许有点晚了但对于可能有这个问题的任何人来说;原来我已经在我的CATALINA_HOME环境变量(我正在使用Windows)的结尾放一个反斜杠\。当我删除它,我可以开始使用catalina运行命令。


I'm running Eclipse Indigo (3.7) on Windows 7 (x64 bit) and when I start Tomcat 7.0.12 using Mongrel ( an Eclipse plugin for running Tomcat in Eclipse) I get:

May 24, 2012 7:56:17 PM org.apache.catalina.startup.Bootstrap initClassLoaders
SEVERE: Class loader creation threw exception
java.lang.NoSuchMethodError: org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(Ljava/util/List;Ljava/lang/ClassLoader;)Ljava/lang/ClassLoader;
    at org.apache.catalina.startup.Bootstrap.createClassLoader(Bootstrap.java:150)
    at org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java:91)
    at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:227)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)

I have jdk1.7.0_04 on my computer.

Things I've tried:

-another version of Tomcat

-deleting and re-adding Tomcat servers

-making sure system java and Eclipse java are both jdk1.7.0_04

-googling for possible solutions for 2 days now .

No luck with any of these. Any thoughts ?

解决方案

Maybe a bit late; but for anyone else who may have this problem; it turned out i had put a backslash \ at the end on my CATALINA_HOME environment variable (I was using windows). When i removed it, i could start using catalina run command.

这篇关于Eclipse tomcat启动失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆