Context envContext = (Context)initContext.lookup("java:/comp/env");
代码中这一句报错。找不到应用容器
https://www.oschina.net/question/3767374_2279182