WebApp war file

Does IDEA only create a .war file only when associated with a J2EE module? I cant seem to get IDEA to create it any other way.

7 comments
Comment actions Permalink

War files are only for J2EE. Are you trying to have it jar up your code?

If so, there is no capability, but there have been numerous discussions
and SCRs filed. Still to no avail.

Norris Shelton
Sun Certified Java Programmer




Michael Garza wrote:

>Does IDEA only create a .war file only when associated with a J2EE module? I cant seem to get IDEA to create it any other way.

>

0
Comment actions Permalink

Well there are some app servers that allow you to deploy both "WAR" and "EAR" files. So is it really necessary to create another module to deploy a simple WAR file? Why cant I just do it from the "WebApp" module?

0
Comment actions Permalink

Hi,

For web modules J2EE build module settings in Path dialog has an option
to build war file.

Michael Garza wrote:

Well there are some app servers that allow you to deploy both "WAR" and "EAR" files. So is it really necessary to create another module to deploy a simple WAR file? Why cant I just do it from the "WebApp" module?



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Yes, this I understand. But the question is....

Can I build the war file and deploy it without having to create a J2EE module? It is just a simple set of JSP pages and a servlet class. Do I really have to create another module for it? Is this really necessary?

0
Comment actions Permalink

Oh one more thing. If you are talking about "J2EE Build Settings" in the WebApps settings dialog. There is a section there that says "Create web module jar file." I do in fact have this checked. However, IDEA never creates the file that I have specified in the path. But on another project I have a webapp and a J2EE module and everything works fine.

0
Comment actions Permalink

You got me lost here Michael. What do you mean another module?

Do you already have ONE webapp module? If so, does it contain the JSP and
servlet and web.xml files? If so why can you not generate a war file from
that module? Just check off the box which says to generate a war file in
the j2ee deployment preferences in Paths.

R


On 6/21/04 2:37 PM, in article
22621461.1087843025702.JavaMail.itn@is.intellij.net, "Michael Garza"
<no_mail@jetbrains.com> wrote:

Yes, this I understand. But the question is....

Can I build the war file and deploy it without having to create a J2EE module?
It is just a simple set of JSP pages and a servlet class. Do I really have to
create another module for it? Is this really necessary?


0
Comment actions Permalink

I have only a single Web module in my application, but want to generate a WAR file through the interface (I currently do it with an Ant build file). So I checked the "Create web module jar file" option in the J2EE Build Settings dialog (even though I don't have a J2EE module).

But when I try to build my code, it creates a jar file, which proceeds to fill up with GIGABYTES of information and slow my machine to a crawl. Has anyone else seen this behavior?

0

Please sign in to leave a comment.