- is it correct to use Util.class, which resides in the EJB module, from MyServlet, which is part of WAR module?
- is EJB module a right place for Util.class (it is not an EJB component!) taking into account that it should be used in both modules EJB as well as WAR.
The problems is that I have an exception during deployment. But what is the most interesting it is the fact that I didn't have this problem until I started using JSF. I've just added faces-config.xml and registered FacesServlet in web.xml. That's it. After doing that I have this deployment problem.
I also want to notice that the code worked before I put 'JSF nature' in it. That makes me think this is not a configuration problem.
I usually place the Util.class in a common-util.jar and make it available to both the EJB module and the war module by mentioning it as a java module in the application.xml. More details can be found here