Today I wrote the first JSP and servlet, and then myeclipse on the use of Tomcat to build the server, log on when the problem occurs.
A problem occurred:
Fatal: Error deploying Web application directory G:\MyEclipseWorkspaces\.metadata\.me_tcat7\webapps\hiber_test
Follow the steps of the teacher to teach, the result of opening JSP Web page is still an error
At first I thought it was the Tomcat version problem, then changed 6 and 7, and used the MyEclipse to bring the two, the result is the same
Looking for a long day: the original web. XML configuration File Error
should read:
<servlet-mapping> <servlet-name>ServletDemo1<servlet-name> <url-pattern>/ Servletdemo1</url-pattern></servlet-mapping>
Yes, that's right, just delete '/' on the line, or blame yourself for writing code too careless, so write a blog to warn yourself.
Problem using Tomcat: fatal: Error deploying Web application directory G:\MyEclipseWorkspaces\.metadata\.me_tcat7\webapps\hiber _test