Reaching out to others! Free & Open Source Software, Kannada, L10n, L18n Data Science, Cloud Computing & more…

Trouble with Jsp on Cpanel box

linux, QuickFix, Technical | 0 comments

When ever you get a chance to install Tomcat freshly on a brand new Cpanel server, jsp fails to work. You might skip to notice a strange error which is normally lost in the debug information displayed in log files.

Watch out this log file /usr/local/jakarta/tomcat/logs/catalina.out :

I’m damn sure that you will get to see the following error –

Sep 19, 2008 12:26:46 AM
org.apache.catalina.startup.ContextConfig processDefaultWebConfig
SEVERE: Parse error in default web.xml
java.lang.IllegalArgumentException: addChild:
Child name ‘httpservlet’ is not unique
at org.apache.tomcat.util.digester.Digester.createSAXException
(Digester.java:2719)

To resolve this issue you need to carefully look into default web.xml file which is located at /usr/local/jakarta/tomcat/conf

Few entries are accidentally added twice here. No wonder as its a Cpanel server.

Following are the two servlet entires causing the issue which I have reported here :


httpservlet

org.apache.catalina.servlets.InvokerServlet

debug 0
2


httpservlets

org.apache.catalina.servlets.InvokerServlet

debug 0
2

Remove the extra entires and restart tomcat. You’re all good to go ahead with tomcat service on your service.

Do post if you have any further issues.

Related Articles

Related