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.
-download and install ie. CC Proxy from http://www.youngzsoft.net/ccproxy/ (or any other Mac/*nix alternative) -set it so it requires username/password authentication for _all_ connections - including those for localhost etc. (to simulate connection to remote server which is behind secured proxy server) -verify proxy setup ie. in a browser or IDE's welcome screen (use Tools->Options to route all connections through proxy) (you might want to disconnect from the network and disable all running firewalls at this point) -start IDE with fresh userdir -register GlassFish server in the IDE -start it from the IDE => IDE waits for around 2 minutes then shows few irrelevant dialogs which you'll have to close and finally after ~2 minutes starts the server but then IDE cannot detect its state (= should be running, right?) see attached screenshot for all funny dialogs which appears
Created attachment 69465 [details] error dialogs
Created attachment 69467 [details] ide's proxy settings
thanks for setting up the test environment. What is the IP of your proxy server?
I guess I need the user name and password, too....
please attach the server and ide log files.
why this is incomplete? there's enough info about how to reproduce in this report, you only have to spend ~10mins on setting up environment as is described here... part of the server log is shown in the screenshot, ide log shows nothing interesting. I'll try to find them somewhere on the disk
this has been "broken" for quite some time. I have not seen a user generated report about this kind of issue... but I may have missed it. The configuration described in this issue is pretty obscure in development situations. Lowering to p3.
obscure in development? perhaps yes, really, why would one want to try to connect to some remote server through some secure proxy to get newer version of the app there... Wasn't NetBeans supposed to be a deploy tool for GlassFish? was issue 135838 filed by a Sun employee?
Would be interesting to also know if GlassFish asadmin commands are working in such an environment...(deploy, stop, undeploy, etc) If not, fixing on the NetBeans side would be useless for now. What about the javascript debugger module in NetBeans? Or the http monitor with Tomcat?
That's true. From the IDE perspective - my assumption is that everything will work correctly - ie. IDEs welcome screen works fine - if there won't be GF plugin installed in the IDE and this my opinion is based on the lines 70-72 in NbAuthenticator class, javadoc for java.net.Authenticator (method setDefault) and rfc2068 (or other similar document talking about definitions of HTTP, particularly about HTTP headers) - but I can misunderstand that - anyway I haven't tried asadmin command itself yet - can try next week. And as I already said (in private conversation) - if there'll be added at least some logging to be able to say what's really happening, I'll have no problem to lower this to P3.
It looks like there are a couple configurations that are worth verifying... 1. the IDE and app server on a local machine with a proxy as the only "gateway" to some external resource. a. no authentication at the proxy. b. authentication at the proxy. 2. the IDE working with a remote server with a proxy in between the two. a. the IDE is in the proxied environment. b. the server is in the proxied environment. One of the folks from the Sun Proxy Server QA team set up a server with authentication, so we should be able to simulate most all of these configurations...
this is great news Vince!
1a. seems to be working. 1b. server side issue: https://glassfish.dev.java.net/issues/show_bug.cgi?id=6128... I would assume that the http monitor will not work also... but that due to the same server side issue. 2a. appears to be working correctly. I was able to browse the tree below the server node and deploy/run an app from the IDE (behind an auth proxy) to the AS (not behind the proxy) 2b. this appears to work... The IDE can connect directly to the server's http port... The user can browse through the runtime tree and deploy/run an app... as long as the app doesn't run into the issue associated with 1a. The config that was created when this issue was opened is not a realistic configuration and it is not a surprise that it did not work. based on the testing I have done, I am going to change the summary on this issue to reflect the current situation (server side issue) and lower the priority to p3.
Thanks! now I can see: WARNING [org.netbeans.modules.j2ee.sun.ide.editors.AdminAuthenticator]: No authentication set while requesting https://localhost:4848/web1/remotejmx in the IDE's log which I hope will help me to find what's wrong in my "obscure" environment BTW: see desc #5 in issue 86877, not sure it's related to this proxy & auth. magic
*** Issue 149620 has been marked as a duplicate of this issue. ***
I need to work on the server team some more for this. I hope v2.1 has a strategy to resolve this.
the "bug" is in the GF server code. not the plugin. the issue is filed. marking as server-side in the whiteboard and INVALID here, since NO AMOUNT of plugin code can resolve the fact that the server doesn't have the necessary infrastructure to support resolving this.
Thanks for your work on this, v.