Packaging a Grails app onto a JavaEE Project

View: New views
3 Messages — Rating Filter:   Alert me  

Packaging a Grails app onto a JavaEE Project

by Guilherme Barile :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello
        We're starting a new Java EE Application and among many modules,  
there will be a Grails based web application. We created a new Java EE  
Project on Netbeans with our EJBs and then a new Grails project.  
Unfortunately, we didn't find out how to add the grails .war file to  
the .ear package (main project). Maybe we'll need some ant-hacking.

Any ideas ?

Thanks in advance

Guilherme Barile

Re: Packaging a Grails app onto a JavaEE Project

by Istvan Devai :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Guilherme :)

I've not done this, but if your rails project is a simple war, then you
just need it to add to the "modules" section of your EAR project.

Regards,
Istvan

Guilherme Barile wrote:

> Hello
>     We're starting a new Java EE Application and among many modules,
> there will be a Grails based web application. We created a new Java EE
> Project on Netbeans with our EJBs and then a new Grails project.
> Unfortunately, we didn't find out how to add the grails .war file to
> the .ear package (main project). Maybe we'll need some ant-hacking.
>
> Any ideas ?
>
> Thanks in advance
>
> Guilherme Barile
>
>


Re: Packaging a Grails app onto a JavaEE Project

by Guilherme Barile :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Unfortunatelly, netbeans doesn't treat grails apps as web  
applications, what makes impossible to reference another project (ejbs  
and such) without replicating the jars on every project (grails  
projects have a dedicated "lib" folder with won't get updated when the  
other projects gets rebuilt).

Maybe if there was a way to add the grails libraries to an existing  
(netbeans-managed) web project it would work.


thanks

gui

On Jul 1, 2009, at 6:01 PM, Istvan Devai wrote:

> Hi Guilherme :)
>
> I've not done this, but if your rails project is a simple war, then  
> you just need it to add to the "modules" section of your EAR project.
>
> Regards,
> Istvan
>
> Guilherme Barile wrote:
>> Hello
>>    We're starting a new Java EE Application and among many modules,  
>> there will be a Grails based web application. We created a new Java  
>> EE Project on Netbeans with our EJBs and then a new Grails project.  
>> Unfortunately, we didn't find out how to add the grails .war file  
>> to the .ear package (main project). Maybe we'll need some ant-
>> hacking.
>>
>> Any ideas ?
>>
>> Thanks in advance
>>
>> Guilherme Barile
>>
>>
>