Java modules in enterprise app

I can't figure out how to deploy java modules along with my ear file. In my enterprise application modules, on the Java EE Application Module Settings, I see where I can pick whether or not to package up my other ejb or web modules. But it doesn't have anywhere to pick the regular java modules in the project.

Right now, we have to build and deploy with Ant, because we can do the following:
Project Project-ejb.jar Project-web.war Project Project-interfaces.jar * ProjectSupport1.jar ProjectSupport2.jar * ]]>

Is there any way I can get those ]]> modules deploying in IDEA?

Tobin

3 comments

Hello Tobin,

You can package your java modules in web or ejb module with "Packaging Method"
set to "JAR module, link via manifest and copy to". In that case jar-files
for java modules will be packed in ear-file.

I can't figure out how to deploy java modules along with my ear file.
In my enterprise application modules, on the Java EE Application
Module Settings, I see where I can pick whether or not to package up
my other ejb or web modules. But it doesn't have anywhere to pick the
regular java modules in the project.

Right now, we have to build and deploy with Ant, because we can do the
following:
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee > http://java.sun.com/xml/ns/javaee/application_5.xsd" > version="5"> > Project > > Project-ejb.jar > > > > Project-web.war > Project > > > > Project-interfaces.jar > > * > ProjectSupport1.jar > > > ProjectSupport2.jar > * > > ]]>

Is there any way I can get those <java> modules deploying in IDEA?

Tobin




0

Thanks for the reply, Nikoly. I'm still having a problem.



When I go and look at my /private/tmp directory, there is no webExplodedDir52367tmp. I then deleted everything in this tmp directory. When I did a rebuild, IDEA created a new directory webExplodedDir52316tmp, but I got the same error about 52367 not existing. Why does IDEA think that this 52367 directory exists?

Tobin

0

Hello Tobin,

Try to set "Create exploded directory" checkbox for your Web Module (Project
Roots | ]]> | "JavaEE Build Settings" tab).

Thanks for the reply, Nikoly. I'm still having a problem.

> Error:Error copying '/private/tmp/webExplodedDir52367tmp' to > '/Applications/JBoss-4.0.5/server/default/deploy/Project-app.ear/Proje > ct-interfaces.jar'.: /private/tmp/webExplodedDir52367tmp (No such file > or directory) > > ]]>

When I go and look at my /private/tmp directory, there is no
webExplodedDir52367tmp. I then deleted everything in this tmp
directory. When I did a rebuild, IDEA created a new directory
webExplodedDir52316tmp, but I got the same error about 52367 not
existing. Why does IDEA think that this 52367 directory exists?

Tobin




0

Please sign in to leave a comment.