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.
[NetBeans 4.1 RC1] 1. Create Enterprise Application consisting of EJB Module and Web Application. 2. Create session bean in EJB Module. 3. Open index.jsp in Web Application and add a breakpoint. 4. Select Debug on Enterprise Application. Breakpoint will be reached, but when you press F8 debugger will not stop on next line and will continue. Open Window -> Debugging -> Sources and check <WebApplication>/web folder. Then JSP debugging will work.
can you zip and attach the project(s) (nbproject dir should be enough if it's too big)
It's just empty project created by wizard.
Created attachment 21796 [details] Projects
BTW: is this really a P1? How would you file it if it was not after RC1 ;-) I think this is a P2 and should be waived for 4.1.
This has a work-around, so I agree that the P1-ness is questionable.
Please take a look at this and comment about possible causes? Which interface is used to communicate the source information from a project to the debugger? Assign back to vkraemer after comment.
The workaround is not easy discoverable so ordinary user will not know how to solve it and debugging JSP is very often case.
There are several possible reasons of this problem: 1) Class Root for <WebApplication>/web folder is not on the classpath given to debugger during debugger start. 2) SourceForBinaryQuery does not work for given class root. Source for binary query should return proper source root for given class root. Is it enough? Feel free to ask for more.
So, the first issue requires that I get <webapp>/web onto the classpath sent to nbjpdaXXX via the build-impl.xml? The second seems pretty straightforward...
I have worked out a fix. I will put the fix into the trunk shortly and put the diffs here.
waiting for cvs tunnel to reopen.
http://www.netbeans.org/source/browse/j2ee/earproject/src/org/netbeans/modules/j2ee/earproject/ EarActionProvider.java?r1=1.3&r2=1.4 http://www.netbeans.org/source/browse/j2ee/earproject/src/org/netbeans/modules/j2ee/earproject/ resources/build-impl.xsl?r1=1.18&r2=1.19
verified on trunk
I am updating the issue status to verified -- to match lmartinek's comment. I will check it in once I get a review...
Me and Radko Najman reviewed the code change and agreed that it is OK.
NOTE: the code in EarActionProvider.java (in the trunk) has to be put into utilities/.../J2eeArchiveActionProvider.java in the release41 branch, since the utilities code has been refactored in the trunk...
NOTE: the code in EarActionProvider.java (in the trunk) has to be put into utilities/.../J2eeArchiveActionProvider.java in the release41 branch, since the utilities code has been refactored in the trunk... j2ee/utilities/.../J2eeArchiveActionProvider.java (1.7.2.1) j2ee/earproject/.../build-impl.xsl (1.15.2.1)
fogot to flip the 4.1 switch on this issue earlier
verified in release41