Trying to get my head around `Java EE` (ORM/Entities/Annotations/EJB/Servlets etc.). So I've created a very simple webpage where you can enter user information and send it to the server. I'm using `Apache Tomcat 8.0` as webbserver application and here is all the relevant parts of the application files and content that is needed to persist an entity:

<http://pastebin.com/fwfbnYpU>

The application gives me the error on line 99 saying:

```
08-Apr-2014 16:18:10.329 SEVERE [http-nio-8084-exec-93] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [indexServlet] in context with path [/JavaEENackademin] threw exception

java.lang.NullPointerException

```

What am I doing wrong? The database exist with the correct named table and columnnames. But then again that is not the problem here maybe it will become a problem after I fix this problem :)