| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 11395 人关注过本帖
标题:java SSH 项目 JBOSS 启动报错
只看楼主 加入收藏
shaw80
Rank: 2
等 级:论坛游民
威 望:1
帖 子:29
专家分:60
注 册:2014-5-31
结帖率:66.67%
收藏
已结贴  问题点数:20 回复次数:12 
java SSH 项目 JBOSS 启动报错
程序代码:
WARNING: -logmodule is deprecated. Please use the system property 'java.util.logging.manager' or the 'java.util.logging.LogManager' service loader.
22:48:20,285 信息    [org.jboss.modules] JBoss Modules version 1.1.1.GA
22:48:20,458 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA
22:48:20,506 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
22:48:21,229 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
22:48:21,230 INFO  [org.xnio] XNIO Version 3.0.3.GA
22:48:21,240 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
22:48:21,247 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
22:48:21,267 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
22:48:21,278 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.
22:48:21,297 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem
22:48:21,322 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem
22:48:21,326 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem
22:48:21,327 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
22:48:21,331 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
22:48:21,333 INFO  [org.jboss.as.security] (MSC service thread 1-1) JBAS013100: Current PicketBox version=4.0.7.Final
22:48:21,402 INFO  [org.jboss.as.connector] (MSC service thread 1-2) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
22:48:21,440 INFO  [org.jboss.as.naming] (MSC service thread 1-3) JBAS011802: Starting Naming Service
22:48:21,475 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-3) JBAS015400: Bound mail session [java:jboss/mail/Default]
22:48:21,512 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-2) Starting Coyote HTTP/1.1 on http--127.0.0.1-80
22:48:21,570 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
22:48:21,708 INFO  [org.jboss.] (MSC service thread 1-8) JBoss Web Services - Stack CXF Server 4.0.2.GA
22:48:21,803 INFO  [org.jboss.as.remoting] (MSC service thread 1-2) JBAS017100: Listening on /127.0.0.1:9999
22:48:21,805 INFO  [org.jboss.as.remoting] (MSC service thread 1-6) JBAS017100: Listening on /127.0.0.1:4447
22:48:21,803 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-1) JBAS015012: Started FileSystemDeploymentService for directory D:\jboss-as-7.1.1.Final\standalone\deployments
22:48:21,809 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015014: Re-attempting failed deployment test.war
22:48:21,910 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-8) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
22:48:21,975 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found test.war in deployment directory. To trigger deployment create a file called test.war.dodeploy
22:48:21,995 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "test.war"
22:48:24,362 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) Class Path entry sax-2.0.1.jar in "/D:/jboss-as-7.1.1.Final/standalone/deployments/test.war/WEB-INF/lib/htmlparser.jar"  does not point to a valid jar for a Class-Path reference.
22:48:24,365 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) Class Path entry activation.jar in "/D:/jboss-as-7.1.1.Final/standalone/deployments/test.war/WEB-INF/lib/mail.jar"  does not point to a valid jar for a Class-Path reference.
22:48:24,372 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) Class Path entry commons-beanutils.jar in "/D:/jboss-as-7.1.1.Final/standalone/deployments/test.war/WEB-INF/lib/struts.jar"  does not point to a valid jar for a Class-Path reference.
22:48:24,374 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) Class Path entry commons-digester.jar in "/D:/jboss-as-7.1.1.Final/standalone/deployments/test.war/WEB-INF/lib/struts.jar"  does not point to a valid jar for a Class-Path reference.
22:48:24,376 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) Class Path entry commons-fileupload.jar in "/D:/jboss-as-7.1.1.Final/standalone/deployments/test.war/WEB-INF/lib/struts.jar"  does not point to a valid jar for a Class-Path reference.
22:48:24,378 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) Class Path entry commons-validator.jar in "/D:/jboss-as-7.1.1.Final/standalone/deployments/test.war/WEB-INF/lib/struts.jar"  does not point to a valid jar for a Class-Path reference.
22:48:24,381 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) Class Path entry jakarta-oro.jar in "/D:/jboss-as-7.1.1.Final/standalone/deployments/test.war/WEB-INF/lib/struts.jar"  does not point to a valid jar for a Class-Path reference.
22:48:25,129 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."test.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."test.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "test.war"
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
    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:895) [rt.jar:1.6.0_43]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [rt.jar:1.6.0_43]
    at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_43]
Caused by: java.lang.RuntimeException: Error getting reflective information for class org.apache.struts.taglib.html.JavascriptValidatorTag with ClassLoader ModuleClassLoader for Module "deployment.test.war:main" from Service Module Loader
    at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
    at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:58)
    at org.jboss.as.(InterceptorAnnotationProcessor.java:85)
    at org.jboss.as.(InterceptorAnnotationProcessor.java:70)
    at org.jboss.as.(InterceptorAnnotationProcessor.java:55)
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
    ... 5 more
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/validator/ValidatorResources
    at java.lang.Class.getDeclaredMethods0(Native Method) [rt.jar:1.6.0_43]
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2436) [rt.jar:1.6.0_43]
    at java.lang.Class.getDeclaredMethods(Class.java:1793) [rt.jar:1.6.0_43]
    at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:65) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
    at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
    ... 10 more
Caused by: java.lang.ClassNotFoundException: org. from [Module "deployment.test.war:main" from Service Module Loader]
    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
    ... 15 more

22:48:25,164 INFO  [org.jboss.as] (MSC service thread 1-6) JBAS015951: Admin console listening on http://127.0.0.1:9998
22:48:25,165 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "test.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"test.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"test.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"test.war\""}}
22:48:25,166 ERROR [org.jboss.as] (MSC service thread 1-6) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 5113ms - Started 140 of 218 services (1 services failed or missing dependencies, 76 services are passive or on-demand)
22:48:25,299 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015877: Stopped deployment test.war in 134ms
22:48:25,301 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777:   Services which failed to start:      service jboss.deployment.unit."test.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."test.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "test.war"

22:48:25,306 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.deployment.unit.\"test.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"test.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"test.war\""}}}}
搜索更多相关主题的帖子: management property version service system 
2014-10-13 23:06
shaw80
Rank: 2
等 级:论坛游民
威 望:1
帖 子:29
专家分:60
注 册:2014-5-31
收藏
得分:0 
项目jar包引入情况:
annotations-api.jar
ant.jar
antlr-2.7.6.jar
aopalliance.jar
asm-2.2.3.jar
c3p0-0.9.0.4.jar
catalina-ant.jar
catalina-ha.jar
catalina-tribes.jar
catalina.jar
cglib-nodep-2.1_3.jar
commons-beanutils-1.8.0.jar
commons-collections.jar
commons-dbcp-1.2.2.jar
commons-fileupload-1.2.2.jar
commons-io-2.0.jar
commons-lang.jar
commons-logging.jar
commons-pool-1.6.jar
DmDialect.jar
DmJdbcDriver.jar
dom4j-1.6.1.jar
ecj-4.2.2.jar
el-api.jar
ezmorph-1.0.6.jar
filterbuilder.jar
freemarker-2.3.8.jar
hibernate3.jar
htmllexer.jar
htmlparser.jar
jasper-el.jar
jasper.jar
jbpm.jar
json-lib-2.2.3-jdk15.jar
jsonplugin-0.32.jar
jstl.jar
jta.jar
juel-engine.jar
juel-impl.jar
log4j-1.2.15.jar
mail.jar
mysql-connector-java-5.1.6-bin.jar
ognl-2.6.11.jar
ojdbc14_g.jar
org.springframework.aop-3.1.0.RELEASE.jar
org.springframework.asm-3.1.0.RELEASE.jar
org.springframework.aspects-3.1.0.RELEASE.jar
org.springframework.beans-3.1.0.RELEASE.jar
org.springframework.context-3.1.0.RELEASE.jar
org.springframework.context.support-3.1.0.RELEASE.jar
org.springframework.core-3.1.0.RELEASE.jar
org.springframework.expression-3.1.0.RELEASE.jar
org.springframework.instrument-3.1.0.RELEASE.jar
org.springframework.instrument.tomcat-3.1.0.RELEASE.jar
org.springframework.jdbc-3.1.0.RELEASE.jar
org.springframework.jms-3.1.0.RELEASE.jar
org.springframework.orm-3.1.0.RELEASE.jar
org.springframework.oxm-3.1.0.RELEASE.jar
org.springframework.spring-library-3.1.0.RELEASE.libd
org.springframework.test-3.1.0.RELEASE.jar
org.springframework.transaction-3.1.0.RELEASE.jar
org.springframework.web-3.1.0.RELEASE.jar
org.springframework.web.portlet-3.1.0.RELEASE.jar
org.springframework.web.servlet-3.1.0.RELEASE.jar
org.springframework.web.struts-3.1.0.RELEASE.jar
poi-3.6-20091214.jar
servlet-api.jar
sitecapturer.jar
struts-taglib-1.3.10.jar
struts.jar
struts2-core-2.0.11.jar
struts2-spring-plugin-2.0.9.jar
thumbelina.jar
tomcat-api.jar
tomcat-coyote.jar
tomcat-dbcp.jar
tomcat-i18n-es.jar
tomcat-i18n-fr.jar
tomcat-i18n-ja.jar
tomcat-jdbc.jar
tomcat-util.jar
tomcat7-websocket.jar
websocket-api.jar
x-map.jar
xml-apis.jar
xwork-2.0.4.jar
xwork-core-2.2.1.jar

由于调试程序的时候用了tomcat,所以jar包里引用了一些tomcat的jar包,也没删除。不知道会不会有什么影响。
2014-10-13 23:23
hhwz
Rank: 13Rank: 13Rank: 13Rank: 13
等 级:贵宾
威 望:87
帖 子:687
专家分:4502
注 册:2011-5-22
收藏
得分:0 
你的tomcat包要加上jboss的jar
2014-10-14 10:24
shaw80
Rank: 2
等 级:论坛游民
威 望:1
帖 子:29
专家分:60
注 册:2014-5-31
收藏
得分:0 
回复 3 楼 hhwz
情况是这样,由于项目的高访问多并发,项目的web服务器打算用JBOSS去做。我们开发过程中,程序都用tomcat去调试。现在项目在tomcat中运行正常,部署到JBOSS上去,启动就出错。
2014-10-14 14:39
shaw80
Rank: 2
等 级:论坛游民
威 望:1
帖 子:29
专家分:60
注 册:2014-5-31
收藏
得分:0 
回复 3 楼 hhwz
你的意思是,在项目的lib中,需要添加JBOSS的jar包么?
2014-10-14 14:42
shaw80
Rank: 2
等 级:论坛游民
威 望:1
帖 子:29
专家分:60
注 册:2014-5-31
收藏
得分:0 
回复 3 楼 hhwz
我在项目中引入了关于JBOSS的几个jar包,jboss-cache.jar、jboss-common.jar、jboss-jmx.jar、jboss-system.jar,启动JBOSS依然报错,控制台异常信息与最开始贴出来的错误信息一模一样。

[ 本帖最后由 shaw80 于 2014-10-14 18:40 编辑 ]
2014-10-14 17:09
szgg520
Rank: 5Rank: 5
等 级:职业侠客
威 望:3
帖 子:79
专家分:307
注 册:2011-6-13
收藏
得分:0 
配置问题

[url=http://www.]深圳复印机出租[/url]
2014-10-15 01:03
hhwz
Rank: 13Rank: 13Rank: 13Rank: 13
等 级:贵宾
威 望:87
帖 子:687
专家分:4502
注 册:2011-5-22
收藏
得分:0 
JBoss核心服务不包括支持servlet/JSP的WEB容器,一般与Tomcat绑定使用。
你是要把tomcat部署的放到JBOSS来运行?
2014-10-15 10:35
shaw80
Rank: 2
等 级:论坛游民
威 望:1
帖 子:29
专家分:60
注 册:2014-5-31
收藏
得分:0 
回复 8 楼 hhwz
是的,目前是这样。之前没接触过JBOSS,只是上网查阅了一些资料。资料说JBOSS支持J2EE,支持热部署,支持集群。而且在JBOSS4.0的版本,就已经把Apache Tomcat内嵌到JBoss中了。我以为JBOSS拿过来,简单配置下环境变量,部署一下war包,就可以直接用了。结果现在启动报错,还搞不懂到底问题出在什么地方。
2014-10-15 12:31
hhwz
Rank: 13Rank: 13Rank: 13Rank: 13
等 级:贵宾
威 望:87
帖 子:687
专家分:4502
注 册:2011-5-22
收藏
得分:20 
你用了jboss的JNDI就要在server下的LIB目录加上对应的JAR包
2014-10-15 15:48
快速回复:java SSH 项目 JBOSS 启动报错
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.037436 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved