JBOSS throws exception on startup - jboss

I'm starting jboss server through CLI in windows 7. Initially it was starting but then I wrote java code for sending messages to learn JMS. After that I'm getting below exceptions. Could anyone please help me in resolving this.
Note: I've removed java file(Consumer.java) from my system, still somehow exception shows it's referring to my java file.
17:52:18,845 INFO [org.jboss.as.deployment.connector] (MSC service thread 1-7) JBAS010401: Bound JCA ConnectionFactory [java:/JmsXA]
17:52:18,902 INFO [org.jboss.as.messaging] (MSC service thread 1-8) JBAS011601: Bound messaging object to jndi name java:/topic/test
17:52:19,270 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015876: Starting deployment of "Consumer.java"
17:52:19,318 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC00001: Failed to start service jboss.deployment.unit."Consumer.java".STRUCTURE
: org.jboss.msc.service.StartException in service jboss.deployment.unit."Consumer.java".STRUCTURE: Failed to process phase STRUCTURE of deployment "Consumer.java"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Fin
al]
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.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_40]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_40]
at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_40]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Failed to mount deployment content
at org.jboss.as.server.deployment.module.DeploymentRootMountProcessor.deploy(DeploymentRootMountProcessor.java:91) [jboss-as-server-7.1.1.Final.ja
r:7.1.1.Final]
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Fin
al]
... 5 more
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method) [rt.jar:1.7.0_40]
at java.util.zip.ZipFile.<init>(ZipFile.java:215) [rt.jar:1.7.0_40]
at java.util.zip.ZipFile.<init>(ZipFile.java:145) [rt.jar:1.7.0_40]
at java.util.jar.JarFile.<init>(JarFile.java:153) [rt.jar:1.7.0_40]
at java.util.jar.JarFile.<init>(JarFile.java:117) [rt.jar:1.7.0_40]
at org.jboss.vfs.spi.JavaZipFileSystem.<init>(JavaZipFileSystem.java:97) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
at org.jboss.vfs.spi.JavaZipFileSystem.<init>(JavaZipFileSystem.java:83) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
at org.jboss.vfs.VFS.mountZip(VFS.java:408) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
at org.jboss.vfs.VFS.mountZip(VFS.java:434) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
at org.jboss.as.server.deployment.DeploymentMountProvider$Factory$ServerDeploymentRepositoryImpl.mountDeploymentContent(DeploymentMountProvider.ja
va:95) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.deployment.module.DeploymentRootMountProcessor.deploy(DeploymentRootMountProcessor.java:87) [jboss-as-server-7.1.1.Final.ja
r:7.1.1.Final]
... 6 more
17:52:19,488 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "Consumer.java" was rolled back with failure mes
sage {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"Consumer.java\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.depl
oyment.unit.\"Consumer.java\".STRUCTURE: Failed to process phase STRUCTURE of deployment \"Consumer.java\""}}
17:52:19,492 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment Consumer.java in 4ms
17:52:19,517 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."Consumer.java".STRUCTURE: org.jboss.msc.service.StartException in servic
e jboss.deployment.unit."Consumer.java".STRUCTURE: Failed to process phase STRUCTURE of deployment "Consumer.java"
17:52:19,529 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
17:52:19,544 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.\"Consumer.java\".STRUCTURE" => "org.jboss.msc.ser
vice.StartException in service jboss.deployment.unit.\"Consumer.java\".STRUCTURE: Failed to process phase STRUCTURE of deployment \"Consumer.java\""}}}}
17:52:19,550 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 5704ms - Started 171 of 251
services (1 services failed or missing dependencies, 78 services are passive or on-demand)
Thanks in advance.

I've come across this problem when deploying an ear file that contained an empty jar (view the contents and order by size). Check your ear file for an empty jar, if it contains one remove it.
Regards,
Saz

Related

Error Failed to process phase POST_MODULE of deployment while updating from jboss6 to wildfly15

While upgrading from jboss6 to wildfly15 and from java6 to java8 in jsf project with hibernate ORM i faced some issues we solved it but we have another one
4:34:43,718 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit."nts.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."nts.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "nts.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:151)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1738)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1700)
at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1558)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1364)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: java.lang.ClassNotFoundException: com.sun.xml.ws.transport.http.servlet.WSServlet from [Module "deployment.nts.war" from Service Module Loader]
at org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.checkDeclaredApplicationClassAsServlet(JaxrsScanningProcessor.java:437)
at org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.scanWebDeployment(JaxrsScanningProcessor.java:278)
at org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.deploy(JaxrsScanningProcessor.java:109)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:144)
... 8 more
Caused by: java.lang.ClassNotFoundException: com.sun.xml.ws.transport.http.servlet.WSServlet from [Module "deployment.nts.war" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:255)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
at org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.checkDeclaredApplicationClassAsServlet(JaxrsScanningProcessor.java:435)
... 11 more
14:35:07,319 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "nts.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"nts.war\".POST_MODULE" => "WFLYSRV0153: Failed to process phase POST_MODULE of deployment \"nts.war\"
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: java.lang.ClassNotFoundException: com.sun.xml.ws.transport.http.servlet.WSServlet from [Module \"deployment.nts.war\" from Service Module Loader]
Caused by: java.lang.ClassNotFoundException: com.sun.xml.ws.transport.http.servlet.WSServlet from [Module \"deployment.nts.war\" from Service Module Loader]"}}
14:35:07,361 INFO [org.jboss.as.server] (ServerService Thread Pool -- 43) WFLYSRV0010: Deployed "nts.war" (runtime-name : "nts.war")
14:35:07,373 INFO [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
WFLYCTL0186: Services which failed to start: service jboss.deployment.unit."nts.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "nts.war"
14:35:07,483 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server
14:35:07,488 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management
14:35:07,489 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990
14:35:07,490 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: WildFly Full 15.0.1.Final (WildFly Core 7.0.0.Final) started (with errors) in 70466ms - Started 372 of 583 services (1 services failed or missing dependencies, 324 services are lazy, passive or on-demand)
14:35:08,034 INFO [org.jboss.as.protocol] (management I/O-1) WFLYPRT0057: cancelled task by interrupting thread Thread[management-handler-thread - 1,5,management-handler-thread]
The root cause of the deployment is following exception
java.lang.ClassNotFoundException:
com.sun.xml.ws.transport.http.servlet.WSServletContextListener
I'm assuming you are deploying a JAX-WS web service and JAX-WS dependency library jaxws-rt.jar is missing. TO solve the issue download JAX-WS RI distribution,
unzip it and copy jaxws-rt.jar to your classpath.

Deploying application in Jboss AS 7.1 with JDK 7 getting Error as "MSC00001: Failed to start service jboss.web.deployment.default-host./"

08:49:26,415 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.web.deployment.default-host./: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./: Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_80]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_80]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_80]
Caused by: java.lang.IllegalArgumentException: Child container with name already exists
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:804)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:792)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:356)
at org.jboss.as.web.deployment.WebContextInjector.inject(WebContextInjector.java:62)
at org.jboss.as.web.deployment.WebContextInjector.inject(WebContextInjector.java:38)
at org.jboss.msc.inject.CastingInjector.inject(CastingInjector.java:55) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl.doInject(ServiceControllerImpl.java:1549) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl.access$1900(ServiceControllerImpl.java:49) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.performInjections(ServiceControllerImpl.java:1780) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1741) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
... 3 more
08:49:26,631 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "SampleApp.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./: Failed to start service"}}
08:49:26,706 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment SampleApp.war in 75ms
08:49:26,707 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.web.deployment.default-host./: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./: Failed to start service
08:49:26,709 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./" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./: Failed to start service"}}}}
The issue was resolved. Thanks Aaron and James. Added in jboss-web.xml file
/ which resolved the issue.

FTP: I don't get to connect Ftp File with SwithYard ERROR Failed to start service SwitchYardService: host must be specified and not empty

17:16:56,767 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC00001: Failed to start service jboss.deployment.unit."intercard-esb.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."intercard-esb.jar".SwitchYardService: org.switchyard.exception.SwitchYardException: java.lang.IllegalArgumentException: host must be specified and not empty
at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:85)
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.runWorker(Unknown Source) [rt.jar:1.7.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_45]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_45]
Caused by: org.switchyard.exception.SwitchYardException: java.lang.IllegalArgumentException: host must be specified and not empty
at org.switchyard.component.camel.common.handler.InboundHandler.<init>(InboundHandler.java:77)
at org.switchyard.component.camel.common.deploy.BaseBindingActivator.createInboundHandler(BaseBindingActivator.java:71)
at org.switchyard.component.camel.common.deploy.BaseBindingActivator.activateBinding(BaseBindingActivator.java:63)
at org.switchyard.deploy.internal.Deployment.deployServiceBindings(Deployment.java:515)
at org.switchyard.deploy.internal.Deployment.start(Deployment.java:141)
at org.switchyard.as7.extension.deployment.SwitchYardDeployment.start(SwitchYardDeployment.java:106)
at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:78)
... 5 more
Caused by: java.lang.IllegalArgumentException: host must be specified and not empty
at org.apache.camel.util.ObjectHelper.notEmpty(ObjectHelper.java:319)
at org.apache.camel.component.file.remote.RemoteFileEndpoint.afterPropertiesSet(RemoteFileEndpoint.java:119)
at org.apache.camel.component.file.remote.RemoteFileEndpoint.createConsumer(RemoteFileEndpoint.java:86)
at org.apache.camel.component.file.remote.RemoteFileEndpoint.createConsumer(RemoteFileEndpoint.java:34)
at org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:65)
at org.apache.camel.impl.DefaultRoute.onStartingServices(DefaultRoute.java:80)
at org.apache.camel.impl.RouteService.warmUp(RouteService.java:133)
at org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:1971)
at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:1899)
at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:1921)
at org.apache.camel.impl.DefaultCamelContext.startRouteService(DefaultCamelContext.java:1803)
at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:724)
at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1779)
at org.apache.camel.impl.DefaultCamelContext.addRouteDefinitions(DefaultCamelContext.java:666)
at org.apache.camel.impl.DefaultCamelContext.addRouteDefinition(DefaultCamelContext.java:671)
at org.switchyard.component.camel.common.handler.InboundHandler.<init>(InboundHandler.java:75)
... 11 more
17:16:56,790 INFO [org.jboss.as] (MSC service thread 1-7) JBAS015951: Admin console
17:16:56,791 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "intercard-esb.jar" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"intercard-esb.jar\".SwitchYardService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"intercard-esb.jar\".SwitchYardService: org.switchyard.exception.SwitchYardException: java.lang.IllegalArgumentException: host must be specified and not empty"}}
17:16:56,792 ERROR [org.jboss.as] (MSC service thread 1-7) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 4281ms - Started 184 of 261 services (1 services failed or missing dependencies, 76 services are passive or on-demand)
17:16:56,795 INFO [org.jboss.weld.deployer] (MSC service thread 1-8) JBAS016009: Stopping weld service for deployment intercard-esb.jar
17:16:56,806 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015877: Stopped deployment intercard-esb.jar in 13ms
17:16:56,808 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."intercard-esb.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."intercard-esb.jar".SwitchYardService: org.switchyard.exception.SwitchYardException: java.lang.IllegalArgumentException: host must be specified and not empty
17:16:56,812 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.\"intercard-esb.jar\".SwitchYardService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"intercard-esb.jar\".SwitchYardService: org.switchyard.exception.SwitchYardException: java.lang.IllegalArgumentException: host must be specified and not empty"}}}}
Is this a polling consumer? Typically this means that the URL you have specified has an error in it. For example, in you are consuming from an FTP site, you could have be missing a slash like:
sftp://myhost.com:22somefolder
In this case above a slash is missing:
sftp://myhost.com:22/myfolder
What is the endpoint causing the issue?
This specific problem might be due to multiple reasons.
Please check end point very carefully that there is no trailing space
sftp://my.host.com:22 /sftpdirectory (There is space between port 22 and /sftpdirectory, please remove the sapce)
or
sftp://my.host.com :22/sftpdirectory (There is space between my.host.com and port 22 , please remove the sapce)
The possibility of having the above space due to trailing space in the value of configured property

Migration from Tomcat 7 to JBoss7.1

Previously I was working on an application which is running on Tomcat 7 server but now I wan to run it on JBoss7.1 Server . But when I am trying to run it. It is showing me this kind of error. I am not getting what is it and how to resolve it. I searched on internet but could not find valuable response.
My log on JBoss is:
09:52:08,117 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "WEB-ERP.war"
09:52:12,994 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."WEB-ERP.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."WEB-ERP.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "WEB-ERP.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.runWorker(Unknown Source) [rt.jar:1.7.0_12-ea]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_12-ea]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_12-ea]
Caused by: java.lang.RuntimeException: Error getting reflective information for class org.apache.struts.taglib.logic.ConditionalTagBase with ClassLoader ModuleClassLoader for Module "deployment.WEB-ERP.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.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:85)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:70)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(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: Lorg/apache/struts/util/MessageResources;
at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.7.0_12-ea]
at java.lang.Class.privateGetDeclaredFields(Unknown Source) [rt.jar:1.7.0_12-ea]
at java.lang.Class.getDeclaredFields(Unknown Source) [rt.jar:1.7.0_12-ea]
at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57) [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.apache.struts.util.MessageResources from [Module "deployment.WEB-ERP.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.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
... 15 more
09:52:13,053 INFO [org.jboss.as] (MSC service thread 1-2) JBAS015951: Admin console listening on http://127.0.0.1:9990
09:52:13,055 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "WEB-ERP.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"WEB-ERP.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"WEB-ERP.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"WEB-ERP.war\""}}
09:52:13,056 ERROR [org.jboss.as] (MSC service thread 1-2) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 10052ms - Started 140 of 218 services (1 services failed or missing dependencies, 76 services are passive or on-demand)
09:52:13,107 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment WEB-ERP.war in 51ms
09:52:13,110 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."WEB-ERP.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."WEB-ERP.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "WEB-ERP.war"
09:52:13,116 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.\"WEB-ERP.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"WEB-ERP.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"WEB-ERP.war\""}}}}
And the error message I am getting is The requested resource (/StrutsHelloWorld/) is not available. And I am working on Struts 2 & Hibernate 4 Integration application which is working fine on Tomcat.
You are missing the Struts classes: they were probably in the Tomcat class path. You should make sure the Struts libraries are added to your WAR file.
The project has classpath dependency to the Struts1 libraries. You should either include Struts1 libraries or exclude dependencies that reference to org.apache.struts.util.MessageResources. This class is found in the following jar:
struts-core-1.3.10.jar

JBOSS 7.1: Adding Primefaces support prevents deployment

When I add the PrimeFaces jar to a typical Dynamic Web Project in Eclipse, I get the following error:
15:44:40,338 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) JBAS015003: Found FileUploadTest.war in deployment directory. To trigger deployment create a file called FileUploadTest.war.dodeploy
15:44:40,338 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "FileUploadTest.war"
15:44:40,339 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."FileUploadTest.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."FileUploadTest.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "FileUploadTest.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.0.Final.jar:7.1.0.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(Unknown Source) [rt.jar:1.6.0_35]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.6.0_35]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_35]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011093: Could not load component class org.primefaces.webapp.filter.FileUploadFilter
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:113)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:54)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
... 5 more
Caused by: java.lang.ClassNotFoundException: org.primefaces.webapp.filter.FileUploadFilter from [Module "deployment.FileUploadTest.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.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:111)
... 7 more
15:44:40,386 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS015870: Deploy of deployment "FileUploadTest.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"FileUploadTest.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"FileUploadTest.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"FileUploadTest.war\""}}
15:44:40,402 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."FileUploadTest.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."FileUploadTest.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "FileUploadTest.war"
15:44:40,402 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"FileUploadTest.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"FileUploadTest.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"FileUploadTest.war\""}}}}
15:44:40,417 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment FileUploadTest.war in 9ms
I've added commons-fileupload-1.2.1.jar as well as commons-io-1.4.jar. No idea what the problem could be. I've also referred to Error deploying Primefaces application on JBoss 7.1.0 and tried adding the "context-param" value to web.xml but to no avail.
I figured out what I was doing wrong. I was adding the JAR files(primefaces, commons-fileupload-1.2.1 and commons-io-1.4) by doing
Right click project->Build Path->Configure Build Path->Java Build Path and adding the JAR's there.
I needed to add them in ...->Configure Build Path->Deployment Assembly instead.
I guess I need to learn how to Eclipse :)