How To Deploy 3rd Party WAR File As Web Facet : J2EE
This is a discussion on How To Deploy 3rd Party WAR File As Web Facet within the J2EE forums in Framework and Interface Programming category; I'm working with a Java EE application that has source code for two separate web facets. Building and deploying these is no issue. However, there's another WAR file that is intended to be deployed as part of the Java EE application that has no source code, just a .war file. I've never had to deploy such a thing in IntelliJ before. If I create a new web facet, how do I point IntelliJ to use the existing WAR file? Please advise. I'll apologize in advance if this is trivial. I'm just so used to working with source code that I'm ...
| J2EE J2EE, Java 2 Enterprise edition forum discussing the various frameworks, components and tools that make up J2EE |
![]() |
| | LinkBack | Thread Tools |
|
#1
| |||
| |||
| However, there's another WAR file that is intended to be deployed as part of the Java EE application that has no source code, just a .war file. I've never had to deploy such a thing in IntelliJ before. If I create a new web facet, how do I point IntelliJ to use the existing WAR file? Please advise. I'll apologize in advance if this is trivial. I'm just so used to working with source code that I'm having trouble wrapping my head around it. Thank you. |
|
#2
| |||
| |||
| Now there is no way to directly pack WAR file into your Web facet. However you can unpack WAR, create a separate Web facet (and module) for it, add libraries from WAR as a module libraries and add unpacked WAR directory a WEB resource directory to the Web facet. > I'm working with a Java EE application that has source code for two separate web facets. Building and deploying these is no issue. > > However, there's another WAR file that is intended to be deployed as part of the Java EE application that has no source code, just a .war file. > > I've never had to deploy such a thing in IntelliJ before. If I create a new web facet, how do I point IntelliJ to use the existing WAR file? Please advise. I'll apologize in advance if this is trivial. I'm just so used to working with source code that I'm having trouble wrapping my head around it. Thank you. -- Nikolay Chashnikov Software Developer JetBrains, Inc http://www.jetbrains.com "Develop with pleasure!" |
|
#3
| |||
| |||
| Thank you, Nikolay, I came to exactly that conclusion this morning. There isn't any source in the WAR, just WEB-INF/classes with compiled code underneath it. I had to add that directory as a dependency. Looks like everything is building just fine now. Thanks so much for your kind attention. Sincerely, % |


