我们有以下包装:
something.ear (eclipse-project)
+webstuff.war (maven dependency only)
+businessstuff.ejb (eclipse-project)
打包工作完美,我能够调试所有业务。但是我怎样才能让 webstuff.war 的源代码在 eclipse 中可见,从而设置刹车点并调试它呢?
ear and war have only java class files(which is not editable) and not java source code. Better approach is to use some logging framework(i personally prefer log4j).
Every java project developed nowadays have used some logging framework, better search for them in the ear and war files.
On extracting the war file u can see some xml or .properties file which will say what loggong framework it uses.