Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Tomcat source code is precisely correct version but Bytecode still does not match

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to debug an application using JAAS authentication. Because this framework is so extremely mulish, I need to debug what the Tomcat is doing internally when trying to use JAAS.

The Tomcat I am trying to debug is of the version `9.0.14.0` and was built on `Dec 6 2018 21:13:53 UTC`.

The source code of the Tomcat I am using for debugging is finalised at the following commit:

```
commit 90583be4f77c92d8e8ac4a48e63b3cdc31e45890 (HEAD, tag: 9.0.14)
Author: Mark Thomas <markt@apache.org>
Date:   Thu Dec 6 21:09:34 2018 +0000

   Tag 9.0.14
   
   git-svn-id: https://svn.apache.org/repos/asf/tomcat/tags/TOMCAT_9_0_14@1848363 13f79535-47bb-0310-9956-ffa450edef68
```

Committed 4 minutes, before it was built. It's literally the same server version. It must be the same source code, as used for the server.

However, when I use IntelliJ to debug the Tomcat, then I get crossed out breakpoints. I almost nowhere can put breakpoints, because they are greyed & crossed out. Sometimes a message appears, telling me that the source code does not match the Bytecode.

How does it not match? Why can I not debug the Tomcat server?
 
Akito Kitsune
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Turns out, I had to explicitly mark the sources in the IDE, so it wouldn't pick some self-selected ones. Now, it seems to pick the right sources and the debugging process works, as expected.
 
I'm gonna teach you a lesson! Start by looking at this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic