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.
Product Version = NetBeans IDE Dev (Build 201302122300) Operating System = Windows 8 version 6.2 running on amd64 Java; VM; Vendor = 1.7.0_13 Runtime = Java HotSpot(TM) 64-Bit Server VM 23.7-b01 After starting a web application (debugging as well as non-debugging session), NB alerts the "Install Chrome Extension" dialog. To install the NetBeans Connector Chrome extension manually, locate the extension file "netbeans-chrome-connector.crx" on your computer and drag the file onto the Chrome Extensions page. See link for more details. WARNING: please do not close "NetBeans Connector is debugging this tab" infobar otherwise the NetBeans Chrome integration will not work at all. If a different browser, e.g. Firefox is installed and the user clicks onto cancel, no web pages is displayed. If the user instead clicks on "is installed" the dialog will be re-alerted. Tested with the latest build. If this bug is applicable to 7.3fcs, this would be a showstopper!
I think it is related to recent integration of HTML/JS features to Java Web project so it shouldn't be in 7.3 I tried to run Java Web with browser settings to: - Default system browser => correctly Chrome was started, no mention about NB Connector - Firefox => again no problems, Firefox started OK Product Version: NetBeans IDE 7.3 (Build 201302062200) Java: 1.7.0_15; Java HotSpot(TM) Client VM 23.7-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_15-b01 System: Linux version 3.2.0-35-generic-pae running on i386; UTF-8; en_US (nb)
using NBfcs there is no such alert, but this would be displayed debug: D:\Projects\RequestServices\nbproject\build-impl.xml:1135: The following error occurred while executing this line: D:\Projects\RequestServices\nbproject\build-impl.xml:1152: nbbrowse doesn't support the "context" attribute BUILD FAILED (total time: 39 seconds) non-debug: D:\Projects\RequestServices\nbproject\build-impl.xml:1066: nbbrowse doesn't support the "context" attribute BUILD FAILED (total time: 18 seconds) excerpt of ant script (build-impl.xml: <target if="do.display.browser.nb" name="-display-browser-nb"> <nbbrowse context="${browser.context}" url="${client.url}" urlPath="${client.urlPart}"/> </target> I reseted this to its former content, which allowed me to start my app <target if="do.display.browser.nb" name="-display-browser-nb"> <nbbrowse url="${client.url}"/> </target> I don't know, which version altered the build file, maybe nightly build. I wont check now, cause I have to develop some stuff...
I think you were unlucky to get a nightly build in which "Chrome with NetBeans Integration" browser was set as a default browser to run Java Web Project on - nightly builds between 9-12th of Feb were affected. Newer one will be OK. Some more background: There is a new setting in Java Web Project properties in Run panel - "Browser" - which allows to set different target browser per project. Default value of the setting is now "IDE's default browser". In your case it was set to "Chrome with NB integration". Changing the browser would resolve your problem. That change also required to enhance the nbbrowse task with new attribute - that's why you got build error after getting back on older NB version. Usually deleting auto generated nbproject/build-iml.xml and reopening project in older IDE version resolves the problem by regenerating the file. Sorry for the inconvenience!
This issue illustrates that we have a problem with the discoverability of the browser switching UI - those who don't want to use "Chrome with NetBeans Integration" will have problems turning it off, and those who want it will have problems turning it on. To alleviate this, I would suggest to introduce the browser switcher UI the toolbar, as we discussed between David, Tomas and myself - I filed issue 226124 for this. What do you think?
*** Bug 226106 has been marked as a duplicate of this bug. ***
I agree.
Another option could be to show an info dialog - just once (or with "Do not show me again" checkbox). But the icon in the toolbar would be much better, I would say. Thanks.
I just installed NetBeans v7.3 full windows version. Installed it without GlassFish, because I already have GlassFish installed from the Oracle GlassFish/Java EE 6 installation. I activated everything and installed all the updates. I then opened up the Oracle sample project hello1, which ran fine before on NetBeans v7.3 and the same GlassFish3 installation, and added GlassFish3 to the servers and tried to run it and it gave me this message. C:\glassfish3\glassfish\docs\javaee-tutorial\examples\web\hello1\nbproject\build-impl.xml:1045: nbbrowse doesn't support the "context" attribute BUILD FAILED (total time: 1 second) In Tools>>Options>>General>>Web Browser it says: <Default System Browser>. I restarted NetBeans and chose Firefox browser and tried to run the project again and it still fails with same error. Now I can't run it. This ran fine when I had NetBeans v7.3 JAVA SE installed and installed all the Java EE plugins through plugin manager and had all the updates. Product Version: NetBeans IDE 7.3 (Build 201302132200) Java: 1.7.0_17; Java HotSpot(TM) 64-Bit Server VM 23.7-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_17-b02 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
It is not working in this 7.3.1 Dev full build either. Product Version: NetBeans IDE Dev (Build web-main-javaee7-232-on-20130412) Updates: Updates available Java: 1.7.0_17; Java HotSpot(TM) 64-Bit Server VM 23.7-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_17-b02 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb) It is working OK in this full build: Product Version: NetBeans IDE Dev (Build 201304151531) Java: 1.7.0_17; Java HotSpot(TM) 64-Bit Server VM 23.7-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_17-b02 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
I thought I would reopen it if this is a problem for v7.3.1, to me it is a showstopper for v7.3.1, but I am not using NetBeans professionally. This does not work in v7.2.1 either... I am not so sure now it has ever worked in v7.3, maybe I only ran it in a Dev version before.
I found the problem & workaround. There were 2 lines in the build-impl.xml <nbbrowse context="${browser.context}" url="${client.url}" urlPath="${client.urlPart}"/> The Dev builds of 7.4 are writing those 2 lines to the buid-impl.xml file and the project won't run in 7.2.1 - 7.3.1. I just removed build-impl.xml from the netbeans project folder and did a clean & build and it works now. Now the 2 lines are: <nbbrowse url="${client.url}"/> I thought it worked in v7.3 before... I guess I was right.
(In reply to comment #11) > <nbbrowse context="${browser.context}" url="${client.url}" > urlPath="${client.urlPart}"/> Yes, this was added by dev build of NB 7.4. > I just removed build-impl.xml from the netbeans project folder and did a clean > & build and it works now. Yes, build-impl.xml is automatically regenerated and deleting it was right way to enforce regeneration.