import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.annotation.*;
@webServlet(name="myLogin",urlPatterns={"/login.jlc"}) //cannot be resolve
Asked
Active
Viewed 1,110 times
0

Guy
- 46,488
- 10
- 44
- 88

LOKENDRA YADAV
- 1
- 1
- 5
-
Probably because you misspelled it. Use an IDE; it will help identify these things. – chrylis -cautiouslyoptimistic- Mar 27 '17 at 05:45
-
1Check this link, it might help you http://stackoverflow.com/a/7599336/6039974 – johnII Mar 27 '17 at 05:47
-
This `@webServlet` should be `@WebServlet` – Pradeep Simha Mar 27 '17 at 05:51
-
its creating an error msg ---tomcat server 9 has encountered a problem cannot start @ johnII – LOKENDRA YADAV Mar 27 '17 at 06:16
-
thnxxxxxx @ Veera Kannadiga – LOKENDRA YADAV Mar 27 '17 at 06:28
-
it is now running with servlet-api.jar – LOKENDRA YADAV Mar 27 '17 at 06:31
-
Check your pom.xml and see is there any duplication of dependency definition. – Yasir Shabbir Choudhary Mar 27 '17 at 07:28