This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Tomcat JDBC driver forcibly unregistered Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat JDBC driver forcibly unregistered" Watch "Tomcat JDBC driver forcibly unregistered" New topic
Author

Tomcat JDBC driver forcibly unregistered

Andrew Mike
Greenhorn

Joined: Aug 04, 2011
Posts: 5
I added richfaces 4.0.x in maven dependency after deploying my war I am getting the error



I am trying to use richfaces in my JSF application. How to resolve this?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42039
    
  64
The error has most likely nothing to do with the JDBC driver; that's just a message that the web app can't be shut down properly. If you want to avoid it, unregister the driver at shutdown time, possibly through a ServletContextListener.

To learn about the actual problem that prevents the web app from starting up, check the other log files.


Ping & DNS - my free Android networking tools app
Andrew Mike
Greenhorn

Joined: Aug 04, 2011
Posts: 5
How to unregister it through servletContextListener?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42039
    
  64
DriverManger.deregisterDriver would do that, but you needn't worry - as the message says, it's been done for you. The actual problem is elsewhere.
 
GeeCON Prague 2014
 
subject: Tomcat JDBC driver forcibly unregistered