Re: Struts 2 Twitter Bootstrap Plugin
Thank you Lukasz. I didn't see it on the Plug-in page. Shall I add it? Best, JB On Mar 1, 2012, at 1:13 AM, Łukasz Lenart lukasz.len...@googlemail.com wrote: Here [1], enjoy :-) [1] http://code.google.com/p/struts2-bootstrap/ Regards -- Łukasz http://www.lenart.org.pl/ mobile +48 606 323 122, office +27 11 0838747 Warszawa JUG conference - Confitura http://confitura.pl/ 2012/3/1 Jeff Black jeffrey.bl...@yahoo.com: All: I hear tell of a Twitter Bootstrap plug-in for Struts 2. Does anyone know where it lives -- if it lives? jb - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts 2 Twitter Bootstrap Plugin
2012/3/1 Jeffrey Black jeffblac...@gmail.com: Thank you Lukasz. I didn't see it on the Plug-in page. Shall I add it? It is up to Johannes Geppert, but he should not complain ;-) Regards -- Łukasz http://www.lenart.org.pl/ mobile +48 606 323 122, office +27 11 0838747 Warszawa JUG conference - Confitura http://confitura.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Generate docx, odt report with Struts2 XDocReport Result
Hi Struts2 User, If you need to generate docx (MS Word), odt (OpenOffice) report with Struts2 (like Jasper), you can use XDocReporthttp://code.google.com/p/xdocreport/ where you can design your odt, docx report with MS Word or OpenOffice by using Velocity/Freemarker syntax to set fields to replace (no need to write your report with XML like Jasper or use private designer, the designer of the report is MS Word or OpenOffice). Note just that XDocReport manages simple report (replace fields, manage loop, condition, etc). XDocReport provides org.apache.struts2.views.xdocreport.XDocReportResult which is a Struts2 Result to generate report with docx, odt and convert it to another format PDF/XHTML if you wish. For XDocReport Struts2 Result please read http://code.google.com/p/xdocreport/wiki/DocxReportingStruts2 We have used org.apache.struts2.views.xdocreport package name because if Struts2 is interested with the XDocReport Result, we can gives you the code (like you have done with Struts2 Jasper) Struts2 developers, if you are interested to host the code of the Struts2 Result XDocReport, don't hesitate to contact me. We use Maven to build XDocReport and you can use pom on the Maven central repository to have dependencies to XDocReport. Regards Angelo
Re: Validation doesn’t honor the bundle attribute in http://jakarta.apache.org/commons/dtds/validator_1_3_0.dtd
Hi Joann, Can you please confirm what version of Struts you are using? You appear to be using Struts 2 for your application [1]; however it appears you are referencing Struts 1.x validation information. Perhaps I'm missing something? [1] http://struts.1045723.n5.nabble.com/How-to-implement-alternate-error-messages-in-the-Struts-validation-framework-Struts-2-0-1-4-td5522076.html Best, jb On Thu, Mar 1, 2012 at 8:59 AM, joann luo joannlu...@gmail.com wrote: Hello, I am using http://jakarta.apache.org/commons/dtds/validator_1_3_0.dtd but I found it still does not honor ‘bundle” attribute in the validation.xml. I need to display an alternate error message defined in a custom bundle through the Struts validation framework instead of the default error message. Based on the information provided from this early thread, it should have been available since Validator 1.1.4. http://www.mail-archive.com/user@struts.apache.org/msg23694.html If this is still not supported in validator_1_3_0.dtd, then is there any way to implement this? I appreciate any advice you may have. Thank you.
Re: Validation doesn’t honor the bundle attribute in http://jakarta.apache.org/commons/dtds/validator_1_3_0.dtd
Hello, I am sorry about the confusion before. I searched web app's component.xml file and found the following, therefore, we are actually using Struts1.2.4 in this project. dependency name=prereqs.sn/struts.minimal type=jar version=1.2.4 / dependency name=prereqs.sn/struts.extra type=jar version=1.2.4 / Per my previous email, even though I updated the validation.xml and validator-rules.xml to point to validator_1_3_0.dtd, the bundle attribute still does not work. Is there any other way to provide customized error message for errors.required, errors.invalid cases instead of using the out-of-box ones? Thanks a lot Joann On Thu, Mar 1, 2012 at 12:04 PM, Jeffrey Black jeffblack...@gmail.comwrote: Hi Joann, Can you please confirm what version of Struts you are using? You appear to be using Struts 2 for your application [1]; however it appears you are referencing Struts 1.x validation information. Perhaps I'm missing something? [1] http://struts.1045723.n5.nabble.com/How-to-implement-alternate-error-messages-in-the-Struts-validation-framework-Struts-2-0-1-4-td5522076.html Best, jb On Thu, Mar 1, 2012 at 8:59 AM, joann luo joannlu...@gmail.com wrote: Hello, I am using http://jakarta.apache.org/commons/dtds/validator_1_3_0.dtdbut I found it still does not honor ‘bundle” attribute in the validation.xml. I need to display an alternate error message defined in a custom bundle through the Struts validation framework instead of the default error message. Based on the information provided from this early thread, it should have been available since Validator 1.1.4. http://www.mail-archive.com/user@struts.apache.org/msg23694.html If this is still not supported in validator_1_3_0.dtd, then is there any way to implement this? I appreciate any advice you may have. Thank you.
Re: Validation doesn’t honor the bundle attribute in http://jakarta.apache.org/commons/dtds/validator_1_3_0.dtd
You can't just update a validation DTD and expect everything to suddenly use a later version of the validation libraries. S1.2.4, AFAIK, uses validator 1.1.3. Hence all S1.2.4 code will be written assuming commons-validator 1.1.3. Capabilities introduced in later versions of commons-validator would require deploying said later version. Any S1 interactions with commons-validator, however, would remain at the 1.1.3 level. If it's a validator-only issue, it *may* still work, but if the new functionality relies on any S1 interaction, I'm pretty sure it wouldn't. Dave On Thu, Mar 1, 2012 at 3:33 PM, joann luo joannlu...@gmail.com wrote: Hello, I am sorry about the confusion before. I searched web app's component.xml file and found the following, therefore, we are actually using Struts1.2.4 in this project. dependency name=prereqs.sn/struts.minimal type=jar version=1.2.4 / dependency name=prereqs.sn/struts.extra type=jar version=1.2.4 / Per my previous email, even though I updated the validation.xml and validator-rules.xml to point to validator_1_3_0.dtd, the bundle attribute still does not work. Is there any other way to provide customized error message for errors.required, errors.invalid cases instead of using the out-of-box ones? Thanks a lot Joann On Thu, Mar 1, 2012 at 12:04 PM, Jeffrey Black jeffblack...@gmail.com wrote: Hi Joann, Can you please confirm what version of Struts you are using? You appear to be using Struts 2 for your application [1]; however it appears you are referencing Struts 1.x validation information. Perhaps I'm missing something? [1] http://struts.1045723.n5.nabble.com/How-to-implement-alternate-error-messages-in-the-Struts-validation-framework-Struts-2-0-1-4-td5522076.html Best, jb On Thu, Mar 1, 2012 at 8:59 AM, joann luo joannlu...@gmail.com wrote: Hello, I am using http://jakarta.apache.org/commons/dtds/validator_1_3_0.dtdbut I found it still does not honor ‘bundle” attribute in the validation.xml. I need to display an alternate error message defined in a custom bundle through the Struts validation framework instead of the default error message. Based on the information provided from this early thread, it should have been available since Validator 1.1.4. http://www.mail-archive.com/user@struts.apache.org/msg23694.html If this is still not supported in validator_1_3_0.dtd, then is there any way to implement this? I appreciate any advice you may have. Thank you.
Re: Validation doesn’t honor the bundle attribute in http://jakarta.apache.org/commons/dtds/validator_1_3_0.dtd
Hello, Dave: Thanks for pointing this out. I am working on a customer issue reported from a project that we released quite a while ago. I won't be able to upgrade the struts JAR in this case. Since I have to stay with validator 1.1.3 is there any other way to provide customized error message for errors.required, errors.invalid cases instead of using the out-of-box ones? Thanks again, Joann On Thu, Mar 1, 2012 at 3:41 PM, Dave Newton davelnew...@gmail.com wrote: You can't just update a validation DTD and expect everything to suddenly use a later version of the validation libraries. S1.2.4, AFAIK, uses validator 1.1.3. Hence all S1.2.4 code will be written assuming commons-validator 1.1.3. Capabilities introduced in later versions of commons-validator would require deploying said later version. Any S1 interactions with commons-validator, however, would remain at the 1.1.3 level. If it's a validator-only issue, it *may* still work, but if the new functionality relies on any S1 interaction, I'm pretty sure it wouldn't. Dave On Thu, Mar 1, 2012 at 3:33 PM, joann luo joannlu...@gmail.com wrote: Hello, I am sorry about the confusion before. I searched web app's component.xml file and found the following, therefore, we are actually using Struts1.2.4 in this project. dependency name=prereqs.sn/struts.minimal type=jar version=1.2.4 / dependency name=prereqs.sn/struts.extra type=jar version=1.2.4 / Per my previous email, even though I updated the validation.xml and validator-rules.xml to point to validator_1_3_0.dtd, the bundle attribute still does not work. Is there any other way to provide customized error message for errors.required, errors.invalid cases instead of using the out-of-box ones? Thanks a lot Joann On Thu, Mar 1, 2012 at 12:04 PM, Jeffrey Black jeffblack...@gmail.com wrote: Hi Joann, Can you please confirm what version of Struts you are using? You appear to be using Struts 2 for your application [1]; however it appears you are referencing Struts 1.x validation information. Perhaps I'm missing something? [1] http://struts.1045723.n5.nabble.com/How-to-implement-alternate-error-messages-in-the-Struts-validation-framework-Struts-2-0-1-4-td5522076.html Best, jb On Thu, Mar 1, 2012 at 8:59 AM, joann luo joannlu...@gmail.com wrote: Hello, I am using http://jakarta.apache.org/commons/dtds/validator_1_3_0.dtdbut I found it still does not honor ‘bundle” attribute in the validation.xml. I need to display an alternate error message defined in a custom bundle through the Struts validation framework instead of the default error message. Based on the information provided from this early thread, it should have been available since Validator 1.1.4. http://www.mail-archive.com/user@struts.apache.org/msg23694.html If this is still not supported in validator_1_3_0.dtd, then is there any way to implement this? I appreciate any advice you may have. Thank you.
Re: Validation doesn’t honor the bundle attribute in http://jakarta.apache.org/commons/dtds/validator_1_3_0.dtd
http://struts.apache.org/1.2.4/userGuide/dev_validator.html#i18n On Thu, Mar 1, 2012 at 4:02 PM, joann luo joannlu...@gmail.com wrote: Hello, Dave: Thanks for pointing this out. I am working on a customer issue reported from a project that we released quite a while ago. I won't be able to upgrade the struts JAR in this case. Since I have to stay with validator 1.1.3 is there any other way to provide customized error message for errors.required, errors.invalid cases instead of using the out-of-box ones? Thanks again, Joann On Thu, Mar 1, 2012 at 3:41 PM, Dave Newton davelnew...@gmail.com wrote: You can't just update a validation DTD and expect everything to suddenly use a later version of the validation libraries. S1.2.4, AFAIK, uses validator 1.1.3. Hence all S1.2.4 code will be written assuming commons-validator 1.1.3. Capabilities introduced in later versions of commons-validator would require deploying said later version. Any S1 interactions with commons-validator, however, would remain at the 1.1.3 level. If it's a validator-only issue, it *may* still work, but if the new functionality relies on any S1 interaction, I'm pretty sure it wouldn't. Dave On Thu, Mar 1, 2012 at 3:33 PM, joann luo joannlu...@gmail.com wrote: Hello, I am sorry about the confusion before. I searched web app's component.xml file and found the following, therefore, we are actually using Struts1.2.4 in this project. dependency name=prereqs.sn/struts.minimal type=jar version=1.2.4 / dependency name=prereqs.sn/struts.extra type=jar version=1.2.4 / Per my previous email, even though I updated the validation.xml and validator-rules.xml to point to validator_1_3_0.dtd, the bundle attribute still does not work. Is there any other way to provide customized error message for errors.required, errors.invalid cases instead of using the out-of-box ones? Thanks a lot Joann On Thu, Mar 1, 2012 at 12:04 PM, Jeffrey Black jeffblack...@gmail.com wrote: Hi Joann, Can you please confirm what version of Struts you are using? You appear to be using Struts 2 for your application [1]; however it appears you are referencing Struts 1.x validation information. Perhaps I'm missing something? [1] http://struts.1045723.n5.nabble.com/How-to-implement-alternate-error-messages-in-the-Struts-validation-framework-Struts-2-0-1-4-td5522076.html Best, jb On Thu, Mar 1, 2012 at 8:59 AM, joann luo joannlu...@gmail.com wrote: Hello, I am using http://jakarta.apache.org/commons/dtds/validator_1_3_0.dtdbut I found it still does not honor ‘bundle” attribute in the validation.xml. I need to display an alternate error message defined in a custom bundle through the Struts validation framework instead of the default error message. Based on the information provided from this early thread, it should have been available since Validator 1.1.4. http://www.mail-archive.com/user@struts.apache.org/msg23694.html If this is still not supported in validator_1_3_0.dtd, then is there any way to implement this? I appreciate any advice you may have. Thank you.
struts 2 exception - SEVERE: Exception starting filter struts2
I have created simple struts 2 app with latest struts2 jar files. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts 2 exception - SEVERE: Exception starting filter struts2
We may need to know slightly more in order to help... Dave (pardon brevity and typos, on cell) On Mar 1, 2012 10:25 PM, jay rmani1...@yahoo.com wrote: I have created simple struts 2 app with latest struts2 jar files. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
struts 2 - excepting starting filter
I downloaded from google code Basic_Struts2_Ant and modified web.xml, added struts.xml and index.jsp along with log4j stuff according to instructions on struts website for this example. The app does not work on tomcat 7.0 I built with ant and deployed on tomcat jars I am using commons-fileupload-1.2.2.jar commons-io-2.0.1.jar commons-lang-2.5.jar commons-logging-1.1.1.jar commons-logging-api-1.1.jar freemarker-2.3.18.jar javassist-3.11.0.GA.jar ognl-3.0.4.jar struts2-core-2.3.1.2.jar xwork-core-2.3.1.2.jar log4j-1.2.14.jar struts.xml ?xml version=1.0 encoding=UTF-8? !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.0//EN http://struts.apache.org/dtds/struts-2.0.dtd; struts constant name=struts.devMode value=true / package name=basicstruts2 extends=struts-default action name=index result/index.jsp/result /action /package /struts web.xml ?xml version=1.0 encoding=UTF-8? web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; xmlns:web=http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd; id=WebApp_ID version=3.0 display-nameBasic_Struts2_Ant/display-name welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file welcome-filedefault.html/welcome-file welcome-filedefault.htm/welcome-file welcome-filedefault.jsp/welcome-file /welcome-file-list filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.ng.filter. StrutsPrepareAndExecuteFilter/filter-class /filter filter-mapping filter-namestruts2/filter-name url-pattern/*/url-pattern /filter-mapping /web-app basic index.jsp %@ page language=java contentType=text/html; charset=ISO-8859-1 pageEncoding=ISO-8859-1% !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1 titleInsert title here/title /head body h1 Welcome one and all to Strut2/h1 /body /html - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts 2 - excepting starting filter
What's in the startup log? Have you turned on devMode? Logging at debug level? IMO doing this via Ant will end up being a pain. IIRC there was done other issue with this particular project, too, although I'd have to dig to try to recall. Dave (pardon brevity and typos, on cell) On Mar 1, 2012 10:53 PM, jay rmani1...@yahoo.com wrote: I downloaded from google code Basic_Struts2_Ant and modified web.xml, added struts.xml and index.jsp along with log4j stuff according to instructions on struts website for this example. The app does not work on tomcat 7.0 I built with ant and deployed on tomcat jars I am using commons-fileupload-1.2.2.jar commons-io-2.0.1.jar commons-lang-2.5.jar commons-logging-1.1.1.jar commons-logging-api-1.1.jar freemarker-2.3.18.jar javassist-3.11.0.GA.jar ognl-3.0.4.jar struts2-core-2.3.1.2.jar xwork-core-2.3.1.2.jar log4j-1.2.14.jar struts.xml ?xml version=1.0 encoding=UTF-8? !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.0//EN http://struts.apache.org/dtds/struts-2.0.dtd; struts constant name=struts.devMode value=true / package name=basicstruts2 extends=struts-default action name=index result/index.jsp/result /action /package /struts web.xml ?xml version=1.0 encoding=UTF-8? web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; xmlns:web=http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd; id=WebApp_ID version=3.0 display-nameBasic_Struts2_Ant/display-name welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file welcome-filedefault.html/welcome-file welcome-filedefault.htm/welcome-file welcome-filedefault.jsp/welcome-file /welcome-file-list filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.ng.filter. StrutsPrepareAndExecuteFilter/filter-class /filter filter-mapping filter-namestruts2/filter-name url-pattern/*/url-pattern /filter-mapping /web-app basic index.jsp %@ page language=java contentType=text/html; charset=ISO-8859-1 pageEncoding=ISO-8859-1% !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1 titleInsert title here/title /head body h1 Welcome one and all to Strut2/h1 /body /html - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts 2 - excepting starting filter
Here is log with the error jars I am using commons-fileupload-1.2.2.jar commons-io-2.0.1.jar commons-lang-2.5.jar commons-logging-1.1.1.jar commons-logging-api-1.1.jar freemarker-2.3.18.jar javassist-3.11.0.GA.jar ognl-3.0.4.jar struts2-core-2.3.1.2.jar xwork-core-2.3.1.2.jar log4j-1.2.14.jar Here is log information: Mar 1, 2012 9:12:46 PM org.apache.catalina.core.StandardContext filterStart SEVERE: Exception starting filter struts2 Unable to load configuration. - bean - jar:file:/C:/apache-tomcat-7.0.26/webapps/ Basic_Struts2_Ant/WEB-INF/lib/struts2-core-2.3.1.2.jar! /struts-default.xml:29:72 at org.apache.struts2.dispatcher.Dispatcher.init (Dispatcher.java:449) at org.apache.struts2.dispatcher.ng.InitOperations. initDispatcher(InitOperations.java:69) at org.apache.struts2.dispatcher.ng.filter. StrutsPrepareAndExecuteFilter.init (StrutsPrepareAndExecuteFilter.java:51) at org.apache.catalina.core.ApplicationFilterConfig. initFilter(ApplicationFilterConfig.java:277) at org.apache.catalina.core.ApplicationFilterConfig. getFilter(ApplicationFilterConfig.java:258) at org.apache.catalina.core.ApplicationFilterConfig. setFilterDef(ApplicationFilterConfig.java:382) at org.apache.catalina.core.ApplicationFilterConfig. init(ApplicationFilterConfig.java:103) at org.apache.catalina.core.StandardContext. filterStart(StandardContext.java:4638) at org.apache.catalina.core.StandardContext. startInternal(StandardContext.java:5294) at org.apache.catalina.util.LifecycleBase. start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase. addChildInternal(ContainerBase.java:895) at org.apache.catalina.core.ContainerBase. addChild(ContainerBase.java:871) at org.apache.catalina.core.StandardHost. addChild(StandardHost.java:615) at org.apache.catalina.startup.HostConfig. deployWAR(HostConfig.java:958) at org.apache.catalina.startup.HostConfig$ DeployWar.run(HostConfig.java:1599) at java.util.concurrent.Executors$RunnableAdapter. call(Executors.java:441) at java.util.concurrent.FutureTask$Sync. innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask. run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker. runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker. run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: Unable to load configuration. - bean - jar:file:/C:/apache-tomcat-7.0.26/webapps/Basic_Struts2_Ant/ WEB-INF/lib/struts2-core-2.3.1.2.jar!/struts-default.xml:29:72 at com.opensymphony.xwork2.config.ConfigurationManager. getConfiguration(ConfigurationManager.java:69) at org.apache.struts2.dispatcher.Dispatcher. init_PreloadConfiguration(Dispatcher.java:390) at org.apache.struts2.dispatcher.Dispatcher. init(Dispatcher.java:436) ... 20 more Caused by: Unable to load bean: type: class:com.opensymphony. xwork2.ObjectFactory - bean - jar:file:/C:/apache-tomcat-7.0.26/ webapps/Basic_Struts2_Ant/WEB-INF/lib/struts2-core-2.3.1.2.jar! /struts-default.xml:29:72 at com.opensymphony.xwork2.config.providers. XmlConfigurationProvider.register(XmlConfigurationProvider.java:235) at org.apache.struts2.config.StrutsXmlConfigurationProvider. register(StrutsXmlConfigurationProvider.java:102) at com.opensymphony.xwork2.config.impl.DefaultConfiguration. reloadContainer(DefaultConfiguration.java:180) at com.opensymphony.xwork2.config.ConfigurationManager. getConfiguration(ConfigurationManager.java:66) ... 22 more Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the name xwork has already been loaded by bean - jar:file:/C:/apache-tomcat-7.0.26/lib/struts2-core-2.3.1.2.jar! /struts-default.xml:29:72 - bean - jar:file:/C:/apache-tomcat-7.0.26 /webapps/Basic_Struts2_Ant/WEB-INF/lib/struts2-core-2.3.1.2.jar! /struts-default.xml:29:72 at com.opensymphony.xwork2.config.providers. XmlConfigurationProvider.register(XmlConfigurationProvider.java:219) ... 25 more Mar 1, 2012 9:12:46 PM org.apache.catalina.core.ApplicationContext log - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts 2 - excepting starting filter
The error message says it all, you need to remove the struts/etc. libs you put in the tomcat lib directory and deploy only the application's copies. Dave (pardon brevity and typos, on cell) On Mar 1, 2012 11:16 PM, jay rmani1...@yahoo.com wrote: Here is log with the error jars I am using commons-fileupload-1.2.2.jar commons-io-2.0.1.jar commons-lang-2.5.jar commons-logging-1.1.1.jar commons-logging-api-1.1.jar freemarker-2.3.18.jar javassist-3.11.0.GA.jar ognl-3.0.4.jar struts2-core-2.3.1.2.jar xwork-core-2.3.1.2.jar log4j-1.2.14.jar Here is log information: Mar 1, 2012 9:12:46 PM org.apache.catalina.core.StandardContext filterStart SEVERE: Exception starting filter struts2 Unable to load configuration. - bean - jar:file:/C:/apache-tomcat-7.0.26/webapps/ Basic_Struts2_Ant/WEB-INF/lib/struts2-core-2.3.1.2.jar! /struts-default.xml:29:72 at org.apache.struts2.dispatcher.Dispatcher.init (Dispatcher.java:449) at org.apache.struts2.dispatcher.ng.InitOperations. initDispatcher(InitOperations.java:69) at org.apache.struts2.dispatcher.ng.filter. StrutsPrepareAndExecuteFilter.init (StrutsPrepareAndExecuteFilter.java:51) at org.apache.catalina.core.ApplicationFilterConfig. initFilter(ApplicationFilterConfig.java:277) at org.apache.catalina.core.ApplicationFilterConfig. getFilter(ApplicationFilterConfig.java:258) at org.apache.catalina.core.ApplicationFilterConfig. setFilterDef(ApplicationFilterConfig.java:382) at org.apache.catalina.core.ApplicationFilterConfig. init(ApplicationFilterConfig.java:103) at org.apache.catalina.core.StandardContext. filterStart(StandardContext.java:4638) at org.apache.catalina.core.StandardContext. startInternal(StandardContext.java:5294) at org.apache.catalina.util.LifecycleBase. start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase. addChildInternal(ContainerBase.java:895) at org.apache.catalina.core.ContainerBase. addChild(ContainerBase.java:871) at org.apache.catalina.core.StandardHost. addChild(StandardHost.java:615) at org.apache.catalina.startup.HostConfig. deployWAR(HostConfig.java:958) at org.apache.catalina.startup.HostConfig$ DeployWar.run(HostConfig.java:1599) at java.util.concurrent.Executors$RunnableAdapter. call(Executors.java:441) at java.util.concurrent.FutureTask$Sync. innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask. run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker. runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker. run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: Unable to load configuration. - bean - jar:file:/C:/apache-tomcat-7.0.26/webapps/Basic_Struts2_Ant/ WEB-INF/lib/struts2-core-2.3.1.2.jar!/struts-default.xml:29:72 at com.opensymphony.xwork2.config.ConfigurationManager. getConfiguration(ConfigurationManager.java:69) at org.apache.struts2.dispatcher.Dispatcher. init_PreloadConfiguration(Dispatcher.java:390) at org.apache.struts2.dispatcher.Dispatcher. init(Dispatcher.java:436) ... 20 more Caused by: Unable to load bean: type: class:com.opensymphony. xwork2.ObjectFactory - bean - jar:file:/C:/apache-tomcat-7.0.26/ webapps/Basic_Struts2_Ant/WEB-INF/lib/struts2-core-2.3.1.2.jar! /struts-default.xml:29:72 at com.opensymphony.xwork2.config.providers. XmlConfigurationProvider.register(XmlConfigurationProvider.java:235) at org.apache.struts2.config.StrutsXmlConfigurationProvider. register(StrutsXmlConfigurationProvider.java:102) at com.opensymphony.xwork2.config.impl.DefaultConfiguration. reloadContainer(DefaultConfiguration.java:180) at com.opensymphony.xwork2.config.ConfigurationManager. getConfiguration(ConfigurationManager.java:66) ... 22 more Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the name xwork has already been loaded by bean - jar:file:/C:/apache-tomcat-7.0.26/lib/struts2-core-2.3.1.2.jar! /struts-default.xml:29:72 - bean - jar:file:/C:/apache-tomcat-7.0.26 /webapps/Basic_Struts2_Ant/WEB-INF/lib/struts2-core-2.3.1.2.jar! /struts-default.xml:29:72 at com.opensymphony.xwork2.config.providers. XmlConfigurationProvider.register(XmlConfigurationProvider.java:219) ... 25 more Mar 1, 2012 9:12:46 PM org.apache.catalina.core.ApplicationContext log - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts 2 - excepting starting filter
Thanks for your help! I found a struts jar in my tomcat\lib folder Dave Newton davelnewton at gmail.com writes: The error message says it all, you need to remove the struts/etc. libs you put in the tomcat lib directory and deploy only the application's copies. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org