2005-5-2 19:47:17 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on port 8080
2005-5-2 19:47:17 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1922 ms
2005-5-2 19:47:17 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2005-5-2 19:47:17 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.0.19
2005-5-2 19:47:17 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
2005-05-02 19:47:19,000 INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from resource [/WEB-INF/applicationContext.xml] of ServletContext
2005-05-02 19:47:19,546 INFO org.springframework.web.context.support.XmlWebApplicationContext - Bean factory for application context [Root XmlWebApplicationContext]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [dataSource,sessionFactory,transactionManager,administratorDAO,administratorServiceTarget,administratorService,bookDAO,bookServiceTarget,bookService,bookTypeDAO,bookTypeServiceTarget,bookTypeService,commentDAO,commentServiceTarget,commentService,myShopDAO,myShopServiceTarget,myShopService,sellInfoDAO,sellInfoServiceTarget,sellInfoService,userDAO,userServiceTarget,userService,showAdministrator-action,showBook-action,showComment-action,showMyShop-action,showSellInfo-action,showUser-action]; Root of BeanFactory hierarchy
2005-05-02 19:47:19,546 INFO org.springframework.web.context.support.XmlWebApplicationContext - 30 beans defined in ApplicationContext [Root XmlWebApplicationContext]
2005-05-02 19:47:19,562 INFO org.springframework.web.context.support.XmlWebApplicationContext - No MessageSource found for [Root XmlWebApplicationContext]: using empty StaticMessageSource
2005-05-02 19:47:19,578 INFO org.springframework.ui.context.support.UiApplicationContextUtils - No ThemeSource found for [Root XmlWebApplicationContext]: using ResourceBundleThemeSource
2005-05-02 19:47:19,593 INFO org.springframework.web.context.support.XmlWebApplicationContext - Refreshing listeners
2005-05-02 19:47:19,593 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [dataSource,sessionFactory,transactionManager,administratorDAO,administratorServiceTarget,administratorService,bookDAO,bookServiceTarget,bookService,bookTypeDAO,bookTypeServiceTarget,bookTypeService,commentDAO,commentServiceTarget,commentService,myShopDAO,myShopServiceTarget,myShopService,sellInfoDAO,sellInfoServiceTarget,sellInfoService,userDAO,userServiceTarget,userService,showAdministrator-action,showBook-action,showComment-action,showMyShop-action,showSellInfo-action,showUser-action]; Root of BeanFactory hierarchy]
2005-05-02 19:47:19,609 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'dataSource'
2005-05-02 19:47:19,718 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'sessionFactory'
2005-05-02 19:47:19,781 INFO net.sf.hibernate.cfg.Environment - Hibernate 2.1.2
2005-05-02 19:47:19,781 INFO net.sf.hibernate.cfg.Environment - loaded properties from resource hibernate.properties: {hibernate.connection.username=root, hibernate.connection.password=, hibernate.cglib.use_reflection_optimizer=true, hibernate.dialect=net.sf.hibernate.dialect.MySQLDialect, hibernate.connection.url=jdbc:mysql://localhost/bol?useUnicode=true&characterEncoding=GBK, hibernate.connection.driver_class=com.mysql.jdbc.Driver}
2005-05-02 19:47:19,781 INFO net.sf.hibernate.cfg.Environment - using CGLIB reflection optimizer
2005-05-02 19:47:20,359 INFO net.sf.hibernate.cfg.Binder - Mapping class: com.fruit.entity.Administrator -> administrator
2005-05-02 19:47:20,640 INFO net.sf.hibernate.cfg.Binder - Mapping class: com.fruit.entity.Book -> book
2005-05-02 19:47:20,734 INFO net.sf.hibernate.cfg.Binder - Mapping class: com.fruit.entity.BookType -> booktype
2005-05-02 19:47:20,796 INFO net.sf.hibernate.cfg.Binder - Mapping class: com.fruit.entity.Comment -> comment
2005-05-02 19:47:20,875 INFO net.sf.hibernate.cfg.Binder - Mapping class: com.fruit.entity.MyShop -> myshop
2005-05-02 19:47:20,921 INFO net.sf.hibernate.cfg.Binder - Mapping class: com.fruit.entity.SellInfo -> sellinfo
2005-05-02 19:47:20,984 INFO net.sf.hibernate.cfg.Binder - Mapping class: com.fruit.entity.User -> user
2005-05-02 19:47:21,000 INFO org.springframework.orm.hibernate.LocalSessionFactoryBean - Building new Hibernate SessionFactory
2005-05-02 19:47:21,000 INFO net.sf.hibernate.cfg.Configuration - processing one-to-many association mappings
2005-05-02 19:47:21,000 INFO net.sf.hibernate.cfg.Binder - Mapping collection: com.fruit.entity.BookType.children -> booktype
2005-05-02 19:47:21,000 INFO net.sf.hibernate.cfg.Configuration - processing one-to-one association property references
2005-05-02 19:47:21,000 INFO net.sf.hibernate.cfg.Configuration - processing foreign key constraints

解决方案 »

  1.   

    2005-05-02 19:47:21,078 INFO net.sf.hibernate.dialect.Dialect - Using dialect: net.sf.hibernate.dialect.MySQLDialect
    2005-05-02 19:47:21,078 INFO net.sf.hibernate.cfg.SettingsFactory - Use outer join fetching: true
    2005-05-02 19:47:21,078 INFO net.sf.hibernate.connection.ConnectionProviderFactory - Initializing connection provider: org.springframework.orm.hibernate.LocalDataSourceConnectionProvider
    2005-05-02 19:47:21,109 INFO net.sf.hibernate.transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended)
    2005-05-02 19:47:21,359 INFO net.sf.hibernate.cfg.SettingsFactory - Use scrollable result sets: true
    2005-05-02 19:47:21,359 INFO net.sf.hibernate.cfg.SettingsFactory - Use JDBC3 getGeneratedKeys(): false
    2005-05-02 19:47:21,359 INFO net.sf.hibernate.cfg.SettingsFactory - Optimize cache for minimal puts: false
    2005-05-02 19:47:21,359 INFO net.sf.hibernate.cfg.SettingsFactory - Query language substitutions: {}
    2005-05-02 19:47:21,359 INFO net.sf.hibernate.cfg.SettingsFactory - cache provider: net.sf.ehcache.hibernate.Provider
    2005-05-02 19:47:21,375 INFO net.sf.hibernate.cfg.Configuration - instantiating and configuring caches
    2005-05-02 19:47:21,687 INFO net.sf.hibernate.impl.SessionFactoryImpl - building session factory
    2005-05-02 19:47:22,406 WARN net.sf.hibernate.xml.XMLDatabinder - no XSLT implementation found - databinding disabled
    2005-05-02 19:47:22,421 INFO net.sf.hibernate.impl.SessionFactoryObjectFactory - no JNDI name configured
    2005-05-02 19:47:22,437 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'transactionManager'
    2005-05-02 19:47:22,484 INFO org.springframework.orm.hibernate.HibernateTransactionManager - Using DataSource [org.apache.commons.dbcp.BasicDataSource@1eb7d25] from Hibernate SessionFactory for HibernateTransactionManager
    2005-05-02 19:47:22,484 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'administratorDAO'
    2005-05-02 19:47:22,531 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'administratorServiceTarget'
    2005-05-02 19:47:22,546 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'administratorService'
    2005-05-02 19:47:22,750 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'bookDAO'
    2005-05-02 19:47:22,765 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'bookServiceTarget'
    2005-05-02 19:47:22,765 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'bookService'
    2005-05-02 19:47:22,796 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'bookTypeDAO'
    2005-05-02 19:47:22,796 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'bookTypeServiceTarget'
    2005-05-02 19:47:22,828 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'bookTypeService'
    2005-05-02 19:47:22,828 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'commentDAO'
    2005-05-02 19:47:22,843 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'commentServiceTarget'
    2005-05-02 19:47:22,859 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'commentService'
    2005-05-02 19:47:22,875 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'myShopDAO'
    2005-05-02 19:47:22,890 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'myShopServiceTarget'
    2005-05-02 19:47:22,890 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'myShopService'
    2005-05-02 19:47:22,906 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'sellInfoDAO'
    2005-05-02 19:47:22,921 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'sellInfoServiceTarget'
    2005-05-02 19:47:22,937 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'sellInfoService'
    2005-05-02 19:47:22,937 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'userDAO'
    2005-05-02 19:47:22,953 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'userServiceTarget'
    2005-05-02 19:47:22,968 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'userService'
    2005-05-02 19:47:22,984 INFO org.springframework.web.context.ContextLoader - Using context class [org.springframework.web.context.support.XmlWebApplicationContext] for root WebApplicationContext
    2005-05-02 19:47:23,000 INFO org.springframework.web.context.ContextLoader - Published root WebApplicationContext [org.springframework.web.context.support.XmlWebApplicationContext: displayName=[Root XmlWebApplicationContext]; startup date=[Mon May 02 19:47:18 CST 2005]; root of ApplicationContext hierarchy; config locations=[/WEB-INF/applicationContext.xml]; ] as ServletContext attribute with name [interface org.springframework.web.context.WebApplicationContext.ROOT]
    2005-05-02 19:47:24,375 INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from resource [/WEB-INF/applicationContext.xml] of ServletContext
    2005-05-02 19:47:24,718 INFO org.springframework.web.context.support.XmlWebApplicationContext - Bean factory for application context [Root XmlWebApplicationContext]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [dataSource,sessionFactory,transactionManager,helloWorldDAO,helloWorldServiceTarget,helloWorldService,showHelloWorld-action,addHelloWorld-action,deleteHelloWorld-action]; Root of BeanFactory hierarchy
    2005-05-02 19:47:24,734 INFO org.springframework.web.context.support.XmlWebApplicationContext - 9 beans defined in ApplicationContext [Root XmlWebApplicationContext]
    2005-05-02 19:47:24,734 INFO org.springframework.web.context.support.XmlWebApplicationContext - No MessageSource found for [Root XmlWebApplicationContext]: using empty StaticMessageSource
    2005-05-02 19:47:24,750 INFO org.springframework.ui.context.support.UiApplicationContextUtils - No ThemeSource found for [Root XmlWebApplicationContext]: using ResourceBundleThemeSource
    2005-05-02 19:47:24,781 INFO org.springframework.web.context.support.XmlWebApplicationContext - Refreshing listeners
      

  2.   

    2005-05-02 19:47:24,781 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [dataSource,sessionFactory,transactionManager,helloWorldDAO,helloWorldServiceTarget,helloWorldService,showHelloWorld-action,addHelloWorld-action,deleteHelloWorld-action]; Root of BeanFactory hierarchy]
    2005-05-02 19:47:24,781 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'dataSource'
    2005-05-02 19:47:24,906 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'sessionFactory'
    2005-05-02 19:47:24,968 INFO net.sf.hibernate.cfg.Environment - Hibernate 2.1.2
    2005-05-02 19:47:24,984 INFO net.sf.hibernate.cfg.Environment - loaded properties from resource hibernate.properties: {hibernate.connection.username=root, hibernate.connection.password=, hibernate.cglib.use_reflection_optimizer=true, hibernate.dialect=net.sf.hibernate.dialect.MySQLDialect, hibernate.connection.url=jdbc:mysql://localhost/kczx?useUnicode=true&characterEncoding=GBK, hibernate.connection.driver_class=com.mysql.jdbc.Driver}
    2005-05-02 19:47:24,984 INFO net.sf.hibernate.cfg.Environment - using CGLIB reflection optimizer
    2005-05-02 19:47:25,421 INFO net.sf.hibernate.cfg.Binder - Mapping class: kczx.entity.HelloWorld -> HelloWorld
    2005-05-02 19:47:25,875 INFO org.springframework.orm.hibernate.LocalSessionFactoryBean - Building new Hibernate SessionFactory
    2005-05-02 19:47:25,875 INFO net.sf.hibernate.cfg.Configuration - processing one-to-many association mappings
    2005-05-02 19:47:25,875 INFO net.sf.hibernate.cfg.Configuration - processing one-to-one association property references
    2005-05-02 19:47:25,875 INFO net.sf.hibernate.cfg.Configuration - processing foreign key constraints
    2005-05-02 19:47:25,953 INFO net.sf.hibernate.dialect.Dialect - Using dialect: net.sf.hibernate.dialect.MySQLDialect
    2005-05-02 19:47:25,953 INFO net.sf.hibernate.cfg.SettingsFactory - Use outer join fetching: true
    2005-05-02 19:47:25,968 INFO net.sf.hibernate.connection.ConnectionProviderFactory - Initializing connection provider: org.springframework.orm.hibernate.LocalDataSourceConnectionProvider
    2005-05-02 19:47:25,968 INFO net.sf.hibernate.transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended)
    2005-05-02 19:47:26,171 INFO net.sf.hibernate.cfg.SettingsFactory - Use scrollable result sets: true
    2005-05-02 19:47:26,171 INFO net.sf.hibernate.cfg.SettingsFactory - Use JDBC3 getGeneratedKeys(): false
    2005-05-02 19:47:26,171 INFO net.sf.hibernate.cfg.SettingsFactory - Optimize cache for minimal puts: false
    2005-05-02 19:47:26,171 INFO net.sf.hibernate.cfg.SettingsFactory - Query language substitutions: {}
    2005-05-02 19:47:26,171 INFO net.sf.hibernate.cfg.SettingsFactory - cache provider: net.sf.ehcache.hibernate.Provider
    2005-05-02 19:47:26,203 INFO net.sf.hibernate.cfg.Configuration - instantiating and configuring caches
    2005-05-02 19:47:26,515 INFO net.sf.hibernate.impl.SessionFactoryImpl - building session factory
    2005-05-02 19:47:27,031 WARN net.sf.hibernate.xml.XMLDatabinder - no XSLT implementation found - databinding disabled
    2005-05-02 19:47:27,062 INFO net.sf.hibernate.impl.SessionFactoryObjectFactory - no JNDI name configured
    2005-05-02 19:47:27,062 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'transactionManager'
    2005-05-02 19:47:27,109 INFO org.springframework.orm.hibernate.HibernateTransactionManager - Using DataSource [org.apache.commons.dbcp.BasicDataSource@1a0283e] from Hibernate SessionFactory for HibernateTransactionManager
    2005-05-02 19:47:27,109 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'helloWorldDAO'
    2005-05-02 19:47:27,156 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'helloWorldServiceTarget'
    2005-05-02 19:47:27,171 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'helloWorldService'
    2005-05-02 19:47:27,375 INFO org.springframework.web.context.ContextLoader - Using context class [org.springframework.web.context.support.XmlWebApplicationContext] for root WebApplicationContext
    2005-05-02 19:47:27,375 INFO org.springframework.web.context.ContextLoader - Published root WebApplicationContext [org.springframework.web.context.support.XmlWebApplicationContext: displayName=[Root XmlWebApplicationContext]; startup date=[Mon May 02 19:47:24 CST 2005]; root of ApplicationContext hierarchy; config locations=[/WEB-INF/applicationContext.xml]; ] as ServletContext attribute with name [interface org.springframework.web.context.WebApplicationContext.ROOT]
    2005-5-2 19:47:27 org.apache.catalina.core.StandardHost getDeployer
    信息: Create Host deployer for direct deployment ( non-jmx ) 
    2005-5-2 19:47:27 org.apache.catalina.core.StandardHostDeployer install
    信息: Processing Context configuration file URL file:D:\jakarta-tomcat-5.0.19\conf\Catalina\localhost\admin.xml
    2005-5-2 19:47:27 org.apache.struts.util.PropertyMessageResources <init>
    信息: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    2005-5-2 19:47:27 org.apache.struts.util.PropertyMessageResources <init>
    信息: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
    2005-5-2 19:47:28 org.apache.struts.util.PropertyMessageResources <init>
    信息: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true
    2005-5-2 19:47:29 org.apache.catalina.core.StandardHostDeployer install
    信息: Processing Context configuration file URL file:D:\jakarta-tomcat-5.0.19\conf\Catalina\localhost\balancer.xml
    2005-5-2 19:47:30 org.apache.catalina.core.StandardHostDeployer install
    信息: Processing Context configuration file URL file:D:\jakarta-tomcat-5.0.19\conf\Catalina\localhost\manager.xml
    2005-5-2 19:47:30 org.apache.catalina.core.StandardHostDeployer install
    信息: Installing web application at context path /webdav from URL file:D:\jakarta-tomcat-5.0.19\webapps\webdav
    2005-5-2 19:47:30 org.apache.catalina.core.StandardHostDeployer install
    信息: Installing web application at context path /tomcat-docs from URL file:D:\jakarta-tomcat-5.0.19\webapps\tomcat-docs
    2005-5-2 19:47:30 org.apache.catalina.core.StandardHostDeployer install
    信息: Installing web application at context path /servlets-examples from URL file:D:\jakarta-tomcat-5.0.19\webapps\servlets-examples
    2005-5-2 19:47:30 org.apache.catalina.core.StandardHostDeployer install
    信息: Installing web application at context path /jsp-examples from URL file:D:\jakarta-tomcat-5.0.19\webapps\jsp-examples
    2005-5-2 19:47:31 org.apache.catalina.core.StandardHostDeployer install
    信息: Installing web application at context path  from URL file:D:\jakarta-tomcat-5.0.19\webapps\ROOT
    2005-5-2 19:47:31 org.apache.coyote.http11.Http11Protocol start
    信息: Starting Coyote HTTP/1.1 on port 8080
    2005-5-2 19:47:32 org.apache.jk.common.ChannelSocket init
    信息: JK2: ajp13 listening on /0.0.0.0:8009
    2005-5-2 19:47:32 org.apache.jk.server.JkMain start
    信息: Jk running ID=0 time=0/172  config=D:\jakarta-tomcat-5.0.19\conf\jk2.properties
    2005-5-2 19:47:32 org.apache.catalina.startup.Catalina start
    信息: Server startup in 15266 ms
      

  3.   

    倒哦,你的java_home设置错了哦
      

  4.   

    我已经设置了JAVA_HOME的正确路径了,不知怎么搞的,就是不能编译jsp文件,
    2005-05-03 10:20:01,812 ERROR org.apache.jasper.compiler.Compiler - Javac exception 
    Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK
    at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:140)2005-05-03 10:20:01,828 ERROR org.apache.jasper.compiler.Compiler - Env: Compile: javaFileName=/D:/eclipse/workspace/bol/work//org/apache/jsp\index_jsp.java
        classpath=/D:/eclipse/workspace/bol/WEB-INF/classes/
        cp=D:\jakarta-tomcat-5.0.19\bin\bootstrap.jar;C:\Program Files\Java\jre1.5.0_01\lib\tools.jar2005-05-03 10:20:01,859 ERROR org.apache.jasper.compiler.Compiler - Error compiling file: /D:/eclipse/workspace/bol/work//org/apache/jsp\index_jsp.java     [javac] Compiling 1 source file
      

  5.   

    首先
     1.是不是所有Jsp页面都不能编译??  如是,那肯定是配置有问题
     2.看看在DOS下javac能不能正常执行.  简单编一个java文件编译并执行
     3.tomcat的Root下的文件能不能执行. 如可以则是server.xml文件配置有问题
     4.不要通过eclipse来配置,直接在server.xml上加入
       <Context path="/DBTest" docBase="DBTest"
            debug="5" reloadable="true" crossContext="true"/>
       类似的你可以做修改,看看有没有问题.
      如没问题则不是java_home的原因.
      如有问题则可能是eclipse配置的问题
      

  6.   

    终于搞定了,原来是tomcat应该使用安装版的