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.
When adding a weblogic 10 server that is not installed the default directory (c:\ or user.home), netbeans will not recognize a valid weblogic 10 server. The offending code is located in the "findBeaHomes" method in the "package org.netbeans.modules.j2ee.weblogic9.WLPluginProperties.java" class. the method is as follows: private static List<String> findBeaHomes() { List<String> beaHomesList = new LinkedList<String>(); String dir = ""; if (Utilities.isUnix()) { dir = System.getProperty("user.home", ""); // NOI18N } else if (Utilities.isWindows()) { String systemDrive = System.getenv("SystemDrive"); // NOI18N if (systemDrive == null) { systemDrive = "C:"; // NOI18N } dir = systemDrive; } File beaHomeList = new File(dir + File.separator + "bea" + File.separator + "beahomelist"); // NOI18N try { BufferedReader br = null; try { br = new BufferedReader(new FileReader(beaHomeList)); String list = br.readLine(); if (list != null) { StringTokenizer st = new StringTokenizer(list, ";"); // NOI18N while (st.hasMoreTokens()) { beaHomesList.add(st.nextToken()); } } } finally { if (br != null) { br.close(); } } } catch (Exception ex) { String msg = NbBundle.getMessage(WLPluginProperties.class, "ERR_READING_BEAHOMELIST", beaHomeList.getPath()); Exceptions.attachLocalizedMessage(ex, msg); Logger.getLogger("global").log(Level.INFO, null, ex); } return beaHomesList; }
TM -> 6.0
F. Checking in src/org/netbeans/modules/j2ee/weblogic9/Bundle.properties; /cvs/serverplugins/weblogic9/src/org/netbeans/modules/j2ee/weblogic9/Bundle.properties,v <-- Bundle.properties new revision: 1.11; previous revision: 1.10 done Checking in src/org/netbeans/modules/j2ee/weblogic9/WLPluginProperties.java; /cvs/serverplugins/weblogic9/src/org/netbeans/modules/j2ee/weblogic9/WLPluginProperties.java,v <-- WLPluginProperties.java new revision: 1.12; previous revision: 1.11 done RCS file: /cvs/serverplugins/weblogic9/test/.cvsignore,v done Checking in test/.cvsignore; /cvs/serverplugins/weblogic9/test/.cvsignore,v <-- .cvsignore initial revision: 1.1 done RCS file: /cvs/serverplugins/weblogic9/test/build-unit.xml,v done Checking in test/build-unit.xml; /cvs/serverplugins/weblogic9/test/build-unit.xml,v <-- build-unit.xml initial revision: 1.1 done RCS file: /cvs/serverplugins/weblogic9/test/build.xml,v done Checking in test/build.xml; /cvs/serverplugins/weblogic9/test/build.xml,v <-- build.xml initial revision: 1.1 done RCS file: /cvs/serverplugins/weblogic9/test/cfg-unit.xml,v done Checking in test/cfg-unit.xml; /cvs/serverplugins/weblogic9/test/cfg-unit.xml,v <-- cfg-unit.xml initial revision: 1.1 done RCS file: /cvs/serverplugins/weblogic9/test/unit/src/org/netbeans/modules/j2ee/weblogic9/WLPluginPropertiesTest.java,v done Checking in test/unit/src/org/netbeans/modules/j2ee/weblogic9/WLPluginPropertiesTest.java; /cvs/serverplugins/weblogic9/test/unit/src/org/netbeans/modules/j2ee/weblogic9/WLPluginPropertiesTest.java,v <-- WLPluginPropertiesTest.java initial revision: 1.1 done