[Solved] Tomcat startup error: sub-container startup failed

[Solved] Tomcat Startup Error: Sub-Container Startup Failed

When reviewing Java Web, I wish to make my workspace cleaner, so I cleaned up the net tasks left within the Tomcat set up listing webapps, and double-click begin Bat file, the CMD window flashes by, and I really feel unusual without delay. This scenario is often JAVA_Home setting variable isn’t configured appropriately.

Then open begin.bat in textual content mode, add “pause” after the top assertion on the finish, and double-click begin.bat once more after saving, the next outcomes seem:

Solved Tomcat Startup Error Sub Container Startup Failed

It is discovered that the paths are appropriate, indicating that there is no such thing as a drawback with my setting variable configuration.

Open begin.bat once more as textual content, name name "%EXECUTABLE%" begin %CMD_LINE_ARGS% assertion is modified to run. After saving, double-click begin.bat, the next message seems:

1662297502 882 Solved Tomcat Startup Error Sub Container Startup Failed

A collection of errors are proven later, and I solely lower one illustratively.

The principal data noticed is that the sub-container failed to begin, and a specified useful resource set is invalid. The service element vital Catalina.begin fails to begin; When you look fastidiously, you discover that it reveals an invalid useful resource set path (on the finish of the determine above). You can see that there is no such thing as a related folder beneath this path.

So I appeared on the server.xml file within the conf listing and noticed the next configuration (solely the code was intercepted):

<Service identify="Catalina">
    <Engine defaultHost="localhost" identify="Catalina">
        <Host appBase="webapps" autoDeploy="true" identify="localhost" unpackWARs="true">
            <Context docBase="E:apache-tomcat-9.0.20webappsSSM" path="/SSM" reloadable="true" supply="org.eclipse.jst.jee.server:SSM"/>
            <Context docBase="E:apache-tomcat-9.0.20webappsSpring" path="/Spring" reloadable="true" supply="org.eclipse.jst.jee.server:Spring"/>
            <Context docBase="E:apache-tomcat-9.0.20webappsPressRelease" path="/PressRelease" reloadable="true" supply="org.eclipse.jst.jee.server:PressRelease"/>

In the Context tag, docBase specifies the trail of the venture, which is accessed by the digital path path. Because I deleted these three folders collectively when cleansing the venture earlier than, there was an error when Tomcat began.

READ :  How do I reset my Samsung remote control?

Delete the contents of the three Context tags within the server.xml file, double-click begin.bat after saving, and discover that Tomcat has began usually and may entry port 8080;

Or create the corresponding SSM, Spring, and PressRelease folders within the webapps listing, and Tomcat will also be began usually.

Leave a Reply

Your email address will not be published. Required fields are marked *