Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find the source code of Wildfly in Eclipse debug

I am using Wildfly 10 and Eclipse develop an application, and need to debug into a class TransactionScopedEntityManager through this "persist" method:

entityManager.persist(member);

However, in Eclipse when I pressed F5 to step into, I received

Source not found
Edit source lookup path

Where is the source of the class TransactionScopedEntityManager located? In my ~/.m2/repository/org/jboss/:

aesh/                 integration-platform/ jboss-parent/         jdf/                  marshalling/          remotingjmx/          shrinkwrap/           staxmapper/           weld/                                                        
arquillian/           jboss-dmr/            jboss-vfs/            logging/              remoting/             sasl/                 spec/                 threads/              xnio/

It has all those directories. Where to find the source code of the class?

like image 442
user697911 Avatar asked Oct 27 '25 11:10

user697911


2 Answers

Download the "Application Server Source Code" zip from http://wildfly.org/downloads/ , expand it somewhere and configure the Source Lookup of Eclipse to also look into that folder.

like image 178
Mickael Avatar answered Oct 29 '25 02:10

Mickael


Download the source code, matching your runtime, from the wildfly project page. Extract to a location. Open the 'server view'. Select your server runtime and hit f3 (or rightclick and click 'open'). Click 'open launch configuration'. Go to tab 'Source'. Click 'Add'. Select 'File System Directory' and hit 'Ok'. Choose the location that you extracted the source to and check 'Search subfolders'. Confirm with 'OK'-

like image 24
mojoo-de Avatar answered Oct 29 '25 01:10

mojoo-de