# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: C:\nam\main\serverplugins\sun\appsrv81 # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: src/org/netbeans/modules/j2ee/sun/ide/j2ee/PlatformImpl.java *** C:\nam\main\serverplugins\sun\appsrv81\src\org\netbeans\modules\j2ee\sun\ide\j2ee\PlatformImpl.java Base (1.27) --- C:\nam\main\serverplugins\sun\appsrv81\src\org\netbeans\modules\j2ee\sun\ide\j2ee\PlatformImpl.java Locally Modified (Based On 1.27) *************** *** 87,95 **** private static final String WEBSERVICES_TOOLS_JAR = "lib/webservices-tools.jar"; //NOI18N private static final String[] SWDP_JARS = new String[] { ! "lib/addons/restbeans-api.jar", ! "lib/addons/restbeans-impl.jar", ! "lib/addons/wadl2java.jar" }; private static final String[] TRUSTSTORE_LOCATION = new String[] { --- 87,95 ---- private static final String WEBSERVICES_TOOLS_JAR = "lib/webservices-tools.jar"; //NOI18N private static final String[] SWDP_JARS = new String[] { ! "restbeans-api.jar", ! "restbeans-impl.jar", ! "wadl2java.jar" }; private static final String[] TRUSTSTORE_LOCATION = new String[] { *************** *** 290,298 **** } private List getSwdpJarURLs() throws MalformedURLException { ArrayList ret = new ArrayList(); for (String jarName : SWDP_JARS) { ! File jarFile = new File(root, jarName); if (jarFile.isFile()) { ret.add(fileToUrl(jarFile)); } else { --- 290,306 ---- } private List getSwdpJarURLs() throws MalformedURLException { + List ret = getSwdpJarURLs(new File(new File(dmProps.getLocation(), dmProps.getDomainName()), "lib")); //NOI18N + if (ret == null) { + ret = getSwdpJarURLs(new File(root, "lib/addons")); //NOI18N + } + return ret; + } + + private List getSwdpJarURLs(File libDir) throws MalformedURLException { ArrayList ret = new ArrayList(); for (String jarName : SWDP_JARS) { ! File jarFile = new File(libDir, jarName); if (jarFile.isFile()) { ret.add(fileToUrl(jarFile)); } else {