Hi Christopher, The dtd for validations.xml, validator-rules.xml and struts-config.xml are not same and that was causing this issue. However, this is fixed after made it same for all.
Thanks a lot for your help Thanks Raj On Fri, May 15, 2015 at 1:27 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Raj, > > On 5/15/15 12:49 PM, RAJ wrote: > > Thanks Chris for the quick response, for class loader it is > > <Loader> but as your saying not make that change so will not. > > Validator-rules. Xml file is under > > Catalina_Home/webapps/<app-name>/WEB-INF/ and the app is in > > exploded format. This is working fine on tomcat 5.x and we just > > copied the files from their to tomcat 7.x. > > > > Yes, this looks normal as other functionalities are working except > > when we call struts it doesn't work. > > - From earlier: > > > javax.servlet.UnavailableException: Cannot load a validator > > resource from '/WEB-INF/validator-rules.xml' > > > > at > > org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java: > 174) > > > > at org.apache.struts.action.ActionServlet.initModulePlugIns( > > ActionServlet.java:839) > > I checked the code for ValidatorPlugIn.init and it looks like this > code stupidly swallows the original exception: > > > try { this.initResources(); > > > > servlet.getServletContext().setAttribute(VALIDATOR_KEY + > > config.getPrefix(), resources); > > > > servlet.getServletContext().setAttribute(STOP_ON_ERROR_KEY + '.' + > > config.getPrefix(), (this.stopOnFirstError ? Boolean.TRUE : > > Boolean.FALSE)); } catch (Exception e) { log.error(e.getMessage(), > > e); throw new UnavailableException( "Cannot load a validator > > resource from '" + pathnames + "'"); } > > But! It *does* log it at the ERROR level. Check your other log files > to see what the actual error (and stack trace!) is. > > - -chris > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2 > Comment: GPGTools - http://gpgtools.org > > iQIcBAEBCAAGBQJVVjqsAAoJEBzwKT+lPKRYJCgP/0sGsjg8Dn+7l0TAXJEPUNTk > v00h/2MShxWET0olsScyhwLdBIBQi3yjfuVEIq7A5s0StU2JGsN69VncMtaT9OcF > kSIJMQhDxpWI0VaD+2oqQzTfMW6SHB/yrFgxWRlxeVztczrQYuIfWuv5JX/lLOIO > LalZMlRn+7maRcyyvSktriOgbNVWuzuQWw3lOBcWR7Se72T1uFxTIyIhWFX/ieG6 > HnYNr/oghMAsb0ief7t0/FRpuOAs2R7cTPyfezPDCk8ba74euq8SUYh8g0fG3Bw0 > ihN8myamrPJO/H4nBO9RD2A+VaGGR+Pkr4iNnsRklxwtssanuEI5ppLrvRSO1l5D > Da4Hg+8q+4tepCBaZ/qx+eCJhHTVTezmOr5qIbWBPnRKbkK05dySYGaJV7hNS4ks > TQmszvXe3mfMRMMJXofX+hgqhcKa9ZR6YpJxnc+0GLuAmt1Z+Zbz47fEj1Y8dorZ > bMluz5fwIxavnokIA6a+xQGnhxyAmSJovCZWSlBUNnOTsbiJZ8t1gjk8bLZO4RQ+ > osCL6+tyVLEVDKXO6Ax2BjvShjywMJan+c+ulTY8CXF/0iIPvxaVy9j9C2N1Vfcc > WAlocKne//iDIm0tWU7b72XZcwA6xoXMLM2LaFHVg9NuIPzhRfAJ2LsMs+BD4bgz > pG9gSXQMqM93v5lzi2fi > =hjYO > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >