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 59791 - Problem with appserver set by arg. com.sun.aas.installRoot
Summary: Problem with appserver set by arg. com.sun.aas.installRoot
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: T9Y
Depends on:
Blocks:
 
Reported: 2005-06-09 14:10 UTC by L Martinek
Modified: 2005-09-19 10:03 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (24.39 KB, text/plain)
2005-06-09 14:12 UTC, L Martinek
Details
.nbattrs (326 bytes, text/plain)
2005-06-09 14:13 UTC, L Martinek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description L Martinek 2005-06-09 14:10:40 UTC
In my automated tests I execute IDE with argument -J-Dcom.sun.aas.installRoot to
set path to appserver installation directory. Sometimes it doesn't work
correctly. Appserver node in runtime is named "localhost:4848" instead of "Sun
Java System Application Server 8.1" and several exceptions are in log. File
Config/J2EE/InstalledServers/.nbattrs has not all neccessary information.
Comment 1 L Martinek 2005-06-09 14:12:55 UTC
Created attachment 22588 [details]
messages.log
Comment 2 L Martinek 2005-06-09 14:13:25 UTC
Created attachment 22589 [details]
.nbattrs
Comment 3 Jan Horvath 2005-06-13 12:43:02 UTC
On Solaris and MacOSX it doesn't work at all. When I run IDE with this argument, no appserver node is 
added, so there isn't possible to run automated tests. 
Is there any workaround?
Comment 4 _ ludo 2005-06-14 16:40:21 UTC
seems more a regression in the xml support of netbeans itself...
Nothing changed in the plugin since FCS, and look at the root cause of the
exception, as well as the other exceptions...

You can try a workaround by adding a symbolic link of the app server dir under
the netbeans/SunAppServer8.1  instead of the env variable, but again, the issue
is elsewhere...
Please, talk to some xml guys in NetBeans
Comment 5 Petr Jiricka 2005-08-02 18:12:45 UTC
The exception comes from org.openide.xml, reassigning.
Comment 6 Jan Chalupa 2005-09-05 15:36:35 UTC
Jesse, Yarda, any ideas?
Comment 7 Jesse Glick 2005-09-06 19:23:16 UTC
I haven't any idea why what you did triggered this, but the JDK code in
FactoryFinder.newInstance is wrong;

  cl = FactoryFinder.class.getClassLoader();

is meaningless since this will always set cl to null (if run as part of the JDK
rt.jar). So file a JDK bug for that, then also patch the JDK source to be
correct and continue with diagnosis.
Comment 8 Vince Kraemer 2005-09-16 17:47:29 UTC
able to reproduce.