org.hibernate.cache.CacheException:net.sf.ehcache.CacheException:Cannot configure CacheManeger:jar:file:/D:/web/www.hboys.cn/WEB-INF/lib/ehcache-1.1.jar/ehcache-failsafe.xml:12:12Could not set attribute "path".at org.hibernate.cache.EhCaeProvider.start(EhCacheProvider.java:134>

解决方案 »

  1.   

    path属性没有设置Could not set attribute "path".
      

  2.   

    <ehcache>
     <diskStore path="java.io.tmpdir"/>
     <defaultCache
            maxElementsInMemory="10000"
            eternal="false"
            overflowToDisk="true"
            timeToIdleSeconds="120"
            timeToLiveSeconds="120"
            diskPersistent="false"
            diskExpiryThreadIntervalSeconds="120"
            />
    </ehcache>
    就这些,我以前没有设置过的
      

  3.   

    hibernate的配置问题,你是否用了hibernate?若没用,就是服务器那边的配置和你这边没有结合好。
      

  4.   

    ehcache-1.1.jar这个文件是否存在?按照上面的路径。
      

  5.   

    <diskStore path="java.io.tmpdir"/>
    这个路径我没有配过的我用的hibernate+struts
    下面是hibernate文件
    <?xml version='1.0' encoding='gbk'?>
    <!DOCTYPE hibernate-configuration PUBLIC
              "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
              "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"><!-- Generated by MyEclipse Hibernate Tools.                   -->
    <hibernate-configuration><session-factory>
    <property name="connection.username">hboys</property>
    <property name="connection.url">jdbc:mysql://210.74.227.169:3306/hboys</property>
    <property name="dialect">org.hibernate.dialect.MySQLMyISAMDialect</property>
    <property name="myeclipse.connection.profile">mySQL</property>
    <property name="connection.password">hboys</property>
    <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
    <property name="show_sql">false</property> <mapping resource="com/jun/newsPub/model/BigClass.hbm.xml" />
    <mapping resource="com/jun/newsPub/model/SysConfig.hbm.xml" />
    <mapping resource="com/jun/newsPub/model/SysInfo.hbm.xml" />
    <mapping resource="com/jun/newsPub/model/Log.hbm.xml" />
    <mapping resource="com/jun/newsPub/model/News.hbm.xml" />
    <mapping resource="com/jun/newsPub/model/SmallClass.hbm.xml" />
    <mapping resource="com/jun/newsPub/model/Special.hbm.xml" />
    <mapping resource="com/jun/newsPub/model/TalkAbout.hbm.xml" />

    <mapping resource="com/jun/guestbook/model/GuestBook.hbm.xml" />

    <mapping resource="com/jun/user/model/User.hbm.xml" />
    <mapping resource="com/jun/admin/Admin.hbm.xml" />

    </session-factory></hibernate-configuration>