Error 404 Cannot Load A Validator Resource From
This Site Careers Other all forums Forum: Struts Struts validation issue: Cannot load a validator resource Prasanth Pillai Ranch Hand Posts: 52 posted 9 years ago Hi, My application was working till I added the following part in the struts-config.xml file. After that when I start my JBoss server, I am getting the following error. javax.servlet.UnavailableException: Cannot load a validator resource from '/org/apache/struts/validator/validator-rules.xml, /WEB-INF/validation.xml' at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:174) at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:839) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:332) at javax.servlet.GenericServlet.init(GenericServlet.java:211) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3857) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4118) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503) at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) at org.apache.catalina.core.StandardContext.init(StandardContext.java:5005) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503) at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:274) at org.jboss.
| Report Content as Inappropriate ♦ ♦ Validator plugin error Hi, I´m trying to use Struts 1.2 Validator plugin. I guess something in struts-config.xml is missing or wrong. If I add the necessary code to use the plugin validator:
from '/WEB-INF/validator-rules.xml'Agile Board ExportXMLWordPrintableJSON Details Type: Bug Status: Closed Priority: https://software.intel.com/en-us/forums/intel-xdk/topic/555056 Major Resolution: Cannot Reproduce Affects Version/s: 1.2.9 Fix Version/s: None Component/s: Core Labels: error 404 None Environment: os:windows-xp jre version: 1.5 application server: jboss-4.0.3SP1 Description I track the source and found that exception is thrown when excuting the method: public Object error 404 cannot parse(InputStream input) throws IOException, SAXException { configure(); InputSource is = new InputSource(input); >>>>>>>>>>>>>>>>>>>>>getXMLReader().parse(is); return (root); } which belong to class org.apache.commons.digester.Digester. Exception messages are listed as following: 19:23:53,406 ERROR [Digester] End event threw exception java.lang.NoSuchMethodException: No such accessible method: addValidatorAction() on object: org.apache.commons.validator.ValidatorResources at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:214) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:216) at org.apache.commons.digester.Rule.end(Rule.java:230) at org.apache.commons.digester.Digester.endElement(Digester.java:1130) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown So
LearningModern CodeNetworkingOpen SourceStorageToolsDeveloper TypeEmbedded SystemsGame DevMediaTechnical, Enterprise, HPCWebOSAll ToolsAndroid*HTML5Linux*OS X*Windows*ResourcesCode SamplesContact SupportDocumentationFree SoftwareIntel Registration CenterProduct ForumsSDKsResourcesPartner with IntelAcademic ProgramPartner SpotlightBlack Belt DeveloperDeveloper MeshInnovator ProgramSuccess StoriesLearnBlogBusiness TipsEventsVideosSupportContact SupportDeveloper EvangelistsFAQsForums Search form Search You are hereHome › Forums › Intel® Software Development Products › Intel® XDK FacebookLinkedInTwitterDiggDeliciousGoogle Plus How can I use appframework UI with jQuery and jQuery.Validate? How can I use appframework UI with jQuery and jQuery.Validate? Jim A. Sun, 04/26/2015 - 00:11 Dear XDK experts, I created a AppFramework project with intel XDK (ver. 1912), and created one button with click event via the app designer. The following js code is created in the index_user_scripts.js file. The code works fine. When I click the button, the alert pops up. However, when I uncommented the initValidation() in the event_handlers(), the click event won't work and I will get error messages saying jquery is not defined. I doubled checked the include path and verified the jquery js file is in the js folder (I downloaded and saved in the js folder). I have shown the index_user_scripts.js, the header of the index.html file and the error message below. Any help will be greatly appreciated. I have searched online and some said jquery and appframework UI cannot be used together. Is it still true? BTW, does appFramework has built-in ability to do form validation? Is jquery.validate the best for form validate? If not, which one is the best for a xdk project? Thanks! //===== Content of the index_user_scripts.js file =====// (function() { "use strict"; /* hook up event handlers */ function register_event_handlers() { initValidation(); /* button Button */ $(document).on("click", ".uib_w_2", function(evt) { /* your code goes here */ alert("Button is clicked."); }); } document.addEventListener("app.Ready", register_event_handlers, false); })(); function initValidation() { $("#loginForm").validate ( { rules: { txt_login_email: {