Tomcat启动报错 Failed to start component

将之前在eclipse上用的Tomcat搬到服务器上使用,报错。

查了很多资料,都没成....

最后发现是server.xml中的内容被eclipse自动添加了一段

删除后即可



<Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true">

<Valve className="org.apache.catalina.authenticator.SingleSignOn" />

<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" pattern="%h %l %u %t &quot;%r&quot; %s %b" prefix="localhost_access_log." suffix=".txt"/> 

<Context docBase="MyProject" path="/MyProject" reloadable="true" source="org.eclipse.jst.jee.server:MyProject"/></Host>

猜你喜欢

转载自blog.csdn.net/Guns_Spit_Fire/article/details/80480939
今日推荐