我在运行 Web 应用程序时收到此消息。它构建良好,但在部署过程中,每次都会因以下错误而失败:
SEVERE: The web application registered the JDBC driver[oracle.jdbc.OracleDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
任何帮助表示赞赏。
仅供参考:我的 pom.xml 是:
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>2.1.26</version>
</dependency>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>2.1.26</version>
</dependency>
<dependency>
<groupId>org.primefaces.extensions</groupId>
<artifactId>primefaces-extensions</artifactId>
<version>1.0.0.RC1</version>
</dependency>
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>4.0.RC1</version>
</dependency>
以下是我在 Tomcat 日志中遇到的错误的完整列表:
SEVERE: Critical error during deployment:
com.sun.faces.config.ConfigurationException: java.lang.Exception: No Function
Found on type: org.primefaces.util.ComponentUtils with signature:
java.lang.String resolveWidgetVar(java.lang.String)
SEVERE: Error listenerStart
Nov 11, 2013 2:44:44 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context startup failed due to previous errors
Nov 11, 2013 2:44:44 PM javax.faces.FactoryFinder$FactoryManager getFactory
SEVERE: Application was not properly initialized at startup, could not find
Factory: javax.faces.application.ApplicationFactory. Attempting to find backup.
Nov 11, 2013 2:44:44 PM com.sun.faces.config.ConfigureListener contextDestroyed
SEVERE: Unexpected exception when attempting to tear down the Mojarra runtime
java.lang.IllegalStateException: Could not find backup for factory javax.faces.
application.ApplicationFactory.
SEVERE: The web application [/taams-web] registered the JDBC driver
[oracle.jdbc.OracleDriver] but failed to unregister it when the web application
was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.