We have been using tomcat for past 3 years. We do development on a windows machine and the applications are deployed in production machine which has Solaris OS. We haven’t faced any problems until we introduced a new level under webapps. Please find our current structure below. We have deployed 1.1 version of the applications under webapps/mces/mces1.1 and similary 1.0 under webapps/mces/mces1.0. The applications under webapps are of version 1.1.
Webapps/
Jmcs
mms
superapp
mces
mces1.1
jmcs
mms
superapp
mces1.0
jmcs
mms
superapp
We are seeing very instable behavior. We are not able to login to Superapp application under mces 1.1 and mces 1.0, but we are able to login to superapp directly under webapps folder. On restarting the tomcat server, we will be able to login to all the applications. The instable behavior comes after sometime, it need not be same, we will be able to login under superapp of mces1.1 but not to superapp directly under webapps.
Please advise us on what could be the probably reasons. Project release is getting delayed due to this problem. Please guide us.
Please find below the error shown in tomcat logs. Please note that it doesn't display the name of the class, that it is not able to find. Generally, along with java.lang.NoClassDefFoundError , the class that it is not able to find is also shown. This error comes while running same application under tomcat at different levels. One application is under webapps directly and copy of this application is kept under 1.0 folder. This error comes only after sometime of starting the tomcat. On restarting the tomcat, the error doesn't occur again and everything is fine. It pops up again after sometime. This behaviour is seen on SOLARIS only. This setup works well on window.
java.lang.NoClassDefFoundError
com.goodyear.common.config.chart.ChartConfigParser .parse(ChartConfigParser.java:75)
com.goodyear.common.util.PropertyLoader.updateArra yMap(PropertyLoader.java:245)
com.goodyear.common.util.PropertyLoader.loadArrayM ap(PropertyLoader.java:215)
com.goodyear.common.util.PropertyLoader.loadArrayM ap(PropertyLoader.java:141)
com.goodyear.common.registry.AppLookUpFileDao.load (AppLookUpFileDao.java:28)
com.goodyear.common.registry.AppLookUpDao.getMap(A ppLookUpDao.java:46)
com.goodyear.jmcs.helper.MCSHelper.<init>(MCSHelpe r.java:99)
com.goodyear.mms.handlers.RPDHandler.getQSResponse (RPDHandler.java:78)
com.goodyear.mms.handlers.RPDHandler.getResultAsSt ring(RPDHandler.java:292)
com.goodyear.superapp.servlets.QueryApp.processReq uest(QueryApp.java:143)
com.goodyear.superapp.servlets.QueryApp.doPost(Que ryApp.java:183)
javax.servlet.http.HttpServlet.service(HttpServlet .java:710)
javax.servlet.http.HttpServlet.service(HttpServlet .java:803)