I have recently installed the WebLogic 12.1.3 on my local windows 10 desktop. Created a very small webapp and it ran fine until I added the beans.xml.
Adding the beans.xml and starting the server, I get the error : weblogic.management.DeploymentException: java.lang.NoSuchMethodError: com.sun.faces.util.Util.isCdiOneOneOrGreater()Z
I could sort of understand it is something related to a mismatch in JSF versions. Then, I started searching and stumbled upon this beautiful answer from BalusC.
How to find out the current version of Mojarra which my WebLogic is using?
The above answer says "Another way would be to explore the JSF module in /wlserver/modules folder of WebLogic installation. In my 12c installation, the filename says glassfish.jsf_1.0.0.0_2-1-20.jar, which in turn identifies Mojarra 2.1.20".
So I checked to see what is there in my modules folder and I got more than 1 jsf jar. My question (preferably to BalusC :-) but also to anyone who can help) is
- if it is fine or not to have multiple JSF related jars in the modules folder.
- if this multiple JSF jars is the reason for the error ?
- if I can clean up (manually delete) files in this "modules" folder to have one version of JSF related files ?
Note : All these stuff came out of the box with the 12.1.3 installation.
JSF related files found in my "\wlserver\modules" folder
- glassfish.jsf_1.2.0.0_1-2-15.jar
- glassfish.jsf_2.0.0.0_2-1-20.jar
- javax.jsf_1.4.0.0_1-2.jar
- weblogic.server.modules.jsf_12.1.3.0.jar
- weblogic.server.modules.jsf2.0_12.1.3.0.jar
- weblogic.server.merge.modules_12.1.3.0.xml
- weblogic.server.modules.extra_12.1.3.0.xml
- weblogic.server.modules.jsf_12.1.3.0.xml
- weblogic.server.modules.jsf2.0_12.1.3.0.xml
Thanks a lot in advance.