小编om *_*rma的帖子

如何修复Tomcat警告:尝试对锁定的用户进行身份验证?

我正在使用Tomcat 7 for Spring和JPA Application,数据库MySQL.一切都工作正常.但有时realm.LockOutRealm验证问题将出现.我还在我的应用程序中使用了连接池,如:

persistence.xml中:

<properties>
      <property name="hibernate.connection.username" value="---"/>
      <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
      <property name="hibernate.connection.password" value="----------"/>
      <property name="hibernate.connection.url" value="jdbc:mysql://----------?autoReconnect=true"/>
      <!--Connection Pooling c3p0 configuration-->
      <!--Minimum number of JDBC connections in the pool. Hibernate default: 1-->
      <property name="hibernate.c3p0.min_size" value="5"/>
      <!--Maximum number of JDBC connections in the pool. Hibernate default: 100-->
      <property name="hibernate.c3p0.max_size" value="20"/>
      <!--When an idle connection is removed from the pool (in second). Hibernate default: 0, never expire.-->
      <property name="hibernate.c3p0.timeout" value="300"/>
      <!--Number of prepared statements will be cached. Increase performance. Hibernate …
Run Code Online (Sandbox Code Playgroud)

authentication configuration catalina tomcat7

23
推荐指数
1
解决办法
6万
查看次数

标签 统计

authentication ×1

catalina ×1

configuration ×1

tomcat7 ×1