Thursday, October 9, 2014

Lets FACE it...

Looks like my escapade with App Servers has not finished.

After finishing the work on WAS Liberty, I realized that we were at old servlet api version 2.4. Though wanted to move to 3.0, but Weblogic 11GR1 does not support that. So bumped up the version to 2.5. Everything seemed like working until people using weblogic in the team faced issues in deployment itself.
The application failed to even deploy on Weblogic with error : java.lang.ClassNotFoundException: javax.faces.webapp.UIComponentTag.

Surprisingly we don't even use JSF or any faces implementation. Went back to my old friend 'google' and found that internet filled with posts from poor souls like me. After going through lots of pages finally found a page which solved the issue.

In struts libraries there is a jar → struts-faces.jar. If this jar is present in your lib folder, weblogic seems to look for faces related libs and hence the issue.

But funny part is - its all working well with servlet 2.4 declaration in web.xml. Its also working well with 2.5 version declaration in WAS. grrrrr....