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 222756 - Browser displays wrong URL when running Maven EAR app
Summary: Browser displays wrong URL when running Maven EAR app
Status: RESOLVED DUPLICATE of bug 215454
Alias: None
Product: javaee
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.3
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-26 12:51 UTC by Tomas Danek
Modified: 2012-11-27 12:28 UTC (History)
1 user (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 Tomas Danek 2012-11-26 12:51:50 UTC
Product Version: NetBeans IDE Dev (Build 201211260002)
Java: 1.7.0_10-ea; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b15
System: Mac OS X version 10.8.2 running on x86_64; US-ASCII; en_US (nb)
User directory: /Users/tomas/Library/Application Support/NetBeans/dev
Cache directory: /Users/tomas/Library/Caches/NetBeans/dev
--------------------------

it seems like reincarnation of issue 215454

- start with fresh userdir
- create Maven Enterprise application, name it 'eapp', let create also webapp project
- create new foo session bean in ejb project (to be able to deploy)
- build all by building parent project
- run eapp-ear

browser is opened with url
  
http://localhost:8080/eapp-web-1.0-SNAPSHOT

which gives 404, correct URL is

http://localhost:8080/eapp-web
Comment 1 Martin Janicek 2012-11-27 07:32:53 UTC
I'm not able to reproduce it (using GF 3.1.2.2). What application server and which version did you use?
Comment 2 Tomas Danek 2012-11-27 11:35:18 UTC
I used bundled GF as well. (/Applications/NetBeans/glassfish-3.1.2.2)

Seems like steps are not so straightforward as in comment #1, I've been playing with this for a while and was able to reproduce again. Will try to add figure out what makes the difference...

(In reply to comment #1)
> I'm not able to reproduce it (using GF 3.1.2.2). What application server and
> which version did you use?
Comment 3 Tomas Danek 2012-11-27 11:45:38 UTC
Ok, so it turs out that problem was in maven cache - in my local repo was coincidently artifact with the same name, but it was apparently installed prior  fix of issue 215454 :) Sorry for false alarm.

*** This bug has been marked as a duplicate of bug 215454 ***
Comment 4 Martin Janicek 2012-11-27 12:28:10 UTC
Never mind, thanks for quick evaluation ;)