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.
Summary: | Runtime error: build\lib not found | ||
---|---|---|---|
Product: | javaee | Reporter: | bht <bht> |
Component: | EAR | Assignee: | David Konecny <dkonecny> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | mehachille, pjiricka |
Priority: | P2 | Keywords: | REGRESSION |
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Other | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | testcase (zip file) |
Description
bht
2009-12-02 16:24:38 UTC
Created attachment 92032 [details]
testcase (zip file)
This testcase reproduces easily on my computer.
How to reproduce:
Clean and build the enterprise project and debug it. In the output window, NetBeans complains that the lib directory is missing. If you create it manually, then the application runs ok.
I could not work with the sample that you attached, since I do not use wicket. Can you try the following really quick... exit out of the IDE remove the nbproject\build-impl.xml file from the project(s) that appear to have this problem. restart the IDE do a clean do a debug Closed IDE, deleted Member\nbproject\build-impl.xml This is the file that causes the error. File gets re-created, error is reported exactly as before. It is easy to install Wicket: http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=3586 Workaround: remove slightly below the given line of build-impl.xml the one containing <fileset dir="${build.dir}/lib" includes="*.jar"/> How to reproduce: This bug happens for me in an ordinary freshly created JavaEE project: Just create a new project and select: JavaEE - Enterprise Application and use the defaults for everything else (Glassfish v3, JavaEE 6). Then simply click on "debug main project" which is the one with the blue triangle. I can reproduce using the latest steps. This is regression caused by my fix of bug 52273. Ant is silly enough to complain that the lib directory is missing when classpath is defined as <fileset dir="${build.dir}/lib" includes="*.jar"/> instead of silently returning empty set of files. Ant 1.7.1 introduces new fileset's attribute named erroronmissingdir which for backward compatibility is set by default to true and which could be used in this case with false value. In order to avoid dependency on Ant 1.7.1 I'm using alternative fix: <fileset dir="${build.dir}" includes="lib/*.jar"/> This is a candidate for a patch of NB68. 8e4e436f838e The whiteboard changed to 68patch-candidate according to the NetBeans Patches Process (http://wiki.netbeans.org/NetBeansPatchesProcess) *** Bug 182983 has been marked as a duplicate of this bug. *** |