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 71711 - Sun Application Server doesn't start
Summary: Sun Application Server doesn't start
Status: RESOLVED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 5.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: _ ludo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-21 22:46 UTC by ngbrito
Modified: 2006-08-03 00:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
SJSAS log (6.12 KB, text/plain)
2006-01-26 21:59 UTC, ngbrito
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ngbrito 2006-01-21 22:46:23 UTC
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.
Comment 1 _ ludo 2006-01-25 04:48:14 UTC
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)
Comment 2 ngbrito 2006-01-25 18:13:25 UTC
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.
Comment 3 ngbrito 2006-01-25 19:57:57 UTC
Sorry! I made a mistake in my last comment: I already have RC2 installed, not RC1.
Comment 4 ngbrito 2006-01-26 21:37:13 UTC
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.
Comment 5 ngbrito 2006-01-26 21:59:23 UTC
Created attachment 28615 [details]
SJSAS log
Comment 6 ngbrito 2006-01-26 22:02:33 UTC
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.
Comment 7 ngbrito 2006-01-28 22:00:03 UTC
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.
Comment 8 _ ludo 2006-01-30 18:18:51 UTC
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

?
Comment 9 ngbrito 2006-01-30 18:42:21 UTC
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.
Comment 10 _ ludo 2006-03-28 19:19:04 UTC
Did you modify your java.securiy file in the jdk?
See
http://www.netbeans.org/servlets/ReadMsg?list=nbj2ee&msgNo=1938
Comment 11 ngbrito 2006-03-29 11:21:10 UTC
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.
Comment 12 _ ludo 2006-07-26 20:13:30 UTC
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.
Comment 13 _ ludo 2006-08-03 00:01:11 UTC
Please, reopen if you can reproduce with standalone 5.5 beta and AS 8.2 or AS
9.0 (GlassFish).
I cannot reproduce.