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 60451 - cannot register 2 different server installations
Summary: cannot register 2 different server installations
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords:
: 63087 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-06-23 16:27 UTC by Pavel Buzek
Modified: 2006-06-04 23:39 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Buzek 2005-06-23 16:27:59 UTC
When I have an app server installed and I try to install another one (e.g. I
have 8.1 and want to register glassfish) the plugin does not allow me to enter
the server location. This is the same even if I remove the original server.

Another scenrio is:
1. uninstall app server (e.g. the installation is corrupted)
2. install the new one in a different location, try to add it to IDE

Yet another scenario: work with different builds of AS (not that they are
available for glassfish), switch between versions to test new features, etc.
Comment 1 Vince Kraemer 2005-06-23 16:55:26 UTC
The user is allowed to change the server installation location.

The IDE currently uses this location to find binaries, like asadmin, and to find
things like the dtds (for code completion).

The user does not register installations, they register instances.  The user can
register a new local instance.

The UI is still clumsy, though.
Comment 2 Pavel Buzek 2005-07-16 14:44:58 UTC
> The user is allowed to change the server installation location.

Where can I change the location? I would expect to enter it in Add Server
wizard, but I cannot. When I have an instance of SJAS registered and try to add
another one I have no chance to modify the location (or even the domain name).

Back to the use case: Let's assume that I have two servers with different
libraries (like 8.1 and glassfish). Then I need each of the instances to point
to different installation.
Comment 3 _ pcw 2005-07-18 18:39:23 UTC
First point: Changing server install location:  Tools | Options | IDE
Configuration | Server & External Tools Settings | J2EE Servers | Sun Java
System Application Server 8.1 -- the property is named Installation Root
Directory.  Not the best place for it, especially since you can also set this
field via the <Add Server...> wizard but on the first time you add the server. 
Once this field is initialized, this property is the only way I know of to
change it.

Second point: Multiple servers of different versions.  I don't think this was a
problem prior to glassfish, but it is now and we'll have to sort out the details
and api changes if necessary.  Whether the decision is to have server instances
provide libraries, or plugin modules, shouldn't be too difficult either way
since projects can simply request libraries from the target server.  What I see
as a bigger problem is code such as the web service registry on the runtime tab.
 There is no server instance or version, yet this module requires libraries from
a server.  Best choice is probably latest version available (ie glassfish if
present, SJSAS 8.1 if that's all that is there.)
Comment 4 Vince Kraemer 2005-08-02 16:55:05 UTC
adding a plugin for as 9.0 / glassfish will address this (partially).
Comment 5 Vince Kraemer 2005-08-26 01:27:39 UTC
*** Issue 63087 has been marked as a duplicate of this issue. ***
Comment 6 Pavel Buzek 2005-08-26 01:43:10 UTC
PCW: regarding WS registry - you could also let the user choose. I.e. there
could be a server instance (and thus version). This whould not even require any
special API from sun app server, j2eeserver has an API to get servers, server
instances and j2ee platform for each instance (class
o.n.m.j2ee.deployment.devmodules.api.Deployment).
Comment 7 _ ludo 2005-09-12 17:22:54 UTC
I would say RFE, not bug in nb 5.0.
A workaround ot change server location is:

Email copy:"

 Mark de Reeper wrote:

>
> Just been trying to add an instance of Glassfish to a dev build of Netbeans
5.0 (Build 200509112000). This is the NB/SJSAS bundle on Solaris/SPARC
(sjsas_pe-8_1_02_2005Q2-nb-5_0-daily-bin-200509112000-solsparc.bin)
>
> In Runtime tab, menu over Servers and choose Add Server...
>
> As you can see from the attached images, I changed the name to Glassfish
(wiz1.png) and after choosing next I do not get an option to choose an
installation location (wiz2.png) and the Domains Folder of the existing SJSAS is
pre-selected.
>
> Is it not possible to have more than one instance of SJSAS registered at a time?

For now, no. You can have only one local installation of a server. This
installation is used to get the extra jars (jsr88,..) for the plugin to work...
This local installation allows of course as many remote instances (same app
server version).
So either you register 8.1 or Glassfish, but not the 2 together (will be fixed
in NetBeans Java EE 5 support).
To swich from one version to another, first delete all the instances from the
run time tab (popup "remove" I think),
then use the Tools | Options | Classic View | IDE configuration |  Server and
External Tool Settings | J2EE Servers | Sun Java System Application Server |...
And change the server location back and forth from AS8.1 or GlassFish Location.

Then re-register the instance you need...

(FYI, GlassFish is not a supported server for NetBeans 5.0).
Dual support J2EE 1.4 and Java EE 5 (so AS 8.1 and Glassfish) will be in
NetBeans Next.Next (the version that has no name, which is after NetBeans 5.0,
that will support entirely the Java EE 5 spec). I hope we have early access
version soon...
Ludo


"
Comment 8 Pavel Buzek 2005-09-12 19:36:03 UTC
Ok, Ludo, I am fine with a workaround that will allow one server or the other.
We should point users to JavaEE5 builds when we add more functionality.

As for 5.0, the SJAS location is hard to find. Maybe after you remove all the
instances it should be allowed to select a different location right in the
wizard -- hopefully would be pretty simple to do? Not critical for 5.0.
Comment 9 Vince Kraemer 2005-11-04 16:55:17 UTC
new registration UI supports multiple installations.  Ludo made some radical
back-end chnages that made that possible (I forget which IZ his changes are
associated with)