Some Common TroubleShooting Tips While Developing Java EE Apps

  1. Code is correct and you can’t figure out why dependency injection isn’t working. You also checked beans.xml for directive bean-discovery-mode=”all”. Make sure you also check the import path. For example the TextUtil class below are from 2 different packages, make sure you are importing the correct one:

    import com.gargoylesoftware.htmlunit.TextUtil;
    import dev.oak.bookstore.back.util.TextUtil;

  2. More to be added later.