WE HAVE SUNSET THIS LISTSERV - Join us at collectionspace@lyrasislists.org
View all threadsHi all,
I'm currently trying to debug this file in CS' "service"...:
services/common/src/main/java/org/collectionspace/services/common/document/DocumentUtils.java
...in the following environment:
Debian 6.0.5 (squeeze)
Eclipse Galileo v3.5.2
Collectionspace v.3.2
The java code is deployed on the Tomcat server and I'm debugging using jpda (following the method described herehttp://stackoverflow.com/questions/7677060/debugging-java-application-deployed-in-tomcat)
It works well when debugging CS' "application".
But when it comes to "service" and the debugger stops on a breakpoint, I get this (well known to Eclipse users I think) message:
"Source not found. Edit source lookup path"
I read dozen of pages on the web about this problem (I've added "service" to the path), but still, it doesn't work.
How do you guys debug service? Have you you ever seen (maybe solved?) this problem before?
Thank you by advance for your help.
Cheers,
Sébastien
Ps: one strange thing: when stopped on a breakpoint and "source not found" displayed, if I look at my java code page (e.g. DocumentUtils.java ) opened in Eclipse, I can actually see the variables values by hovering the mouse cursor over the variables... but of course, when stepping over the code, I get the error message again.
Sébastien Brossard
IT-Udvikler
sebastien.brossard@smk.dkmailto:3sebastien.brossard@smk.dkT
Tmailto:3sebastien.brossard@smk.dkT +45 2552 7112
Statens Museum for Kunst
Sølvgade 48-50
DK-1307 København K
T +45 3374 8494
F +45 3374 8404
smk.dkhttp://smk.dk/
[Logo_mail]
Because of the structure of the services in multiple projects, eclipse needs some help to find the sources. You basically have to tell it to find sources by adding all the project dirs. I am not at my workstation so cannot give you precise steps, and Richard (our eclipse expert) is out this week. But I know we saw this, and fixed it by specifying the source directories.
Some additional suggestions here:
http://stackoverflow.com/questions/6174550/eclipse-java-debugging-source-not-found
Sorry I cannot be more specific, but HTH -
Patrick
On Jul 24, 2013, at 5:50 AM, Sébastien Brossard wrote:
Hi all,
I’m currently trying to debug this file in CS’ “service”…:
services/common/src/main/java/org/collectionspace/services/common/document/DocumentUtils.java
...in the following environment:
Debian 6.0.5 (squeeze)
Eclipse Galileo v3.5.2
Collectionspace v.3.2
The java code is deployed on the Tomcat server and I’m debugging using jpda (following the method described here)
It works well when debugging CS’ “application”.
But when it comes to “service” and the debugger stops on a breakpoint, I get this (well known to Eclipse users I think) message:
“Source not found. Edit source lookup path”
I read dozen of pages on the web about this problem (I’ve added “service” to the path), but still, it doesn’t work.
How do you guys debug service? Have you you ever seen (maybe solved?) this problem before?
Thank you by advance for your help.
Cheers,
Sébastien
Ps: one strange thing: when stopped on a breakpoint and “source not found” displayed, if I look at my java code page (e.g. DocumentUtils.java ) opened in Eclipse, I can actually see the variables values by hovering the mouse cursor over the variables… but of course, when stepping over the code, I get the error message again.
Sébastien Brossard
IT-Udvikler
sebastien.brossard@smk.dk
T +45 2552 7112
Statens Museum for Kunst
Sølvgade 48-50
DK—1307 København K
T +45 3374 8494
F +45 3374 8404
smk.dk
<image003.jpg>
Talk mailing list
Talk@lists.collectionspace.org
http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org
Hi Patrick,
Thank you for your answer.
I added some source directories to the build path of the project, without results.
BUT...
I also added the following path to Source Lookup:
services/common/src/main/java
...and this time it worked.
I'm not sure to understand why, because I had added before a more specific path (services/common/src/main/java/org/collectionspace/services/common/document) without results.
But it works now.
Thank you again!
Have a nice day.
Cheers,
Sébastien
Fra: Patrick Schmitz [mailto:pschmitz@berkeley.edu]
Sendt: 24. juli 2013 18:49
Til: Sébastien Brossard
Cc: 'talk@lists.collectionspace.org'
Emne: Re: [Talk] Debugging cs-service in Eclipse : hit breakpoint -> source not found
Because of the structure of the services in multiple projects, eclipse needs some help to find the sources. You basically have to tell it to find sources by adding all the project dirs. I am not at my workstation so cannot give you precise steps, and Richard (our eclipse expert) is out this week. But I know we saw this, and fixed it by specifying the source directories.
Some additional suggestions here:
http://stackoverflow.com/questions/6174550/eclipse-java-debugging-source-not-found
Sorry I cannot be more specific, but HTH -
Patrick
On Jul 24, 2013, at 5:50 AM, Sébastien Brossard wrote:
Hi all,
I'm currently trying to debug this file in CS' "service"...:
services/common/src/main/java/org/collectionspace/services/common/document/DocumentUtils.java
...in the following environment:
Debian 6.0.5 (squeeze)
Eclipse Galileo v3.5.2
Collectionspace v.3.2
The java code is deployed on the Tomcat server and I'm debugging using jpda (following the method described herehttp://stackoverflow.com/questions/7677060/debugging-java-application-deployed-in-tomcat)
It works well when debugging CS' "application".
But when it comes to "service" and the debugger stops on a breakpoint, I get this (well known to Eclipse users I think) message:
"Source not found. Edit source lookup path"
I read dozen of pages on the web about this problem (I've added "service" to the path), but still, it doesn't work.
How do you guys debug service? Have you you ever seen (maybe solved?) this problem before?
Thank you by advance for your help.
Cheers,
Sébastien
Ps: one strange thing: when stopped on a breakpoint and "source not found" displayed, if I look at my java code page (e.g. DocumentUtils.java ) opened in Eclipse, I can actually see the variables values by hovering the mouse cursor over the variables... but of course, when stepping over the code, I get the error message again.
Sébastien Brossard
IT-Udvikler
sebastien.brossard@smk.dkmailto:3sebastien.brossard@smk.dkT
Tmailto:3sebastien.brossard@smk.dkT +45 2552 7112
Statens Museum for Kunst
Sølvgade 48-50
DK-1307 København K
T +45 3374 8494
F +45 3374 8404
smk.dkhttp://smk.dk/
<image003.jpg>
Talk mailing list
Talk@lists.collectionspace.orgmailto:Talk@lists.collectionspace.org
http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org
Glad I got you pointed in the right direction, so you could solve your problem. We really need better documentation on how we set up our dev tools (we have folks here on eclipse, and others on NetBeans, and an alumnus developer used IntelliJ, but we have not done a good job of capturing configuration and best practices for development. If only we could clone Richard and Aron...
Patrick
On Jul 25, 2013, at 3:03 AM, Sébastien Brossard wrote:
Hi Patrick,
Thank you for your answer.
I added some source directories to the build path of the project, without results.
BUT…
I also added the following path to Source Lookup:
services/common/src/main/java
...and this time it worked.
I’m not sure to understand why, because I had added before a more specific path (services/common/src/main/java/org/collectionspace/services/common/document) without results.
But it works now.
Thank you again!
Have a nice day.
Cheers,
Sébastien
Fra: Patrick Schmitz [mailto:pschmitz@berkeley.edu]
Sendt: 24. juli 2013 18:49
Til: Sébastien Brossard
Cc: 'talk@lists.collectionspace.org'
Emne: Re: [Talk] Debugging cs-service in Eclipse : hit breakpoint -> source not found
Because of the structure of the services in multiple projects, eclipse needs some help to find the sources. You basically have to tell it to find sources by adding all the project dirs. I am not at my workstation so cannot give you precise steps, and Richard (our eclipse expert) is out this week. But I know we saw this, and fixed it by specifying the source directories.
Some additional suggestions here:
http://stackoverflow.com/questions/6174550/eclipse-java-debugging-source-not-found
Sorry I cannot be more specific, but HTH -
Patrick
On Jul 24, 2013, at 5:50 AM, Sébastien Brossard wrote:
Hi all,
I’m currently trying to debug this file in CS’ “service”…:
services/common/src/main/java/org/collectionspace/services/common/document/DocumentUtils.java
...in the following environment:
Debian 6.0.5 (squeeze)
Eclipse Galileo v3.5.2
Collectionspace v.3.2
The java code is deployed on the Tomcat server and I’m debugging using jpda (following the method described here)
It works well when debugging CS’ “application”.
But when it comes to “service” and the debugger stops on a breakpoint, I get this (well known to Eclipse users I think) message:
“Source not found. Edit source lookup path”
I read dozen of pages on the web about this problem (I’ve added “service” to the path), but still, it doesn’t work.
How do you guys debug service? Have you you ever seen (maybe solved?) this problem before?
Thank you by advance for your help.
Cheers,
Sébastien
Ps: one strange thing: when stopped on a breakpoint and “source not found” displayed, if I look at my java code page (e.g. DocumentUtils.java ) opened in Eclipse, I can actually see the variables values by hovering the mouse cursor over the variables… but of course, when stepping over the code, I get the error message again.
Sébastien Brossard
IT-Udvikler
sebastien.brossard@smk.dk
T +45 2552 7112
Statens Museum for Kunst
Sølvgade 48-50
DK—1307 København K
T +45 3374 8494
F +45 3374 8404
smk.dk
<image003.jpg>
Talk mailing list
Talk@lists.collectionspace.org
http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org