Error Loading Configuration File Struts-default.xml
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up SEVERE: Exception starting filter struts2 Unable to load configuration. - bean - jar:file:struts2-core-2.2.3.jar!/struts-default.xml:29:72 up vote 1 down vote favorite struts.xml struts.xml File i have written this
This Site Careers Other all forums Forum: Struts Unable to load struts2-core-2.1.8.1.jar!/struts-default.xml:29:72 Pramod Kumar Pandey Ranch Hand Posts: 52 I like... posted 2 years ago Sir I pasted all struts2 jar file in build path of my project and in the lib folder under WEB-INF , but It is showing HTTP 404-/ProjectName/ Showing stack trace as follows http://stackoverflow.com/questions/21449447/severe-exception-starting-filter-struts2-unable-to-load-configuration-bean : Is there any side effect of adding all strust2 jar needed in our project, because I am not able to recognize which selected jar should be added , so I added all jars use for struts2. At some sites I found they say should https://coderanch.com/t/639179/Struts/framework/Unable-load-struts-core-jar not add extra jars if you are not using, Are they correct ? Sep 08, 2014 9:30:32 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.7.0_40\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jdk1.7.0_40/bin/../jre/bin/server;C:/Program Files/Java/jdk1.7.0_40/bin/../jre/bin;C:/Program Files/Java/jdk1.7.0_40/bin/../jre/lib/amd64;C:\oraclexe\app\oracle\product\10.2.0\server\BIN;C:\Program Files\Java\jdk1.7.0_40\bin;C:\Users\pramod\Desktop\eclipse;;. Sep 08, 2014 9:30:32 AM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:First' did not find a matching property. Sep 08, 2014 9:30:32 AM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Second' did not find a matching property. Sep 08, 2014 9:30:32 AM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Test' did not find a matching property. Sep 08, 2014 9:30:32 AM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Check' did not find a matching property. Sep 08, 2014 9:30:32 A
work. I always get the following error messages: Unable to load configuration. - bean - jar:file:/D:/deploy/struts2-core-2.1.6.jar!/struts-default.xml:29:72 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:5 error loading configuration at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:360) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:403) at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397) at org.apache.catalina.core.ApplicationFilterConfig.
Overview Struts2 - Environment Setup Struts2 - Architecture Struts2 - Examples Struts2 - Configuration Struts2 - Actions Struts2 - Interceptors Struts2 - Result Types Struts2 - Value Stack/OGNL Struts2 - File Uploads Struts2 - Database Access Struts2 - Sending Email Struts2 - Validations Struts2 - Localization Struts2 - Type Conversion Struts2 - Themes/Templates Struts2 - Exception Handling Struts2 - Annotations Struts 2 Tags Struts2 - Control Tags Struts2 - Data Tags Struts2 - Form Tags Struts2 - Ajax Tags Struts 2 Integrations Struts2 - Spring Struts2 - Tiles Struts2 - Hibernate Struts2 Useful Resources Struts2 - Questions and Answers Struts2 - Quick Guide Struts2 - Useful Resources Struts2 - Discussion Selected Reading Developer's Best Practices Questions and Answers Effective Resume Writing HR Interview Questions Computer Glossary Who is Who Struts 2 - Configuration Files Advertisements Previous Page Next Page This chapter will take you through basic configuration required for a Struts 2 application. Here we will see what will be configured in few important configuration files : web.xml, struts.xml, struts-config.xml and struts.properties Honestly speaking you can survive using web.xml and struts.xml configuration files and you have seen in previous chapter that our example worked using these two files, but for your knowledge let me explain other files as well. The web.xml file The web.xml configuration file is a J2EE configuration file that determines how elements of the HTTP request are processed by the servlet container. It is not strictly a Struts2 configuration file, but it is a file that needs to be configured for Struts2 to work. As discussed earlier, this file provides an entry point for any web application. The entry point of Struts2 application will be a filter defined in deployment descriptor (web.xml). Hence we will define an entry of FilterDispatcher class in web.xml. The web.xml file needs to be created under the folder WebContent/WEB-INF. This is the first configuration file you will need to configure if you are starting without the aid of a template or tool that generates it (such as Eclipse or Maven2). Following is the content of web.xml file which we used in our last example.