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 Sun Java System Application Server installed on my machine with an admin password. I registered it with NetBeans IDE but didn't provide the password because I don't want it stored in any file. When I tried to start the server from the "Runtime" view, NetBeans didn't ask my for the password and after some time it failed to start the server (of course). I then removed also the admin name (so no name and no password) and tried again and again it didn't ask for the name nor password and again failed to start the server. It should have asked me for the username and password before trying to start the server.
Cannot reproduce... In fact, we have another bug where this is asked twice... http://www.netbeans.org/issues/show_bug.cgi?id=71615 So which app server version, which nb build? Any reproducible test case starting from a clear user dir is welcome... You said" failed to start" Start does not require a password anyway, only after start, the plugin is talking to the server to get extra info..So can you tell if the server is running or not (via admin gui for example)
My setup is: Sun JDK J2SE 5.0 update 6 NetBeans IDE 5.0 RC1 NetBeans Mobility Pack 5.0 RC1 NetBeans Profiler 5.0 RC1 J2EE 1.4 SDK and SJSAS Platform Edition 8.1 2005Q2 UR2 The steps I did were: 1) I installed the J2SE 5.0, then the NetBeans IDE, then the Mobility Pack and then the Profiler. 2) Then I installed J2EE 1.4 including the SJSAS and provided an admin password. 3) Then I registered SJSAS in the NetBeans IDE bug didn't fill the password field. 4) Then I when to the "Runtime" window and requested start. When I executed step 4 I got the progress bar in the status bar of NetBeans IDE for several minutes after which I got a message box with an error message indicating that it had failed to start the server and several possible causes for it. When changed the SJSAS registration to include the password then I could start the server without problems. Right now, I don't have access to the machine where I tested this so I cannot tell you if the server was up when the error is displayed but I will try it when I can.
Sorry! I made a mistake in my last comment: I already have RC2 installed, not RC1.
I confirmed that the server does not start, i.e. the URL http://localhost:8080 doesn't work and neigher does the SJSAS admin console. I don't know if this matters but, in the SJSAS installation, I selected not to store the password in a file, and in the server registration I checked the HTTP monitoring option. I also installed SJSAS from the multi-language installer although I use normal english. If you follow my steps exactly you should be able to reproduce it. I did it in 2 different machines.
Created attachment 28615 [details] SJSAS log
I attached the server log. The log information that you see in the log is written as soon as you select "Star". In Windows Task Manager I only see one instance of java.exe so it appears that whatever is launched exits imediately and the IDE doesn't detect that it failed.
I took a look at the code and noticed that you run the "startserv.bat" batch file. I tried to run it from the DOS prompt and it also doesn't exit! Could this be a problem in SJSAS itself? I searched SUN's website for information about "startserv.bat" but the only references to it were from SJSAS version 7. In the doc of SJSAS 8.1 it was never mentioned. Only "asadmin.bat" was mentioned. Maybe NetBeans should use that one instead.
The script is a private interface, and can be used only from tools. Are you really on Windows 2000 ? I do not see this system supported: http://docs.sun.com/source/819-0072/relnotesPE.html Can you start the server outside the IDE via the command: asadmin.bat --start-domain ?
I have reproduced the problem in two different machines: 1) Windows 2000 Professional SP4 2) Windows XP Professional SP2 Yes, I can start the server with "asadmin.bat --start-domain". I will also try it with the new SJSAS 8.2.
Did you modify your java.securiy file in the jdk? See http://www.netbeans.org/servlets/ReadMsg?list=nbj2ee&msgNo=1938
I didn't modify anything. It was a clean installation with no weird options or anything: 1) Install SJSAS defining an admin password. 2) Add the SJSAS to NetBeans but do not supply the password (it doesn't matter if you supply a username or not). With this setup you should get the same problem. I did it already countless times in different machines, with Windows 2000 and Windows XP, with NetBeans IDE 5.0 and NetBeans IDE 5.5 preview, and with SJSAS 8.1, SJSAS 8.2 and SJSAS 9 Beta.
we do not use any more the asadmin.bat private interface to start the server... Since the env is hard to reproduce, could you try with NB 5.5 Beta 2 and let us know? Thanks.
Please, reopen if you can reproduce with standalone 5.5 beta and AS 8.2 or AS 9.0 (GlassFish). I cannot reproduce.