Reputation: 809
I started to work on a legacy jsf code which contains duplicated class and jsf names in different packages and different wars, of course. One for the operators, the other for the customers. I would like to know that it's working by accident or the classpath resolution guarantees that the jsf file will find the proper backing bean. Both beans are named beans.
The structure of the project looks like this:
The whole application is packaged into the same ear. Is it possible that the reference ${back} in frontend2.xhtml is resolved to com.company.operator.Back, the class in the other module?
IntelliJ founds the proper references.
Upvotes: 0
Views: 37
Reputation: 809
Every WAR file is loaded by separate classloader, thus cannot see each other.
https://blogs.oracle.com/javamagazine/post/how-the-jvm-locates-loads-and-runs-libraries
Upvotes: 1