This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I'm trying to build a Struts 2 app in Netbeans and Tomcat. I can't seem to make a connection to the mySql DB. When trying to run the application the Build fails with the following stack:
SEVERE: Exception sending context initialized event to listener instance of class app11a.listener.AppListener
java.lang.NullPointerException at javax.naming.InitialContext.getURLScheme(InitialContext.java:288)
Doing some research I found out that this type of error is sometimes due to missing or outdated libraries, but I'm using the same libraries as a prior MVC JSP application which also implements connection pooling and works fine. I've included the main files in my application. Would appreciate any guidance about where I'm going wrong. Thanks in advance!