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.
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?
Created attachment 20462 [details] NoSuchElementException
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.
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
I think, similar as issue 55167
yes, very similiar and will be fixed at the same time. Related big time to 55376 One fix will close 3 bugs :-)
*** Issue 55167 has been marked as a duplicate of this issue. ***
the message that sherold refered to in his comment on 2005-02-23 06:26 PST, comes from ServerRegistry.java in j2eeserver. Filed 55447.
*** Issue 55376 has been marked as a duplicate of this issue. ***
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.
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.
integrated now.
v. 200503301800