首页上一页 1 下一页尾页 1 条记录 1/1页
用mysql5库是你们提供的db_bbs(java项目开发全程实录第9章)还是出错.
发表在Java图书答疑
2010-03-13
是否精华
是
否
版块置顶:
是
否
运行http://localhost:8080/bbs,浏览器是503错误(控制台出错在后面):
HTTP Status 503 - Servlet action is currently unavailable
--------------------------------------------------------------------------------
type Status report
message Servlet action is currently unavailable
description The requested service (Servlet action is currently unavailable) is not currently available.
--------------------------------------------------------------------------------
Apache Tomcat/5.5.28
控制台出现如下错误.
控制台:
2010-3-13 16:51:14 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Java\jdk1.6.0_17\bin;D:\Tomcat 5.5\bin
2010-3-13 16:51:14 org.apache.coyote.http11.Http11BaseProtocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2010-3-13 16:51:14 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 828 ms
2010-3-13 16:51:14 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2010-3-13 16:51:14 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.5.28
2010-3-13 16:51:14 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
2010-3-13 16:51:15 org.logicalcobwebs.proxool.ProxoolFacade registerConnectionPool
信息: Proxool 0.9.0RC3 (10-Jan-2007 01:38)
log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
3859 [main] INFO cfg.SettingsFactory - RDBMS: Microsoft SQL Server, version: Microsoft SQL Server 2000 - 8.00.2039 (Intel X86)
May 3 2005 23:18:38
Copyright (c) 1988-2003 Microsoft Corporation
Enterprise Edition on Windows NT 5.2 (Build 3790: )
3859 [main] INFO cfg.SettingsFactory - JDBC driver: SQLServer, version: 2.2.0037
3937 [main] INFO dialect.Dialect - Using dialect: org.hibernate.dialect.SQLServerDialect
3969 [main] INFO transaction.TransactionFactoryFactory - Using default transaction strategy (direct JDBC transactions)
3969 [main] INFO transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
3969 [main] INFO cfg.SettingsFactory - Automatic flush during beforeCompletion(): disabled
3969 [main] INFO cfg.SettingsFactory - Automatic session close at end of transaction: disabled
3969 [main] INFO cfg.SettingsFactory - Scrollable result sets: enabled
3969 [main] INFO cfg.SettingsFactory - JDBC3 getGeneratedKeys(): disabled
3969 [main] INFO cfg.SettingsFactory - Connection release mode: on_close
3969 [main] INFO cfg.SettingsFactory - Default batch fetch size: 1
3969 [main] INFO cfg.SettingsFactory - Generate SQL with comments: disabled
3969 [main] INFO cfg.SettingsFactory - Order SQL updates by primary key: disabled
3969 [main] INFO cfg.SettingsFactory - Order SQL inserts for batching: disabled
3969 [main] INFO cfg.SettingsFactory - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
3984 [main] INFO ast.ASTQueryTranslatorFactory - Using ASTQueryTranslatorFactory
3984 [main] INFO cfg.SettingsFactory - Query language substitutions: {}
3984 [main] INFO cfg.SettingsFactory - JPA-QL strict compliance: disabled
3984 [main] INFO cfg.SettingsFactory - Second-level cache: enabled
3984 [main] INFO cfg.SettingsFactory - Query cache: disabled
3984 [main] INFO cfg.SettingsFactory - Cache provider: org.hibernate.cache.NoCacheProvider
3984 [main] INFO cfg.SettingsFactory - Optimize cache for minimal puts: disabled
3984 [main] INFO cfg.SettingsFactory - Structured second-level cache entries: disabled
4016 [main] INFO cfg.SettingsFactory - Echoing all SQL to stdout
4016 [main] INFO cfg.SettingsFactory - Statistics: disabled
4016 [main] INFO cfg.SettingsFactory - Deleted entity synthetic identifier rollback: disabled
4016 [main] INFO cfg.SettingsFactory - Default entity-mode: pojo
4016 [main] INFO cfg.SettingsFactory - Named query checking : enabled
4109 [main] INFO impl.SessionFactoryImpl - building session factory
5078 [main] INFO impl.SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured
5312 [main] INFO hibernate3.HibernateTransactionManager - Using DataSource [org.springframework.jdbc.datasource.DriverManagerDataSource@185ada3] of Hibernate SessionFactory for HibernateTransactionManager
5328 [main] INFO framework.DefaultAopProxyFactory - CGLIB2 available: proxyTargetClass feature enabled
5484 [main] WARN framework.Cglib2AopProxy - Unable to proxy method [public final org.hibernate.SessionFactory org.springframework.orm.hibernate3.support.HibernateDaoSupport.getSessionFactory()] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
5484 [main] WARN framework.Cglib2AopProxy - Unable to proxy method [public final org.springframework.orm.hibernate3.HibernateTemplate org.springframework.orm.hibernate3.support.HibernateDaoSupport.getHibernateTemplate()] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
5484 [main] WARN framework.Cglib2AopProxy - Unable to proxy method [public final void org.springframework.orm.hibernate3.support.HibernateDaoSupport.setSessionFactory(org.hibernate.SessionFactory)] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
5484 [main] WARN framework.Cglib2AopProxy - Unable to proxy method [public final void org.springframework.orm.hibernate3.support.HibernateDaoSupport.setHibernateTemplate(org.springframework.orm.hibernate3.HibernateTemplate)] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
5484 [main] WARN framework.Cglib2AopProxy - Unable to proxy method [public final void org.springframework.dao.support.DaoSupport.afterPropertiesSet() throws java.lang.IllegalArgumentException,org.springframework.beans.factory.BeanInitializationException] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
7812 [main] INFO tiles.TilesConfigurer - TilesConfigurer: adding definitions [WEB-INF/config/tiles-template.xml,WEB-INF/config/tiles-defs.xml,WEB-INF/config/tiles-managerDefs.xml,WEB-INF/config/tiles-manageTemplate.xml]
8750 [main] INFO servlet.DispatcherServlet - Using context class [org.springframework.web.context.support.XmlWebApplicationContext] for servlet 'dispatcher'
8750 [main] INFO servlet.DispatcherServlet - Unable to locate MultipartResolver with name 'multipartResolver': no multipart request handling provided
8766 [main] INFO servlet.DispatcherServlet - Unable to locate LocaleResolver with name 'localeResolver': using default [org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver@194ec90]
8797 [main] INFO servlet.DispatcherServlet - Unable to locate ThemeResolver with name 'themeResolver': using default [org.springframework.web.servlet.theme.FixedThemeResolver@12e86ae]
8844 [main] INFO servlet.DispatcherServlet - No HandlerAdapters found in servlet 'dispatcher': using default
8891 [main] INFO servlet.DispatcherServlet - Unable to locate RequestToViewNameTranslator with name 'viewNameTranslator': using default [org.springframework.web.servlet.view.DefaultRequestToViewNameTranslator@a52c57]
8891 [main] INFO servlet.DispatcherServlet - FrameworkServlet 'dispatcher': initialization completed in 8391 ms
8891 [main] INFO servlet.DispatcherServlet - Servlet 'dispatcher' configured successfully
log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
2010-3-13 16:51:25 org.apache.coyote.http11.Http11BaseProtocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2010-3-13 16:51:26 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2010-3-13 16:51:26 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/62 config=null
2010-3-13 16:51:26 org.apache.catalina.storeconfig.StoreLoader load
信息: Find registry server-registry.xml at classpath resource
2010-3-13 16:51:26 org.apache.catalina.startup.Catalina start
信息: Server startup in 11813 ms
2010-3-13 16:51:39 org.apache.catalina.core.ApplicationContext log
信息: HTMLManager: init: Associated with Deployer 'Catalina:type=Deployer,host=localhost'
2010-3-13 16:51:39 org.apache.catalina.core.ApplicationContext log
信息: HTMLManager: init: Global resources are available
2010-3-13 16:51:39 org.apache.catalina.core.ApplicationContext log
信息: HTMLManager: list: Listing contexts for virtual host 'localhost'
2010-3-13 16:51:46 org.apache.catalina.core.ApplicationContext log
信息: HTMLManager: list: Listing contexts for virtual host 'localhost'
2010-3-13 16:53:35 org.apache.catalina.core.ApplicationContext log
信息: HTMLManager: list: Listing contexts for virtual host 'localhost'
HTTP Status 503 - Servlet action is currently unavailable
--------------------------------------------------------------------------------
type Status report
message Servlet action is currently unavailable
description The requested service (Servlet action is currently unavailable) is not currently available.
--------------------------------------------------------------------------------
Apache Tomcat/5.5.28
控制台出现如下错误.
控制台:
2010-3-13 16:51:14 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Java\jdk1.6.0_17\bin;D:\Tomcat 5.5\bin
2010-3-13 16:51:14 org.apache.coyote.http11.Http11BaseProtocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2010-3-13 16:51:14 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 828 ms
2010-3-13 16:51:14 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2010-3-13 16:51:14 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.5.28
2010-3-13 16:51:14 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
2010-3-13 16:51:15 org.logicalcobwebs.proxool.ProxoolFacade registerConnectionPool
信息: Proxool 0.9.0RC3 (10-Jan-2007 01:38)
log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
3859 [main] INFO cfg.SettingsFactory - RDBMS: Microsoft SQL Server, version: Microsoft SQL Server 2000 - 8.00.2039 (Intel X86)
May 3 2005 23:18:38
Copyright (c) 1988-2003 Microsoft Corporation
Enterprise Edition on Windows NT 5.2 (Build 3790: )
3859 [main] INFO cfg.SettingsFactory - JDBC driver: SQLServer, version: 2.2.0037
3937 [main] INFO dialect.Dialect - Using dialect: org.hibernate.dialect.SQLServerDialect
3969 [main] INFO transaction.TransactionFactoryFactory - Using default transaction strategy (direct JDBC transactions)
3969 [main] INFO transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
3969 [main] INFO cfg.SettingsFactory - Automatic flush during beforeCompletion(): disabled
3969 [main] INFO cfg.SettingsFactory - Automatic session close at end of transaction: disabled
3969 [main] INFO cfg.SettingsFactory - Scrollable result sets: enabled
3969 [main] INFO cfg.SettingsFactory - JDBC3 getGeneratedKeys(): disabled
3969 [main] INFO cfg.SettingsFactory - Connection release mode: on_close
3969 [main] INFO cfg.SettingsFactory - Default batch fetch size: 1
3969 [main] INFO cfg.SettingsFactory - Generate SQL with comments: disabled
3969 [main] INFO cfg.SettingsFactory - Order SQL updates by primary key: disabled
3969 [main] INFO cfg.SettingsFactory - Order SQL inserts for batching: disabled
3969 [main] INFO cfg.SettingsFactory - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
3984 [main] INFO ast.ASTQueryTranslatorFactory - Using ASTQueryTranslatorFactory
3984 [main] INFO cfg.SettingsFactory - Query language substitutions: {}
3984 [main] INFO cfg.SettingsFactory - JPA-QL strict compliance: disabled
3984 [main] INFO cfg.SettingsFactory - Second-level cache: enabled
3984 [main] INFO cfg.SettingsFactory - Query cache: disabled
3984 [main] INFO cfg.SettingsFactory - Cache provider: org.hibernate.cache.NoCacheProvider
3984 [main] INFO cfg.SettingsFactory - Optimize cache for minimal puts: disabled
3984 [main] INFO cfg.SettingsFactory - Structured second-level cache entries: disabled
4016 [main] INFO cfg.SettingsFactory - Echoing all SQL to stdout
4016 [main] INFO cfg.SettingsFactory - Statistics: disabled
4016 [main] INFO cfg.SettingsFactory - Deleted entity synthetic identifier rollback: disabled
4016 [main] INFO cfg.SettingsFactory - Default entity-mode: pojo
4016 [main] INFO cfg.SettingsFactory - Named query checking : enabled
4109 [main] INFO impl.SessionFactoryImpl - building session factory
5078 [main] INFO impl.SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured
5312 [main] INFO hibernate3.HibernateTransactionManager - Using DataSource [org.springframework.jdbc.datasource.DriverManagerDataSource@185ada3] of Hibernate SessionFactory for HibernateTransactionManager
5328 [main] INFO framework.DefaultAopProxyFactory - CGLIB2 available: proxyTargetClass feature enabled
5484 [main] WARN framework.Cglib2AopProxy - Unable to proxy method [public final org.hibernate.SessionFactory org.springframework.orm.hibernate3.support.HibernateDaoSupport.getSessionFactory()] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
5484 [main] WARN framework.Cglib2AopProxy - Unable to proxy method [public final org.springframework.orm.hibernate3.HibernateTemplate org.springframework.orm.hibernate3.support.HibernateDaoSupport.getHibernateTemplate()] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
5484 [main] WARN framework.Cglib2AopProxy - Unable to proxy method [public final void org.springframework.orm.hibernate3.support.HibernateDaoSupport.setSessionFactory(org.hibernate.SessionFactory)] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
5484 [main] WARN framework.Cglib2AopProxy - Unable to proxy method [public final void org.springframework.orm.hibernate3.support.HibernateDaoSupport.setHibernateTemplate(org.springframework.orm.hibernate3.HibernateTemplate)] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
5484 [main] WARN framework.Cglib2AopProxy - Unable to proxy method [public final void org.springframework.dao.support.DaoSupport.afterPropertiesSet() throws java.lang.IllegalArgumentException,org.springframework.beans.factory.BeanInitializationException] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
7812 [main] INFO tiles.TilesConfigurer - TilesConfigurer: adding definitions [WEB-INF/config/tiles-template.xml,WEB-INF/config/tiles-defs.xml,WEB-INF/config/tiles-managerDefs.xml,WEB-INF/config/tiles-manageTemplate.xml]
8750 [main] INFO servlet.DispatcherServlet - Using context class [org.springframework.web.context.support.XmlWebApplicationContext] for servlet 'dispatcher'
8750 [main] INFO servlet.DispatcherServlet - Unable to locate MultipartResolver with name 'multipartResolver': no multipart request handling provided
8766 [main] INFO servlet.DispatcherServlet - Unable to locate LocaleResolver with name 'localeResolver': using default [org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver@194ec90]
8797 [main] INFO servlet.DispatcherServlet - Unable to locate ThemeResolver with name 'themeResolver': using default [org.springframework.web.servlet.theme.FixedThemeResolver@12e86ae]
8844 [main] INFO servlet.DispatcherServlet - No HandlerAdapters found in servlet 'dispatcher': using default
8891 [main] INFO servlet.DispatcherServlet - Unable to locate RequestToViewNameTranslator with name 'viewNameTranslator': using default [org.springframework.web.servlet.view.DefaultRequestToViewNameTranslator@a52c57]
8891 [main] INFO servlet.DispatcherServlet - FrameworkServlet 'dispatcher': initialization completed in 8391 ms
8891 [main] INFO servlet.DispatcherServlet - Servlet 'dispatcher' configured successfully
log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
2010-3-13 16:51:25 org.apache.coyote.http11.Http11BaseProtocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2010-3-13 16:51:26 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2010-3-13 16:51:26 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/62 config=null
2010-3-13 16:51:26 org.apache.catalina.storeconfig.StoreLoader load
信息: Find registry server-registry.xml at classpath resource
2010-3-13 16:51:26 org.apache.catalina.startup.Catalina start
信息: Server startup in 11813 ms
2010-3-13 16:51:39 org.apache.catalina.core.ApplicationContext log
信息: HTMLManager: init: Associated with Deployer 'Catalina:type=Deployer,host=localhost'
2010-3-13 16:51:39 org.apache.catalina.core.ApplicationContext log
信息: HTMLManager: init: Global resources are available
2010-3-13 16:51:39 org.apache.catalina.core.ApplicationContext log
信息: HTMLManager: list: Listing contexts for virtual host 'localhost'
2010-3-13 16:51:46 org.apache.catalina.core.ApplicationContext log
信息: HTMLManager: list: Listing contexts for virtual host 'localhost'
2010-3-13 16:53:35 org.apache.catalina.core.ApplicationContext log
信息: HTMLManager: list: Listing contexts for virtual host 'localhost'