Failed to process the deployment structure phase

I read in other topics, but I cannot understand it. I have an EJB module that uses log4j. I want to pack this EJB in a JAR file and put the path to the web project in WEB-INF / lib. The web project has a servlet that performs the function from EJB and what it is. But it seems that the application does not work because the file was created but not written.

I read that the deployment descriptor for JBoss, so I created it based on one of the previous posts. But I get the error "Failed to process the deployment STRUCTURE phase."

12: 04: 44,905 ERROR [org.jboss.msc.service.fail] (MSC 1-2 service flow) MSC00001: The jboss.deployment.unit service could not be started. "SampleWeb.war" .STRUCTURE: org. jboss.msc.service.StartException in the jboss.deployment.unit service. "SampleWeb.war" .STRUCTURE: Failed to process the phase "SampleWeb.war" deployment structure 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] in java.util.concurrent.ThreadPoolExecutor. runWorker (Unknown source) [rt.jar: 1.7.0_21] in java.util.concurrent.ThreadPoolExecutor $ Worker.run (Unknown source) [rt.jar: 1.7.0_21] in java.lang.Thread.run (Unknown source ) [rt.jar: 1.7.0_21] Called: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Sub deploy Sampl eEJB.jar in jboss-structure.xml not found. Available helper deployments: at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.subDeploymentNotFound (DeploymentStructureDescriptorParser.java:233) [jboss-as-server-7.1.1.Final.jar: 7.1.1.Final on org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.deploy (DeploymentStructureDescriptorParser.java:159) [jboss-as-server-7.1.1.Final.jar: 7.1.1.Final] on org.jboss .as.server.deployment.DeploymentUnitPhaseService.start (DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar: 7.1.1.Final] ... 5 more

This is where jboss-deployment-structure.xml is created. Since the web project uses only the created EJB jar file, I assumed that the deployment tag is not used.

<?xml version="1.0" encoding="UTF-8"?> <jboss-deployment-structure> <sub-deployment name="SampleEJB.jar"> <exclusions> <module name="org.apache.log4j"/> <module name="org.slf4j" /> <module name="org.apache.commons.logging"/> <module name="org.log4j"/> <module name="org.jboss.logging"/> </exclusions> </sub-deployment> </jboss-deployment-structure> 

I am using JBoss 7.1.1, by the way.

+6
source share
2 answers

org.jboss.as.server.deployment.DeploymentUnitProcessingException: SampleEJB.jar auxiliary deployment in jboss-structure.xml not found.

It seems that SampleEJB.jar is not deployed yet. Create a deployment structure file to deploy components in order.

+1
source

It seems that a problem with eclipse can happen if the dependent ear project is not built correctly .

In my case, I got the same error so that the ear could not find one included jar of addiction. Just check this dependent project and check its target directory, where maven creates the jar after creating the project. It would be empty if maven would not build this project correctly. Create this dependent project separately using "mvn install", and then try deploying the ear to your server. It worked for me.

+1
source

All Articles