This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 197665 - Browser doesn't open when running a EAR project generated by Maven
Summary: Browser doesn't open when running a EAR project generated by Maven
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.0.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Vince Kraemer
URL:
Keywords:
: 198832 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-04-12 12:56 UTC by viggonavarsete
Modified: 2011-07-27 15:21 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description viggonavarsete 2011-04-12 12:56:25 UTC
To replicate the problem:
1. New project
2. Select Maven->Enterprise Application
3. Next
4. Let default names be, click Next
5. Let default selections and names be (Java EE6, create both EJB and Web modules) and click Finish.
6. Right-click EJB project and select New->Session Bean (we need an EJB in order to deploy, otherwise I think GlassFish will complain..)
7. Give the EJB the default name (NewSessionBean), package "ejb", Session Type=Stateless, Create Interface (don't select anything), click Finish
8. Create a method in the new session bean

    public String helloWorld() {
        return "Hello World";
    }
9. Right-click the EAR project and select Properties
10. Go to Run and select GlassFish Server 3.1
11. Right-click WEB project and select Properties
12. Go to Frameworks and select JavaServer Faces, and select PrimeFaces 2.2.1 as Components Suite
13. Right-click EAR project and select "Build with dependencies"
14. Right-click EAR project and select Run

Expected behavior:
- EAR deployed (OK)
- browser opened showing me the the page from the web project (NOT OK)

I have to "know" the URL, or I have to go into Admin console and open the link. When deploying a WAR file it's opened automatically, it doesn't happen with EAR. Perhaps not a showstopper, but absolutely something that will confuse someone.


This issue is discussed in the NetCAT mailing list, and was asked to file a bug report.
Comment 1 David Konecny 2011-04-12 22:35:07 UTC
Server plugin returns an application URL to open in the IDE after the application was deployed. Perhaps similar problem to issue http://netbeans.org/bugzilla/show_bug.cgi?id=176096 ?
Comment 2 Marian Mirilovic 2011-04-13 08:59:32 UTC
fix-in-nb701 - marked during Acceptance Survey as a stopper, too late for NB 7.0 so we need to deliver fix into NB 7.0.1
Comment 3 Vince Kraemer 2011-04-21 17:53:26 UTC
looks like this got 'missed'

http://hg.netbeans.org/main-golden/rev/296bcaf74521
Comment 4 David Konecny 2011-05-25 23:17:38 UTC
*** Bug 198832 has been marked as a duplicate of this bug. ***
Comment 5 Vladimir Riha 2011-07-27 15:21:53 UTC
Verified

Product Version: NetBeans IDE 7.0.1 (Build 201107211357)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Linux version 2.6.38-10-generic running on i386; UTF-8; en_US (nb)