I can not deploy ear project on Jboss 7.2 with Intellij > FileNotFoundException .ear

Answered

Environment:

  • IntelliJ 2020.3 Ultimate
  • Openjdk 11.0.5
  • Jboss 7.2

I am deploying ear exploded into Jboss 7.2.

The project compile without errors and it can be deploy manually on Jboss 7.2 and it works well, but when I try to deploy with IntelliJ I get this error:

07:59:12,802 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit."accfor2.ear".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."accfor2.ear".STRUCTURE: WFLYSRV0153: Error al procesar la fase STRUCTURE de deployment "accfor2.ear"
at org.jboss.as.server@6.0.11.Final-redhat-00001//org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:151)
at org.jboss.msc@1.4.5.Final-redhat-00001//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1738)
at org.jboss.msc@1.4.5.Final-redhat-00001//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1700)
at org.jboss.msc@1.4.5.Final-redhat-00001//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1558)
at org.jboss.threads@2.3.2.Final-redhat-1//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads@2.3.2.Final-redhat-1//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
at org.jboss.threads@2.3.2.Final-redhat-1//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
at org.jboss.threads@2.3.2.Final-redhat-1//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYSRV0160: No logró montar el contenido de la implementación
at org.jboss.as.server@6.0.11.Final-redhat-00001//org.jboss.as.server.deployment.module.DeploymentRootMountProcessor.deploy(DeploymentRootMountProcessor.java:95)
at org.jboss.as.server@6.0.11.Final-redhat-00001//org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:144)
... 8 more
Caused by: java.io.FileNotFoundException: C:\desarrollo\workspace\accfor2\accfor\accfor-ear\target\accfor2.ear (El sistema no puede encontrar el archivo especificado)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
at org.jboss.vfs@3.2.14.Final-redhat-00001//org.jboss.vfs.spi.RootFileSystem.openInputStream(RootFileSystem.java:51)
at org.jboss.vfs@3.2.14.Final-redhat-00001//org.jboss.vfs.VirtualFile.openStream(VirtualFile.java:318)
at org.jboss.vfs@3.2.14.Final-redhat-00001//org.jboss.vfs.VFS.mountZip(VFS.java:410)
at org.jboss.as.server@6.0.11.Final-redhat-00001//org.jboss.as.server.deployment.DeploymentMountProvider$Factory$ServerDeploymentRepositoryImpl.mountDeploymentContent(DeploymentMountProvider.java:106)
at org.jboss.as.server@6.0.11.Final-redhat-00001//org.jboss.as.server.deployment.module.DeploymentRootMountProcessor.deploy(DeploymentRootMountProcessor.java:91)
... 9 more

Any idea what could it be?

I am having may problems any time I update Intellj to a new version.

 

0
3 comments

Hello,

Do you use any antivirus software or data protection tool? Is it reproducible with new sample project?

0

Yes, I use antivirus but the project was working until I updated IntelliJ to the last version.
Now I came back to version 2020.3 to make it work but no way to make it work completely.

Intellij is looking for accfor2.ear in target folder but when we compile from maven (intellij) it only generates a folder called accfor2 inside target, not accfor2.ear. When I compile through external mvn package it deploy well but I can not do hot deploy.

I wouldn't know how to generate a new project to reproduce this error because is a big project.

Is there anything else we can try?

0

Do you have EAR artifact configured in "Project Structure | Artifacts"?

0

Please sign in to leave a comment.