NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

[maven] Debugging multi-module webapps?

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
kawazu



Joined: 21 Oct 2008
Posts: 6

PostPosted: Fri Nov 25, 2011 11:10 am    Post subject: [maven] Debugging multi-module webapps? Reply with quote

Hi all;

another one talking about Glassfishv3 / NetBeans 7.1 dev version debugging: I am making use of apache maven for building and running my projects. Generally, in this situation I do have a large .war artifact/context which includes dependencies to several local .jar artifacts. Situation: I do set a breakpoint in a class contained in some of the .jar artifacts, and then do undeploy / run the war artifact in "debug" mode.

This does generally seem to work, but my breakpoints set in jar dependencies doesn't seem to appear, regularly ending in an error message just like that:

Code:

Attaching to localhost:9009
Not able to submit breakpoint LineBreakpoint REObjectDAOModule.java : 159, reason: No executable location available at line 159 in class core.impl.export.REObjectDAOModule.
Invalid LineBreakpoint REObjectDAOModule.java : 159


Glassfish domain is running in debug mode. Both the jar artifact and the war artifact are compiled with debugging enabled in pom.xml / compiler plugin configuration. Am I missing something here?

TIA and all the best,
Kristian
Back to top
jyeary



Joined: 21 Oct 2008
Posts: 612
Location: Simpsonville, SC

PostPosted: Tue Dec 06, 2011 3:25 am    Post subject: Re: [maven] Debugging multi-module webapps? Reply with quote

I usually see this occur when the compiled and deployed code do not match. For example, I am using a jar as a dependency, and the provided source code was reformatted after the jar was created. You will see this issue. You could recompile the offending jar and see if that fixes things.

John

On Fri, Nov 25, 2011 at 6:10 AM, kawazu <address-removed ([email]address-removed[/email])> wrote:
Quote:
Hi all;

another one talking about Glassfishv3 / NetBeans 7.1 dev version debugging: I am making use of apache maven for building and running my projects. Generally, in this situation I do have a large .war artifact/context which includes dependencies to several local .jar artifacts. Situation: I do set a breakpoint in a class contained in some of the .jar artifacts, and then do undeploy / run the war artifact in "debug" mode.

This does generally seem to work, but my breakpoints set in jar dependencies doesn't seem to appear, regularly ending in an error message just like that:


Code:

Attaching to localhost:9009
Not able to submit breakpoint LineBreakpoint REObjectDAOModule.java : 159, reason: No executable location available at line 159 in class core.impl.export.REObjectDAOModule.
Invalid LineBreakpoint REObjectDAOModule.java : 159




Glassfish domain is running in debug mode. Both the jar artifact and the war artifact are compiled with debugging enabled in pom.xml / compiler plugin configuration. Am I missing something here?

TIA and all the best,
Kristian







--
John Yeary
--
http://javaevangelist.blogspot.com
http://www.johnyeary.com
@jyeary

"Far better it is to dare mighty things, to win glorious triumphs, even though checkered by failure, than to take rank with those poor spirits who neither enjoy much nor suffer much, because they live in the gray twilight that knows not victory nor defeat."
-- Theodore Roosevelt
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo