If the tomact server is stucked and while restarting you are getting the error as.
Quote:
SEVERE: Parse Fatal Error at line 415 column 4: The element type "Engine" must be terminated by the matching end-tag "</Engine>".
org.xml.sax.SAXParseException: The element type "Engine" must be terminated by the matching end-tag "</Engine>".
|
Please check the server tomcat configuartion file server.xml which is present at path by default /usr/local/jakarta/tomcat/conf/server.xml
check the line 415 and the syntex of the parameter at the line 415
In my case it was the parameter "<Host>"..
I've corrected it to " </Host>" now save the file and make sure set attribute to teh file usning the command
Quote:
|
root@server[~]# chattr + A /usr/local/jakarta/tomcat/conf/server.xml
|
This will open the file in read-only unless the attribute is removed, to remove attribute use
Quote:
|
root@server[~]# chattr - A /usr/local/jakarta/tomcat/conf/server.xml
|
Now restart the tomcat server.. with the following commands ..
Quote:
root@server[~]# /etc/init.d/httpd stop
root@server[~]# /usr/local/jakarta/tomcat/bin/./shutdown.sh
root@server[~]# /usr/local/jakarta/tomcat/bin/./startup.sh
root@server[~]# /scripts/restartsrv tomcat
root@server[~]# /etc/init.d/httpd startssl
|
The above steps done the trick for me..Hope the same will benefit you as well..!