com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown database 'stu',郁闷无比啊。
下面贴出完整的错误。
严重: Exception starting filter struts2
Unable to load configuration. - bean - jar:file:/E:/J2EE%20%20Code/Strut2.00/WebRoot/WEB-INF/lib/struts2-core-2.1.6.jar!/struts-default.xml:46:178
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:360)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:403)
at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
at org.apache.catalina.core.ApplicationFilterConfig.
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3600)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4189)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
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:275)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: Unable to load bean: type:org.apache.struts2.dispatcher.multipart.MultiPartRequest class:org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest - bean - jar:file:/E:/J2EE%20%20Code/Strut2.00/WebRoot/WEB-INF/lib/struts2-core-2.1.6.jar!/struts-default.xml:46:178
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:222)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:165)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
... 21 more
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/fileupload/RequestContext
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getDeclaredConstructors(Class.java:1836)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:212)
... 24 more
Caused by: java.lang.ClassNotFoundException: org.apache.commons.fileupload.RequestContext
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
... 28 more
2013-4-6 14:39:39 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2013-4-6 14:39:39 org.apache.catalina.core.StandardContext start
严重: Context [/Strut2.00] startup failed due to previous errors
2013-4-6 14:39:39 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-default.xml]
2013-4-6 14:39:40 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-plugin.xml]
2013-4-6 14:39:40 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts.xml]
2013-04-06 14:39:41,121 - org.hibernate.cfg.Environment -0 [main] INFO org.hibernate.cfg.Environment - Hibernate 3.0.5
2013-04-06 14:39:41,126 - org.hibernate.cfg.Environment -5 [main] INFO org.hibernate.cfg.Environment - hibernate.properties not found
2013-04-06 14:39:41,128 - org.hibernate.cfg.Environment -7 [main] INFO org.hibernate.cfg.Environment - using CGLIB reflection optimizer
2013-04-06 14:39:41,130 - org.hibernate.cfg.Environment -9 [main] INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
2013-04-06 14:39:41,224 - org.hibernate.cfg.Configuration -103 [main] INFO org.hibernate.cfg.Configuration - configuring from resource: /hibernate.cfg.xml
2013-04-06 14:39:41,225 - org.hibernate.cfg.Configuration -104 [main] INFO org.hibernate.cfg.Configuration - Configuration resource: /hibernate.cfg.xml
2013-04-06 14:39:41,604 - org.hibernate.cfg.Configuration -483 [main] INFO org.hibernate.cfg.Configuration - Mapping resource: com/stuman/domain/Admin.hbm.xml
2013-04-06 14:39:41,717 - org.hibernate.cfg.HbmBinder -596 [main] INFO org.hibernate.cfg.HbmBinder - Mapping class: com.stuman.domain.Admin -> admin
2013-04-06 14:39:41,745 - org.hibernate.cfg.Configuration -624 [main] INFO org.hibernate.cfg.Configuration - Mapping resource: com/stuman/domain/Student.hbm.xml
2013-04-06 14:39:41,761 - org.hibernate.cfg.HbmBinder -640 [main] INFO org.hibernate.cfg.HbmBinder - Mapping class: com.stuman.domain.Student -> student
2013-04-06 14:39:41,768 - org.hibernate.cfg.Configuration -647 [main] INFO org.hibernate.cfg.Configuration - Mapping resource: com/stuman/domain/Teacher.hbm.xml
2013-04-06 14:39:41,781 - org.hibernate.cfg.HbmBinder -660 [main] INFO org.hibernate.cfg.HbmBinder - Mapping class: com.stuman.domain.Teacher -> teacher
2013-04-06 14:39:41,782 - org.hibernate.cfg.Configuration -661 [main] INFO org.hibernate.cfg.Configuration - Mapping resource: com/stuman/domain/Course.hbm.xml
2013-04-06 14:39:41,794 - org.hibernate.cfg.HbmBinder -673 [main] INFO org.hibernate.cfg.HbmBinder - Mapping class: com.stuman.domain.Course -> course
2013-04-06 14:39:41,795 - org.hibernate.cfg.Configuration -674 [main] INFO org.hibernate.cfg.Configuration - Mapping resource: com/stuman/domain/Classes.hbm.xml
2013-04-06 14:39:41,805 - org.hibernate.cfg.HbmBinder -684 [main] INFO org.hibernate.cfg.HbmBinder - Mapping class: com.stuman.domain.Classes -> classes
2013-04-06 14:39:41,905 - org.hibernate.cfg.Configuration -784 [main] INFO org.hibernate.cfg.Configuration - Mapping resource: com/stuman/domain/Enrol.hbm.xml
2013-04-06 14:39:41,914 - org.hibernate.cfg.HbmBinder -793 [main] INFO org.hibernate.cfg.HbmBinder - Mapping class: com.stuman.domain.Enrol -> enrol
2013-04-06 14:39:41,935 - org.hibernate.cfg.Configuration -814 [main] INFO org.hibernate.cfg.Configuration - Configured SessionFactory: null
2013-04-06 14:39:41,935 - org.hibernate.cfg.Configuration -814 [main] INFO org.hibernate.cfg.Configuration - processing extends queue
2013-04-06 14:39:41,936 - org.hibernate.cfg.Configuration -815 [main] INFO org.hibernate.cfg.Configuration - processing collection mappings
2013-04-06 14:39:41,936 - org.hibernate.cfg.HbmBinder -815 [main] INFO org.hibernate.cfg.HbmBinder - Mapping collection: com.stuman.domain.Student.enrols -> enrol
2013-04-06 14:39:41,937 - org.hibernate.cfg.HbmBinder -816 [main] INFO org.hibernate.cfg.HbmBinder - Mapping collection: com.stuman.domain.Teacher.classeses -> classes
2013-04-06 14:39:41,938 - org.hibernate.cfg.HbmBinder -817 [main] INFO org.hibernate.cfg.HbmBinder - Mapping collection: com.stuman.domain.Course.classeses -> classes
2013-04-06 14:39:41,938 - org.hibernate.cfg.HbmBinder -817 [main] INFO org.hibernate.cfg.HbmBinder - Mapping collection: com.stuman.domain.Classes.enrols -> enrol
2013-04-06 14:39:41,938 - org.hibernate.cfg.Configuration -817 [main] INFO org.hibernate.cfg.Configuration - processing association property references
2013-04-06 14:39:41,939 - org.hibernate.cfg.Configuration -818 [main] INFO org.hibernate.cfg.Configuration - processing foreign key constraints
2013-04-06 14:39:42,197 - org.hibernate.connection.DriverManagerConnectionProvider -1076 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - Using Hibernate built-in connection pool (not for production use!)
2013-04-06 14:39:42,197 - org.hibernate.connection.DriverManagerConnectionProvider -1076 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - Hibernate connection pool size: 20
2013-04-06 14:39:42,198 - org.hibernate.connection.DriverManagerConnectionProvider -1077 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - autocommit mode: false
2013-04-06 14:39:42,203 - org.hibernate.connection.DriverManagerConnectionProvider -1082 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost:3306/STU?useUnicode=true&characterEncoding=UTF-8
2013-04-06 14:39:42,203 - org.hibernate.connection.DriverManagerConnectionProvider -1082 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - connection properties: {user=root, password=****}
2013-04-06 14:39:42,409 - org.hibernate.cfg.SettingsFactory -1288 [main] WARN org.hibernate.cfg.SettingsFactory - Could not obtain connection metadata
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown database 'stu'
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:885)
at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3421)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1247)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2748)
at com.mysql.jdbc.Connection.
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:154)
at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:72)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1463)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1004)
at com.stuman.dao.hibernate.HibernateUtil.
at com.stuman.util.LoadHiberaneFactoryContext.createHibernateUtil(LoadHiberaneFactoryContext.java:19)
at com.stuman.util.LoadHiberaneFactoryContext.init(LoadHiberaneFactoryContext.java:16)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4197)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1112)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
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:275)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2013-04-06 14:39:42,452 - org.hibernate.dialect.Dialect -1331 [main] INFO org.hibernate.dialect.Dialect - Using dialect: org.hibernate.dialect.MySQLDialect
2013-04-06 14:39:42,464 - org.hibernate.transaction.TransactionFactoryFactory -1343 [main] INFO org.hibernate.transaction.TransactionFactoryFactory - Using default transaction strategy (direct JDBC transactions)
2013-04-06 14:39:42,469 - org.hibernate.transaction.TransactionManagerLookupFactory -1348 [main] INFO org.hibernate.transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
2013-04-06 14:39:42,469 - org.hibernate.cfg.SettingsFactory -1348 [main] INFO org.hibernate.cfg.SettingsFactory - Automatic flush during beforeCompletion(): disabled
2013-04-06 14:39:42,470 - org.hibernate.cfg.SettingsFactory -1349 [main] INFO org.hibernate.cfg.SettingsFactory - Automatic session close at end of transaction: disabled
2013-04-06 14:39:42,472 - org.hibernate.cfg.SettingsFactory -1351 [main] INFO org.hibernate.cfg.SettingsFactory - Scrollable result sets: disabled
2013-04-06 14:39:42,472 - org.hibernate.cfg.SettingsFactory -1351 [main] INFO org.hibernate.cfg.SettingsFactory - JDBC3 getGeneratedKeys(): disabled
2013-04-06 14:39:42,472 - org.hibernate.cfg.SettingsFactory -1351 [main] INFO org.hibernate.cfg.SettingsFactory - Connection release mode: null
2013-04-06 14:39:42,475 - org.hibernate.cfg.SettingsFactory -1354 [main] INFO org.hibernate.cfg.SettingsFactory - Maximum outer join fetch depth: 2
2013-04-06 14:39:42,475 - org.hibernate.cfg.SettingsFactory -1354 [main] INFO org.hibernate.cfg.SettingsFactory - Default batch fetch size: 1
2013-04-06 14:39:42,475 - org.hibernate.cfg.SettingsFactory -1354 [main] INFO org.hibernate.cfg.SettingsFactory - Generate SQL with comments: disabled
2013-04-06 14:39:42,476 - org.hibernate.cfg.SettingsFactory -1355 [main] INFO org.hibernate.cfg.SettingsFactory - Order SQL updates by primary key: disabled
2013-04-06 14:39:42,476 - org.hibernate.cfg.SettingsFactory -1355 [main] INFO org.hibernate.cfg.SettingsFactory - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
2013-04-06 14:39:42,484 - org.hibernate.hql.ast.ASTQueryTranslatorFactory -1363 [main] INFO org.hibernate.hql.ast.ASTQueryTranslatorFactory - Using ASTQueryTranslatorFactory
2013-04-06 14:39:42,485 - org.hibernate.cfg.SettingsFactory -1364 [main] INFO org.hibernate.cfg.SettingsFactory - Query language substitutions: {}
2013-04-06 14:39:42,485 - org.hibernate.cfg.SettingsFactory -1364 [main] INFO org.hibernate.cfg.SettingsFactory - Second-level cache: enabled
2013-04-06 14:39:42,485 - org.hibernate.cfg.SettingsFactory -1364 [main] INFO org.hibernate.cfg.SettingsFactory - Query cache: disabled
2013-04-06 14:39:42,485 - org.hibernate.cfg.SettingsFactory -1364 [main] INFO org.hibernate.cfg.SettingsFactory - Cache provider: org.hibernate.cache.EhCacheProvider
2013-04-06 14:39:42,491 - org.hibernate.cfg.SettingsFactory -1370 [main] INFO org.hibernate.cfg.SettingsFactory - Optimize cache for minimal puts: disabled
2013-04-06 14:39:42,491 - org.hibernate.cfg.SettingsFactory -1370 [main] INFO org.hibernate.cfg.SettingsFactory - Structured second-level cache entries: disabled
2013-04-06 14:39:42,505 - org.hibernate.cfg.SettingsFactory -1384 [main] INFO org.hibernate.cfg.SettingsFactory - Echoing all SQL to stdout
2013-04-06 14:39:42,505 - org.hibernate.cfg.SettingsFactory -1384 [main] INFO org.hibernate.cfg.SettingsFactory - Statistics: disabled
2013-04-06 14:39:42,506 - org.hibernate.cfg.SettingsFactory -1385 [main] INFO org.hibernate.cfg.SettingsFactory - Deleted entity synthetic identifier rollback: disabled
2013-04-06 14:39:42,509 - org.hibernate.cfg.SettingsFactory -1388 [main] INFO org.hibernate.cfg.SettingsFactory - Default entity-mode: pojo
2013-04-06 14:39:42,546 - org.hibernate.impl.SessionFactoryImpl -1425 [main] INFO org.hibernate.impl.SessionFactoryImpl - building session factory
2013-04-06 14:39:42,902 - org.hibernate.impl.SessionFactoryObjectFactory -1781 [main] INFO org.hibernate.impl.SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured
2013-04-06 14:39:42,902 - org.hibernate.impl.SessionFactoryImpl -1781 [main] INFO org.hibernate.impl.SessionFactoryImpl - Checking 0 named queries
2013-4-6 14:39:43 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-default.xml]
2013-4-6 14:39:43 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Unable to locate configuration files of the name struts-plugin.xml, skipping
2013-4-6 14:39:43 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-plugin.xml]
2013-4-6 14:39:43 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts.xml]
2013-4-6 14:39:44 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-default.xml]
2013-4-6 14:39:44 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter struts2
Unable to load configuration. - bean - jar:file:/D:/SofeWare%20%20Install/Tomcat%205.5/webapps/Struts2.0/WEB-INF/lib/struts2-core-2.1.6.jar!/struts-default.xml:46:178
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:360)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:403)
at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
at org.apache.catalina.core.ApplicationFilterConfig.
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3600)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4189)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1112)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
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:275)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: Unable to load bean: type:org.apache.struts2.dispatcher.multipart.MultiPartRequest class:org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest - bean - jar:file:/D:/SofeWare%20%20Install/Tomcat%205.5/webapps/Struts2.0/WEB-INF/lib/struts2-core-2.1.6.jar!/struts-default.xml:46:178
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:222)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:165)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
... 30 more
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/fileupload/RequestContext
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getDeclaredConstructors(Class.java:1836)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:212)
... 33 more
Caused by: java.lang.ClassNotFoundException: org.apache.commons.fileupload.RequestContext
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
... 37 more
2013-4-6 14:39:44 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2013-4-6 14:39:44 org.apache.catalina.core.StandardContext start
严重: Context [/Struts2.0] startup failed due to previous errors
2013-4-6 14:39:44 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter struts2
java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.FilterDispather
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:209)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
at org.apache.catalina.core.ApplicationFilterConfig.
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3600)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4189)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1112)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
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:275)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2013-4-6 14:39:44 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2013-4-6 14:39:44 org.apache.catalina.core.StandardContext start
严重: Context [/StrutsUplode] startup failed due to previous errors
2013-4-6 14:39:44 org.apache.coyote.http11.Http11BaseProtocol start
总的来说,看了那么多的错误提示,基本上都是提示我的struct的核心jar包没有导入进去。可是,我在项目里明明是复制进去了的,看截图:
目前问题尚未解决,仍在努力寻找答案中。
现在问题解决了,就是卸载了现在用的Tomcat5.0.5这个版本,重装一个6.0.26的版本,配置好之后,重新启动tomcat,什么问题都没有了,就连之前的什么mysql数据库加载错误的信息业没有了,现在附上图片证明一下: