关于springMVC+hibernate4+eacache二级缓存配置问题,启动一直报错

1、已经成功导入了相关jar包:hibernate-core 4.3.8Final;hibernate-ehcache 4.3.8Final和ehcache2.9.0
2、配置如下
class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">



${hibernate.hbm2ddl.auto}
${hibernate.dialect}
${hibernate.show_sql}
${hibernate.format_sql}
none
<!-- 开启查询的二级缓存 如果不需要就不设置 -->

true
<!-- 开启二级缓存 ehcache -->
true

<!-- Hibernate4.0以上设置factory -->

org.hibernate.cache.ehcache.EhCacheRegionFactory
<!-- 二级缓存 ehcache的配置文件位置 -->
classpath:configs/ehcache.xml



其中也注意了hibernate4和3的区别了
3、在实体类以标签注入@Cache(usage=CacheConcurrencyStrategy.READ_WRITE)后,启动项目会报错
4、错误如下:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'riskalertDao': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory_riskalert' defined in class path resource [configs/spring-data-config.xml]: Invocation of init method failed; nested exception is org.hibernate.cache.NoCacheRegionFactoryAvailableException: Second-level cache is used in the application, but property hibernate.cache.region.factory_class is not given; please either disable second level cache or set correct region factory using the hibernate.cache.region.factory_class setting and make sure the second level cache provider (hibernate-infinispan, e.g.) is available on the classpath.
······
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory_riskalert' defined in class path resource [configs/spring-data-config.xml]: Invocation of init method failed; nested exception is org.hibernate.cache.NoCacheRegionFactoryAvailableException: Second-level cache is used in the application, but property hibernate.cache.region.factory_class is not given; please either disable second level cache or set correct region factory using the hibernate.cache.region.factory_class setting and make sure the second level cache provider (hibernate-infinispan, e.g.) is available on the classpath.
······
Caused by: org.hibernate.cache.NoCacheRegionFactoryAvailableException: Second-level cache is used in the application, but property hibernate.cache.region.factory_class is not given; please either disable second level cache or set correct region factory using the hibernate.cache.region.factory_class setting and make sure the second level cache provider (hibernate-infinispan, e.g.) is available on the classpath.
······
九月 12, 2017 2:58:18 下午 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class com.prosas.basic.utils.ProjectInit
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'riskalertDao': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory_riskalert' defined in class path resource [configs/spring-data-config.xml]: Invocation of init method failed; nested exception is org.hibernate.cache.NoCacheRegionFactoryAvailableException: Second-level cache is used in the application, but property hibernate.cache.region.factory_class is not given; please either disable second level cache or set correct region factory using the hibernate.cache.region.factory_class setting and make sure the second level cache provider (hibernate-infinispan, e.g.) is available on the classpath.
······
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory_riskalert' defined in class path resource [configs/spring-data-config.xml]: Invocation of init method failed; nested exception is org.hibernate.cache.NoCacheRegionFactoryAvailableException: Second-level cache is used in the application, but property hibernate.cache.region.factory_class is not given; please either disable second level cache or set correct region factory using the hibernate.cache.region.factory_class setting and make sure the second level cache provider (hibernate-infinispan, e.g.) is available on the classpath.
······
Caused by: org.hibernate.cache.NoCacheRegionFactoryAvailableException: Second-level cache is used in the application, but property hibernate.cache.region.factory_class is not given; please either disable second level cache or set correct region factory using the hibernate.cache.region.factory_class setting and make sure the second level cache provider (hibernate-infinispan, e.g.) is available on the classpath.
······
5、网上查了很多资料,都说这个错误是org.hibernate.cache.ehcache.EhCacheRegionFactory这行有问题,但是说的解决方法中都是改成这样啊,就是解决不了问题很苦恼,求大神解答!

3个回答

在线等大神来帮忙啊·································

Hibernate4的配置是下面这样的,你仔细检查一下是不是这样配的

    <property name="hibernate.cache.use_second_level_cache">true</property>  
<property name="hibernate.cache.region.factory_class">org.hibernate.cache.ehcache.EhCacheRegionFactory</property>  
<property name="hibernate.cache.provider_class">net.sf.ehcache.hibernate.EhCacheProvider</property>  
bingyan_wxl
bingyan_wxl 可能是tomcat有缓存吧
大约 2 年之前 回复
yonghuxiaoying
火舞天涯 回复bingyan_wxl: 我又尝试了一次 加上后又不报错了 我这次彻底晕了
大约 2 年之前 回复
bingyan_wxl
bingyan_wxl 回复火舞天涯: 刚才又查了一下资料,可能是jar包版本问题,你把ehcache的版本改成2.4.3试一下
大约 2 年之前 回复
yonghuxiaoying
火舞天涯 回复bingyan_wxl: 哦
大约 2 年之前 回复
bingyan_wxl
bingyan_wxl 回复火舞天涯: 好吧,那我就不知道了,我也是从网上查的,没用过hibernate
大约 2 年之前 回复
yonghuxiaoying
火舞天涯 我网查了很多都是不加第三条的,不过我也试过加上了 但是依然报错
大约 2 年之前 回复

没有大神来看看吗???还是没有解决 刚才缓存问题导致成功了 白高兴一场

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
hibernate4二级缓存
hibernate配置:      false   org.hibernate.cache.ehcache.EhCacheRegionFactory ehcache.xml配置:             maxElementsInMemory="1000"         eternal="false"         timeToIdleSeconds="300
hibernate4配置二级缓存
hibernate4中的getCurrentSession 的获取session的方式是单例的,所以,用sessionFactory的getCurrentSession,只要是sessionFactory的引用不变,获取的session对象为同一个,默认使用一级缓存。openSession则会使用不同的session对象,在配置二级缓存是hibernate3的配置文件中的需要配置:net.sf.e
hibernate4 二级缓存demo实例
hibernate4 二级缓存demo实例 [url]http://blog.csdn.net/chaoowang/article/details/21236501[/url] Hibernate学习笔记(六)——缓存 [url]http://blog.csdn.net/u011024652/article/details/52769714[/url] [u...
性能优化之Hibernate4配置二级缓存
配置JavaBean缓存的三种方式 配置步骤配置JavaBean缓存的三种方式①在使用JPA规范的bean中,添加·Cache注解,eg. @Entity @Table(name = “t_area”) @Cache(usage = CacheConcurrencyStrategy.READ_ONLY) class Area{…} hibernate有4种
Spring整合Hibernate4二级缓存
以常见的EhCahe为例介绍Spring结合Hibernate二级缓存的用法 现在已经把Hibernate的配置文件整合到Spring的配置文件applicationContext.xml中, 1、在Bean为sessionFactory的hibetnateProperties开启二级缓存。需要做两件事: a、设置启用二级缓存 b、设置二级缓存的实现类 <bean id="s
Hibernate4二级缓存Ehcache案例
Hibernate4二级缓存Ehcache案例,可参考博客:http://blog.csdn.net/coco2d_x2014/article/details/52927638
Hibernate4二级缓存实例(源码)
用memcached实现 Hibernate4二级缓存的实例源码。
Hibernate4之二级缓存(十六)
一、配置 Hibernate二级缓存 1. 缓存的概念: 缓存是介于物理数据源与应用程序之间, 是对数据庫中的数据复制一份l临时放在内存或者硬盘中的容器,其作用是为了减少应用程序对物理数据源访问的次数,从而提高了应用程序的运行性能, Hibemate在进行读取数据的时候,根据缓存机制在相应的缓存中査询,如果在缓存中找到了需要的数据(我们把这称做“缓存命中·),则就直接把命中的数据作为结...
Telegraf启动一直报错
? telegraf.service - The plugin-driven server agent for reporting metrics into InfluxDBrn Loaded: loaded (/usr/lib/systemd/system/telegraf.service; enabled; vendor preset: disabled)rn Active: failed (Result: start-limit) since ? 2018-09-27 11:12:23 CST; 6s agorn Docs: https://github.com/influxdata/telegrafrn Process: 6368 ExecStart=/usr/bin/telegraf -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d $TELEGRAF_OPTS (code=exited, status=1/FAILURE)rn Main PID: 6368 (code=exited, status=1/FAILURE)rnrn9? 27 11:12:23 localhost.localdomain systemd[1]: Unit telegraf.service entered failed state.rn9? 27 11:12:23 localhost.localdomain systemd[1]: telegraf.service failed.rn9? 27 11:12:23 localhost.localdomain systemd[1]: telegraf.service holdoff time over, scheduling restart.rn9? 27 11:12:23 localhost.localdomain systemd[1]: start request repeated too quickly for telegraf.servicern9? 27 11:12:23 localhost.localdomain systemd[1]: Failed to start The plugin-driven server agent for reporting metrics into InfluxDB.rn9? 27 11:12:23 localhost.localdomain systemd[1]: Unit telegraf.service entered failed state.rn9? 27 11:12:23 localhost.localdomain systemd[1]: telegraf.service failed.
tomcat 启动一直报错
[code=html]五月 20, 2014 9:17:21 上午 org.apache.catalina.core.StandardContext filterStartrnSEVERE: Exception starting filter StrutsrnUnable to load configuration. - [unknown location]rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:450)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:107)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4775)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5452)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1120)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1678)rn at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)rn at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnCaused by: Unable to load configuration. - [unknown location]rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:390)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:437)rn ... 19 morernCaused by: Unable to load file:/D:/apache-tomcat-7.0.47/webapps/lookweb/WEB-INF/classes/struts.xml - [unknown location]rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:954)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:163)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:130)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:209)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)rn ... 21 morernCaused by: struts.apache.org - [unknown location]rn at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:115)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:949)rn ... 25 morernCaused by: java.net.UnknownHostException: struts.apache.orgrn at java.net.AbstractPlainSocketImpl.connect(Unknown Source)rn at java.net.PlainSocketImpl.connect(Unknown Source)rn at java.net.SocksSocketImpl.connect(Unknown Source)rn at java.net.Socket.connect(Unknown Source)rn at java.net.Socket.connect(Unknown Source)rn at sun.net.NetworkClient.doConnect(Unknown Source)rn at sun.net.www.http.HttpClient.openServer(Unknown Source)rn at sun.net.www.http.HttpClient.openServer(Unknown Source)rn at sun.net.www.http.HttpClient.(Unknown Source)rn at sun.net.www.http.HttpClient.New(Unknown Source)rn at sun.net.www.http.HttpClient.New(Unknown Source)rn at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)rn at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)rn at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)rn at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source)rn at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:113)rn ... 26 morernrn五月 20, 2014 9:17:21 上午 org.apache.catalina.core.StandardContext startInternalrnSEVERE: Error filterStart[/code]rn有人说是架包版本冲突,但还是解决不了。这个错有时候会报,有时候不会报错。郁闷~~~rn[img=https://img-bbs.csdn.net/upload/201405/20/1400549073_383928.jpg][/img]
配置memecached作hibernate4的二级缓存
文件包含配置memecached作hibernate4的二级缓存所需要的jar包。
最新二级缓存memcached,支持hibernate4
解决目前memcached不支持hibernate4的缺陷,hibernate配置<property name="hibernate.cache.region.factory_class">com.googlecode.hibernate.memcached.MemcachedRegionFactory</property>
hibernate4配置memecached作二级缓存
hibernate4配置memecached 系统环境 windows 7 memecached-1.4.4-14 环境安装不再赘述 导入依赖的jar包 资源下载地址:http://download.csdn.net/detail/u014496722/8949479 修改配置文件hibernate.cfg.xml <?xml version='1.0' encoding='utf-8'
SpringMVC启动一直卡的解决
当加载Spring MVC如下情况卡住时,有可能是JDK版本问题。 ... At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLD
spring3整合hibernate4配置问题
 之前提示class not found ,意思就是找不到jar包,   项目右击--&amp;gt;build path---&amp;gt;configure build path ---&amp;gt; add library---&amp;gt;myeclipse libraries---&amp;gt;选择要添加的jar包,一般配置提示class not found ,就是要看下能不能找得到jar包,有时候版本不一样,...
关于springmvc的配置问题
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframewo
关于springMVC配置问题
在部署springMVC的时候项目报:class path resource [spring-mvc.xml] cannot be opened because it does not exist这个错,当时上网搜了好多,常见的情况是[
springmvc spring3 hibernate4 log4j
springmvc spring3 hibernate4 log4j 完整的注解配置 spring切面自动打日志等,需要自己建一个小表 可运行 并且已经将bootstrap集成进去.
SpringMVC Spring4 Hibernate4 项目搭建
SpringMVC Spring4 Hibernate4 项目搭建测试
SpringMVC和Hibernate4的集成及问题
jar文件:Spring3.2.3 + Hibernate4.1.10 applicationContext.xml: &amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt; &amp;lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot; xmlns:xsi=&quot;http://www.w3.o...
springmvc整合hibernate4
springmvc demo,整合了hibernate4作为dao层实现。使用c3p0连接池管理连接。
hibernate+OSCacheProvider二级缓存配置问题??
[code=java]rnhibernate+OSCacheProvider二级缓存配置问题,请大侠帮忙看看!rnhibernate.cfg.xml配置文件:rnrnrnrnrnrnrn rn rn oracle.jdbc.driver.OracleDriverrn rn rn jdbc:oracle:thin:@192.168.100.100:1521:xern rn MyCodeLibraryrn fengshuorn rn truern rn rn truern rn org.hibernate.cache.OSCacheProviderrn rn rn rn rnrnrnrn报错代码:rnlog4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).rnlog4j:WARN Please initialize the log4j system properly.rnException in thread "main" java.lang.ExceptionInInitializerErrorrn at com.CacheTest.getUser(CacheTest.java:23)rn at com.CacheTest.main(CacheTest.java:13)rnCaused by: org.hibernate.HibernateException: problem parsing configuration/hibernate.cfg.xmlrn at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1173)rn at org.hibernate.cfg.Configuration.configure(Configuration.java:1112)rn at org.hibernate.cfg.Configuration.configure(Configuration.java:1098)rn at com.HibernateUtil.(HibernateUtil.java:16)rn ... 2 morernCaused by: org.hibernate.MappingException: invalid configurationrn at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1169)rn ... 5 morernCaused by: org.xml.sax.SAXParseException: The content of element type "session-factory" must match "(property*,mapping*,(class-cache|collection-cache)*,listener*)".rn at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)rn at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)rn at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)rn at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)rn at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:2017)rn at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:901)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1774)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2930)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)rn at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)rn at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)rn at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)rn at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)rn at org.dom4j.io.SAXReader.read(SAXReader.java:465)rn at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1168)rn ... 5 morernrn[/code]
关于hibernate 二级缓存 报错问题
Maven   hibernate-ehcache 和hibernate-core版本需要一致 &amp;lt;dependency&amp;gt; &amp;lt;groupId&amp;gt;org.hibernate&amp;lt;/groupId&amp;gt; &amp;lt;artifactId&amp;gt;hibernate-core&amp;lt;/artifactId&amp;gt; &amp;lt;version&amp;gt;${hiberna...
SpringMvc 项目一启动就报错
十二月 07, 2016 12:26:44 下午 org.apache.tomcat.util.digester.SetPropertiesRule beginrn警告: [SetPropertiesRule]Server/Service/Engine/Host/Context Setting property 'source' to 'org.eclipse.jst.jee.server:mvp' did not find a matching property.rn十二月 07, 2016 12:26:44 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Server version: Apache Tomcat/8.0.36rn十二月 07, 2016 12:26:44 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Server built: Jun 9 2016 13:55:50 UTCrn十二月 07, 2016 12:26:44 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Server number: 8.0.36.0rn十二月 07, 2016 12:26:44 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: OS Name: Windows 8.1rn十二月 07, 2016 12:26:44 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: OS Version: 6.3rn十二月 07, 2016 12:26:44 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Architecture: amd64rn十二月 07, 2016 12:26:44 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Java Home: C:\Program Files\Java\jdk1.7.0_79\jrern十二月 07, 2016 12:26:44 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: JVM Version: 1.7.0_79-b15rn十二月 07, 2016 12:26:44 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: JVM Vendor: Oracle Corporationrn十二月 07, 2016 12:26:44 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: CATALINA_BASE: D:\Project\JAVA\.metadata\.plugins\org.eclipse.wst.server.core\tmp1rn十二月 07, 2016 12:26:44 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: CATALINA_HOME: D:\Exploit\apache-tomcat-8.0.36rn十二月 07, 2016 12:26:44 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Xms1024mrn十二月 07, 2016 12:26:44 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Xmx4096mrn十二月 07, 2016 12:26:44 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -XX:MaxNewSize=512mrn十二月 07, 2016 12:26:44 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -XX:MaxPermSize=1024mrn十二月 07, 2016 12:26:44 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dcatalina.base=D:\Project\JAVA\.metadata\.plugins\org.eclipse.wst.server.core\tmp1rn十二月 07, 2016 12:26:44 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dcatalina.home=D:\Exploit\apache-tomcat-8.0.36rn十二月 07, 2016 12:26:44 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dwtp.deploy=D:\Project\JAVA\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebappsrn十二月 07, 2016 12:26:44 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Djava.endorsed.dirs=D:\Exploit\apache-tomcat-8.0.36\endorsedrn十二月 07, 2016 12:26:44 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dfile.encoding=UTF-8rn十二月 07, 2016 12:26:44 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEventrn信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.7.0_79\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5\;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5\Doctrine extensions for PHP\;D:\111\app\mysql\bin;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;D:\111\app\mysql\bin;C:\Users\yao\AppData\Local\Microsoft\WindowsApps;.rn十二月 07, 2016 12:26:44 下午 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["http-nio-8080"]rn十二月 07, 2016 12:26:44 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelectorrn信息: Using a shared selector for servlet write/readrn十二月 07, 2016 12:26:44 下午 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["ajp-nio-8019"]rn十二月 07, 2016 12:26:44 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelectorrn信息: Using a shared selector for servlet write/readrn十二月 07, 2016 12:26:44 下午 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 908 msrn十二月 07, 2016 12:26:44 下午 org.apache.catalina.core.StandardService startInternalrn信息: Starting service Catalinarn十二月 07, 2016 12:26:44 下午 org.apache.catalina.core.StandardEngine startInternalrn信息: Starting Servlet Engine: Apache Tomcat/8.0.36rn十二月 07, 2016 12:26:56 下午 org.apache.jasper.servlet.TldScanner scanJarsrn信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.rn十二月 07, 2016 12:26:57 下午 org.apache.catalina.core.ApplicationContext logrn信息: No Spring WebApplicationInitializer types detected on classpathrnSLF4J: Class path contains multiple SLF4J bindings.rnSLF4J: Found binding in [jar:file:/D:/Project/JAVA/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mvp/WEB-INF/lib/activemq-all-5.14.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]rnSLF4J: Found binding in [jar:file:/D:/Project/JAVA/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/mvp/WEB-INF/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]rnSLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.rnSLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]rncom.mysql.jdbc.JDBC4Connection@78389fd6rn2016-12-07 12:26:57,489 [localhost-startStop-1] INFO [com.soc.common.servlet.CheckDbState] - database pool ok!rn十二月 07, 2016 12:26:57 下午 org.apache.catalina.core.ApplicationContext logrn信息: Initializing Spring root WebApplicationContextrn2016-12-07 12:27:01,799 [localhost-startStop-1] INFO [com.alibaba.druid.pool.DruidDataSource] - dataSource-1 initedrn十二月 07, 2016 12:27:09 下午 org.apache.catalina.core.ApplicationContext logrn信息: Initializing Spring FrameworkServlet 'springServlet'rnERROR [localhost-startStop-1] [DispatcherServlet] Context initialization failedrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'phoneVirusRecordController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.soc.modules.phonevirus.service.PhoneVirusRecordService com.soc.modules.phonevirus.web.PhoneVirusRecordController.phoneVirusRecordService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'phoneVirusRecordService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.soc.modules.phonevirus.dao.PhoneVirusRecordDao com.soc.modules.phonevirus.service.PhoneVirusRecordService.phoneVirusRecordDao; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'phoneVirusRecordDao': FactoryBean threw exception on object creation; nested exception is org.springframework.data.mapping.PropertyReferenceException: No property get found for type com.soc.modules.phonevirus.entity.PhoneVirusRecordrn at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1208)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:762)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)rn at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:651)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:599)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:665)rn at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:518)rn
springMVC二级缓存配置
Spring 3.1 引入了激动人心的基于注释(annotation)的缓存(cache)技术,它本质上不是一个具体的缓存实现方案(例如 EHCache 或者 OSCache),而是一个对缓存使用的抽象,通过在既有代码中添加少量它定义的各种 annotation,即能够达到缓存方法的返回对象的效果。
java 连接 domino数据库,配置问题,一直报错
[code=Java]rnpublic static void main(String[] args) rn // TODO Auto-generated method stubrn try rn Session s = NotesFactory.createSession("127.0.0.1:63148","admin","password");rn System.out.println(s.getUserName());rn rn lotus.domino.Database db = null;rn db = s.getDatabase(s.getServerName(), "bkzy2006.nsf");rnrn catch(Exception e) rn e.printStackTrace();rn rn rn[/code]rnrnrn错误提示。。。如下:rnjava.net.ConnectException: Connection refused: connectrn at java.net.PlainSocketImpl.socketConnect(Native Method)rn at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)rn at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)rn at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)rn at java.net.Socket.connect(Socket.java:519)rn at java.net.Socket.connect(Socket.java:469)rn at sun.net.NetworkClient.doConnect(NetworkClient.java:157)rn at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)rn at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)rn at sun.net.www.http.HttpClient.(HttpClient.java:233)rn at sun.net.www.http.HttpClient.New(HttpClient.java:306)rn at sun.net.www.http.HttpClient.New(HttpClient.java:323)rn at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:788)rn at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:729)rn at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:654)rn at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:977)rn at java.net.URL.openStream(URL.java:1009)rn at lotus.domino.NotesFactory.getIOR(NotesFactory.java:314)rn at lotus.domino.NotesFactory.createSession(NotesFactory.java:66)rn at com.epro.trans.D_a.main(D_a.java:14)rnlotus.domino.NotesExceptionrn at lotus.domino.NotesFactory.getIOR(NotesFactory.java:344)rn at lotus.domino.NotesFactory.createSession(NotesFactory.java:66)rn at com.epro.trans.D_a.main(D_a.java:14)rnrn如果不加端口,错误如下rnrnrnlotus.domino.NotesExceptionrn at lotus.domino.NotesExceptionHelper.read(NotesExceptionHelper.java)rn at lotus.domino.NotesExceptionHolder._read(NotesExceptionHolder.java)rn at com.ibm.CORBA.iiop.RepImpl.invoke(RepImpl.java:325)rn at com.ibm.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:36)rn at lotus.domino.corba._IObjectServerStub.createSession(_IObjectServerStub.java)rn at lotus.domino.cso.Session.OREFtoSession(Session.java:829)rn at lotus.domino.cso.Session.(Session.java:72)rn at lotus.domino.cso.Session.createSession(Session.java:40)rn at lotus.domino.NotesFactory.createSession(NotesFactory.java:67)rn at com.epro.trans.D_a.main(D_a.java:14)rn
springmvc开启二级缓存.
hibernate对二级缓存的管理,以及mvc对二级缓存管理方式,由此减轻数据库的压力
关于weblogic的启动配置问题
如果想要在weglogic启动的时候先启动一个类,用来验证用户是否注册。请问有什么办法呀?
SpringMVC配置问题
Spring-Servlet.xml 文件如下:rnrnrn rn rnrn rn rn rn rn rn rn rn rn rn rn rn rn text/html;charset=UTF-8rn rn rn rn rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrnJava代码如下:rnrn @RequestMapping("/list") rn public @ResponseBody List list(Model model ) rn NusersMapper nusermapper;rn List ulists= new ArrayList();rn //NusersMapper nuserMapper rn SqlSessionFactory sqlSessionFactory = BuildSqlsession.getSession();rn if (sqlSessionFactory!=null)rn SqlSession session = sqlSessionFactory.openSession();rn if (session!=null ) rn try rn nusermapper = session.getMapper(NusersMapper.class);rn ulists = nusermapper.selectByExample(new NusersExample());rn finally rn session.close();rn rn rn rn return ulists;rn rnrn运行时,总是出以下错误:rnrnexceptionrnjavax.servlet.ServletException: Servlet.init() for servlet Scanner threw exceptionrn org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:522)rn org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)rn org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)rn org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)rn org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:1096)rn org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)rn org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:760)rn org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1480)rn java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn java.lang.Thread.run(Unknown Source)rnrnrnroot causernorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0' defined in ServletContext resource [/WEB-INF/Scanner-servlet.xml]: Cannot resolve reference to bean 'mappingJackson2HttpMessageConverter' while setting bean property 'messageConverters' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mappingJackson2HttpMessageConverter' defined in ServletContext resource [/WEB-INF/Scanner-servlet.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/ObjectMapperrn org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)rn org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)rn org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:382)rn org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:157)rn org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1481)rn org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1226)rn org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)rn org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)rn org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)rn org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)rn org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)rn org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)rn org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:775)rn org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:861)rn org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:541)rn org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:668)rn org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:634)rn org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:682)rn org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:553)rn org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:494)rn org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)rn javax.servlet.GenericServlet.init(GenericServlet.java:158)rn org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:522)rn org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)rn org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)rn org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)rn org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:1096)rn org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)rn org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:760)rn org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1480)rn java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn java.lang.Thread.run(Unknown Source)rnrnrnroot causernorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mappingJackson2HttpMessageConverter' defined in ServletContext resource [/WEB-INF/Scanner-servlet.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/ObjectMapperrn org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1105)rn org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1050)rn org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)rn org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)rn org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)rn org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)rn org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)rn org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)rn org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolvrn请各位大帮忙解决
springmvc配置问题
各位大家好!我配置的环境是weblogic10+spring2.5,我想用springmvc的整套的功能,当我自动添加了jar包后,生成一个applicationContext.xml这个文件,我自己在src下面(与applicationContext.xml同目录)建立了一个dispatcherContext-servlet.xml配置文件,请问我的applicationContext.xml文件要不要删掉,下面是我的web.xml和dispatcherContext-servlet.xml配置文件,麻烦帮我看看!这两个文件到底该怎么配啊!rnrn-------------------web.xml-----------------------rnrn[code=XML]rnrnrn rn rn rn rn org.springframework.web.context.ContextLoaderListener rn rn rn rn rn contextConfigLocationrn /WEB-INF/classes/dispatcherServlet-servlet.xmlrn rn rn rn contextConfigLocationrn /WEB-INF/classes/dispatcherServlet-servlet.xmlrn rn rn rn dispatcherServletrn org.springframework.web.servlet.DispatcherServletrn 1rn rnrn rn dispatcherServlet rn *.do rn rn rn rn login.jsprn rnrn[/code]rnrnrn---------------dispatcherContext-servlet.xml-------------------------rn[code=XML]rnrnrnrn rn rn rn rn loginControllerrn rn rn rn rn rn rn actionrn rn rn rn rn rn rn rn org.springframework.web.servlet.view.JstlViewrn rn rn /rn rn rn .jsprn rn rn rnrn[/code]rnrn
hibernate4配置c3p0连接池报错
在hibernate的xml文件中配置c3p0连接池时,运行报错: java.lang.ClassNotFoundException: Could not load requested class : org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider 下面是详细错误内容 严重: Exception sen
SpringMVC配置问题。
[img=https://img-bbs.csdn.net/upload/201601/12/1452604696_279562.png][/img][img=https://img-bbs.csdn.net/upload/201601/12/1452604584_443563.png][/img]rnrnrn我的加了CORE后就启动不了项目了 麻烦大神看看问题出在哪里
SpringMVC 配置问题。
在配置文件里面使用标签,引入标签rnxmlns:mvc="http://www.springframework.org/schema/mvc"rnrnxsi:schemaLocation="rnhttp://www.springframework.org/schema/mvc rnhttp://www.springframework.org/schema/mvc/spring-mvc-3.0.xsdrnrnrn报错如下:rnrnConfiguration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/mvc]rnOffending resource: ServletContext resource [/WEB-INF/SpringMVC-servlet.xml]rnrn是jar包的原因吗。
Hibernate4(关系映射-事务-原理-性能和二级缓存-最佳实践)
Hibernate4(关系映射-事务-原理-性能和二级缓存-最佳实践).Hibernate4(关系映射-事务-原理-性能和二级缓存-最佳实践).
hibernate-配置使用二级缓存(hibernate4以下版本)
hibernate.cfg.xml(hibernate4以下版本) <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configur
spring4整合hibernate4报错
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [beans.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.aspectj.AspectJPointcutAdvisor#0': Cannot create inner bean '(inner bean)' of type [org.springframework.aop.aspectj.AspectJMethodBeforeAdvice] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot create inner bean '(inner bean)' of type [org.springframework.aop.config.MethodLocatingFactoryBean] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Initialization of bean failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'logInterceptor' is definedrnrn
关于springMVC中web.xml配置问题
在使用eclipse创建maven项目时自动生成的web.xml文件 web.xml [code=&quot;java&quot;] Archetype Created Web Application [/code] 而别人生成的web.xml文件好像都会带有如图这样的模式文件之类的配置 [code=&quot;java&quot;] [/code] 在网上看到很多人谈web.xml中的servl...
关于SpringMVC和JasperReport的集成的配置问题
拒绝没有做过实际开发的朋友复制网上搜索的答案,谢谢。rnrnSpring配置里加:rn[code=java]rn rn rn rn rn[/code]rnrnjasper-views.xml文件:rn[code=java]rn rn rn rn[/code]rnrnController里:rn[code=java]rn @Controllerrn public class BloodApplicationController rn @RequestMapping(value="/printApplicationForm")rn public ModelAndView printApplicationForm(HttpServletRequest request, HttpServletResponse response)rn logger.info("打印申请单");rn Map model = new HashMap();rn model.put(JasperReportsMultiFormatView.DEFAULT_FORMAT_KEY, "pdf");rn return new ModelAndView("htmlReport", model);rn rn rn[/code]
Hibernate4(事务,原理,性能和二级缓存,最佳实践).pdf
Hibernate4(事务,原理,性能和二级缓存,最佳实践).pdf
hibernate4 + springMvc +oracle 10g 启动报错
INFO: HHH000424: Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException
相关热词 c# 标准差 计算 c#siki第五季 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池