NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Deploying maven generated ear into GlassFish

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
pjlehtim



Joined: 15 Oct 2008
Posts: 1

PostPosted: Wed Oct 15, 2008 9:27 am    Post subject: Deploying maven generated ear into GlassFish Reply with quote

I'm using NetBeans 6.1 and maven to generate ear package from maven project modules. The packaging works fine with Codehaus' mevenide but the deployment fails. The mevenide runs "package org.codehaus.mevenide:netbeans-deploy-plugin:1.2.4:deploy" goals when I use "run" from the ear project. The package is then deplyed into GlassFish but as an webmodule instead of enterprise application.
If I manually depoly the ear package to GlassFish it works but the mevenide deploy fails because the application is ends up into the "Web applications" instead of "Enterprise applications".

I don't know how to fix this. I need to run the ear app from NetBeans to enable debugging.

Any ideas?

Thanks!

-PJ
Back to top
Wouter van Reeven
Posted via mailing list.





PostPosted: Wed Oct 15, 2008 10:04 am    Post subject: Deploying maven generated ear into GlassFish Reply with quote

Hi PJ,

On Wed, Oct 15, 2008 at 09:27:09AM +0000, pjlehtim wrote:
Quote:
I'm using NetBeans 6.1 and maven to generate ear package from maven project modules. The packaging works fine with Codehaus' mevenide but the deployment fails. The mevenide runs "package org.codehaus.mevenide:netbeans-deploy-plugin:1.2.4:deploy" goals when I use "run" from the ear project. The package is then deplyed into GlassFish but as an webmodule instead of enterprise application.

If I manually depoly the ear package to GlassFish it works but the mevenide deploy fails because the application is ends up into the "Web applications" instead of "Enterprise applications".

I don't know how to fix this. I need to run the ear app from NetBeans to enable debugging.

CC-ing the mevenide-users list.


Greets, Wouter van Reeven

--

People: "If she weighs the same as a Duck, she's made of wood!"
Sir Bedevere: "And therefore...?"
Back to top
Andreas Loew
Posted via mailing list.





PostPosted: Wed Oct 15, 2008 10:18 am    Post subject: Deploying maven generated ear into GlassFish Reply with quote

While I cannot comment on the Mevenide issue, you can still deploy your
EAR app "by hand", set up Glassfish to allow remote debugging (note the
port number), and connect the NB debugger to your Glassfish JVM.

This approach works fine for me.

HTH & best regards,

Andreas


Wouter van Reeven schrieb:

Quote:
On Wed, Oct 15, 2008 at 09:27:09AM +0000, pjlehtim wrote:
Quote:
I'm using NetBeans 6.1 and maven to generate ear package from maven project modules. The packaging works fine with Codehaus' mevenide but the deployment fails. The mevenide runs "package org.codehaus.mevenide:netbeans-deploy-plugin:1.2.4:deploy" goals when I use "run" from the ear project. The package is then deplyed into GlassFish but as an webmodule instead of enterprise application.

If I manually depoly the ear package to GlassFish it works but the mevenide deploy fails because the application is ends up into the "Web applications" instead of "Enterprise applications".

I don't know how to fix this. I need to run the ear app from NetBeans to enable debugging.

CC-ing the mevenide-users list.

--
Andreas Loew
Java Architect
Sun Microsystems (Germany)
Back to top
egiardina



Joined: 19 Nov 2008
Posts: 1

PostPosted: Wed Nov 19, 2008 9:09 pm    Post subject: Reply with quote

I am experiencing the same issue. When I use the "Run" command from a Maven2 project within NB6.5 I get the ear deployed as a war app in GFV2. Does anyone know how to configure the "Run" command for Maven2 type projects? I would also like to know how to deploy a enterprise app efficiently using NB6.5 and Maven 2. Similar to the deploy on save feature for NB-based projects. Basically I want to deploy the ear, make some changes to a .jsp or .class and see the changes without the wait of a full redeploy. Any help would be much appreciated.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo