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 134007 - Cannot add glassfish-v2-b58g (from 6.0) to servers list
Summary: Cannot add glassfish-v2-b58g (from 6.0) to servers list
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P3 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-25 23:01 UTC by Girish Balachandran
Modified: 2009-02-19 23:03 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Screenshot of add appserver panel (43.88 KB, text/plain)
2008-04-25 23:05 UTC, Girish Balachandran
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Girish Balachandran 2008-04-25 23:01:46 UTC
Did not want to install appserver that came with 6.1 and wanted to continue using 6.0 appserver (mine was
glassfish-v2-b58g). NB61 recognized the old appserver settings from 6.0 I think and showed in the servers list. But,
when I tried deploying (by debug) my web app, I got this exception:

debug:
Deployment error:
Starting of server GlassFish V2 in debug mode is not supported. Please, start the server manually.
See the server log for details.
        at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:166)
        at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:104)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor131.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
        at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:277)
        at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:460)
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
Caused by: org.netbeans.modules.j2ee.deployment.impl.ServerException: Starting of server GlassFish V2 in debug mode is
not supported. Please, start the server manually.
        at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startTarget(ServerInstance.java:1228)
        at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startDebug(ServerInstance.java:952)
        at org.netbeans.modules.j2ee.deployment.impl.TargetServer.startTargets(TargetServer.java:426)
        at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:143)
        ... 16 more


Hence I tried to remove the server and re-add to the list. When I tried re-adding, I am not allowed to select the
default domain of glassfish-v2-b58g. Please see the image attached. I think both of the scenarios needs to work out of
the box.
Comment 1 Girish Balachandran 2008-04-25 23:05:20 UTC
Created attachment 60707 [details]
Screenshot of add appserver panel
Comment 2 Girish Balachandran 2008-04-25 23:27:54 UTC
This is even bigger problem than I thought. I installed NB61 with out GFV2, then installed GFV2 separately that comes
with NB61 I see the same problem. I am not able to select the default domain again. I select the option of "Local
Domain" from the same attached UI and it forces me to select the domain folder. In that file chooser, I specify my
default domain and it always takes me to the sub-folder instead of accepting the domain folder. I think the domain
detector is broken. 

In my opinion this is a P1 bug. I had to uninstall NB now fully just to get the appserver working.
Comment 3 Vince Kraemer 2008-04-26 05:25:29 UTC
I will look at this...
Comment 4 Vince Kraemer 2008-04-26 05:31:59 UTC
did you install gf-v2-b58g (and NB 6.0) as a different users?

Is this on Vista or XP?
Comment 5 Vince Kraemer 2008-04-26 20:35:57 UTC
I installed nb 6.0.1 with gf v2ur1 as administrator
I installed nb 6.1 rc2 as administrator.
I started nb 6.1 rc 2 as a regular user... I could replicate the screen shot that you have attached to this issue.
I started nb 6.1 rc 2 as administrator... I cannot replicate the screen shot.

That says this is expected behavior to me...

Are you sure that you did not install the nb 6.0 and v2-b58g as administrator?

Do you have a more details set of steps that will allow me to replicate the issue?

Comment 6 Vince Kraemer 2008-04-26 21:13:31 UTC
I installed gfv2-b58g as administrator.

I started 6.1 rc2 as a normal user... see the same results when I attempt to add the server domain.

I started 6.1 rc2 as administrator... I can register the local default domain...

This seems like the IDE is behaving correctly to me...
Comment 7 Girish Balachandran 2008-04-28 20:48:28 UTC
I am using visa. I installed everything using the same administrator account. 

But, I think I see a clue for the problem. My glassfish is installed @ C:\Program Files\glassfish-v2-b58g. In vista to
modify anything in the "Program Files" folder, windows pops up a security screen for getting user confirmation. May be
when this process is done thru Java, this screen show thru and hence NB is not able to read information? Is this a
possibility?

You may try to install in PF directory in vista that has security wearnings turned on, and I bet you will be able to
reproduce.
Comment 8 Vince Kraemer 2008-04-28 21:24:55 UTC
OK. I did install GF in PF when I did my testing this week-end.

I was able to reproduce the results that you are seeing.

The IDE is behaving correctly.

You don't have the "inalienable right" to write data into the C:\Program Files\bla bla bla\ directory.

Since you don't have the right to do that, the IDE tries to guide you to create a personal domain... where you will have
that inalienable right to write....

See: http://forums.java.net/jive/message.jspa?messageID=258335
and http://codepimpsdotorg.blogspot.com/2008/03/netbeans-61-best-just-got-better.html

What should the IDE do differently when you try to register a domain which will not run successfully?
Comment 9 Girish Balachandran 2008-04-28 22:27:00 UTC
>>What should the IDE do differently when you try to register a domain which will not run successfully?
Agreed that IDE cannot do anything with out permissions. From your explanation looks like NB seems to detect this
problem and hence grays out that selection. But, as a user I did not have any clue as in why it is grayed out. If this
is a permission related issue, I can easily fix by allocating more privileges to my account or relaxing permission on
the folder. 
So, may be a small hint below the grayed out option would have hinted me abt this.

I would let it be a P3 enhancement.

Comment 10 Vince Kraemer 2008-10-29 00:13:00 UTC
http://hg.netbeans.org/main/rev/2dd0768824e5
Comment 11 Quality Engineering 2008-10-29 05:01:30 UTC
Integrated into 'main-golden', will be available in build *200810290201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/2dd0768824e5
User: Vince Kraemer <vkraemer@netbeans.org>
Log: #134007 : add hint on why 'local default domain' is disabled