该项目在tomcat7下面运行是正常的,我想迁到jboss-as-7.1.1下面跑,结果出了不少错误,总结一下:
1、第一次部署SSH项目并启动jboss:
-
WARNING: -logmodule is deprecated. Please use the system property 'java.util.logging.manager' or the 'java.util.logging.LogManager' service loader.
-
19:40:25,485 信息 [org.jboss.modules] JBoss Modules version 1.1.1.GA
-
19:40:25,688 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA
-
19:40:25,750 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
-
19:40:26,858 INFO [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
-
19:40:26,858 INFO [org.xnio] XNIO Version 3.0.3.GA
-
19:40:26,873 INFO [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
-
19:40:26,968 INFO [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
-
19:40:26,999 INFO [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
-
19:40:27,139 INFO [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem
-
19:40:27,155 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.
-
19:40:27,171 INFO [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem
-
19:40:27,155 INFO [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem
-
19:40:27,155 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
-
19:40:27,186 INFO [org.jboss.as.security] (MSC service thread 1-8) JBAS013100: Current PicketBox version=4.0.7.Final
-
19:40:27,327 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
-
19:40:27,342 INFO [org.jboss.as.naming] (MSC service thread 1-6) JBAS011802: Starting Naming Service
-
19:40:27,358 INFO [org.jboss.as.connector] (MSC service thread 1-7) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
-
19:40:27,405 INFO [org.jboss.as.mail.extension] (MSC service thread 1-6) JBAS015400: Bound mail session [java:jboss/mail/Default]
-
19:40:27,779 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-4) Starting Coyote HTTP/1.1 on http--127.0.0.1-80
-
19:40:27,841 INFO [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-7) JBoss Web Services - Stack CXF Server 4.0.2.GA
-
19:40:27,919 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
-
19:40:27,983 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class oracle.jdbc.OracleDriver (version 11.1)
-
19:40:28,217 WARN [org.jboss.as.server.deployment.scanner] (MSC service thread 1-6) JBAS015005: Reliable deployment behaviour is not possible when auto-deployment of exploded content is enabled (i.e. deployment without use of ".dodeploy"' marker files). Configuration of auto-deployment of exploded content is not recommended in any situation where reliability is desired. Configuring the deployment scanner's auto-deploy-exploded setting to "false" is recommended.
-
19:40:28,217 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-6) JBAS015012: Started FileSystemDeploymentService for directory C:\jboss-as-7.1.1.Final\standalone\deployments
-
19:40:28,232 INFO [org.jboss.as.remoting] (MSC service thread 1-8) JBAS017100: Listening on /127.0.0.1:4447
-
19:40:28,232 INFO [org.jboss.as.remoting] (MSC service thread 1-5) JBAS017100: Listening on /127.0.0.1:9999
-
19:40:28,279 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) JBAS010400: Bound data source [java:jboss/OracleDS]
-
19:40:28,279 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
-
19:40:28,451 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "UserManager.war"
-
19:40:31,103 WARN [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry commons-cli.jar in "/C:/jboss-as-7.1.1.Final/standalone/deployments/UserManager.war/WEB-INF/lib/jotm.jar" does not point to a valid jar for a Class-Path reference.
-
19:40:31,103 WARN [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry jts1_0.jar in "/C:/jboss-as-7.1.1.Final/standalone/deployments/UserManager.war/WEB-INF/lib/jotm.jar" does not point to a valid jar for a Class-Path reference.
-
19:40:31,118 WARN [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry ow_carol.jar in "/C:/jboss-as-7.1.1.Final/standalone/deployments/UserManager.war/WEB-INF/lib/jotm.jar" does not point to a valid jar for a Class-Path reference.
-
19:40:31,118 WARN [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry howl.jar in "/C:/jboss-as-7.1.1.Final/standalone/deployments/UserManager.war/WEB-INF/lib/jotm.jar" does not point to a valid jar for a Class-Path reference.
-
19:40:31,118 WARN [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry connector-1_5.jar in "/C:/jboss-as-7.1.1.Final/standalone/deployments/UserManager.war/WEB-INF/lib/jotm.jar" does not point to a valid jar for a Class-Path reference.
-
19:40:31,118 WARN [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry jta-spec1_0_1.jar in "/C:/jboss-as-7.1.1.Final/standalone/deployments/UserManager.war/WEB-INF/lib/jotm.jar" does not point to a valid jar for a Class-Path reference.
-
19:40:31,118 WARN [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry log4j.jar in "/C:/jboss-as-7.1.1.Final/standalone/deployments/UserManager.war/WEB-INF/lib/jotm.jar" does not point to a valid jar for a Class-Path reference.
-
19:40:31,118 WARN [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry activation.jar in "/C:/jboss-as-7.1.1.Final/standalone/deployments/UserManager.war/WEB-INF/lib/mail-1.4.1.jar" does not point to a valid jar for a Class-Path reference.
-
19:40:31,135 WARN [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry idb.jar in "/C:/jboss-as-7.1.1.Final/standalone/deployments/UserManager.war/WEB-INF/lib/xapool.jar" does not point to a valid jar for a Class-Path reference.
-
19:40:31,135 WARN [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry classes12.jar in "/C:/jboss-as-7.1.1.Final/standalone/deployments/UserManager.war/WEB-INF/lib/xapool.jar" does not point to a valid jar for a Class-Path reference.
-
19:40:31,135 WARN [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry jta-spec1_0_1.jar in "/C:/jboss-as-7.1.1.Final/standalone/deployments/UserManager.war/WEB-INF/lib/xapool.jar" does not point to a valid jar for a Class-Path reference.
-
19:40:31,135 WARN [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry log4j.jar in "/C:/jboss-as-7.1.1.Final/standalone/deployments/UserManager.war/WEB-INF/lib/xapool.jar" does not point to a valid jar for a Class-Path reference.
-
19:40:31,135 WARN [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry p6psy.jar in "/C:/jboss-as-7.1.1.Final/standalone/deployments/UserManager.war/WEB-INF/lib/xapool.jar" does not point to a valid jar for a Class-Path reference.
-
19:40:31,759 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7) JBAS010403: Deploying JDBC-compliant driver class oracle.jdbc.OracleDriver (version 11.1)
-
19:40:31,837 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/UserManager]] (MSC service thread 1-7) Set web app root system property: 'webApp.root' = [C:\jboss-as-7.1.1.Final\standalone\deployments\UserManager.war\]
-
19:40:31,837 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/UserManager]] (MSC service thread 1-7) Initializing log4j from [classpath:log4j.properties]
-
19:40:31,853 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/UserManager]] (MSC service thread 1-7) Exception sending context initialized event to listener instance of class org.springframework.web.util.Log4jConfigListener: java.lang.IllegalArgumentException: Invalid 'log4jConfigLocation' parameter: class path resource [log4j.properties] cannot be resolved to absolute file path because it does not reside in the file system: vfs:/C:/jboss-as-7.1.1.Final/standalone/deployments/UserManager.war/WEB-INF/classes/log4j.properties
-
at org.springframework.web.util.Log4jWebConfigurer.initLogging(Log4jWebConfigurer.java:156) [spring-web-2.5.6.jar:2.5.6]
-
at org.springframework.web.util.Log4jConfigListener.contextInitialized(Log4jConfigListener.java:47) [spring-web-2.5.6.jar:2.5.6]
-
at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]
-
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]
-
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
-
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
-
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
-
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_13]
-
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_13]
-
at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_13]
-
-
19:40:31,884 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/UserManager]] (MSC service thread 1-7) Initializing Spring root WebApplicationContext
-
19:40:31,884 INFO [org.springframework.web.context.ContextLoader] (MSC service thread 1-7) Root WebApplicationContext: initialization started
-
19:40:32,133 INFO [org.springframework.web.context.support.XmlWebApplicationContext] (MSC service thread 1-7) Refreshing org.springframework.web.context.support.XmlWebApplicationContext@962c7: display name [Root WebApplicationContext]; startup date [Mon Jun 11 19:40:32 CST 2012]; root of context hierarchy
-
19:40:32,181 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (MSC service thread 1-7) Loading XML bean definitions from class path resource [applicationContext-dataSource.xml]
-
19:40:32,353 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (MSC service thread 1-7) Loading XML bean definitions from class path resource [applicationContext-transaction.xml]
-
19:40:32,368 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (MSC service thread 1-7) Loading XML bean definitions from class path resource [applicationContext-common.xml]
-
19:40:32,400 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (MSC service thread 1-7) Loading XML bean definitions from class path resource [applicationContext-dao.xml]
-
19:40:32,415 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (MSC service thread 1-7) Loading XML bean definitions from class path resource [applicationContext-service.xml]
-
19:40:32,431 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (MSC service thread 1-7) Loading XML bean definitions from class path resource [applicationContext-action.xml]
-
19:40:32,478 INFO [org.springframework.web.context.support.XmlWebApplicationContext] (MSC service thread 1-7) Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@962c7]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1bf37e3
-
19:40:32,556 INFO [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer] (MSC service thread 1-7) Loading properties file from class path resource [c3p0.properties]
-
19:40:32,587 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] (MSC service thread 1-7) Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1bf37e3: defining beans [propertyConfigurer,dataSource,sessionFactory,transactionManager,transactionInterceptor,autoProxy,hibernateHelper,mailSender,mailMessage,freeMarkerConfigurer,loginUserDao,sayMessageDao,sayFilesDao,newsInfoDao,loginUserService,sayMessageService,newsInfoService,loginAction,userManagerAction,c3p0PoolAction,myFileUploadAction,downloadAction,logoutAction,regUserAction,newsAction,mailAction]; root of factory hierarchy
-
19:40:32,602 INFO [com.mchange.v2.log.MLog] (MSC service thread 1-7) MLog clients using log4j logging.
-
19:40:32,649 INFO [com.mchange.v2.c3p0.C3P0Registry] (MSC service thread 1-7) Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]
-
19:40:32,758 INFO [org.hibernate.cfg.Environment] (MSC service thread 1-7) Hibernate 3.3.2.GA
-
19:40:32,790 INFO [org.hibernate.cfg.Environment] (MSC service thread 1-7) hibernate.properties not found
-
19:40:32,790 INFO [org.hibernate.cfg.Environment] (MSC service thread 1-7) Bytecode provider name : javassist
-
19:40:32,790 INFO [org.hibernate.cfg.Environment] (MSC service thread 1-7) using JDK 1.4 java.sql.Timestamp handling
-
19:40:33,195 INFO [org.hibernate.cfg.HbmBinder] (MSC service thread 1-7) Mapping class: com.gifer.model.LoginUser -> LOGIN_USER
-
19:40:33,211 INFO [org.hibernate.cfg.HbmBinder] (MSC service thread 1-7) Mapping class: com.gifer.model.SayMessage -> SAY_MESSAGE
-
19:40:33,243 INFO [org.hibernate.cfg.HbmBinder] (MSC service thread 1-7) Mapping class: com.gifer.model.SayFiles -> SAY_FILES
-
19:40:33,290 INFO [org.hibernate.cfg.HbmBinder] (MSC service thread 1-7) Mapping class: com.gifer.model.ReplyMessage -> REPLY_MESSAGE
-
19:40:33,290 INFO [org.hibernate.cfg.HbmBinder] (MSC service thread 1-7) Mapping class: com.gifer.model.NewsInfo -> NEWS_INFO
-
19:40:33,305 INFO [org.hibernate.cfg.HbmBinder] (MSC service thread 1-7) Mapping collection: com.gifer.model.SayMessage.sayFileses -> SAY_FILES
-
19:40:33,305 INFO [org.hibernate.cfg.HbmBinder] (MSC service thread 1-7) Mapping collection: com.gifer.model.SayMessage.replyMessages -> REPLY_MESSAGE
-
19:40:33,305 INFO [org.springframework.orm.hibernate3.LocalSessionFactoryBean] (MSC service thread 1-7) Building new Hibernate SessionFactory
-
19:40:33,305 INFO [org.hibernate.connection.ConnectionProviderFactory] (MSC service thread 1-7) Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
-
19:40:33,664 INFO [com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource] (MSC service thread 1-7) Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> c3p0_test, breakAfterAcquireFailure -> false, checkoutTimeout -> 30000, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 1hge0zt8n1ouz8y199wr3d|b80eb0, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> oracle.jdbc.driver.OracleDriver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1hge0zt8n1ouz8y199wr3d|b80eb0, idleConnectionTestPeriod -> 60, initialPoolSize -> 3, jdbcUrl -> jdbc:oracle:thin:@127.0.0.1:1521:orcl, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 10, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 30, maxStatements -> 50, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> true, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]
-
19:40:33,695 INFO [org.hibernate.cfg.SettingsFactory] (MSC service thread 1-7) RDBMS: Oracle, version: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
-
With the Partitioning, OLAP and Data Mining options
-
19:40:33,711 INFO [org.hibernate.cfg.SettingsFactory] (MSC service thread 1-7) JDBC driver: Oracle JDBC driver, version: 11.1.0.6.0-Production+
-
19:40:33,727 INFO [org.hibernate.dialect.Dialect] (MSC service thread 1-7) Using dialect: org.hibernate.dialect.Oracle10gDialect
-
19:40:33,727 INFO [org.hibernate.transaction.TransactionFactoryFactory] (MSC service thread 1-7) Transaction strategy: org.springframework.orm.hibernate3.SpringTransactionFactory
-
19:40:33,727 INFO [org.hibernate.transaction.TransactionManagerLookupFactory] (MSC service thread 1-7) No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
-
19:40:33,742 INFO [org.hibernate.cfg.SettingsFactory] (MSC service thread 1-7) Automatic flush during beforeCompletion(): disabled
-
19:40:33,742 INFO [org.hibernate.cfg.SettingsFactory] (MSC service thread 1-7) Automatic session close at end of transaction: disabled
-
19:40:33,742 INFO [org.hibernate.cfg.SettingsFactory] (MSC service thread 1-7) JDBC batch size: 15
-
19:40:33,742 INFO [org.hibernate.cfg.SettingsFactory] (MSC service thread 1-7) JDBC batch updates for versioned data: disabled
-
19:40:33,742 INFO [org.hibernate.cfg.SettingsFactory] (MSC service thread 1-7) Scrollable result sets: enabled
-
19:40:33,758 INFO [org.hibernate.cfg.SettingsFactory] (MSC service thread 1-7) JDBC3 getGeneratedKeys(): disabled
-
19:40:33,758 INFO [org.hibernate.cfg.SettingsFactory] (MSC service thread 1-7) Connection release mode: auto
-
19:40:33,758 INFO [org.hibernate.cfg.SettingsFactory] (MSC service thread 1-7) Default batch fetch size: 1
-
19:40:33,758 INFO [org.hibernate.cfg.SettingsFactory] (MSC service thread 1-7) Generate SQL with comments: disabled
-
19:40:33,758 INFO [org.hibernate.cfg.SettingsFactory] (MSC service thread 1-7) Order SQL updates by primary key: disabled
-
19:40:33,758 INFO [org.hibernate.cfg.SettingsFactory] (MSC service thread 1-7) Order SQL inserts for batching: disabled
-
19:40:33,758 INFO [org.hibernate.cfg.SettingsFactory] (MSC service thread 1-7) Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
-
19:40:33,758 INFO [org.hibernate.hql.ast.ASTQueryTranslatorFactory] (MSC service thread 1-7) Using ASTQueryTranslatorFactory
-
19:40:33,758 INFO [org.hibernate.cfg.SettingsFactory] (MSC service thread 1-7) Query language substitutions: {}
-
19:40:33,758 INFO [org.hibernate.cfg.SettingsFactory] (MSC service thread 1-7) JPA-QL strict compliance: disabled
-
19:40:33,773 INFO [org.hibernate.cfg.SettingsFactory] (MSC service thread 1-7) Second-level cache: enabled
-
19:40:33,773 INFO [org.hibernate.cfg.SettingsFactory] (MSC service thread 1-7) Query cache: enabled
-
19:40:33,773 INFO [org.hibernate.cfg.SettingsFactory] (MSC service thread 1-7) Cache region factory : org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge
-
19:40:33,773 INFO [org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge] (MSC service thread 1-7) Cache provider: org.hibernate.cache.EhCacheProvider
-
19:40:33,773 INFO [org.hibernate.cfg.SettingsFactory] (MSC service thread 1-7) Optimize cache for minimal puts: disabled
-
19:40:33,773 INFO [org.hibernate.cfg.SettingsFactory] (MSC service thread 1-7) Structured second-level cache entries: disabled
-
19:40:33,773 INFO [org.hibernate.cfg.SettingsFactory] (MSC service thread 1-7) Query cache factory: org.hibernate.cache.StandardQueryCacheFactory
-
19:40:33,789 INFO [org.hibernate.cfg.SettingsFactory] (MSC service thread 1-7) Echoing all SQL to stdout
-
19:40:33,789 INFO [org.hibernate.cfg.SettingsFactory] (MSC service thread 1-7) Statistics: disabled
-
19:40:33,789 INFO [org.hibernate.cfg.SettingsFactory] (MSC service thread 1-7) Deleted entity synthetic identifier rollback: disabled
-
19:40:33,789 INFO [org.hibernate.cfg.SettingsFactory] (MSC service thread 1-7) Default entity-mode: pojo
-
19:40:33,789 INFO [org.hibernate.cfg.SettingsFactory] (MSC service thread 1-7) Named query checking : enabled
-
19:40:34,132 INFO [org.hibernate.impl.SessionFactoryImpl] (MSC service thread 1-7) building session factory
-
19:40:34,132 WARN [net.sf.ehcache.config.ConfigurationFactory] (MSC service thread 1-7) No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: vfs:/C:/jboss-as-7.1.1.Final/standalone/deployments/UserManager.war/WEB-INF/lib/ehcache-1.2.3.jar/ehcache-failsafe.xml
-
19:40:34,319 INFO [org.hibernate.impl.SessionFactoryObjectFactory] (MSC service thread 1-7) Not binding factory to JNDI, no JNDI name configured
-
19:40:34,319 INFO [org.hibernate.cache.UpdateTimestampsCache] (MSC service thread 1-7) starting update timestamps cache at region: org.hibernate.cache.UpdateTimestampsCache
-
19:40:34,319 WARN [org.hibernate.cache.EhCacheProvider] (MSC service thread 1-7) Could not find configuration [org.hibernate.cache.UpdateTimestampsCache]; using defaults.
-
19:40:34,335 INFO [org.hibernate.cache.StandardQueryCache] (MSC service thread 1-7) starting query cache at region: org.hibernate.cache.StandardQueryCache
-
19:40:34,335 WARN [org.hibernate.cache.EhCacheProvider] (MSC service thread 1-7) Could not find configuration [org.hibernate.cache.StandardQueryCache]; using defaults.
-
19:40:34,367 INFO [org.springframework.orm.hibernate3.HibernateTransactionManager] (MSC service thread 1-7) Using DataSource [com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> c3p0_test, breakAfterAcquireFailure -> false, checkoutTimeout -> 30000, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 1hge0zt8n1ouz8y199wr3d|b80eb0, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> oracle.jdbc.driver.OracleDriver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1hge0zt8n1ouz8y199wr3d|b80eb0, idleConnectionTestPeriod -> 60, initialPoolSize -> 3, jdbcUrl -> jdbc:oracle:thin:@127.0.0.1:1521:orcl, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 10, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 30, maxStatements -> 50, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> true, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]] of Hibernate SessionFactory for HibernateTransactionManager
-
19:40:34,523 INFO [org.springframework.ui.freemarker.SpringTemplateLoader] (MSC service thread 1-7) SpringTemplateLoader for FreeMarker: using resource loader [org.springframework.web.context.support.XmlWebApplicationContext@962c7: display name [Root WebApplicationContext]; startup date [Mon Jun 11 19:40:32 CST 2012]; root of context hierarchy] and template loader path [classpath:mailTemplate/]
-
19:40:34,523 INFO [org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer] (MSC service thread 1-7) ClassTemplateLoader for Spring macros added to FreeMarker configuration
-
19:40:34,601 INFO [org.springframework.web.context.ContextLoader] (MSC service thread 1-7) Root WebApplicationContext: initialization completed in 2717 ms
-
19:40:34,648 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-7) Error listenerStart
-
19:40:34,648 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-7) Context [/UserManager] startup failed due to previous errors
-
19:40:34,664 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/UserManager]] (MSC service thread 1-7) Closing Spring root WebApplicationContext
-
19:40:34,664 INFO [org.springframework.web.context.support.XmlWebApplicationContext] (MSC service thread 1-7) Closing org.springframework.web.context.support.XmlWebApplicationContext@962c7: display name [Root WebApplicationContext]; startup date [Mon Jun 11 19:40:32 CST 2012]; root of context hierarchy
-
19:40:34,664 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] (MSC service thread 1-7) Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1bf37e3: defining beans [propertyConfigurer,dataSource,sessionFactory,transactionManager,transactionInterceptor,autoProxy,hibernateHelper,mailSender,mailMessage,freeMarkerConfigurer,loginUserDao,sayMessageDao,sayFilesDao,newsInfoDao,loginUserService,sayMessageService,newsInfoService,loginAction,userManagerAction,c3p0PoolAction,myFileUploadAction,downloadAction,logoutAction,regUserAction,newsAction,mailAction]; root of factory hierarchy
-
19:40:34,679 INFO [org.springframework.orm.hibernate3.LocalSessionFactoryBean] (MSC service thread 1-7) Closing Hibernate SessionFactory
-
19:40:34,679 INFO [org.hibernate.impl.SessionFactoryImpl] (MSC service thread 1-7) closing
-
19:40:34,679 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/UserManager]] (MSC service thread 1-7) Shutting down log4j
-
19:40:34,695 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC00001: Failed to start service jboss.web.deployment.default-host./UserManager: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./UserManager: JBAS018040: Failed to start context
-
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:95)
-
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
-
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
-
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_13]
-
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_13]
-
at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_13]
-
-
19:40:34,710 INFO [org.jboss.as] (MSC service thread 1-7) JBAS015951: Admin console listening on http:
-
19:40:34,710 ERROR [org.jboss.as] (MSC service thread 1-7) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 9522ms - Started 345 of 425 services (2 services failed or missing dependencies, 76 services are passive or on-demand)
-
19:40:34,929 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "UserManager.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./UserManager" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./UserManager: JBAS018040: Failed to start context"}}
-
19:40:35,272 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015877: Stopped deployment UserManager.war in 338ms
-
19:40:35,272 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
-
JBAS014777: Services which failed to start: service jboss.web.deployment.default-host./UserManager: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./UserManager: JBAS018040: Failed to start context
-
-
19:40:35,272 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./UserManager" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./UserManager: JBAS018040: Failed to start context"}}}}
解决办法,将web.xml中的如下配置
-
<context-param>
-
<param-name>log4jConfigLocation</param-name>
-
<param-value>classpath:log4j.properties</param-value>
-
</context-param>
替换成:
-
<context-param>
-
<param-name>log4jConfigLocation</param-name>
-
<param-value>WEB-INF/classes/log4j.properties</param-value>
-
</context-param>
上面的问题解决,但遇到新的问题。
出错信息如下:
-
WARNING: -logmodule is deprecated. Please use the system property 'java.util.logging.manager' or the 'java.util.logging.LogManager' service loader.
-
19:33:15,358 信息 [org.jboss.modules] JBoss Modules version 1.1.1.GA
-
19:33:15,545 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA
-
19:33:15,608 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
-
19:33:16,778 INFO [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
-
19:33:16,778 INFO [org.xnio] XNIO Version 3.0.3.GA
-
19:33:16,793 INFO [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
-
19:33:16,888 INFO [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
-
19:33:16,903 INFO [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
-
19:33:17,028 INFO [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem
-
19:33:17,028 INFO [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem
-
19:33:17,028 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
-
19:33:17,028 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
-
19:33:17,059 INFO [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem
-
19:33:17,091 INFO [org.jboss.as.connector] (MSC service thread 1-1) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
-
19:33:17,106 INFO [org.jboss.as.security] (MSC service thread 1-4) JBAS013100: Current PicketBox version=4.0.7.Final
-
19:33:17,122 INFO [org.jboss.as.naming] (MSC service thread 1-2) JBAS011802: Starting Naming Service
-
19:33:17,137 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.
-
19:33:17,137 INFO [org.jboss.as.mail.extension] (MSC service thread 1-3) JBAS015400: Bound mail session [java:jboss/mail/Default]
-
19:33:17,434 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-5) Starting Coyote HTTP/1.1 on http--127.0.0.1-80
-
19:33:17,668 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
-
19:33:17,793 INFO [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-2) JBoss Web Services - Stack CXF Server 4.0.2.GA
-
19:33:17,808 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class oracle.jdbc.OracleDriver (version 11.1)
-
19:33:17,981 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
-
19:33:17,981 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-6) JBAS010400: Bound data source [java:jboss/OracleDS]
-
19:33:18,184 WARN [org.jboss.as.server.deployment.scanner] (MSC service thread 1-5) JBAS015005: Reliable deployment behaviour is not possible when auto-deployment of exploded content is enabled (i.e. deployment without use of ".dodeploy"' marker files). Configuration of auto-deployment of exploded content is not recommended in any situation where reliability is desired. Configuring the deployment scanner's auto-deploy-exploded setting to "false" is recommended.
-
19:33:18,184 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-5) JBAS015012: Started FileSystemDeploymentService for directory C:\jboss-as-7.1.1.Final\standalone\deployments
-
19:33:18,230 INFO [org.jboss.as.remoting] (MSC service thread 1-7) JBAS017100: Listening on /127.0.0.1:4447
-
19:33:18,246 INFO [org.jboss.as.remoting] (MSC service thread 1-8) JBAS017100: Listening on /127.0.0.1:9999
-
19:33:18,589 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http:
-
19:33:18,589 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 3527ms - Started 137 of 213 services (74 services are passive or on-demand)
-
19:33:19,697 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015014: Re-attempting failed deployment UserManager.war
-
19:33:19,869 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS014654: Composite operation was rolled back
-
19:33:19,869 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => "JBAS014803: Duplicate resource [(\"deployment\" => \"UserManager.war\")]"}}
删除文件:UserManager.war.failed 再重新启动jboss,输出以下警告信息:
网上说这是struts2在jboss下的一个bug,解决办法是:修改struts2源码,不过这并不影响项目的正常运行。
(责任编辑:IT) |