I have a web application, which consists of Java servlets and JSPs, I'm trying to get working in Netbeans as a Maven project. I got it working in Linux already, as well as in Netbeans, but as a regular Web project, not as a Maven project, which is required for work.
Tomcat appears to be working because when I click the Run button, my index.jsp will come up, but when I attempt to access my HelloServlet, it gives me (tried formatting it nicely, but didn't know an easy way to space every line 4 spaces):
HTTP Status 500 - Error instantiating servlet class test.HelloServlet type Exception report
message Error instantiating servlet class test.HelloServlet
description The server encountered an internal error that prevented it from fulfilling this request.
javax.servlet.ServletException: Error instantiating servlet class test.HelloServlet org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) java.lang.Thread.run(Thread.java:662) root cause
Also, it might help if you did the build and then the deploy of the war to Tomcat from the command line; then you won't have to spend time trying to find out why the IDE isn't behaving correctly (we can tackle that again after we are certain that Maven it building a deployable war)