user2576371 user2576371 - 1 year ago 142
Apache Configuration Question

Starting Apache Tomcat v7 at localhost has encountered a prblem and failed to start in eclipse

I'm using Eclipse kepler and Tomcat v7 64 bit on my windows 7 PC. My apache tomcat was running fine but suddenly it stopped working and shows the following error
"Starting Apache Tomcat v7 at localhost has encountered a problem.
Server Apache Tomcat v7 has failed to start."

I have tried deleting the .snap file and temp0 folder in the workspace folder.
I have also tried uninstalling and re-installing apache.
i referred to the question Server Tomcat v7.0 Server at localhost failed to start and tried all solutions.

But all this in vain.
There is no other process running on port number 8080 or other ports.
Tomcat doesn't start only in Eclipse

Could someone suggest me how to solve this.

Answer Source

Try checking the Console tab of Eclipse to get more detail of what caused the error. There are several potential problems that could produce this symptom.

On the Console tab, there will be plenty of red text for "INFO" entries in the log, but likely there will be a "SEVERE" entry that explains what happened. You may have to look down a little further because the first one may list that it is "caused by" something else.

In my case, I had refactored the name of a Servlet, but accidentally left the mapping to the old name (e.g., @WebServlet("/SavePost"). This resulted in two servlets being mapped to the same url-pattern, which caused the error:

Caused by: java.lang.IllegalArgumentException: The servlets named [forum.SavePost] and [forum.SavePost_old] are both mapped to the url-pattern [/SavePost] which is not permitted
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download