首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

小弟我的程序不能正常启动,请教是什么东东

2012-10-31 
我的程序不能正常启动,请问是什么错误?刚学习spring,照葫芦画瓢,tomcat启动后spring配置加载过程中退出,又

我的程序不能正常启动,请问是什么错误?
刚学习spring,照葫芦画瓢,tomcat启动后spring配置加载过程中退出,又没有明显的错误信息,请教高手


applicationContext.xml
----------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

<beans>

    <!-- ========================= GENERAL DEFINITIONS ========================= -->

    <!-- Message source for this context, loaded from localized "messages_xx" files -->
    <bean id="messageSource" class="org.springframework.aop.framework.ProxyFactoryBean">
        <property name="target">
            <bean class="com.yaocf.tiger.UserServiceImpl">
                <property name="usersDao"><ref bean="usersDao"/></property>
            </bean>
        </property>
        <property name="proxyInterfaces">
            <value>com.yaocf.tiger.UserService</value>
        </property>
        <property name="interceptorNames">
            <list>
                <value>serviceTransactionInterceptor</value>
                <value>hibernateInterceptor</value>
            </list>
        </property>
    </bean>

    <!-- ========================= End of SERVICE DEFINITIONS ========================= -->

</beans>




启动页面后台信息
------------------------------


2006-10-30 21:46:17 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2006-10-30 21:46:18 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 4246 ms
2006-10-30 21:46:18 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2006-10-30 21:46:18 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.0.28
2006-10-30 21:46:18 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
2006-10-30 21:46:18 org.apache.catalina.core.StandardHost getDeployer
信息: Create Host deployer for direct deployment ( non-jmx )
2006-10-30 21:46:18 org.apache.catalina.core.StandardHostDeployer install
信息: Processing Context configuration file URL file:C:\tomcat5\jakarta-tomcat-5.0.28\conf\Catalina\localhost\admin.xml
2006-10-30 21:46:21 org.apache.struts.util.PropertyMessageResources <init>
信息: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
2006-10-30 21:46:21 org.apache.struts.util.PropertyMessageResources <init>
信息: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
2006-10-30 21:46:22 org.apache.struts.util.PropertyMessageResources <init>
信息: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true
2006-10-30 21:46:26 org.apache.catalina.core.StandardHostDeployer install
信息: Processing Context configuration file URL file:C:\tomcat5\jakarta-tomcat-5.0.28\conf\Catalina\localhost\balancer.x
ml
2006-10-30 21:46:27 org.apache.catalina.core.StandardHostDeployer install
信息: Processing Context configuration file URL file:C:\tomcat5\jakarta-tomcat-5.0.28\conf\Catalina\localhost\manager.xm
l
2006-10-30 21:46:27 org.apache.catalina.core.StandardHostDeployer install
信息: Processing Context configuration file URL file:C:\tomcat5\jakarta-tomcat-5.0.28\conf\Catalina\localhost\testQuery-
web-1.0.xml
2006-10-30 21:46:31 org.displaytag.filter.ResponseOverrideFilter init
信息: Filter initialized. Response buffering is enabled
2006-10-30 21:46:33 org.apache.struts.tiles.TilesPlugin initDefinitionsFactory
信息: Tiles definition factory loaded for module ''.
2006-10-30 21:46:33 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /testQuery-web-1.0 from URL file:C:/tomcat5/jakarta-tomcat-5.0.28/webap
ps/testQuery-web-1.0
2006-10-30 21:46:34 org.displaytag.filter.ResponseOverrideFilter init
信息: Filter initialized. Response buffering is enabled
2006-10-30 21:46:36 org.apache.struts.tiles.TilesPlugin initDefinitionsFactory
信息: Tiles definition factory loaded for module ''.
2006-10-30 21:46:36 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /jsp-examples from URL file:C:\tomcat5\jakarta-tomcat-5.0.28\webapps\js
p-examples
2006-10-30 21:46:37 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path  from URL file:C:\tomcat5\jakarta-tomcat-5.0.28\webapps\ROOT
2006-10-30 21:46:37 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /servlets-examples from URL file:C:\tomcat5\jakarta-tomcat-5.0.28\webap
ps\servlets-examples
2006-10-30 21:46:37 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /tomcat-docs from URL file:C:\tomcat5\jakarta-tomcat-5.0.28\webapps\tom
cat-docs
2006-10-30 21:46:37 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /webdav from URL file:C:\tomcat5\jakarta-tomcat-5.0.28\webapps\webdav
2006-10-30 21:46:38 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2006-10-30 21:46:38 org.apache.jk.common.ChannelSocket init
信息: JK2: ajp13 listening on /0.0.0.0:8009
2006-10-30 21:46:38 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=10/211  config=C:\tomcat5\jakarta-tomcat-5.0.28\conf\jk2.properties
2006-10-30 21:46:38 org.apache.catalina.startup.Catalina start
信息: Server startup in 20870 ms
2006-10-30 21:47:10 org.apache.struts.tiles.TilesRequestProcessor initDefinitionsMapping
信息: Tiles definition factory found for request processor ''.
-----get the user collection -------
2006-10-30 21:47:10 org.springframework.core.CollectionFactory <clinit>
信息: JDK 1.4+ collections available
2006-10-30 21:47:10 org.springframework.core.CollectionFactory <clinit>
信息: Commons Collections 3.x available
2006-10-30 21:47:11 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
信息: Loading XML bean definitions from URL [jar:file:/C:/tomcat5/jakarta-tomcat-5.0.28/webapps/testQuery-web-1.0/WEB-IN
F/lib/testQuery-core-1.0.jar!/beanRefFactory.xml]
2006-10-30 21:47:11 org.springframework.context.support.AbstractRefreshableApplicationContext refreshBeanFactory
信息: Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=
12893236]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [beanRefFactory]; root of
BeanFactory hierarchy
2006-10-30 21:47:11 org.springframework.context.support.AbstractApplicationContext refresh
信息: 1 beans defined in application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCod
e=12893236]
2006-10-30 21:47:11 org.springframework.context.support.AbstractApplicationContext initMessageSource
信息: Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.Deleg
atingMessageSource@1469658]
2006-10-30 21:47:11 org.springframework.context.support.AbstractApplicationContext initApplicationEventMulticaster
信息: Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springfra
mework.context.event.SimpleApplicationEventMulticaster@1a0b53e]
2006-10-30 21:47:11 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
信息: Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defi
ning beans [beanRefFactory]; root of BeanFactory hierarchy]
2006-10-30 21:47:11 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
信息: Loading XML bean definitions from class path resource [applicationContext.xml]
2006-10-30 21:47:12 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
信息: Loading XML bean definitions from class path resource [applicationContext-dataSource.xml]
2006-10-30 21:47:12 org.springframework.context.support.AbstractRefreshableApplicationContext refreshBeanFactory
信息: Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=
21422977]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [messageSource,sessionFac
tory,hibernateInterceptor,usersDao,serviceTransactionInterceptor,userService,dataSource,transactionManager]; root of Bea
nFactory hierarchy
2006-10-30 21:47:12 org.springframework.context.support.AbstractApplicationContext refresh
信息: 8 beans defined in application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCod
e=21422977]
2006-10-30 21:47:12 org.springframework.context.support.AbstractApplicationContext initMessageSource
信息: Using MessageSource [org.springframework.context.support.ResourceBundleMessageSource: basenames=[messages]]
2006-10-30 21:47:12 org.springframework.context.support.AbstractApplicationContext initApplicationEventMulticaster
信息: Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springfra
mework.context.event.SimpleApplicationEventMulticaster@31688f]
2006-10-30 21:47:12 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
信息: Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defi
ning beans [messageSource,sessionFactory,hibernateInterceptor,usersDao,serviceTransactionInterceptor,userService,dataSou
rce,transactionManager]; root of BeanFactory hierarchy]
2006-10-30 21:47:13 org.springframework.beans.factory.support.AbstractBeanFactory destroySingletons
信息: Destroying singletons in factory {org.springframework.beans.factory.support.DefaultListableBeanFactory defining be
ans [messageSource,sessionFactory,hibernateInterceptor,usersDao,serviceTransactionInterceptor,userService,dataSource,tra
nsactionManager]; root of BeanFactory hierarchy}
2006-10-30 21:47:13 org.springframework.beans.factory.support.AbstractBeanFactory destroySingletons
信息: Destroying singletons in factory {org.springframework.beans.factory.support.DefaultListableBeanFactory defining be
ans [beanRefFactory]; root of BeanFactory hierarchy}

程序启动后,执行一个查询 ,spring 读入后台的配置信息未能实例化对象就Destroying singletons in factory退出了,
刚学习spring,又没有明显的错误信息,请教高手



热点排行