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.
I have a project in misc repository called logger/uihandlerserver: http://hg.netbeans.org/main/misc/file/7d24400868db/logger/uihandlerserver The project build script is customized to download tomcat 6.0 and start it properly. Everything used to work fine when the project was created, but since then there is some new test in WebActionProvider to verify whether isSelectedServer(). The test prevents me to invoke regular operations on my project. Now, when I am forced to deal with my project again, I'd like to resolve this blocker.
Created attachment 122190 [details] One solution is to have a dialog with button "Exec anyway"
Any problems if I integrate this change?
I'm sorry Jarda, but I do not think "Execute Anyway" make sense. It may work in your customized project but in general server is needed because if you do not have one then where do you want to deploy your app for running? Could you just register Tomcat you've started in the IDE Servers? PetrH, is there some other way to fake a server?
I don't like this solution from a UI point of view either. Is there currently a workaround, such as running your customized Ant target from the build.xml node? (And possibly assigning a keyboard shortcut to it?)
Would you mind adding "check.server.registry=false" into private.properties or project.properties to disable the check for my project completely?
(In reply to comment #5) > Would you mind adding "check.server.registry=false" into private.properties or > project.properties to disable the check for my project completely? That sounds OK. But, still, why cannot you just add some config file to your userdir? I registered Tomcat in my IDE and can see <user-dir>/config/J2EE/.nbattrs which defines the server. Recreating that file after IDE started (via regular FileSystem API) directly from your unit test should be easy and should work, no?
Well, I don't need this in unit tests, I need this to work for everyone who checks the sources out from Hg. If it is sort of OK to add some property to suppress the dialog, I prepare a patch and come back.
Created attachment 123313 [details] If nbproject/project.properties contains j2ee.server.check=false, no isServerCheck is made
(In reply to comment #8) > If nbproject/project.properties contains j2ee.server.check=false, no > isServerCheck is made The patch looks OK to me.
OK, I'll integrate on Monday.
ergonomics#567eaa3729bd and used in http://hg.netbeans.org/main/misc/rev/798c1938b641
Integrated into 'main-golden', will be available in build *201208310001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/567eaa3729bd User: Jaroslav Tulach <jtulach@netbeans.org> Log: #215725: Allow operations on project (run, debug) without a configured server