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 55377 - can't add any appserver if local instance is not writeable
Summary: can't add any appserver if local instance is not writeable
Status: CLOSED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: _ ludo
URL:
Keywords:
: 55167 55376 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-02-22 22:12 UTC by athompson
Modified: 2006-03-24 13:08 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NoSuchElementException (4.86 KB, text/plain)
2005-02-22 22:13 UTC, athompson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description athompson 2005-02-22 22:12:10 UTC
linux (gentoo)
jdk-1.5
daily 2005

1. on linux, install sun app server as root
2. become a regular user
3. start a clean install of Netbeans
4. Tools-->Server Manager
5. Add Server
6. select "Sun Java System Application Server 8",
hit Next
7. specify the location of the app server and hit Next
8. specify any remote sun app server, port, user
name, and password
9! hit 'Finish' the attached exception is thrown
and the instance is not added.

i believe that this is caused by the fact that the
local sun install directory is not writeable to
the user. i understand that you need to get jars
and stuff from the local instance, but why it
would need to be writeable is beyond me.

no workaround except for all users to install
their own copy of the app server, which is not
very economical.

in a related note, why does there have to be a
local instance at all? it just adds another
(confusing step to adding server instances). can't
you include the needed jars or whatever in netbeans?
Comment 1 athompson 2005-02-22 22:13:20 UTC
Created attachment 20462 [details]
NoSuchElementException
Comment 2 _ ludo 2005-02-22 23:32:06 UTC
stack trace appears to be from j2eeserver area.
Pavel, do you have some cycles to look into that as a first evaluation?
Jars and wscompile tools should be accessible without being root.

Other issues (55376 )are related, but this one is about the stack trace.
Comment 3 Sherold Dev 2005-02-23 14:26:04 UTC
The NoSuchElementException fixed in the j2eeserver code. This fix
however doesn't solve the issue that the appserver instance cannot be
added. This has to be fixed or better handled in the appserver plugin.
Currently the appserver plugin displays only the "Failed to create
instance {0}." warning message.

Reassigning to sunappserv module.

Commit log:

Checking in ServersCustomizer.java;
/cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/impl/ui/ServersCustomizer.java,v
 <--  ServersCustomizer.java
new revision: 1.3; previous revision: 1.2
done
Comment 4 Petr Blaha 2005-02-23 15:41:05 UTC
I think, similar as issue 55167
Comment 5 _ ludo 2005-02-23 16:10:36 UTC
yes, very similiar and will be fixed at the same time.
Related big time to 55376 
One fix will close 3 bugs :-)
Comment 6 _ ludo 2005-02-23 18:34:58 UTC
*** Issue 55167 has been marked as a duplicate of this issue. ***
Comment 7 Vince Kraemer 2005-02-24 00:24:25 UTC
the message that sherold refered to in his comment on 2005-02-23 06:26
PST, comes from ServerRegistry.java in j2eeserver.  Filed 55447.
Comment 8 Vince Kraemer 2005-02-24 06:06:35 UTC
*** Issue 55376 has been marked as a duplicate of this issue. ***
Comment 9 Vince Kraemer 2005-02-24 07:04:02 UTC
The issue was caused by a poorly placed addListener call.

The "localhost" version of this issue is also caused by the same
listener misplacement.

The "writability" of the server install directory really doesn't come
into play.  The readability of the domains/*/config/domain.xml files
did contribute to this issue a bit.
 
I ran into a bug when trying to start a domain that is "root's". So
some of the code changes address it, too.

code changed (closed source):
src/org/netbeans/modules/j2ee/sun/ide/j2ee/StartSunServer.java (rev 1.11)

src/org/netbeans/modules/j2ee/sun/ide/j2ee/ui/AddServerVisualPanel.form
(rev 1.5)
src/org/netbeans/modules/j2ee/sun/ide/j2ee/ui/AddServerVisualPanel.java
(rev 1.6)
src/org/netbeans/modules/j2ee/sun/ide/j2ee/ui/Bundle.properties (rev 1.12)

Reassigning to ludo to signal the need to update the netbeans
repository with new scrambled bits.
Comment 10 Petr Blaha 2005-02-24 16:13:31 UTC
I'm not sure that it is P1, downgrading to P2. The issue will be fixed
in NB trunk very soon. Ludo should update app server plugin.
Comment 11 _ ludo 2005-02-24 16:28:13 UTC
integrated now.
Comment 12 Lukas Jungmann 2005-03-31 13:20:39 UTC
v. 200503301800