File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Connection Pooling Eror in Struts2 application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply locked New topic

Connection Pooling Eror in Struts2 application

Jay Tai
Ranch Hand

Joined: Apr 25, 2012
Posts: 216

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

Joined: Oct 29, 2001
Posts: 9189

Please do not post the same question more than once. It causes confusion and duplication of effort as the community tries to help everyone.

[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: Connection Pooling Eror in Struts2 application
It's not a secret anymore!