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 156351 - org.netbeans.modules.j2ee.deployment.plugins.api.InstanceCreationException: Failed to create instance GlassFish v3. See the server log file for details.
Summary: org.netbeans.modules.j2ee.deployment.plugins.api.InstanceCreationException: F...
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vince Kraemer
URL: http://statistics.netbeans.org/except...
Keywords:
: 158982 159288 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-01-06 13:49 UTC by Jaroslav Pospisil
Modified: 2009-09-12 22:40 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 137190


Attachments
stacktrace (3.53 KB, text/plain)
2009-01-06 13:49 UTC, Jaroslav Pospisil
Details
stacktrace (3.66 KB, text/plain)
2009-01-08 12:48 UTC, Jan Horvath
Details
stacktrace (3.79 KB, text/plain)
2009-02-07 13:55 UTC, Kenneth Ganfield
Details
stacktrace (2.97 KB, text/plain)
2009-02-12 06:55 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Pospisil 2009-01-06 13:49:31 UTC
Build: NetBeans IDE Dev (Build 200901060201)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc2-b32
OS: Windows Vista, 6.0, x86

User Comments:
jpospisil: I've created new Maven Web project,activated modules for Maven and then I needed server support to deploy it,so I wes in Plugins/Installed modules and right clicked on Glassfish v1,v2 to select activate Web and JavaEE.

GUEST: Occured when opening projects.

jpospisil: I've created new Maven Web project,activated modules for Maven and then I needed server support to deploy it,so I wes in Plugins/Installed modules and right clicked on Glassfish v1,v2 to select activate Web and JavaEE.



Stacktrace: 
org.netbeans.modules.j2ee.deployment.plugins.api.InstanceCreationException: Failed to create instance GlassFish v3.  See the server log file for details.
        at org.netbeans.modules.j2ee.deployment.impl.ServerRegistry.addInstance(ServerRegistry.java:358)
        at org.netbeans.modules.j2ee.deployment.plugins.api.InstanceProperties.createInstancePropertiesWithoutUI(InstanceProperties.java:260)
        at org.netbeans.modules.glassfish.javaee.JavaEEServerModuleFactory.createModule(JavaEEServerModuleFactory.java:107)
        at org.netbeans.modules.glassfish.common.GlassfishInstance.updateModuleSupport(GlassfishInstance.java:155)
        at org.netbeans.modules.glassfish.common.GlassfishInstance.<init>(GlassfishInstance.java:123)
        at org.netbeans.modules.glassfish.common.GlassfishInstance.create(GlassfishInstance.java:187)
Comment 1 Jaroslav Pospisil 2009-01-06 13:49:35 UTC
Created attachment 75491 [details]
stacktrace
Comment 2 Jan Horvath 2009-01-08 12:48:12 UTC
Build: NetBeans IDE Dev (Build 200901080201)
VM: Java HotSpot(TM) Client VM, 1.5.0_16-133, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_16-b06-284
OS: Mac OS X, 10.5.6, i386

User Comments: 
just starting the IDE

Stacktrace: 
org.netbeans.modules.j2ee.deployment.plugins.api.InstanceCreationException: Failed to create instance GlassFish V3 Prelude.  See the server log file for details.
        at org.netbeans.modules.j2ee.deployment.impl.ServerRegistry.addInstance(ServerRegistry.java:358)
        at org.netbeans.modules.j2ee.deployment.plugins.api.InstanceProperties.createInstancePropertiesWithoutUI(InstanceProperties.java:260)
        at org.netbeans.modules.glassfish.javaee.JavaEEServerModuleFactory.createModule(JavaEEServerModuleFactory.java:107)
        at org.netbeans.modules.glassfish.common.GlassfishInstance.updateModuleSupport(GlassfishInstance.java:155)
        at org.netbeans.modules.glassfish.common.GlassfishInstance.<init>(GlassfishInstance.java:123)
        at org.netbeans.modules.glassfish.common.GlassfishInstance.create(GlassfishInstance.java:187)
Comment 3 Jan Horvath 2009-01-08 12:48:22 UTC
Created attachment 75584 [details]
stacktrace
Comment 4 Thuy.d Nguyen 2009-01-12 05:19:09 UTC
Vince, Could you take a look at this one?
Comment 5 Exceptions Reporter 2009-02-05 04:01:17 UTC
This issue has already 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=137190
Comment 6 Kenneth Ganfield 2009-02-07 13:55:38 UTC
Build: NetBeans IDE Dev (Build 200902040232)
VM: Java HotSpot(TM) 64-Bit Server VM, 1.6.0_07-b06-57, Java(TM) SE Runtime Environment, 1.6.0_07-b06-153
OS: Mac OS X, 10.5.6, x86_64

User Comments: 


Stacktrace: 
org.netbeans.modules.j2ee.deployment.plugins.api.InstanceCreationException: Failed to create instance GlassFish v3 Prelude Domain.  See the server log file for details.
        at org.netbeans.modules.j2ee.deployment.impl.ServerRegistry.addInstance(ServerRegistry.java:354)
        at org.netbeans.modules.j2ee.deployment.plugins.api.InstanceProperties.createInstancePropertiesWithoutUI(InstanceProperties.java:260)
        at org.netbeans.modules.glassfish.javaee.JavaEEServerModuleFactory.createModule(JavaEEServerModuleFactory.java:112)
        at org.netbeans.modules.glassfish.common.GlassfishInstance.updateModuleSupport(GlassfishInstance.java:156)
        at org.netbeans.modules.glassfish.common.GlassfishInstance.<init>(GlassfishInstance.java:124)
        at org.netbeans.modules.glassfish.common.GlassfishInstance.create(GlassfishInstance.java:195)
Comment 7 Kenneth Ganfield 2009-02-07 13:55:45 UTC
Created attachment 76695 [details]
stacktrace
Comment 8 Exceptions Reporter 2009-02-12 06:55:08 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Windows XP, 5.1, x86

User Comments: 
Trying to open netbeans with a EJB project for WebSphere

Stacktrace: 
org.netbeans.modules.j2ee.deployment.plugins.api.InstanceCreationException: Failed to create instance GlassFish V3.  See the server log file for details.
        at org.netbeans.modules.j2ee.deployment.impl.ServerRegistry.addInstance(ServerRegistry.java:367)
        at org.netbeans.modules.j2ee.deployment.plugins.api.InstanceProperties.createInstancePropertiesWithoutUI(InstanceProperties.java:260)
        at org.netbeans.modules.glassfish.javaee.JavaEEServerModuleFactory.createModule(JavaEEServerModuleFactory.java:107)
        at org.netbeans.modules.glassfish.common.GlassfishInstance.updateModuleSupport(GlassfishInstance.java:155)
        at org.netbeans.modules.glassfish.common.GlassfishInstance.<init>(GlassfishInstance.java:123)
        at org.netbeans.modules.glassfish.common.GlassfishInstance.create(GlassfishInstance.java:187)
Comment 9 Exceptions Reporter 2009-02-12 06:55:12 UTC
Created attachment 76897 [details]
stacktrace
Comment 10 Vince Kraemer 2009-02-28 17:42:37 UTC
this exception is showing up too often.  raising to p2.
Comment 11 Vince Kraemer 2009-02-28 17:43:28 UTC
*** Issue 158982 has been marked as a duplicate of this issue. ***
Comment 12 Vince Kraemer 2009-02-28 17:43:50 UTC
*** Issue 159288 has been marked as a duplicate of this issue. ***
Comment 13 Vince Kraemer 2009-03-03 20:23:29 UTC
the root cause for this appears to be the fact that the 6.5/config/GlassFish directory is not copied as part of the
import of user settings...
Comment 14 Vince Kraemer 2009-03-03 22:39:24 UTC
http://hg.netbeans.org/main/rev/c4725acb60c2

If you ran into this exception WITHOUT having imported your userdir, please let me know more details BUT put the info
into issue 159169... which I am leaving open to track a different path to an InstanceCreationException.

Comment 15 Quality Engineering 2009-03-06 09:17:52 UTC
Integrated into 'main-golden', will be available in build *200903060201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/c4725acb60c2
User: Vince Kraemer <vkraemer@netbeans.org>
Log: #156351 : the common server instances associated with v3 Prelude are not copied when userdir is imported.
  the two registries don't match and it is hard to correct the situation from inside the IDE's UI.
Comment 16 Jaroslav Pospisil 2009-03-17 15:48:12 UTC
v.