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 189637 - Cannot start bundled GF v3 server
Summary: Cannot start bundled GF v3 server
Status: RESOLVED DUPLICATE of bug 222474
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.0
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-18 12:48 UTC by Martin Schovanek
Modified: 2012-11-22 16:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Schovanek 2010-08-18 12:48:38 UTC
[#201008180001, jdk1.6, GF 3.0.1-b22, EE6]

to reproduce:
-------------
1) go to the Services tab
2) invoke Start at 'Servers > GlassFish Server 3' node

ERROR1: you will get following error at: Output > Java DB Database Process:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/derby/iapi/services/property/PropertyUtil
        at org.apache.derby.impl.drda.NetworkServerControlImpl.getPropertyInfo(Unknown Source)
        at org.apache.derby.impl.drda.NetworkServerControlImpl.<init>(Unknown Source)
        at org.apache.derby.drda.NetworkServerControl.main(Unknown Source)

3) have a Web Project with the GF as target
4) invoke Run on the project's node

ERROR2: you will get following error at: Output tab:
...
Starting GlassFish Server 3
Server can not start. The domain.xml file is missing or corrupt.
/Users/ms113234/NetBeansProjects/WebApplication70/nbproject/build-impl.xml:696: Deployment error:
Server can not start. The domain.xml file is missing or corrupt.
See the server log for details.
BUILD FAILED (total time: 0 seconds)
Comment 1 Martin Schovanek 2010-08-18 13:14:26 UTC
Installation of NB and GF fixed the problem.
Comment 2 Vince Kraemer 2010-08-18 14:11:46 UTC
Hmm.

It sounds like there was a problem registering the server...

Did you import settings from 6.8 and/or 6.9?

Are you able to start your server using 'asadmin start-domain'?
Comment 3 Martin Schovanek 2010-08-18 15:12:38 UTC
At first I just reinstall Nb dev build with old userdir and GF installation. Next reinstallation of NB and GF fixed the problem.
Comment 4 Vince Kraemer 2010-08-18 16:21:16 UTC
let me make sure I understand the setup for this.

Initial state
a dev build older than 201008180001 is installed on your system. It got there by using the installer.  That installer also installed GF and registered it.

Actions you took

1. downloaded a new installer
2. ran the installer
3. started the freshly installed IDE
4. attempted to start the server that is registered in the new IDE...
    it fails to start

After this failure, did you:

A. remove the dev userdir and reinstall, OR
B. just reinstall

Please correct any invalid steps or assumptions that I have made.
Comment 5 Martin Schovanek 2010-08-19 10:54:14 UTC
At first:
1) downloaded a new installer
2) run the installer and unchecked the GF server installation, so IDE registered the GF installed by previous installer (GF 3.0.1-b22)
3) started the freshly installed IDE
4) attempted to start the server that is registered in the new IDE...
    it fails to start

Then:
5) removed Nb + GF + Tomcat + userdir
6) install fresh Nb + GF + Tomcat
Comment 6 Vince Kraemer 2011-02-24 17:39:46 UTC
I have not been able to reproduce this.
Comment 7 tommywall 2012-07-11 12:13:33 UTC
I have reproduced bug. 
OS RHEL 6.3 with latest updates. Netbeans 7.1
Steps to reproduce: 
1) Install netbeans to /opt/netbeans-7.1, glassfish to /opt/glassfish-3.1
2) Try to deploy project from netbeans. Deploying failed because there is no domain1.xml on the server. (user has not access to domain1.xml) 


I've removed glassfish server from resources and re-add it. New private domain has been created and all works fine for me.
Comment 8 TomasKraus 2012-10-18 17:13:00 UTC
Please can you try to reproduce this issue with last 7.3 development build from 
http://bits.netbeans.org/dev/nightly/latest/ ?

Add "-J-Dglassfish.level=0 -J-Dorg.glassfish.tools.ide.level=0"
into netbeans_default_options in netbeans.conf and attach IDE log to this bug.
Comment 9 TomasKraus 2012-11-22 16:12:41 UTC
We already know about an issue with 3.0.1 start. This will be fixed in 7.3.
Marking as duplicate of Bug# 222474.
I added you into 222474 cc list so you can check this with 7.3 build when fix will be available.

*** This bug has been marked as a duplicate of bug 222474 ***