Objectmix
Tags Register Mark Forums Read

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 ...


Object Mix > Framework and Interface Programming > J2EE > How To Deploy 3rd Party WAR File As Web Facet

J2EE J2EE, Java 2 Enterprise edition forum discussing the various frameworks, components and tools that make up J2EE

Reply

 

LinkBack Thread Tools
  #1  
Old 04-28-2008, 03:05 PM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default How To Deploy 3rd Party WAR File As 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.
  #2  
Old 04-29-2008, 03:37 AM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: How To Deploy 3rd Party WAR File As Web Facet

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  
Old 04-29-2008, 08:26 AM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: How To Deploy 3rd Party WAR File As Web Facet

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, %
Reply

Thread Tools



All times are GMT -5. The time now is 01:05 AM.

Managed by Infnx Pvt Ltd.