In my Java / Seam / JbossAS application, I decided to film my Model classes (hibernate) and moved them to another project. The project creates model.jar, which is then used by the main application. The identification of model.jar is permitted by Ivy. Creating the main application using Ant works without problems. Then I will copy the model.jar file manually to the directory 'mainapp.ear / lib'. Subsequently, I deploy the application, and there are no problems (although I noticed that there is no information about the mappings found). But when I want to log in, I get an exception:
javax.el.ELException: javax.ejb.EJBTransactionRolledbackException: org.hibernate.hql.ast.QuerySyntaxException: AppUser is not mapped [select u from AppUser u where u.userName = :usernamePar]
At the same time, there were no code changes, they just squeezed some of the classes into the bank. Does this mean that I need the source code for the Model classes when compiling the main application?
source share