Hot deploy ear file in multi maven module

Answered

Hi,

I have a project thats consists of multiple intellij modules. Each IntelliJ Module consists of several maven modules.  After I complie it with maven package The result I have is an .ear file.  Now there is a webgui available within the ear.  I want to hot deploy the whole ear (it only works as an ear)  - so how can I do that. 

To hot deploy a  war is no problem, but if i use the exploded ear, I get error messages.

Thanks for your help

Best regards

Daniel

0
10 comments

What app server do you use? What errors do you get with exploded ear? Is your question about Maven configuration or about IntelliJ IDEA?

0
Avatar
Permanently deleted user

Hi Serge,

it is not a maven problem -it is an IntelliJ Problem.  I want to hot deploy an ear to a wildfly 9 server.  I am able to hot deploy a war file, but no ear.

So how do you hot deploy an ear to wildfly 9 with intellij

Best regards

Daniel

0

Please confirm that Maven builds an exploded ear for you and you can hot deploy it from Maven outside of IntelliJ IDEA.

0
Avatar
Permanently deleted user

I can deploy the ear manually to the local server and it runs.  I have no clue how to deploy an exploded ear to an app server - thats what the ide is for ;).  But deploying the ear manually works.  

0

It may be the server limitation of the server configuration issue. Before blaming the IDE make sure you can do that outside of IDE. IDE cannot do magic in this case, if it cannot be done by the app server, IDE will not help.

1
Avatar
Permanently deleted user

Well I don't blame anyone. I just wanna know how it works. I can do it in eclipse, so I just want to know how it works in intellij. And like I said, it seems to differ from doing a hot deploy of an exploded war.

 

0

Is your project Maven based?

Do you build exploded ear using Maven or using IntelliJ IDEA artifact?

Was this artifact configured automatically when importing the project or did you configure it manually?

What errors do you get when deploying?

0
Avatar
Permanently deleted user

It is a multi module maven project - I use maven to build it.  The resulting ear I can deploy manually to the AppServer.  I created a Run/Debug Configuration with the server and the exploded ear.  Unfortunately I get the errror "Services faild to start: service jboss.deployment.unit."......" POST_MODULE. 

Thats it.

0

What Run/Debug configuration do you use? What artifacts does it deploy (deployment tab), how are these artifacts configured in IDEA, as external source built by Maven or as artifacts that are built by the IDE? If the latter, were these artifacts configured automatically when importing from Maven or did you configure them manually?

Answers to these questions are essential to understand the problem, since there are known issues with importing Maven projects and configuring EAR artifacts:

https://youtrack.jetbrains.com/issue/IDEA-141588
https://youtrack.jetbrains.com/issue/IDEA-95695
https://youtrack.jetbrains.com/issue/IDEA-26178
https://youtrack.jetbrains.com/issue/IDEA-109877
https://youtrack.jetbrains.com/issue/IDEA-110315
https://youtrack.jetbrains.com/issue/IDEA-119933
https://youtrack.jetbrains.com/issue/IDEA-114155

If you configure it to deploy from the external source and specify the location where Maven builds the exploded ear, it should work despite the issues above.

0
Avatar
Permanently deleted user

Thanks a lot - I keep you guys updated on the progress

0

Please sign in to leave a comment.