jndi连接池问题context.xml web.xml 配置如下对应jar包也有
警告:FailedtoregisterinJMX:javax.naming.NamingException:Couldnotcreateresourcefactoryin...
警告: Failed to register in JMX: javax.naming.NamingException: Could not create resource factory instance [Root exception is java.lang.ClassNotFoundException: org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory]七月 31, 2018 1:22:03 下午 com.sun.faces.config.ConfigureListener contextInitialized信息: 初始化上下文 '/NewsManager' 的 Mojarra 2.0.3 (FCS b03)七月 31, 2018 1:22:03 下午 com.sun.faces.spi.InjectionProviderFactory createInstance信息: JSF1048:有 PostConstruct/PreDestroy 注释。标有这些注释的 ManagedBeans 方法将表示注释已处理。七月 31, 2018 1:22:04 下午 org.apache.catalina.startup.HostConfig deployDirectory信息: Deployment of web application directory D:\Private\tomcat\webapps\NewsManager has finished in 2,703 ms七月 31, 2018 1:22:04 下午 org.apache.coyote.AbstractProtocol start信息: Starting ProtocolHandler ["http-bio-8080"]七月 31, 2018 1:22:04 下午 org.apache.coyote.AbstractProtocol start信息: Starting ProtocolHandler ["ajp-bio-8009"]七月 31, 2018 1:22:04 下午 org.apache.catalina.startup.Catalina start信息: Server startup in 2760 ms
关键警告(tomcat启动就有):
Failed to register in JMX: javax.naming.NamingException: Could not create resource factory instance [Root exception is java.lang.ClassNotFoundException: org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory]
项目运行报错:
Could not create resource factory instance [Root exception is java.lang.ClassNotFoundException: org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory]
Caused by: java.lang.ClassNotFoundException: org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory 展开
关键警告(tomcat启动就有):
Failed to register in JMX: javax.naming.NamingException: Could not create resource factory instance [Root exception is java.lang.ClassNotFoundException: org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory]
项目运行报错:
Could not create resource factory instance [Root exception is java.lang.ClassNotFoundException: org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory]
Caused by: java.lang.ClassNotFoundException: org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询