0 0

启动tomcat 报org.apache.catalina.core.StandardContext listenerStart5

2011-4-14 8:35:01 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.AbstractMethodError: com.microsoft.jdbc.base.BaseDatabaseMetaData.supportsGetGeneratedKeys()Z
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.AbstractMethodError: com.microsoft.jdbc.base.BaseDatabaseMetaData.supportsGetGeneratedKeys()Z
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:123)
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1339)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
... 39 more
2011-4-14 8:35:01 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2011-4-14 8:35:01 org.apache.catalina.core.StandardContext start
严重: Context [/yhoa] startup failed due to previous errors
2011-4-14 8:35:01 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
2011-4-14 8:35:01 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/yhoa] registered the JBDC driver [com.microsoft.jdbc.sqlserver.SQLServerDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2011-4-14 8:35:01 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/yhoa] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak.
2011-4-14 8:35:01 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/yhoa] appears to have started a thread named [DataDirect Connect Finalizer-Thread] but has failed to stop it. This is very likely to create a memory leak.

问题补充:谢谢问题解决了
是sqlserver2000的补丁包

问题补充: 我又出现了新的问题 
在注入的时候报了个空指针

<bean id="yhuserDAO"
class="com.ziboyanhua.oa.user.data.YhuserDAO">
<property name="sessionFactory">
<ref bean="sessionFactory" />
</property>
</bean>

上面这个没有问题 吧 是自动生成的

    下面这个是把yhuserDAO注入到 service 层里面去 但是在service 里面说YhuserDAO为空这是怎么一回事
<bean id="UserService"
class="com.ziboyanhua.oa.user.service.UserService" abstract="false"
lazy-init="default" autowire="default" dependency-check="default">
<property name="yhuserDAO">
<ref bean="yhuserDAO" />
</property>
</bean>
DAO 
2011年4月14日 08:40

1个答案 按时间排序 按投票排序

0 0

采纳的答案

是你的spring hibernate环境没搭建好!

检查jar包是否引入

web.xml配置正确

spring配置文件

2011年4月14日 10:14

相关推荐

    org.apache.catalina.connector.ClientAbortException和TOMCAT的日志配置

    问题1:TOMCAT下载文件出错:org.apache.catalina.connector.ClientAbortException. 问题2:TOMCAT记录接收数据大小、发送数据大小和请求处理时间

    org.apache.catalina.core.AprLifecycleListener

    org.apache.catalina.core.AprLifecycleListener myeclipse tomcat 無法啟動 用這個文件

    tomcat启动的问题--apr

    2010-8-11 18:24:13 org.apache.catalina.core.AprLifecycleListener lifecycleEvent 信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the ...

    apache-tomcat-8.5.78 源码 maven 版本

    apache-tomcat-8.5.78 源码 maven 版本,配置都已经搞定,开箱即用。是学习tomcat的不二之选。启动类 org.apache.catalina.startup.Bootstrap

    apache-tomcat-7.0.69.zip

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) ...

    严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Error-附件资源

    严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Error-附件资源

    apache-tomcat-8.5.64.tar.gz

    Tomcat启动时会自动检测并部署这些应用。 6. **配置Tomcat** Tomcat的配置主要在`$CATALINA_HOME/conf`目录下的文件中进行,例如`server.xml`定义了服务器配置,包括端口、线程池等。`context.xml`则用于配置全局...

    apache-tomcat-8.5.83.tar.gz

    Apache Tomcat 是一个开源软件,用Java语言编写,主要用于实现Java Servlet和JavaServer Pages(JSP)技术的应用服务器。在本例中,我们讨论的是Apache Tomcat 8.5.83版本的tar.gz压缩包。这个版本是针对Linux系统的...

    官方原版apache-tomcat-9.0.34.tar.gz

    Apache Tomcat是一款开源的Java Servlet容器,主要用于实现Java EE(现称为Jakarta EE)Web应用程序的部署和运行。它是一个轻量级应用服务器,特别适合小型到中型的应用。在这个官方原版的apache-tomcat-9.0.34.tar....

    apache-tomcat-8.5.100.tar.gz

    Apache Tomcat 是一款广泛应用的开源软件,主要用于部署和运行Java Servlet和JavaServer Pages(JSP)应用程序。在本文中,我们将深入探讨Apache Tomcat 8.5.100这一特定版本的重要特性、安装与配置过程,以及如何...

    最新版linux apache-tomcat-8.5.63.tar.gz

    这个压缩包包含了Tomcat的全部组件,如bin目录下的可执行脚本(如`catalina.sh`用于启动和停止Tomcat),conf目录下配置文件(如`server.xml`定义了服务器的配置),webapps目录用于存放Web应用,以及logs、temp、...

    java基础知识,基础知识

    很详细的apache-tomcat-8.0.523月 17, 2019 10:51:41 上午 org.apache.tomcat.util.digester.SetPropertiesRule begin 警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' ...

    apache-tomcat-9.0.84.zip

    1. **bin**:这个目录包含了用于启动、停止和管理Tomcat的各种脚本,如`catalina.sh`(Unix/Linux)或`catalina.bat`(Windows)用于启动和关闭服务器。 2. **conf**:这个目录包含了Tomcat的配置文件,例如`server...

    最新版linux apache-tomcat-9.0.46.tar.gz

    Apache Tomcat是一款开源的Java Servlet容器,主要用于部署和运行Java Web应用程序,特别是那些基于Java EE的Web应用。在Linux环境中,Tomcat与Apache HTTP服务器一起使用可以构建强大的动态Web服务。这里我们关注的...

    Tomcat日志catalina.out过大解决方案--使用logback按日轮转.rar

    1.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 1.org.apache.juli.FileHandler.prefix = catalina. java.util.logging.ConsoleHandler.level = OFF ``` 这里我们关闭了JULI(Tomcat的默认日志...

    com.springsource.org.apache.catalina-6.0.16.jar

    jar包,官方版本,自测可用

    最新版linux apache-tomcat-9.0.37.tar.gz

    5. **启动、停止和管理**:Apache Tomcat提供了一系列的脚本用于管理服务,如`bin/startup.sh`用于启动Tomcat,`bin/shutdown.sh`用于关闭Tomcat。这些脚本需要使用`sudo`权限执行。 6. **配置**:Tomcat的配置文件...

    Linux tomcat下catalina.out日志文件分割

    Linux tomcat下catalina.out日志文件分割 前言: tomcat默认使用Java.util.logging记录日志,默认只记录tomcat的日志,不记录应用的日志。tomcat支持采用log4j进行日志记录,配置方法如下: 1.更新最新的tomcat_juli...

    Tomcat输出catalina.out的大小控制

    `catalina.out`是Tomcat默认的日志文件,它记录了Tomcat启动、运行以及错误信息,对开发者和管理员来说非常重要。然而,如果不进行适当管理,这个日志文件可能会无限制增长,占用大量磁盘空间,甚至可能导致服务器...

Global site tag (gtag.js) - Google Analytics