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 58161 - web folder is not in sources when debugging EAR
Summary: web folder is not in sources when debugging EAR
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: EAR (show other bugs)
Version: 4.x
Hardware: All All
: P1 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-21 12:15 UTC by L Martinek
Modified: 2006-05-30 11:19 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Projects (31.57 KB, application/x-compressed)
2005-04-21 15:15 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-04-21 12:15:59 UTC
[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.
Comment 1 Pavel Buzek 2005-04-21 14:52:07 UTC
can you zip and attach the project(s) (nbproject dir should be enough if it's
too big)
Comment 2 L Martinek 2005-04-21 15:14:37 UTC
It's just empty project created by wizard.
Comment 3 L Martinek 2005-04-21 15:15:19 UTC
Created attachment 21796 [details]
Projects
Comment 4 Pavel Buzek 2005-04-21 19:11:45 UTC
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.
Comment 5 Vince Kraemer 2005-04-21 21:52:46 UTC
This has a work-around, so I agree that the P1-ness is questionable.
Comment 6 Vince Kraemer 2005-04-21 23:48:21 UTC
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.
Comment 7 L Martinek 2005-04-22 08:59:47 UTC
The workaround is not easy discoverable so ordinary user will not know how to
solve it and debugging JSP is very often case.
Comment 8 Jan Jancura 2005-04-22 14:36:50 UTC
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.
Comment 9 Vince Kraemer 2005-04-22 15:27:16 UTC
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... 
Comment 10 Vince Kraemer 2005-04-22 22:39:55 UTC
I have worked out a fix.

I will put the fix into the trunk shortly and put the diffs here.
Comment 11 Vince Kraemer 2005-04-23 07:14:06 UTC
waiting for cvs tunnel to reopen.
Comment 13 L Martinek 2005-04-25 10:49:08 UTC
verified on trunk
Comment 14 Vince Kraemer 2005-04-25 15:36:16 UTC
I am updating the issue status to verified -- to match lmartinek's comment.

I will check it in once I get a review...
Comment 15 Marek Fukala 2005-04-25 17:12:20 UTC
Me and Radko Najman reviewed the code change and agreed that it is OK.
Comment 16 Vince Kraemer 2005-04-25 20:49:24 UTC
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...
Comment 17 Vince Kraemer 2005-04-25 21:25:41 UTC
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)
Comment 18 Vince Kraemer 2005-04-26 01:35:59 UTC
fogot to flip the 4.1 switch on this issue earlier
Comment 19 L Martinek 2005-04-26 10:30:10 UTC
verified in release41