I'm trying to run my servlet but it seems I get an error and I can't figure out why...
When I run Tomcat I get this:
Please help, I'm getting desprate here....
Well that's not a crash in your own empty code, that's a crash in Tomcat :/
The only thing that I see that is a bit off is that you have both the @WebServlet annotation AND web.xml configuration for the servlet; that's double, you need only one or the other (which shouldn't be a problem, but you never know). Try commenting out the web.xml servlet and servlet-mapping configuration data to see if that changes anything.
Thanks to you I figured out what was wrong.. The tutorial I was following was abit off.. In the web.xml code line 4 should have been: <servlet-class>FirstServlet</servlet-class>
Thanks for the reply ^^
The <servletclass> element wants a classname. So there could never be a / in it, only a dot.
Ye I figured, it was a really stupid mistake.. I should stop youtube tutorials because that one was incorrect.. I think I start with the book: Head First Servlets & JSP unless somebody got better suggestions. Thanks for the help though