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 217228 - Cannot start GlassFish 3.1.2.2
Summary: Cannot start GlassFish 3.1.2.2
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: ionuion
URL:
Keywords:
: 217395 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-08-22 13:17 UTC by Jiri Skrivanek
Modified: 2013-06-10 07:22 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log. (73.97 KB, text/plain)
2012-08-22 13:17 UTC, Jiri Skrivanek
Details
PrtScn from NB 7.3 Beta - can't startup Glassfish 3.1.2.2 instance (195.52 KB, image/png)
2012-10-06 10:38 UTC, geraldolmr
Details
could reproduce, logging set to FINEST for both NetBeans IDE and Glassfish (7.13 KB, text/plain)
2012-11-27 20:01 UTC, ionuion
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2012-08-22 13:17:29 UTC
Created attachment 123404 [details]
IDE log.

GlassFish server does not start. To reproduce:

- download http://download.java.net/glassfish/3.1.2.2/release/glassfish-3.1.2.2.zip
- unzip it to C:\Users\jskrivanek\GlassFish_Server
- start to create Java Web project
- start to add unzipped GlassFish
- it prints:

GlassFish Server 3.1.2 is known to have serious bug in JAX-WS. This bug may cause NetBeans to stop responding. Click Next if you really want to register remote or custom local domains with broken server.

- it is strange because it is the latest GlassFish. There is no info which version is OK
- click Finish to add GlassFish
- finish new project wizard
- run project
- it fails to start with message "GlassFish Server 3+ Server start failed. Cant create start process." (see attached messages log for details)

Product Version: NetBeans IDE Dev (Build 201208220001)
Java: 1.7.0_06; Java HotSpot(TM) 64-Bit Server VM 23.2-b09
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 1 Jiri Skrivanek 2012-08-22 13:25:31 UTC
Moreover IDE asks for authorization when you start domain outside of IDE and try to expand GlassFish node.
Comment 2 Vince Kraemer 2012-08-22 13:53:59 UTC
can you attach the server log if it is available?
Comment 3 Jiri Skrivanek 2012-08-23 07:05:38 UTC
Server log is not available. It fails to create process.
Comment 4 TomasKraus 2012-08-23 09:31:28 UTC
It may be caused by some changes related to tooling SDK.
What environment (OS, JDK, ...) did you use to test it?

Version detection code in SDK does not check patch version so it sees 3.1.2.2 as 3.1.2 too. I'll fix this.

We did a lot of changes related to Tooling SDK library in the module so I'm expecting some bugs to occur now.
Comment 5 TomasKraus 2012-08-23 12:51:02 UTC
That IDE authorization problem is an old issue of GF module because admin user/password is not persistent and there are no fields to register them in wizards. I know about it and it's in my TODO list for 7.3.
Comment 6 TomasKraus 2012-08-23 12:54:39 UTC
I tested this scenario on my Linux laptop with GF 3.1.2.2 and server started without any problems. So this looks like some windows related issue. Will give it another try on windows box.
Comment 7 TomasKraus 2012-08-24 12:22:09 UTC
changeset:   230806:1455b5371eec
summary:     Bug# 217228 - GlassFish Server 3.1.2 is known to have serious bug ... message is not shown for GF 3.1.2.2

Added code to distinguish 3.1.2 and 3.1.2.2 to display warning only with GF 3.1.2.

Still working on reproducing startup issue.
Comment 8 TomasKraus 2012-08-27 09:17:17 UTC
*** Bug 217395 has been marked as a duplicate of this bug. ***
Comment 9 TomasKraus 2012-08-27 12:19:21 UTC
GlassFish Tooling SDK:
----------------------
changeset:   162:e5c32e72afd8
summary:     Bug# 217228 - Removed wrong slash before .exe in windows java 
             executable path builder.

NetBeans:
---------
changeset:   231004:bd752262d770
summary:     Bug# 217228 - Removed wrong slash before .exe in windows java 
             executable path builder.
Comment 10 TomasKraus 2012-08-27 12:34:54 UTC
Verified start (with and without debug) and stop actions on Windows machine. It seems to work fine now.

Problem was typo in JDK binary path builder for windows platform where we accidentally added '\' before .exe suffix.
Comment 11 Jiri Skrivanek 2012-09-03 09:11:00 UTC
It works (except profiling) when you install IDE and GlassFish from installer. Original test case doesn't work because it is not possible to register GlassFish 3.1.2.2 (bug 217727).
Comment 12 geraldolmr 2012-10-06 10:38:28 UTC
Created attachment 125507 [details]
PrtScn from NB 7.3 Beta - can't startup Glassfish 3.1.2.2 instance
Comment 13 geraldolmr 2012-10-06 10:43:17 UTC
It's not working. I just installed NB 7.3 Beta today and I've got the same warning. I just can't start glassfish server 3.1.2.2 from NB. If I start it using asadmin then NB recognizes that the server is running and uses it.

I also tried to install a fresh standalone version of Glassfisj 3.1.2.2 and add it to NB but the result was the same as with the embedded version.

Product Version: NetBeans IDE 7.3 Beta (Build 201210011125)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Windows 7 version 6.1 running on x86; Cp1252; en_us (nb)
User directory: C:\Users\GeraldoLMR\AppData\Roaming\NetBeans\7.3beta
Cache directory: C:\Users\GeraldoLMR\AppData\Local\NetBeans\Cache\7.3beta

The same config on NB 7.2 is working perfectly.
Comment 14 vinh_truong 2012-10-06 17:31:51 UTC
It's NOT working.  I got the same problem in NB 7.3 Beta, "Glassfish 3.1.2 server start failed. cant create start process".

I tried uninstall & reinstall 3 times, got same error.

(Windows XP, jdk 7, NB7.3 Beta)
Comment 15 vinh_truong 2012-10-06 18:39:58 UTC
I downloaded the latest Development version of NB 7, 10-6-2012.  
It's FIXED & WORKING!

Thanks NB Team.
Comment 16 TomasKraus 2012-10-06 23:12:16 UTC
Can you please run NetBeans with full logging turned on?
Add "-J-Dglassfish.level=0 -J-Dorg.glassfish.tools.ide.level=0"
into netbeans_default_options in netbeans.conf
This will show information about domain.xml passed arguments and also whole Java execution command will be there followed by server status checks.
Comment 17 ionuion 2012-11-27 20:01:23 UTC
Created attachment 128478 [details]
could reproduce, logging set to FINEST for both NetBeans IDE and Glassfish

Reproduced on:

Windows 7
JDK 7
last NetBeans Dev 
Glassfish 3.1.2.2
Comment 18 TomasKraus 2012-11-27 22:09:00 UTC
FINEST [org.glassfish.tools.ide]: Java VM C:\Program Files\Java\jdk1.7.0\bin\java.exe executable version 0.0.0_0

This looks really crazy to me. I'll try to verify this scenario with last 7.3 dev build and JDK 7 to see what's returned as version in internal check.
Comment 19 Jiri Skrivanek 2012-11-28 12:56:58 UTC
It works for me in latest dev build. Please, try to reinstall JDK7 and try again with empty userdir

Product Version: NetBeans IDE Dev (Build 201211280002)
Java: 1.7.0_10-ea; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b10
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 20 piotrik 2012-11-28 13:29:49 UTC
Works for me in Win7, latest dev build (201211280002), tried both GF 3.1.2.2 installed together with NB and external GF 3.1.2. Using JDK7u9
Comment 21 TomasKraus 2012-11-29 15:45:22 UTC
Think in last case we can blame Java version test which was tested with Sun/Oracle Java VMs 6 and 7 but nobody knows how it works with other Java VM 6 and 7 compatible engines.

GlassFish Tooling SDK:
----------------------
changeset:   384:c0df22aa8564
summary:     Bug# 217228 - Java VM version test changed to try to recognize
             other Java VMs. GlassFish process will be started even if Java
             VM test fails.
Comment 22 TomasKraus 2012-11-29 16:26:27 UTC
NetBeans web-main:
------------------
changeset:   240851:faaf5c35dd4a
summary:     #217228 - Bug fix probe to trace GF Tooling SDK update.

I would like to ask Jiri for another set of tests - start GlassFish under different OSes and JDKs to make sure I did not introduce any fatal regression.
Comment 23 Quality Engineering 2012-11-30 02:40:40 UTC
Integrated into 'main-golden', will be available in build *201211300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/faaf5c35dd4a
User: Tomas Kraus <TomasKraus@netbeans.org>
Log: #217228 - Bug fix probe to trace GF Tooling SDK update.
Comment 24 Jiri Skrivanek 2012-11-30 13:35:13 UTC
Verified.

Product Version: NetBeans IDE Dev (Build 201211300001)
Java: 1.7.0_10-ea; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b10
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 25 ilhanim 2013-06-09 16:55:16 UTC
Çözümü basit
domaini silin ve yeniden domain oluşturun
netbeans 7.3 win7 ile denedim oldu 
https://www.java.net//forum/topic/glassfish/glassfish-plugins/serious-trouble-my-netbeans-and-glassfish-server

cevabın tamamı burada kolay gelsin arkadaşlar
Comment 26 Jiri Skrivanek 2013-06-10 07:22:24 UTC
I am sorry but we are not able to handle Turkish requests. Please, submit a new bug in English with detailed description if you still experience troubles.