I have a web application which is working fine when I deploy it as a WAR on Tomcat. However, when I deploy the same war (or built an ear from the war) on WebSphere(8.5.5.0), I am getting the below error:
com.ibm.ws.ecs.internal.scan.context.impl.ScannerContextImpl scanClassesDir
unable to open input stream for resource <Classname>.class - java.lang.IllegalArgumentException
Please let me know if while building the war any specific changes need to be done for deploying on WebSphere. Also, the error is showing up for all compiled Java classes.