Win a copy of Kotlin in Action this week in the Kotlin forum!
    Bookmark Topic Watch Topic
  • New Topic

Connection Pooling Eror in Struts2 application  RSS feed

Jay Tai
Ranch Hand
Posts: 222
Java MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
at javax.naming.InitialContext.getURLScheme(
at javax.naming.InitialContext.getURLOrDefaultInitCtx(
at javax.naming.InitialContext.lookup(
at app11a.listener.AppListener.contextInitialized(

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!




Joe Ess
Posts: 9428
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question more than once. It causes confusion and duplication of effort as the community tries to help everyone.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!