Re: struts2.5.22 + tiles3.0.8 + commons-beanutils to version 1.9.4
On 2019-12-10 8:23 a.m., Lukasz Lenart wrote: wt., 10 gru 2019 o 14:15 napisał(a): Why do you use "CompleteAutoloadTilesListener" ? And as far I see everything works in the Showcase app My application based on tiles3 + struts. As suggested by https://struts.apache.org/plugins/tiles-3/ , CompleteAutoloadTilesListener is used. If there are other config that could help set tiles3 + struts, could you help suggest please? As mentioned on the page: | This plugin was dropped in Struts 2.5, instead please use Tiles Plugin which was extended and upgraded to Tiles 3. So please switch into the Tiles Plugin and all you need is this: org.apache.struts2.tiles.StrutsTilesListener https://struts.apache.org/plugins/tiles/ main_menu [web.xml] org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG /WEB-INF/tiles/menu/tiles-menu.xml The above config works for CompleteAutoloadTilesListener. Updated to StrutsTilesListener, got exception: Cannot find definition named 'main_menu' org.apache.tiles.definition.NoSuchDefinitionException: Cannot find definition named 'main_menu' May I know are there config/set that I miss or should be updated please? Thanks a lot. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
About "Parameter Validation Filter"
Hello, There is a topic about Parameter Validation Filter (TrimTextValidationRule, FailIfNotCanonicalizedValidationRule, FailIfContainsHTMLValidationRule) for servlet (https://www.owasp.org/index.php/Parameter_Validation_Filter). I just want to know that struts2.5.14.1 already have these kinds of validation set by default and no need to add pvf.xml anymore, right? Thanks a lot.
Re: newFixedThreadPool in struts2
[Try2] . Each user login session create one fixedPool . When user logout, fixedPool.shutdown() What about if users do not call logout action. Where and how the fixedPool to be shutdown? Is there a way to auto shutdown after period of time? You can write your own listener by implementing HttpSessionListener and call shutdown in it's `sessionDestroyed` method. Please see [1]. [1] http://www.myjavarecipes.com/tag/session-timeout-handling-in-java/ I will try1 which can be used/shared by all login users or 2 used by per login user session then. set session as it's life-time, then it seems you still simply can use that spring bean with `scope` set to `session`. session scope can be a bad choice if your "...actions such as send email, etc" take too long to being completed because user can log out or session can being expired in the middle of their executions! For users logout action, I could try to check based on future.get() to help users know there are processes still running. I see but I think you should not force user to not logout. Consider a user which uses a shared computer of an airport and now wants to logout to not miss her flight :) if you force her to being loged in, but she leaves that shared computer and this raises security issues for her as next person can use her session :( To help users know there are process running, comments/warning messages are shown to users. Users can still logout, and tasks may be lost. And users may try the same steps in the next login session. Tasks submitted through threads or action classes are the same, if users logout in the middle of process, users will need to login again and try the same steps. For session expired, this is not clear to me. In web.xml, session-timeout=60 for example. Users will be considered auto-logout only if users have not use any features(no active actions) for more than 60 mins. If there are sub-threads submitted by action class(struts2 is thread-safe, I could consider the action class as a main thread?), and if sub-threads have not completed, wouldn't web.xml consider there are still active actions? No, it just invalidates the session. And developer has to clean up when a session is about to be invalidated (HttpSessionListener. sessionDestroyed). Users logout is simple: (1) session.getAttribute(fixpool); fixpool.shutdown; (2) for(String attribute: attributes) { session.removeAttribute(attribute); } (3) session.invalidate(); For auto-session timeout (not logout by users), in sessionDestroyed method, I am not able to call/run (1). I will try HttpSessionBindingListener and see if this helps. So, wouldn't it be that user-session auto-expired only when: (1) users have not use any features and (2) All sub-threads submitted by users through action classes have completed No, it doesn't consider what you have in session. It simply invalidates. I didn't mean session values, I mean fixPool.submit(tasks) have not completed. To be more clear: (1) User login: fixpool is created and saved into session (2) In Action class: session.get(fixpool); fixpool.submit(tasks); (3) web.xml session-timeout (3.1) If users click any features in webapp, web.xml.session-timeout are not called (3.2) If fixpool.tasks are running (called by action class), session-timeout are still called? So, web.xml.session-timeout does not check if threads submitted through action class are completed or not Thanks a lot. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: newFixedThreadPool in struts2
It's still accessible: public void sessionCreated(HttpSessionEvent hse) { final HttpSession session = hse.getSession(); logger.debug("session created"); session.setAttribute(KEY, new Clickstream()); } public void sessionDestroyed(HttpSessionEvent hse) { final HttpSession session = hse.getSession(); // session.getAttribute(KEY) => failed. logger.debug("session destroyed"); } In sessionDestroyed method, I could only get sessionID as shown in the link below, but not session.getAttribute(KEY). I will try HttpSessionBindingListener, and see if this helps. Thanks. -- Actions that I tried to implement: (1) Save fixThreadPool into session (2) Submit tasks through fixpool (3) When session auto-timeout call fixpool.shutdown https://stackoverflow.com/questions/19046976/not-getting-session-attributes-in-sessiondestroyed-method-of-httpsessionlisten - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: newFixedThreadPool in struts2
Hello Yasser, You can write your own listener by implementing HttpSessionListener and call shutdown in it's `sessionDestroyed` method. Please see [1]. [1] http://www.myjavarecipes.com/tag/session-timeout-handling-in-java/ In HttpSessionListener, it seems that there are no session attributes anymore. So, there is no way for me to do the following in the listener class: fixPool = session.getAttribute('fixpool_name'); fixPool.shutdown(); So, the only possible way is through springframework config, right? Thanks a lot. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: newFixedThreadPool in struts2
Firstly you should decide what do you like about life-time of that thread pool without being worry about calling shutdown. All your examples have solutions to call shutdown which I described below... Please read below [Try1] . By springframe work setup ThreadPool . In action class, use fixedPool Future f1 = fixedPool.submit(() -> { ...actions such as send email, etc }); So, there will be NO shutdown in action class fixedPool.shutdown(); will be maintained by spring config? You can set your bean `destroy-method` and call shutdown in that method. e.g. init-method="initPool" destroy-method="shutdownPool"> [Try2] . Each user login session create one fixedPool . When user logout, fixedPool.shutdown() What about if users do not call logout action. Where and how the fixedPool to be shutdown? Is there a way to auto shutdown after period of time? You can write your own listener by implementing HttpSessionListener and call shutdown in it's `sessionDestroyed` method. Please see [1]. [1] http://www.myjavarecipes.com/tag/session-timeout-handling-in-java/ I will try1 which can be used/shared by all login users or 2 used by per login user session then. set session as it's life-time, then it seems you still simply can use that spring bean with `scope` set to `session`. session scope can be a bad choice if your "...actions such as send email, etc" take too long to being completed because user can log out or session can being expired in the middle of their executions! For users logout action, I could try to check based on future.get() to help users know there are processes still running. For session expired, this is not clear to me. In web.xml, session-timeout=60 for example. Users will be considered auto-logout only if users have not use any features(no active actions) for more than 60 mins. If there are sub-threads submitted by action class(struts2 is thread-safe, I could consider the action class as a main thread?), and if sub-threads have not completed, wouldn't web.xml consider there are still active actions? So, wouldn't it be that user-session auto-expired only when: (1) users have not use any features and (2) All sub-threads submitted by users through action classes have completed If I misunderstood threads usage in struts2 framework, please kindly correct me. Thanks a lot.
Re: newFixedThreadPool in struts2
Firstly you should decide what do you like about life-time of that thread pool without being worry about calling shutdown. All your examples have solutions to call shutdown which I described below... Please read below [Try1] . By springframe work setup ThreadPool . In action class, use fixedPool Future f1 = fixedPool.submit(() -> { ...actions such as send email, etc }); So, there will be NO shutdown in action class fixedPool.shutdown(); will be maintained by spring config? You can set your bean `destroy-method` and call shutdown in that method. e.g. init-method="initPool" destroy-method="shutdownPool"> [Try2] . Each user login session create one fixedPool . When user logout, fixedPool.shutdown() What about if users do not call logout action. Where and how the fixedPool to be shutdown? Is there a way to auto shutdown after period of time? You can write your own listener by implementing HttpSessionListener and call shutdown in it's `sessionDestroyed` method. Please see [1]. [1] http://www.myjavarecipes.com/tag/session-timeout-handling-in-java/ Thank you very much Yasser. The information are very helpful! I will try1 which can be used/shared by all login users or 2 used by per login user session then.
newFixedThreadPool in struts2
Hello, Can you suggest the best way to setup newFixedThreadPool in struts2 webapp please? [Try1] . By springframe work setup ThreadPool . In action class, use fixedPool Future f1 = fixedPool.submit(() -> { ...actions such as send email, etc }); So, there will be NO shutdown in action class fixedPool.shutdown(); will be maintained by spring config? [Try2] . Each user login session create one fixedPool . When user logout, fixedPool.shutdown() What about if users do not call logout action. Where and how the fixedPool to be shutdown? Is there a way to auto shutdown after period of time? [Try3] . In each action method Create fixedPool submit/future run... fixedPool.shutdown() This way, the benefit is that fixedPool is shutdown for sure after thread completes. But each action is going to create one threadpool. Any suggestions about the best way to use "FixedThreadPool" in struts2 web framework please? Thanks a lot!
Re: About error-code 404 is called for each struts action class
On 1/6/2018 12:04 AM, Emi wrote: 404.jsp is called by web.xml when going from one page to another. Maybe other requests like a missing favicon, css or javascript causes this. Yes. In one one css file, the following cods caused 404 error. body { font: 0.7em/1.5em "Trebuchet MS",Verdana,sans-serif; background: white url('images/ui-bg_fine-grain_65_654b24_60x60.png') repeat; } Thanks a lot.
Re: About error-code 404 is called for each struts action class
Any clue why action classes are shown correctly, but 404.jsp still called? In 404.jsp only one line: System.out.println("test"); All struts action classes can be shown correctly, but 404.jsp is called by web.xml when going from one page to another. Thanks. Hello, In web.xml: 404 /WEB-INF/pages/errorinfo/tiles_404.jsp For each struts2 action class shows/direct to correct page, but the above line is always called. Could someone let me know what may cause the above section called please? Thanks a lot! -- struts2.5.14.1, tiles3.0.8, servlet2.4 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
About error-code 404 is called for each struts action class
Hello, In web.xml: 404 /WEB-INF/pages/errorinfo/tiles_404.jsp For each struts2 action class shows/direct to correct page, but the above line is always called. Could someone let me know what may cause the above section called please? Thanks a lot! -- struts2.5.14.1, tiles3.0.8, servlet2.4
Action bean cannot get correct utf-8 character
Hello, For struts2.5.14.1, I have an issue with utf-8 encoding (jsp submit to action class; bean get wrong character). (1) web.xml *.jsp UTF-8 set character encoding setCharacterEncodingFilter SetCharacterEncodingFilter encoding UTF-8 setCharacterEncodingFilter /* (2) jsp page <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> Value entered é in jsp (3) Action bean get value: é. Can someone let me know what config is wrong/missing please? Thanks a lot!
Re: [ANN] [APACHE STRUTS] Security Bulletin S2-055: impact increased to High (related to CVE-2017-7525 - JSON Jackson library)
Hello, vulnerability exists in a JSON Jackson library and it's registered under CVE-2017-7525. I think you mean the following jars right? (1) jackson-core-2.9.2.jar (2) jackson-annotations-2.9.0.jar (3) jackson-databind-2.9.2.jar Please read the bulletin [1] and apply possible solutions. This vulnerability impacts anyone using the vulnerable Jackson JSON library (not only Struts users). [1] https://cwiki.apache.org/confluence/display/WW/S2-055 So, if do not use the above jars, it should be fine? Thanks. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
About Oracle Security Alert Advisory - CVE-2017-9805
Hello, Just want to double check, for struts2.5.13 and 2.3.34, the following issue has been covered and resolved, right? http://www.oracle.com/technetwork/security-advisory/alert-cve-2017-9805-3889403.html Thanks a lot. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts 2.3 fix for s2-052?
Hello, I finally read your email where you gave the dist URL for the dev release. This is the release that I should use for 2.3 right? https://dist.apache.org/repos/dist/dev/struts/2.3.34/ Thanks. I tested against the struts2-rest-showcase app, a URL that was vulnerable in other versions. I also manually built just struts2-core, rest-plugin, config-browser, and rest-showcase apps, and attempted the exploit against that as well, and that also gave the exception around class permissions (the exception it should throw when deserialization attempts to instantiate a non-allowed class). On Wed, Sep 6, 2017 at 9:42 AM Lukasz Lenartwrote: 2017-09-06 12:37 GMT+02:00 Lukasz Lenart : Here is the full info http://markmail.org/message/5xuhb2vwc7iagjjr William, how does your test pass? Regards -- Łukasz + 48 606 323 122 <+48%20606%20323%20122> http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [ANN] Apache Struts 2.5.13 GA with Security Fixes Release
Hello, 2017-09-05 15:17 GMT+02:00 Lukasz Lenart: - S2-052 Possible Remote Code Execution attack when using the Struts REST plugin with XStream handler to handle XML payloads http://struts.apache.org/docs/s2-050.html It's supposed to be http://struts.apache.org/docs/s2-052.html Just want to make sure that Struts 2.3.33 does not have the issue, right? Thanks a lot. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
About Apache Struts 2.5.12 GA with Security Fixes Release
Hello, May I know do you release one update version for 2.3.x about this bug fix as well? Thanks. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
ajax for https in struts
Hello, Ajax methods work in http, but NOT https. Seems due to cross-origin HTTP request. May I know how to setup "Access-Control-Allow-Origin" in struts/jsp/servlet please? Have tried the following but did NOT work. (1) mainlayout.jsp response.addHeader("Access-Control-Allow-Origin", "*"); (2) web.xml cors CORSFilter cors /* public class CORSFilter extends OncePerRequestFilter { @Override protected void doFilterInternal( HttpServletRequest request, HttpServletResponse response, FilterChain filterChain ) throws ServletException, IOException { response.addHeader("Access-Control-Allow-Origin", "*"); filterChain.doFilter(request, response); } } example ajax method: function test(str, url) { var xmlhttp; if (str.length==0) { document.getElementById("txt_hint").innerHTML=""; return; } xmlhttp=new XMLHttpRequest(); xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { var tmp = xmlhttp.responseText; document.getElementById("txt_hint").innerHTML = tmp; } } xmlhttp.open("POST", url + "?str=" + str, true); xmlhttp.send(); } Thanks a lot! - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Request exceeded allowed size limit! Max size allowed is: 2,097,152
I'm not sure, but I think the tomcat configuration is case sensitive. Can you please try "maxPostSize" instead of "maxpostsize" in your connector config? Have updated to the following and succeeded this time (struts2: most recent version). (1) server.xml Change to maxPostSize (2) struts.xml Thanks a lot for the help! struts.xml 9000 application/pdf fileInputStream atta chment;filename="${filename}" 1024 . tomcat7 server.xml: - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Request exceeded allowed size limit! Max size allowed is: 2,097,152
Hello, Tried to upload file, and always got the following errors: Request exceeded allowed size limit! Max size allowed is: 2,097,152 but request was: 2,463,633! May I know where I missed the steps please? struts.xml extends="security-fix" strict-method-invocation="false"> class="ProcessActionUploadPdf"> 9000 application/pdf fileInputStream name="contentDisposition">attachment;filename="${filename}" 1024 . tomcat7 server.xml: Thanks a lot! - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
no longer supports the directive in struts.xml
Hello, https://struts.apache.org/announce.html shows: - Struts 2.5.8 no longer supports the directive in struts.xml Used to have: "s1.xml, s2.xml, sN.xml". Struts.xml: . In version 2.5.10, do we need any changes to include s1.xml... sN.xml please? Thanks. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts 2.5.3 to 2.5.8
Changed asm3.x to 5.2 jars, and the warning message disappear. Hello, After updated struts jars from 2.5.3 to 2.5.8, for each action class, got the following warning message: java.lang.IncompatibleClassChangeError: class org.apache.struts2.convention.DefaultClassFinder$InfoBuildingVisitor has interface org.objectweb.asm.ClassVisitor as super class at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_111] 2017-Jan-11 14:28:20.931 [localhost-startStop-1] ERROR org.apache.struts2.convention.DefaultClassFinder - Unable to read class [ProcessActionMenu] Can someone let me know what may cause the above warning message please? Thanks a lot! -- Also, it seems that we have to use log4j2.7 but cannot use log4j2.3 anymore? Otherwise, got java.lang.NoSuchMethodError: org.apache.logging.log4j.Logger.debug(Ljava/lang/String;Ljava/lang/Object;) exception - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
struts 2.5.3 to 2.5.8
Hello, After updated struts jars from 2.5.3 to 2.5.8, for each action class, got the following warning message: java.lang.IncompatibleClassChangeError: class org.apache.struts2.convention.DefaultClassFinder$InfoBuildingVisitor has interface org.objectweb.asm.ClassVisitor as super class at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_111] 2017-Jan-11 14:28:20.931 [localhost-startStop-1] ERROR org.apache.struts2.convention.DefaultClassFinder - Unable to read class [ProcessActionMenu] Can someone let me know what may cause the above warning message please? Thanks a lot! -- Also, it seems that we have to use log4j2.7 but cannot use log4j2.3 anymore? Otherwise, got java.lang.NoSuchMethodError: org.apache.logging.log4j.Logger.debug(Ljava/lang/String;Ljava/lang/Object;) exception . - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
dojo jar for struts2.5.2
Hello, There is no struts-dojo jar in 2.5.2. May I know which new struts2.5.2 jar includes the following tags please? <%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
Re: [ANN] Apache Struts 2.3.30 GA
try the bridge to log4j1 https://logging.apache.org/log4j/log4j-2.2/log4j-1.2-api/index.html Updated to: . log4j-api-2.6.2.jar . log4j-core-2.6.2.jar . log4j-web-2.6.2.jar . log4j-1.2-api-2.6.2.jar . commons-logging-1.2.jar . struts2.5.2. jars Didn't change web.xml and log4j.xml. But log files were NOT auto-generated by tomcat7.0.70. Is there something that I missed to add/config? Thanks a lot! -- web.xml ... org.springframework.web.util.Log4jConfigListener ... log4jExposeWebAppRoot false log4jConfigLocation /WEB-INF/classes/log4j.xml ... - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [ANN] Apache Struts 2.3.30 GA
hi, is there any plan for the date of end of life for 2.3.x series? No exact date but you can only expect security fixes (if possible) that will ported into 2.3.x series. should consider migrating into 2.5.x series which isn't so hard. Will 2.5.x support log4j1.x? There are thousands of classes calling log4j1.x. From log4j1.x to 2.x will be lots of changes. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: cannot download 2.3.30
Hello, http://struts.apache.org/download.html#struts-2330 Please use http://struts.apache.org/download.cgi#struts-2330 - where did you find the above link? From the email below. Forwarded Message Subject:[ANN] Apache Struts 2.3.30 GA Date: Fri, 15 Jul 2016 08:38:15 +0200 From: Lukasz LenartReply-To: Struts Users Mailing List To: Struts Users Mailing List , announceme...@struts.apache.org , annou...@apache.org The Apache Struts group is pleased to announce that Struts 2.3.30 is available as a “General Availability” release. The GA designation is our highest quality grade. Apache Struts 2 is an elegant, extensible framework for creating enterprise-ready Java web applications. The framework is designed to streamline the full development cycle, from building, to deploying, to maintaining applications over time. This release contains several minor improvements just to mention few of them: - Pre-evaluation of “name” attribute stopped working, see WW-4641 - Unable to retrieve s:hidden field values, see WW-4642 - SecurityMemberAccess exclude class design issue, see WW-4645 - Negative number is considered an arithmetic expression, see WW-4651 - Upgrade commons-fileupload to the latest version, see WW-4648 More details in version notes http://struts.apache.org/docs/version-notes-2330.html All developers are strongly advised to perform this action. The 2.3.x series of the Apache Struts framework has a minimum requirement of the following specification versions: Servlet API 2.4, JSP API 2.0, and Java 6. Should any issues arise with your use of any version of the Struts framework, please post your comments to the user list, and, if appropriate, file a tracking ticket. You can download this version from our download page. http://struts.apache.org/download.html#struts-2330 Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/
cannot download 2.3.30
Hello, http://struts.apache.org/download.html#struts-2330 click "Full Distribution:struts-2.3.30-all.zip" Got "Not Found The requested URL /struts-2.3.30-all.zip was not found on this server." Seems link http://struts.apache.org/struts-2.3.30-all.zip is empty. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: 2.3.28.1 to 2.5.1 - java.lang.NoSuchMethodError: ognl.SimpleNode.isOperation
Hello, Upgrade 2.3.28.1 to 2.5.1. Tried to start tomcat7.0.70, and got the following msg. Can someone let me know which jar(s) are missing/wrong version please? SEVERE: Exception starting filter struts2: java.lang.NoSuchMethodError: ognl.SimpleNode.isOperation(Lognl/OgnlContext;)Z at com.opensymphony.xwork2.ognl.OgnlUtil.isArithmeticExpression(OgnlUtil.java:322) at com.opensymphony.xwork2.ognl.OgnlUtil.access$100(OgnlUtil.java:49) at com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:292) at com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:287) at com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecute(OgnlUtil.java:382) at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:287) at com.opensymphony.xwork2.ognl.OgnlUtil.internalSetProperty(OgnlUtil.java:610) at com.opensymphony.xwork2.ognl.OgnlUtil.setProperties(OgnlUtil.java:171) at com.opensymphony.xwork2.ognl.OgnlUtil.setProperties(OgnlUtil.java:198) at com.opensymphony.xwork2.ognl.OgnlUtil.setProperties(OgnlUtil.java:185) at com.opensymphony.xwork2.ognl.OgnlReflectionProvider.setProperties(OgnlReflectionProvider.java:58) at com.opensymphony.xwork2.factory.DefaultInterceptorFactory.buildInterceptor(DefaultInterceptorFactory.java:43) at com.opensymphony.xwork2.ObjectFactory.buildInterceptor(ObjectFactory.java:207) at com.opensymphony.xwork2.config.providers.InterceptorBuilder.constructInterceptorReference(InterceptorBuilder.java:71) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.lookupInterceptorReference(XmlConfigurationProvider.java:1137) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStack(XmlConfigurationProvider.java:969) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStacks(XmlConfigurationProvider.java:982) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptors(XmlConfigurationProvider.java:1005) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:536) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:311) at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:108) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:187) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67) at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:897) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:437) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:478) at org.apache.struts2.dispatcher.InitOperations.initDispatcher(InitOperations.java:75) at org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:63) at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260) at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4939) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5633) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:679) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1966) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Sorry forgot to check ognl. Found ognl-3.1.8.jar. Used the wrong version. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
2.3.28.1 to 2.5.1 - java.lang.NoSuchMethodError: ognl.SimpleNode.isOperation
Hello, Upgrade 2.3.28.1 to 2.5.1. Tried to start tomcat7.0.70, and got the following msg. Can someone let me know which jar(s) are missing/wrong version please? SEVERE: Exception starting filter struts2: java.lang.NoSuchMethodError: ognl.SimpleNode.isOperation(Lognl/OgnlContext;)Z at com.opensymphony.xwork2.ognl.OgnlUtil.isArithmeticExpression(OgnlUtil.java:322) at com.opensymphony.xwork2.ognl.OgnlUtil.access$100(OgnlUtil.java:49) at com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:292) at com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:287) at com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecute(OgnlUtil.java:382) at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:287) at com.opensymphony.xwork2.ognl.OgnlUtil.internalSetProperty(OgnlUtil.java:610) at com.opensymphony.xwork2.ognl.OgnlUtil.setProperties(OgnlUtil.java:171) at com.opensymphony.xwork2.ognl.OgnlUtil.setProperties(OgnlUtil.java:198) at com.opensymphony.xwork2.ognl.OgnlUtil.setProperties(OgnlUtil.java:185) at com.opensymphony.xwork2.ognl.OgnlReflectionProvider.setProperties(OgnlReflectionProvider.java:58) at com.opensymphony.xwork2.factory.DefaultInterceptorFactory.buildInterceptor(DefaultInterceptorFactory.java:43) at com.opensymphony.xwork2.ObjectFactory.buildInterceptor(ObjectFactory.java:207) at com.opensymphony.xwork2.config.providers.InterceptorBuilder.constructInterceptorReference(InterceptorBuilder.java:71) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.lookupInterceptorReference(XmlConfigurationProvider.java:1137) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStack(XmlConfigurationProvider.java:969) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStacks(XmlConfigurationProvider.java:982) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptors(XmlConfigurationProvider.java:1005) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:536) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:311) at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:108) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:187) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67) at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:897) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:437) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:478) at org.apache.struts2.dispatcher.InitOperations.initDispatcher(InitOperations.java:75) at org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:63) at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260) at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4939) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5633) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:679) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1966) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Use: jdk8, tomcat7, spring 4.2.1, tiles3.0.5. Thanks a lot!
Re: Struts 2.3.28 and Tiles issue
upgraded struts-core and all the dependencies to 2.3.28, along with that came new tiles libraries. I got the similar exception messages. Upgrade from tiles2.x to tiles3.x and no error messages anymore. And a problem: SEVERE: Servlet.service() for servlet jsp threw exception java.lang.ClassCastException: org.apache.tiles.jsp.taglib.InsertDefinitionTag cannot be cast to javax.servlet.jsp.tagext.Tag at org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:126) at org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspx_meth_tiles_005finsertDefinition_005f0(run_002dscript_jsp.java:102) at org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspService(run_002dscript_jsp.java:81) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:723) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) at javax.servlet.http.HttpServlet.service(HttpServlet.java:723) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) at org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164) at org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:191) at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:372) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:276) at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:168) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245) at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265) at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:76) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245) at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245) at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245) at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:253) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245) at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245) at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245) at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245) at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245) at
tiles2.2.2 error for Struts 2.3.28 GA
Hello, - Tiles 2 Plugin was upgraded to latest available Tiles 2 version, see WW-4568 tiles3.x, everything success. For tiles2.2.2, after migrating from2.3.24.1 to 2.3.28, got the following error: org.apache.tiles.definition.NoSuchDefinitionException: login_page But "login_page" is in tiles-login.xml file(no change). org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG /WEB-INF/tiles/tiles-login.xml For the new version, do I have to change something for tiles configuration with struts? - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts2.5 - Action class is not called
ProcessLoginAction is not called. Which setups are missing/wrong that may cause the failure please? I think it's already fixed but the fix is in 'master' branch, not released yet - see that discussion http://markmail.org/message/3xtprewypf3u7mxr Got it. After Beta period, stable version has already fix it. So, won't change coding then. Thanks! - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
struts2.5 - Action class is not called
Hello, For struts2.5 beta version, can someone help what may cause action class is not called please? (1) web.xml struts2 org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter actionPackages project.action AuthenticatedFilter /Action/* struts2 /* REQUEST INCLUDE org.springframework.web.util.Log4jConfigListener org.springframework.web.context.ContextLoaderListener org.apache.tiles.extras.complete.CompleteAutoloadTilesListener (2) index.jsp <% String context_path = request.getContextPath(); response.sendRedirect(context_path + "/Login/ProcessLoginAction.action"); %> (3) struts.xml class="org.apache.struts2.views.tiles.TilesResult" /> class="project.action.ProcessLoginAction"> login_main_page ProcessLoginAction is not called. Which setups are missing/wrong that may cause the failure please? Thanks a lot! - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts2.5 - Action class is not called
struts2.5: (2) index.jsp <% String context_path = request.getContextPath(); response.sendRedirect(context_path + "/Login/ProcessLoginAction.action"); %> (3) struts.xml class="project.action.ProcessLoginAction"> login_main_page If written executeProcessLoginAction.action in jsp, the action class will be called. But wouldn't jsp automatically runs "/Login/executeProcessLoginAction.action". How to call execute() method as default if no method name specified? - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts2.5 - Action class is not called
using wild cards in action. If you don't want to switch between methods dynamically, Use switch methods dynamically. In action class: execute() as default method_name2() method_name3().. that is to call execute then you should remove the "*" from the name, remove method parameter, and then struts2 will assume execute should be called by default. Need to keep the wild cards setup in struts.xml. Is there a way, if no method names specified in jsp/tiles/struts, the default execute() method is called for Action Class please? If no such way, there will be too many places have to change /ActionName to "/executeActionName"... Do not have this issue for 2.3.x. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
com/opensymphony/xwork2/util/finder
Good morning, After upgrade to 2.3.20, my logs says java.lang.IncompatibleClassChangeError: com/opensymphony/xwork2/util/finder. Could someone tell me which libs missing or version conflict please? ERROR util.finder.ClassFinder.error:42 - Unable to read class [com.jgeppert.struts2.jquery.views.freemarker.tags.DialogModel] java.lang.IncompatibleClassChangeError: com/opensymphony/xwork2/util/finder/ClassFinder$InfoBuildingClassVisitor at com.opensymphony.xwork2.util.finder.ClassFinder.readClassDef(ClassFinder.java:718) at com.opensymphony.xwork2.util.finder.ClassFinder.init(ClassFinder.java:113) at org.apache.struts2.convention.PackageBasedActionConfigBuilder.findActions(PackageBasedActionConfigBuilder.java:390) at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:347) at org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:53) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:274) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67) at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:967) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:435) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:479) at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:298) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:119) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4076) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4730) at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1284) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1382) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:306) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1389) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1653) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1662) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1642) at java.lang.Thread.run(Thread.java:662) Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: com/opensymphony/xwork2/util/finder
On 12/11/2014 09:59 AM, Dave Newton wrote: Since there's no action servlet in Struts 2 I'm not sure why this is part of the app at all, you're using Spring security or something? Main spring action related are: . db connection management . cronjob management Jquery version: struts2-jquery-plugin-3.7.0-20131215.191645-3.jar If you think jquery caused it, could you tell me which version I should use? And I will download new version and try again. Thanks, Emi On Thu, Dec 11, 2014 at 9:56 AM, Emi Lu em...@encs.concordia.ca wrote: On 12/11/2014 09:51 AM, Dave Newton wrote: Looks like the jQuery plugin needs to be updated. Also related to springFramework? Using springFramework3.0.5. If spring causes the problem, which springFramework should be used for 2.3.20? ERROR util.finder.ClassFinder.error:42 - Unable to read class [org.springframework.web.struts.ActionServletAwareProcessor] java.lang.IncompatibleClassChangeError: class com.opensymphony.xwork2.util.finder.ClassFinder$InfoBuildingClassVisitor has interface org.objectweb.asm.ClassVisitor as super class at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2854) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526) at com.opensymphony.xwork2.util.finder.ClassFinder.readClassDef(ClassFinder.java:718) at com.opensymphony.xwork2.util.finder.ClassFinder.init(ClassFinder.java:113) at org.apache.struts2.convention.PackageBasedActionConfigBuilder.findActions(PackageBasedActionConfigBuilder.java:390) at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:347) at org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:53) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:274) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67) at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:967) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:435) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:479) at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:298) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:119) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4076) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4730) at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1284) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1382) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:306) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1389) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1653) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1662) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1642) On Thu, Dec 11, 2014 at 9:45 AM, Emi Lu em...@encs.concordia.ca wrote: Good morning, After upgrade to 2.3.20, my logs says java.lang.IncompatibleClassChangeError: com/opensymphony/xwork2/util/finder. Could someone tell me which libs missing or version conflict please? ERROR util.finder.ClassFinder.error:42 - Unable to read class [com.jgeppert.struts2.jquery.views.freemarker.tags.DialogModel] java.lang.IncompatibleClassChangeError: com/opensymphony/xwork2/util/finder/ClassFinder$InfoBuildingClassVisitor at com.opensymphony.xwork2.util.finder.ClassFinder.readClassDef(ClassFinder.java:718) at com.opensymphony.xwork2
Re: com/opensymphony/xwork2/util/finder
On 12/11/2014 10:13 AM, Lukasz Lenart wrote: 2014-12-11 16:07 GMT+01:00 Emi Lu em...@encs.concordia.ca: Jquery version: struts2-jquery-plugin-3.7.0-20131215.191645-3.jar If you think jquery caused it, could you tell me which version I should use? And I will download new version and try again. Looks like, can you try with 3.7.1 version? Updated to struts2-jquery-plugin-3.7.1.jar http://mvnrepository.com/artifact/com.jgeppert.struts2.jquery/struts2-jquery-plugin/3.7.1 And here are the updated messages. Cronjob still failed (done through springConfig). Any comments? util.finder.ClassFinder.error:42 - Unable to read class [org.apache.struts.Globals] java.lang.IncompatibleClassChangeError: class com.opensymphony.xwork2.util.finder.ClassFinder$InfoBuildingClassVisitor has interface org.objectweb.asm.ClassVisitor as super class at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2854) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526) at com.opensymphony.xwork2.util.finder.ClassFinder.readClassDef(ClassFinder.java:718) at com.opensymphony.xwork2.util.finder.ClassFinder.init(ClassFinder.java:113) at org.apache.struts2.convention.PackageBasedActionConfigBuilder.findActions(PackageBasedActionConfigBuilder.java:390) at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:347) at org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:53) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:274) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67) at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:967) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:435) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:479) at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:298) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:119) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4076) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4730) at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1284) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1382) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:306) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1389) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1653) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1662) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1642) at java.lang.Thread.run(Thread.java:662) 2014-12-11 10:41:07,921 ERROR util.finder.ClassFinder.error:42 - Unable to read class [org.apache.struts2.Main$1] java.lang.IncompatibleClassChangeError: com/opensymphony/xwork2/util/finder/ClassFinder$InfoBuildingClassVisitor at com.opensymphony.xwork2.util.finder.ClassFinder.readClassDef(ClassFinder.java:718) at com.opensymphony.xwork2.util.finder.ClassFinder.init(ClassFinder.java:113) at org.apache.struts2.convention.PackageBasedActionConfigBuilder.findActions(PackageBasedActionConfigBuilder.java:390) at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:347) at org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:53) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:274) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67) at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:967) at org.apache.struts2
Where to download xwork-core-2.3.20-sources.jar
Good morning, Can I know where to download xwork-core-2.3.20-sources.jar please? Thanks a lot! Emi On 12/08/2014 10:37 AM, Lukasz Lenart wrote: The Apache Struts group is pleased to announce that Apache Struts 2.3.20 is available as a General Availability release. The GA designation is our highest quality grade. Apache Struts 2 is an elegant, extensible framework for creating enterprise-ready Java web applications. The framework is designed to streamline the full development cycle, from building, to deploying, to maintaining applications over time. One medium security issue was solved with this release: S2-023 Generated value of token can be predictable * http://struts.apache.org/docs/s2-023.html Besides that, this release contains several fixes and improvements just to mention few of them: - merged security fixes from version 2.3.16.1, 2.3.16.2, 2.3.16.3 - extended existing security mechanism to block access to given Java packages and Classes - collection Parameters for RedirectResult - make ParametersInterceptor supports chinese in hash key by default - themes.properties can be loaded using ServletContext allows to put template folder under WEB-INF or on classpath - new tag datetextfield - only valid Ognl expressions are cached - custom TextProvider can be used for validation errors of model driven actions - datetimepicker's label fixed - PropertiesJudge removed and properties are checked in SecurityMemberAccess - resource reloading works in IBM JVM - default reloading settings were removed from default.properties - commons-fileupload library upgraded to version 1.3.1 to fix potential security vulnerability - the scheme attribute accepts expressions in s:url tag - solves problem with infinite loop in FastByteArrayOutputStream - LocalizedTextUtil supports many ClassLoaders - Bill of Materials pom was introduced - debug=browser|console was migrated to jQuery - struts_dojo.js was fixed - interface org/apache/struts2/views/TagLibrary was restored and marked as @Depreacted and many other small improvements, please careful read the version notes. The release notes are available online at: * http://struts.apache.org/docs/version-notes-2320.html All developers are strongly advised to update existing Struts 2 applications to Struts 2.3.20! Struts 2.3.20 is available in a full distribution, or as separate library, source, example and documentation distributions, from the releases page. * http://struts.apache.org/download.cgi#struts2320 The release is also available from the central Maven repository under Group ID org.apache.struts. The 2.3.x series of the Apache Struts framework has a minimum requirement of the following specification versions: * Java Servlet 2.4 and JavaServer Pages (JSP) 2.0 * Java 2 Standard Platform Edition (J2SE) 5 Should any issues arise with your use of any version of the Struts framework, please post your comments to the user list, and, if appropriate, file a tracking ticket.appropriate, file a tracking ticket: * https://issues.apache.org/jira/browse/WW - The Apache Struts group. Regards - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [ANN][SECURITY] Struts 1 - CVE-2014-0114 -Mitigation Advice Available, Possible RCE Impact
Thank you very much ! Patched struts1 projects based on [2] successfully. On 05/01/2014 02:59 PM, Rene Gielen wrote: As confirmed in our last announcement, the Apache Struts 1 framework in all versions is affected by a ClassLoader manipulation vulnerability (CVE-2014-0114) similar to a recently fixed vulnerability in Struts 2 (CVE-2014-0112, CVE-2014-0094) [1]. Thanks to the efforts of Alvaro Munoz and the HP Fortify team, the Apache Struts project team can recommend a first mitigation that is relatively simple to apply. It involves the introduction of a generic Servlet filter, adding the possibility to blacklist unacceptable request parameters based on regular expressions. Please see the corresponding HP Fortify blog entry [2] for detailed instructions. The HP Fortify team also informed us that the vulnerability may be exploited for Remote Code Execution (RCE) in certain environments. Based on this information, the Apache Struts project team recommends to apply the mitigation advice *immediately* for all Struts 1 based applications. Struts 1 has had its End-Of-Life announcement more than one year ago [3]. However, in a cross project effort the Struts team is looking for a correction or an improved mitigation path. Please stay tuned for further information regarding a solution. This is a cross-list posting. If you have questions regarding this report, please direct them to secur...@struts.apache.org only. [1] http://struts.apache.org/release/2.3.x/docs/s2-021.html [2] http://h30499.www3.hp.com/t5/HP-Security-Research-Blog/Protect-your-Struts1-applications/ba-p/6463188#.U2J7xeaSxro [3] http://struts.apache.org/struts1eol-announcement.html - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [ANN] Struts 2 up to 2.3.16.1: Zero-Day Exploit Mitigation (security | critical)
On 04/25/2014 10:23 AM, Lukasz Lenart wrote: You can create one abstract package and all other packages can inherit from it - the same as you inherit from tiles-default So, another way to do the change would be: package name=top extends=tiles-default . //Coding for [1] /package package name=p1 namespace=/n1 extends=top .. package name=pN namespace=/nN extends=top Is it correct? Or, if I keep extends=tiles-default, by adding interceptors(coding for [1]) to p1...pN as shown below will do the job, right? Thanks a lot! Hello List, Need your confirmation for [1] mitigation. For example, package: p1, p2... pN, for each package, I should do the following, right? Do I miss anything or is there a way that can patch one place and cover all packages instead of doing p1... PN? (a) struts1.xml package name=p1 namespace=/n1 extends=tiles-default result-types result-type name=tiles class=org.apache.struts2.views.tiles.TilesResult / /result-types interceptors interceptor-stack name=secureDefaultStack interceptor-ref name=defaultStack param name=params.excludeParams(.*\.|^|.*|\[('|))(c|C)lass(\.|('|)]|\[).*,^dojo\..*,^struts\..*,^session\..*,^request\..*,^application\..*,^servlet(Request|Response)\..*,^parameters\..*,^action:.*,^method:.*/param /interceptor-ref /interceptor-stack /interceptors default-interceptor-ref name=secureDefaultStack / action name= .. /package .. .. (N) strutsN.xml package name=pN namespace=/nN extends=tiles-default result-types result-type name=tiles class=org.apache.struts2.views.tiles.TilesResult / /result-types interceptors interceptor-stack name=secureDefaultStack interceptor-ref name=defaultStack param name=params.excludeParams(.*\.|^|.*|\[('|))(c|C)lass(\.|('|)]|\[).*,^dojo\..*,^struts\..*,^session\..*,^request\..*,^application\..*,^servlet(Request|Response)\..*,^parameters\..*,^action:.*,^method:.*/param /interceptor-ref /interceptor-stack /interceptors default-interceptor-ref name=secureDefaultStack / action name= .. /package On 04/24/2014 02:39 PM, Rene Gielen wrote: Yes. Am 24.04.14 19:37, schrieb em...@cse.concordia.ca: Hello List, I am using tiles-default: struts package name=Example namespace=/Action/Example extends=tiles-default result-types result-type name=tiles class=org.apache.struts2.views.tiles.TilesResult / /result-types action name=*ProcessExampleAction method={1} class=ExampleAction result name=success type=tilessuccess_gui/result result name=ajax_check /WEB-INF/pages/errorinfo/ajax_error_check.jsp /result /action Do I need this update below as well? Thank you! On 04/24/2014 11:32 AM, Rene Gielen wrote: In Struts 2.3.16.1, an issue with ClassLoader manipulation via request parameters was supposed to be resolved. Unfortunately, the correction wasn't sufficient. A security fix release fully addressing this issue is in preparation and will be released as soon as possible. Once the release is available, all Struts 2 users are strongly recommended to update their installations. * Until the release is available, all Struts 2 users are strongly recommended to apply the mitigation described [1] * Please follow the Apache Struts announcement channels [2][3][4][5] to stay updated regarding the upcoming security release. Most likely the release will be available within the next 72 hours. Please prepare for upgrading all Struts 2 based production systems to the new release version once available. - The Apache Struts Team. [1] http://struts.apache.org/announce.html#a20140424 [2] http://struts.apache.org/mail.html [3] http://struts.apache.org/announce.html [4] https://plus.google.com/+ApacheStruts/posts [5] https://twitter.com/TheApacheStruts - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [ANN] Struts 2 up to 2.3.16.1: Zero-Day Exploit Mitigation (security | critical)
On 04/25/2014 10:56 AM, Lukasz Lenart wrote: You can create one abstract package and all other packages can inherit from it - the same as you inherit from tiles-default So, another way to do the change would be: package name=top extends=tiles-default . //Coding for [1] /package package name=p1 namespace=/n1 extends=top .. package name=pN namespace=/nN extends=top Is it correct? This is the preferred approach Or, if I keep extends=tiles-default, by adding interceptors(coding for [1]) to p1...pN as shown below will do the job, right? Yes, but package inheriting was designed to avoid such situations - you can also inherit from many packages eg. extends=top, tiles-default http://struts.apache.org/release/2.3.x/docs/package-configuration.html#PackageConfiguration-Inheritfrommorethanonepackage Got it and make the changes below ( I do not use struts-default, so extends tiles-default): package name=top extends=tiles-default abstract=true interceptors interceptor-stack name=secureDefaultStack interceptor-ref name=defaultStack param name=params.excludeParams(.*\.|^|.*|\[('|))(c|C)lass(\.|('|)]|\[).*,^dojo\..*,^struts\..*,^session\..*,^request\..*,^application\..*,^servlet(Request|Response)\..*,^parameters\..*,^action:.*,^method:.*/param /interceptor-ref /interceptor-stack /interceptors default-interceptor-ref name=secureDefaultStack / /package Reason do two: when new libs are ready, will just remove top and keep tiles-default. package name=p1 namespace=/n1 extends=tiles-default,top .. package name=pN namespace=/nN extends=tiles-default,top If there were anything should be updated, please let me know. Otherwise, I will adopt this approach and deploy to all config files. Thank you very much! - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Need help for 2.3.16
Happy new year List! Thank you very much for all of your inputs and my projects are success with 2.3.16 + jquery3.7.0. As a sum: (1) 2.3.16 + jquery3.7.0 [success] (2) 2.3.15.x + jquery3.6.x [success] (3) 2.3.15.x + jquery3.7.0 [Not acceptable] On 01/03/2014 07:10 AM, Johannes Geppert wrote: If you are using MAVEN just add the Sonatype Snapshot Repository and change the Version of your Artifact. ... repositories ... repository idsonatype.oss.snapshots/id nameSonatype OSS Snapshot Repository/name urlhttp://oss.sonatype.org/content/repositories/snapshots http://oss.sonatype.org/content/repositories/snapshots/url releasesfalse/releases snapshotstrue/snapshots /repository /repositories ... But you can also simply download it from the Maven Repository. http://oss.sonatype.org/content/repositories/snapshots/com/jgeppert/struts2/jquery/ Best Regards Johannes # web: http://www.jgeppert.com twitter: http://twitter.com/jogep 2013/12/20 Emi Lu em...@encs.concordia.ca mailto:em...@encs.concordia.ca Hello, Please try out Struts2 jQuery Plugin Version 3.7.0-SNAPSHOT. This Version is compatible with Struts 2.3.16. The latest is shown as 3.6.1 from: http://code.google.com/p/__struts2-jquery/downloads/list http://code.google.com/p/struts2-jquery/downloads/list Can you tell me where to download struts2-jquery-plugin-3.7.0-__snapshot.jar please? Thanks a lot! ##__### web: http://www.jgeppert.com twitter: http://twitter.com/jogep - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Need help for 2.3.16
Hello, Please try out Struts2 jQuery Plugin Version 3.7.0-SNAPSHOT. This Version is compatible with Struts 2.3.16. The latest is shown as 3.6.1 from: http://code.google.com/p/struts2-jquery/downloads/list Can you tell me where to download struts2-jquery-plugin-3.7.0-snapshot.jar please? Thanks a lot! # web: http://www.jgeppert.com twitter: http://twitter.com/jogep 2013/12/11 Emi Lu em...@encs.concordia.ca mailto:em...@encs.concordia.ca On 12/11/2013 10:29 AM, Lukasz Lenart wrote: Here you have more details http://markmail.org/message/__lvrdf7zdrhatklyh http://markmail.org/message/lvrdf7zdrhatklyh Got it. My projects depend on jquery, and I will use 2.3.15.3 for now until a new version with jquery merged is released. Thanks a lot! 2013/12/11 Emi Lu em...@encs.concordia.ca mailto:em...@encs.concordia.ca: Good morning, Upgraded to 2.3.16, exception when start project from tomcat: ==__==__= java.lang.__ClassNotFoundException: org.apache.struts2.views.__TagLibrary org.apache.catalina.core.__StandardContext filterStart SEVERE: Exception starting filter struts2 Unable to load configuration. - bean - jar:file:/app/WEB-INF/lib/__struts2-jquery-plugin-3.3.3.__jar!/struts-plugin.xml:27:125 web.xml filter filter-namestruts2/filter-__name filter-classorg.apache.__struts2.dispatcher.ng.filter.__StrutsPrepareAndExecuteFilter__/filter-class init-param param-nameactionPackages/__param-name param-valueapp.action/__param-value /init-param /filter Do I miss any jars or need to change config somewhere? Thanks a lot! -- Details are: SEVERE: Exception starting filter struts2 Unable to load configuration. - bean - jar:file:/app/WEB-INF/lib/__struts2-jquery-plugin-3.3.3.__jar!/struts-plugin.xml:27:125 at org.apache.struts2.dispatcher.__Dispatcher.init(Dispatcher.__java:501) at org.apache.struts2.dispatcher.__ng.InitOperations.__initDispatcher(InitOperations.__java:74) at org.apache.struts2.dispatcher.__ng.filter.__StrutsPrepareAndExecuteFilter.__init(__StrutsPrepareAndExecuteFilter.__java:57) at org.apache.catalina.core.__ApplicationFilterConfig.__getFilter(__ApplicationFilterConfig.java:__295) at org.apache.catalina.core.__ApplicationFilterConfig.__setFilterDef(__ApplicationFilterConfig.java:__422) at org.apache.catalina.core.__ApplicationFilterConfig.init__(ApplicationFilterConfig.java:__115) at org.apache.catalina.core.__StandardContext.filterStart(__StandardContext.java:4072) at org.apache.catalina.core.__StandardContext.start(__StandardContext.java:4726) at org.apache.catalina.manager.__ManagerServlet.start(__ManagerServlet.java:1276) at org.apache.catalina.manager.__HTMLManagerServlet.start(__HTMLManagerServlet.java:625) at org.apache.catalina.manager.__HTMLManagerServlet.doGet(__HTMLManagerServlet.java:136) at javax.servlet.http.__HttpServlet.service(__HttpServlet.java:617) at javax.servlet.http.__HttpServlet.service(__HttpServlet.java:717) at org.apache.catalina.core.__ApplicationFilterChain.__internalDoFilter(__ApplicationFilterChain.java:__290) at org.apache.catalina.core.__ApplicationFilterChain.__doFilter(__ApplicationFilterChain.java:__206) at org.apache.catalina.filters.__CsrfPreventionFilter.doFilter(__CsrfPreventionFilter.java:194) at org.apache.catalina.core.__ApplicationFilterChain.__internalDoFilter(__ApplicationFilterChain.java:__235) at org.apache.catalina.core.__ApplicationFilterChain.__doFilter(__ApplicationFilterChain.java:__206) at org.apache.catalina.core.__StandardWrapperValve.invoke(__StandardWrapperValve.java:233) at org.apache.catalina.core.__StandardContextValve.invoke(__StandardContextValve.java:191) at org.apache.catalina.__authenticator.__AuthenticatorBase.invoke(__AuthenticatorBase.java:563
Need help for 2.3.16
Good morning, Upgraded to 2.3.16, exception when start project from tomcat: = java.lang.ClassNotFoundException: org.apache.struts2.views.TagLibrary org.apache.catalina.core.StandardContext filterStart SEVERE: Exception starting filter struts2 Unable to load configuration. - bean - jar:file:/app/WEB-INF/lib/struts2-jquery-plugin-3.3.3.jar!/struts-plugin.xml:27:125 web.xml filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter/filter-class init-param param-nameactionPackages/param-name param-valueapp.action/param-value /init-param /filter Do I miss any jars or need to change config somewhere? Thanks a lot! -- Details are: SEVERE: Exception starting filter struts2 Unable to load configuration. - bean - jar:file:/app/WEB-INF/lib/struts2-jquery-plugin-3.3.3.jar!/struts-plugin.xml:27:125 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:501) at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:115) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4072) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4726) at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1276) at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:625) at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:194) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) -- jars from 2.3.15.3 to 2.3.16 are: struts2-config-browser-plugin-2.3.16.jar struts2-core-2.3.16.jar struts2-dojo-plugin-2.3.16.jar struts2-dwr-plugin-2.3.16.jar struts2-json-plugin-2.3.16.jar struts2-codebehind-plugin-2.3.16.jar struts2-convention-plugin-2.3.16.jar struts2-oval-plugin-2.3.16.jar xwork-core-2.3.16.jar struts2-embeddedjsp-plugin-2.3.16.jar struts2-jasperreports-plugin-2.3.16.jar struts2-javatemplates-plugin-2.3.16.jar struts2-jfreechart-plugin-2.3.16.jar struts2-junit-plugin-2.3.16.jar struts2-pell-multipart-plugin-2.3.16.jar struts2-plexus-plugin-2.3.16.jar struts2-sitegraph-plugin-2.3.16.jar struts2-sitemesh-plugin-2.3.16.jar struts2-spring-plugin-2.3.16.jar struts2-struts1-plugin-2.3.16.jar struts2-testng-plugin-2.3.16.jar struts2-tiles3-plugin-2.3.16.jar All other jars do not change (no remove, add, update). - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Need help for 2.3.16
On 12/11/2013 10:29 AM, Lukasz Lenart wrote: Here you have more details http://markmail.org/message/lvrdf7zdrhatklyh Got it. My projects depend on jquery, and I will use 2.3.15.3 for now until a new version with jquery merged is released. Thanks a lot! 2013/12/11 Emi Lu em...@encs.concordia.ca: Good morning, Upgraded to 2.3.16, exception when start project from tomcat: = java.lang.ClassNotFoundException: org.apache.struts2.views.TagLibrary org.apache.catalina.core.StandardContext filterStart SEVERE: Exception starting filter struts2 Unable to load configuration. - bean - jar:file:/app/WEB-INF/lib/struts2-jquery-plugin-3.3.3.jar!/struts-plugin.xml:27:125 web.xml filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter/filter-class init-param param-nameactionPackages/param-name param-valueapp.action/param-value /init-param /filter Do I miss any jars or need to change config somewhere? Thanks a lot! -- Details are: SEVERE: Exception starting filter struts2 Unable to load configuration. - bean - jar:file:/app/WEB-INF/lib/struts2-jquery-plugin-3.3.3.jar!/struts-plugin.xml:27:125 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:501) at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:115) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4072) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4726) at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1276) at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:625) at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:194) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) -- jars from 2.3.15.3 to 2.3.16 are: struts2-config-browser-plugin-2.3.16.jar struts2-core-2.3.16.jar struts2-dojo-plugin-2.3.16.jar struts2-dwr-plugin-2.3.16.jar struts2-json-plugin-2.3.16.jar struts2-codebehind-plugin-2.3.16.jar struts2-convention-plugin-2.3.16.jar struts2-oval-plugin-2.3.16.jar xwork-core-2.3.16.jar struts2-embeddedjsp-plugin-2.3.16.jar struts2-jasperreports-plugin-2.3.16.jar struts2-javatemplates-plugin-2.3.16.jar struts2-jfreechart-plugin-2.3.16.jar struts2-junit-plugin-2.3.16.jar struts2-pell-multipart-plugin-2.3.16.jar struts2-plexus-plugin-2.3.16.jar struts2-sitegraph-plugin-2.3.16.jar struts2-sitemesh-plugin-2.3.16.jar struts2-spring-plugin-2.3.16.jar struts2-struts1-plugin-2.3.16.jar struts2-testng-plugin-2.3.16.jar struts2-tiles3-plugin-2.3.16.jar All other jars do not change (no remove, add, update
Re: Action failed for Struts 2.3.15.3 GA release
On 10/21/2013 07:03 PM, Greg Lindholm wrote: If you use struts.mapper.action.prefix.enabled to enable action: prefix support are you opening up a security whole? What is the liability? No comments from users. Could consider no security issues, I guess? On Fri, Oct 18, 2013 at 12:28 PM, Lukasz Lenart lukaszlen...@apache.orgwrote: 2013/10/18 Emi Lu em...@encs.concordia.ca: Good morning, Tried the new version15.3, but failed: login() method is not called at all. (1) login.jsp s:submit value=Login theme=simple action=loginProcessLoginAction / Struts 2.3.15.3 disables support for action: prefix by default [1], to enable it you must set struts.mapper.action.prefix.enabled to true. Instead action: you can use method: prefix (but you must enable struts.enable.DynamicMethodInvocation to true [2]) [1] http://struts.apache.org/release/2.3.x/docs/s2-018.html [2] http://struts.apache.org/release/2.3.x/docs/s2-019.html Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Action failed for Struts 2.3.15.3 GA release
Good morning, Tried the new version15.3, but failed: login() method is not called at all. (1) login.jsp s:submit value=Login theme=simple action=loginProcessLoginAction / (2) ProcessLoginAction.java public class ProcessLoginAction extends ActionSupport { private static final long serialVersionUID = -2334484448186776413L; public String login() throws Exception { .. return SUCCESS; } } (3) web.xml == filter filter-nameResponseOverrideFilter/filter-name filter-classorg.displaytag.filter.ResponseOverrideFilter/filter-class /filter filter-mapping filter-nameResponseOverrideFilter/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-nameResponseOverrideFilter/filter-name url-pattern*.action/url-pattern /filter-mapping filter-mapping filter-nameResponseOverrideFilter/filter-name url-pattern*.jsp/url-pattern /filter-mapping filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter/filter-class init-param param-nameactionPackages/param-name param-valueaction/param-value /init-param /filter filter-mapping filter-nameAuthenticatedFilter/filter-name url-pattern/Action/*/url-pattern /filter-mapping filter-mapping filter-namestruts2/filter-name url-pattern/*/url-pattern dispatcherREQUEST/dispatcher dispatcherINCLUDE/dispatcher /filter-mapping ... listener listener-classorg.springframework.web.util.Log4jConfigListener/listener-class /listener listener listener-classorg.springframework.web.context.ContextLoaderListener/listener-class /listener ... listener listener-class org.apache.struts2.tiles.StrutsTilesListener /listener-class /listener (4) libs used shown in the attached libs.txt file === (5) struts.xml === package name=Login namespace=/Login extends=tiles-default result-types result-type name=tiles class=org.apache.struts2.views.tiles.TilesResult / /result-types action name=*ProcessLoginAction method={1} class=ProcessLoginAction result name=success type=tileslogin_main_page/result .. /action . Can someone help why login() method is not called ? Thanks a lot! Emi antlr-2.7.7.jar hamcrest-core-1.3.jar slf4j-log4j12-1.7.5-sources.jar spring-jms-3.2.0.RELEASE-javadoc.jar struts2-dwr-plugin-2.3.15.3.jar aopalliance-1.0.jar hibernate-commons-annotations-4.0.1.Final.jar spring-aop-3.2.0.RELEASE.jar spring-jms-3.2.0.RELEASE-sources.jar struts2-embeddedjsp-plugin-2.3.15.3.jar aopalliance-alpha1.jar hibernate-core-4.2.1.Final.jar spring-aop-3.2.0.RELEASE-javadoc.jar spring-orm-3.2.0.RELEASE.jar struts2-jasperreports-plugin-2.3.15.3.jar asm-3.3.1.jar hibernate-core-4.3.0.Beta2.jar spring-aop-3.2.0.RELEASE-sources.jar spring-orm-3.2.0.RELEASE-javadoc.jar struts2-javatemplates-plugin-2.3.15.3.jar asm-4.0_RC1.jar hibernate-jpa-2.1-api-1.0.0.Draft-16.jar spring-aspects-3.2.0.RELEASE.jar spring-orm-3.2.0.RELEASE-sources.jar struts2-jfreechart-plugin-2.3.15.3.jar asm-commons-3.3.jar itextpdf-5.2.1.jar spring-aspects-3.2.0.RELEASE-javadoc.jar spring-oxm-3.2.0.RELEASE.jar struts2-jquery-plugin-3.3.3.jar asm-tree-3.3.jar itextpdf-5.2.1-sources.jar spring-aspects-3.2.0.RELEASE-sources.jar spring-oxm-3.2.0.RELEASE-javadoc.jar struts2-json-plugin-2.3.15.3.jar cglib-2.2.2.jar jandex-1.1.0.Alpha1.jar spring-beans-3.2.0.RELEASE.jar spring-oxm-3.2.0.RELEASE-sources.jar struts2-junit-plugin-2.3.15.3.jar cglib-src-2.2.2.jar javassist-3.16.1-GA.jar spring-beans-3.2.0.RELEASE-javadoc.jar spring-struts-3.2.0.RELEASE.jar struts2-oval-plugin-2.3.15.3.jar classworlds-1.1.jar jboss-logging-3.1.0.GA.jar spring-beans-3.2.0.RELEASE-sources.jar spring-struts-3.2.0.RELEASE-javadoc.jar struts2-pell-multipart-plugin-2.3.15.3.jar commons-beanutils-1.8.3.jar jboss-transaction-api_1.2_spec-1.0.0.Alpha1.jar spring-context-3.2.0.RELEASE.jar spring-struts-3.2.0.RELEASE-sources.jar struts2-plexus-plugin-2.3.15.3.jar commons-chain-1.2.jar jstl-api-1.2.jar spring-context-3.2.0.RELEASE-javadoc.jar spring-test-3.2.0.RELEASE.jar struts2-sitegraph-plugin-2.3.15.3.jar commons-collections-3.2.1.jar juli-6.0.18.jar spring-context-3.2.0.RELEASE-sources.jar spring-test-3.2.0.RELEASE-javadoc.jar struts2-sitemesh-plugin-2.3.15.3.jar commons-dbcp-1.4.jar junit-4.11.jar spring-context-support-3.2.0.RELEASE.jar spring-test-3.2.0.RELEASE-sources.jar struts2-spring-plugin-2.3.15.3.jar commons-digester-2.0.jar junit-4.11-sources.jar spring-context-support-3.2.0.RELEASE-javadoc.jar spring-tx-3.2.0.RELEASE.jar struts2-struts1-plugin-2.3.15.3.jar commons-digester3-3.0.jar lib_to_removespring-context-support-3.2.0.RELEASE-sources.jar spring-tx-3.2.0.RELEASE-javadoc.jar struts2-testng-plugin-2.3.15.3
Re: Action failed for Struts 2.3.15.3 GA release
One more comment: = Tiles 3.0.1 is used in the new struts package, but it will cause java.lang.NoClassDefFoundError: org/apache/tiles/web/startup/TilesListener exception. So, I could only use 2.2.2.2. login() method is not called in the action class - this is the problem. Any help? Good morning, Tried the new version15.3, but failed: login() method is not called at all. (1) login.jsp s:submit value=Login theme=simple action=loginProcessLoginAction / (2) ProcessLoginAction.java public class ProcessLoginAction extends ActionSupport { private static final long serialVersionUID = -2334484448186776413L; public String login() throws Exception { .. return SUCCESS; } } (3) web.xml == filter filter-nameResponseOverrideFilter/filter-name filter-classorg.displaytag.filter.ResponseOverrideFilter/filter-class /filter filter-mapping filter-nameResponseOverrideFilter/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-nameResponseOverrideFilter/filter-name url-pattern*.action/url-pattern /filter-mapping filter-mapping filter-nameResponseOverrideFilter/filter-name url-pattern*.jsp/url-pattern /filter-mapping filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter/filter-class init-param param-nameactionPackages/param-name param-valueaction/param-value /init-param /filter filter-mapping filter-nameAuthenticatedFilter/filter-name url-pattern/Action/*/url-pattern /filter-mapping filter-mapping filter-namestruts2/filter-name url-pattern/*/url-pattern dispatcherREQUEST/dispatcher dispatcherINCLUDE/dispatcher /filter-mapping ... listener listener-classorg.springframework.web.util.Log4jConfigListener/listener-class /listener listener listener-classorg.springframework.web.context.ContextLoaderListener/listener-class /listener ... listener listener-class org.apache.struts2.tiles.StrutsTilesListener /listener-class /listener (4) libs used shown in the attached libs.txt file === (5) struts.xml === package name=Login namespace=/Login extends=tiles-default result-types result-type name=tiles class=org.apache.struts2.views.tiles.TilesResult / /result-types action name=*ProcessLoginAction method={1} class=ProcessLoginAction result name=success type=tileslogin_main_page/result .. /action . Can someone help why login() method is not called ? Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Action failed for Struts 2.3.15.3 GA release
On 10/18/2013 12:28 PM, Lukasz Lenart wrote: 2013/10/18 Emi Lu em...@encs.concordia.ca: Good morning, Tried the new version15.3, but failed: login() method is not called at all. (1) login.jsp s:submit value=Login theme=simple action=loginProcessLoginAction / Struts 2.3.15.3 disables support for action: prefix by default [1], to enable it you must set struts.mapper.action.prefix.enabled to true. Instead action: you can use method: prefix (but you must enable struts.enable.DynamicMethodInvocation to true [2]) [1] http://struts.apache.org/release/2.3.x/docs/s2-018.html [2] http://struts.apache.org/release/2.3.x/docs/s2-019.html Thank you very much for your help! Here are what I tried: (1) Success version (struts2.3.15.3 + tiles2.2.2 ) struts.xml constant name=struts.enable.DynamicMethodInvocation value=true/ constant name=struts.mapper.action.prefix.enabled value=true/ web.xml === listener-classorg.apache.struts2.tiles.StrutsTilesListener/listener-class (2) Failed version(struts2.3.15.3 + tiles3.0.1) struts.xml constant name=struts.enable.DynamicMethodInvocation value=true/ constant name=struts.mapper.action.prefix.enabled value=true/ web.xml === listener-classorg.apache.tiles.extras.complete.CompleteAutoloadTilesListener/listener-class struts-login.xml == package name=Login namespace=/Login extends=tiles-default result-types result-type name=tiles class=org.apache.struts2.views.tiles.TilesResult / /result-types action name=*ProcessLoginAction method={1} class=ProcessLoginAction result name=success type=tileslogin_main_page/result result name=error type=tileslogin_main_page/result result name=main_menu type=redirectAction param name=actionNameProcessMenuAction/param param name=namespace/Menu/param /result result name=ajax_check /WEB-INF/pages/errorinfo/ajax_error_check.jsp /result /action .. Got the following exception: java.lang.NoSuchMethodError: org.apache.tiles.access.** TilesAccess.getContainer(**Ljava/lang/Object;)Lorg/** apache/tiles/TilesContainer; at org.apache.struts2.views.**tiles.TilesResult.doExecute(** TilesResult.java:100) at org.apache.struts2.dispatcher.**StrutsResultSupport.execute(** StrutsResultSupport.java:186) at com.opensymphony.xwork2.**DefaultActionInvocation.** executeResult(**DefaultActionInvocation.java:**371) at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(** DefaultActionInvocation.java:**275) at org.apache.struts2.**interceptor.debugging.** DebuggingInterceptor.**intercept(**DebuggingInterceptor.java:256) at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(** DefaultActionInvocation.java:**246) at com.opensymphony.xwork2.**interceptor.** DefaultWorkflowInterceptor.**doIntercept(**DefaultWorkflowInterceptor.** java:167) at com.opensymphony.xwork2.**interceptor.** MethodFilterInterceptor.**intercept(**MethodFilterInterceptor.java:**98) at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(** DefaultActionInvocation.java:**246) at com.opensymphony.xwork2.**validator.**ValidationInterceptor.** doIntercept(**ValidationInterceptor.java:**265) at org.apache.struts2.**interceptor.validation.** AnnotationValidationIntercepto**r.doIntercept(** AnnotationValidationIntercepto**r.java:68) at com.opensymphony.xwork2.**interceptor.** MethodFilterInterceptor.**intercept(**MethodFilterInterceptor.java:**98) at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(** DefaultActionInvocation.java:**246) at com.opensymphony.xwork2.**interceptor.** ConversionErrorInterceptor.**intercept(**ConversionErrorInterceptor.** java:138) at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(** DefaultActionInvocation.java:**246) at com.opensymphony.xwork2.**interceptor.**ParametersInterceptor.* *doIntercept(**ParametersInterceptor.java:**239) at com.opensymphony.xwork2.**interceptor.** MethodFilterInterceptor.**intercept(**MethodFilterInterceptor.java:**98) at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(** DefaultActionInvocation.java:**246) at com.opensymphony.xwork2.**interceptor.**ParametersInterceptor.* *doIntercept(**ParametersInterceptor.java:**239) at com.opensymphony.xwork2.**interceptor.** MethodFilterInterceptor.**intercept(**MethodFilterInterceptor.java:**98) at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(** DefaultActionInvocation.java:**246) at com.opensymphony.xwork2.**interceptor.** StaticParametersInterceptor.**intercept(**StaticParametersInterceptor.** java:191
Re: [ANN] Struts 2.3.15.2 GA release available - security fix
Good morning, Upgraded from 2.3.15.1 to 15.2, but s:submit problem: (1) jsp: s:form name= loginForm namespace= /Login action = ProcessLoginAction method = post theme=simple s:submit value=Login theme=simple action=loginProcessLoginAction / --- never call loginProcessLoginAction (2) struts.xml package name=Login namespace=/Login extends=tiles-default action name=*ProcessLoginAction method={1} class=ProcessLoginAction result name=success type=tilesmain_menu/result result name=ajax_check /WEB-INF/pages/errorinfo/ajax_error_check.jsp /result /action (3) ProcessLoginAction.java public String login() throws Exception { try { .. }catch(Exception e) { log.error(login Error: + e.getMessage()); log.error(e); this.addActionError(login Error: + e.getMessage()); } return success; } The problem is that loginProcessLoginAction in jsp page is never be called. Could you help? Thanks, Emi On 09/21/2013 12:06 PM, Lukasz Lenart wrote: The Apache Struts group is pleased to announce that Struts 2.3.15.2 is available as a General Availability release.The GA designation is our highest quality grade. Apache Struts 2 is an elegant, extensible framework for creating enterprise-ready Java web applications. The framework is designed to streamline the full development cycle, from building, to deploying, to maintaining applications over time. This release includes important security fixes: - S2-018 - Broken Access Control Vulnerability in Apache Struts2 - S2-019 - Dynamic Method Invocation disabled by default All developers are strongly advised to update existing Struts 2 applications to Struts 2.3.15.2 Struts 2.3.15.2 is available in a full distribution, or as separate library, source, example and documentation distributions, from the releases page. * http://struts.apache.org/download.cgi#struts23152 The release is also available from the central Maven repository under Group ID org.apache.struts. The 2.3.x series of the Apache Struts framework has a minimum requirement of the following specification versions: * Java Servlet 2.4 and JavaServer Pages (JSP) 2.0 * Java 2 Standard Platform Edition (J2SE) 5 The release notes are available online at: * http://struts.apache.org/release/2.3.x/docs/version-notes-23152.html Should any issues arise with your use of any version of the Struts framework, please post your comments to the user list, and, if appropriate, file a tracking ticket.appropriate, file a tracking ticket: * https://issues.apache.org/jira/browse/WW - The Apache Struts group. Regards - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [ANN] Struts 2.3.15.2 GA release available - security fix
On 09/23/2013 10:38 AM, Volker Krebs wrote: Am 23.09.2013 16:23, schrieb Emi Lu: Good morning, Upgraded from 2.3.15.1 to 15.2, but s:submit problem: (1) jsp: s:form name= loginForm namespace= /Login action = ProcessLoginAction method = post theme=simple s:submit value=Login theme=simple action=loginProcessLoginAction / --- never call loginProcessLoginAction (2) struts.xml package name=Login namespace=/Login extends=tiles-default action name=*ProcessLoginAction method={1} class=ProcessLoginAction result name=success type=tilesmain_menu/result result name=ajax_check /WEB-INF/pages/errorinfo/ajax_error_check.jsp /result /action (3) ProcessLoginAction.java public String login() throws Exception { try { .. }catch(Exception e) { log.error(login Error: + e.getMessage()); log.error(e); this.addActionError(login Error: + e.getMessage()); } return success; } The problem is that loginProcessLoginAction in jsp page is never be called. Could you help? Thanks, Emi We have the same Problem. This relates to http://struts.apache.org/release/2.3.x/docs/s2-018.html But there it says Backward Compatibility After upgrading to Struts = 2.3.15.2, applications using the action: should still work as expected. I'm still trying to figure out what exactly the problem is. I don't like this Security through obscurity approach. The document does not say what 15.2 does not support related to s:submit action=loginAction in struts.xml. What causing cannot do action anymore? How to fix it ? Thanks a lot! - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
JSP read value from ActionForm
Hello, May I know how to read a parameter value in JSP page for the following situation please? (1) Struts2Action.java ... String list_size = list.size(); ... getter/setter for list_size (2) result.jsp s:select ... size = %= list_size% / Is there a simple way to assign Struts2Action.list_size to s:select.size filed in the result.jsp file? Thanks a lot! EL - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
FKerberos + struts2 + SpringMVC
Hello, Could someone provide an example or online document about how struts2 + kerberos + tomcat7 + SpringFramework SSO login model works? E.g., == (1) User login to windows/unix within local network (2) Open: https://www.local_network_webapp1.com https://www.local_network_webapp2.com ... https://www.local_network_webappN.com Users have already login in (1). So, instead of going to login page, all weblinks in (2) show main menu page directly. Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Kerberos + struts2 + SpringMVC
Hello, Could someone provide an example or online document about how struts2 + kerberos + tomcat7 + SpringFramework SSO login model works? E.g., == (1) User login to windows/unix within local network (2) Open: https://www.local_network_webapp1.com https://www.local_network_webapp2.com ... https://www.local_network_webappN.com Users have already login in (1). So, instead of going to login page, all weblinks in (2) show main menu page directly. Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
how to generate TD title=tipinfo by display:column
Hello, May I know how to generate TD title=tipinfo here by using display:column please? Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: how to generate TD title=tipinfo by display:column
I believe so. I guess dislaytag is the simplest way to do struts2 pagination, is it right? Or there is a better way for struts2 pagination? E.g., http://www.simplecodestuffs.com/pagination-example-in-struts-2/ Thanks a lot, Emi On 04/30/2013 02:19 PM, Chris Pratt wrote: I think you're looking for the DisplayTag mailing list. Try looking at their documentation at http://displaytag.sourceforge.net/11/index.html and try their mailing list if you can't find the information there. (*Chris*) On Tue, Apr 30, 2013 at 11:10 AM, Dave Newton davelnew...@gmail.com mailto:davelnew...@gmail.com wrote: What's `display:column`? Dave On Tue, Apr 30, 2013 at 1:34 PM, Emi Lu em...@encs.concordia.ca mailto:em...@encs.concordia.ca wrote: Hello, May I know how to generate TD title=tipinfo here by using display:column please? Thanks a lot! Emi --**--**- To unsubscribe, e-mail: user-unsubscribe@struts.**apache.org http://apache.orguser-unsubscr...@struts.apache.org mailto:user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org mailto:user-h...@struts.apache.org -- e: davelnew...@gmail.com mailto:davelnew...@gmail.com m: 908-380-8699 tel:908-380-8699 s: davelnewton_skype t: @dave_newton https://twitter.com/dave_newton b: Bucky Bits http://buckybits.blogspot.com/ g: davelnewton https://github.com/davelnewton so: Dave Newton http://stackoverflow.com/users/438992/dave-newton -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [ANN] Struts 2.3.12 GA release available
Good morning list, To share with you the updates that I did for more than 300 jsp pages, in the new version, required=false has be removed. s:select name=search_info list=list_vlb listKey=bean_value listValue=bean_label multiple=true required=false -need to be removed!!! theme=simple size=6 cssStyle=color:#6677AA;font-weight:bold; / The highlighted red border is good. But it seems that required=false and required=true returns the same warning message now :-( All for now. Emi On 03/15/2013 04:16 AM, Lukasz Lenart wrote: The Apache Struts group is pleased to announce that Struts 2.3.12 is available as a General Availability release. The GA designation is our highest quality grade. Apache Struts 2 is an elegant, extensible framework for creating enterprise-ready Java web applications. The framework is designed to streamline the full development cycle, from building, to deploying, to maintaining applications over time. All developers are strongly advised to update existing Struts 2 applications to Struts 2.3.12. Struts 2.3.12 is available in a full distribution, or as separate library, source, example and documentation distributions, from the releases page. * http://struts.apache.org/download.cgi#struts2312 The release is also available from the central Maven repository under Group ID org.apache.struts. The 2.3.x series of the Apache Struts framework has a minimum requirement of the following specification versions: * Java Servlet 2.4 and JavaServer Pages (JSP) 2.0 * Java 2 Standard Platform Edition (J2SE) 5 The release notes are available online at: * http://struts.apache.org/development/2.x/docs/version-notes-2312.html Should any issues arise with your use of any version of the Struts framework, please post your comments to the user list, and, if appropriate, file a tracking ticket.appropriate, file a tracking ticket: * https://issues.apache.org/jira/browse/WW - The Apache Struts group. Regards - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
struts1 struts2 used in the same web application.
Hello list, May I know is it possible that struts1 + struts2 can be configured and run in the same web application please? If allowed, could someone suggest/provide struts.xml + web.xml + spring-configure.xml examples please? Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Java security issue vs. struts?
Thank you Chris. Moreover, if I call jfreechart to generate reports through web applications, it will not be affected, I believe? As long as you do not use Applets to output JFreechart data you should be fine (saying: if you generate images with JFreechart) (1) My jsp: img src=jfreechart_reportProcessReport.action (2) struts.xml action name=jfreechart_reportProcessReport method=jfreechart_report class=ProcessReport result name=success type=chart param name=chartchart/param param name=width1000/param param name=height500/param /result /action (3) My struts java action class (server side): do: ChartFactory.createBarChart3D(){... ...} As a result, due to (1) ~(3) I am safe I believe. Thanks a lot for all your comments! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Java security issue vs. struts?
Hello Martin, I did not find bug report under struts JIRA related to jfreechart. More details about how I use jfreechart: (1) jsp img src=.action (2) JAVA Action class, generated jsp (3) struts.xml specify img size Hope this info will help others have the same concern :-) Bon week-end! Emi On 01/16/2013 05:39 PM, Martin Gainty wrote: Hi Chris This issue came up on another apache users list I believe there was open access issue to Remote Context Object by OGNL (but i think Lukasz or Dave addressed the issue)..emi..did you see this in Struts Jira? Bon chance, Martin __ Note de déni et de confidentialitéCe message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Original Message Subject: Re: Java security issue vs. struts? Date: Fri, 18 Jan 2013 12:00:31 -0500 From: Emi Lu em...@encs.concordia.ca Reply-To: em...@encs.concordia.ca To: Christian Grobmeier grobme...@gmail.com CC: Struts Users Mailing List user@struts.apache.org, Chris Pratt thechrispr...@gmail.com Thank you Chris. Moreover, if I call jfreechart to generate reports through web applications, it will not be affected, I believe? As long as you do not use Applets to output JFreechart data you should be fine (saying: if you generate images with JFreechart) (1) My jsp: img src=jfreechart_reportProcessReport.action (2) struts.xml action name=jfreechart_reportProcessReport method=jfreechart_report class=ProcessReport result name=success type=chart param name=chartchart/param param name=width1000/param param name=height500/param /result /action (3) My struts java action class (server side): do: ChartFactory.createBarChart3D(){... ...} As a result, due to (1) ~(3) I am safe I believe. Thanks a lot for all your comments! Emi mailto:user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org mailto:user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Java security issue vs. struts?
Hello, Does someone know how this java security issue related to struts framework? http://www.oracle.com/technetwork/topics/security/alert-cve-2013-0422-1896849.html Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Java security issue vs. struts?
On 01/16/2013 04:54 PM, Emi Lu wrote: Hello, Does someone know how this java security issue related to struts framework? http://www.oracle.com/technetwork/topics/security/alert-cve-2013-0422-1896849.html One more link: http://nakedsecurity.sophos.com/2013/01/15/disable-java-browsers-homeland-security/ For example, would struts2-jfreechart considered as java-app run through web browser? Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Java security issue vs. struts?
On 01/16/2013 05:02 PM, Chris Pratt wrote: I believe the description says it all. This Security Alert addresses security issues CVE-2013-0422 (US-CERT Alert TA13-010A - Oracle Java 7 Security Manager Bypass Vulnerability) and another vulnerability affecting Java running in web browsers. *These vulnerabilities are not applicable to Java running on servers,* standalone Java desktop applications or embedded Java applications. They also do not affect Oracle server-based software. Thank you Chris. Moreover, if I call jfreechart to generate reports through web applications, it will not be affected, I believe? Emi On Wed, Jan 16, 2013 at 1:54 PM, Emi Lu em...@encs.concordia.ca mailto:em...@encs.concordia.ca wrote: Hello, Does someone know how this java security issue related to struts framework? http://www.oracle.com/__technetwork/topics/security/__alert-cve-2013-0422-1896849.__html http://www.oracle.com/technetwork/topics/security/alert-cve-2013-0422-1896849.html Thanks a lot! Emi --__--__- To unsubscribe, e-mail: user-unsubscribe@struts.__apache.org mailto:user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org mailto:user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
put ArrayList to s:hidden in jsp?
Good morning, Is there a way to put hidden ArrayList in JSP please? For example in a.jsp: s:hidden name=abean.arraylist1 / In action java class: private ArrayListBean2arraylist1 ; So that abean.arraylist1 could be retrieved by action java class. Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
put ArrayList to s:hidden in jsp?
Good morning, Is there a way to put hidden ArrayList in JSP please? For example in a.jsp: s:hidden name=abean.arraylist1 / In action java class: private ArrayListBean2arraylist1 ; So that abean.arraylist1 could be retrieved by action java class. Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
struts2.3.1.2 exception
Good morning, Upgraded to struts2.3.1.2, but got the following exception. Could someone tell me which jar I missed please? thanks a lot! Emi java.lang.NoSuchMethodError: ognl.SimpleNode.isEvalChain(Lognl/OgnlContext;)Z at com.opensymphony.xwork2.ognl.OgnlUtil.isEvalExpression(OgnlUtil.java:223) at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:214) at com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:186) at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:173) at com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:151) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:292) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:203) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:211) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:90) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:192) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54) at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:510) at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11
Re: struts2.3.1.2 exception
Thank you everyone! The problem is fixed. ognl3.0.4 is a must and can be the only ognl jar! The following are some background info: == . struts2.3.1.1 allows ognl3.0.2.jar + ognl3.0.2-source.jar + ognl3.0.1 at the same time . struts2.3.1.2 can only have ognl3.0.4, but remove other versions . user@struts.apache.org is very slow! I already got the author's replay but my question has not been shown in the mailing list yet! - still a very helpful list and i got almost got 100% answer for each my question :-) Happy new year all! Emi On 01/24/2012 03:08 PM, Dave Newton wrote: How did you upgrade? Looks like the wrong version of OGNL. On Tue, Jan 24, 2012 at 11:16 AM, Emi Lu em...@encs.concordia.ca mailto:em...@encs.concordia.ca wrote: Good morning, Upgraded to struts2.3.1.2, but got the following exception. Could someone tell me which jar I missed please? thanks a lot! Emi java.lang.NoSuchMethodError: ognl.SimpleNode.isEvalChain(__Lognl/OgnlContext;)Z at com.opensymphony.xwork2.ognl.__OgnlUtil.isEvalExpression(__OgnlUtil.java:223) at com.opensymphony.xwork2.ognl.__OgnlUtil.setValue(OgnlUtil.__java:214) at com.opensymphony.xwork2.ognl.__OgnlValueStack.trySetValue(__OgnlValueStack.java:186) at com.opensymphony.xwork2.ognl.__OgnlValueStack.setValue(__OgnlValueStack.java:173) at com.opensymphony.xwork2.ognl.__OgnlValueStack.setParameter(__OgnlValueStack.java:151) at com.opensymphony.xwork2.__interceptor.__ParametersInterceptor.__setParameters(__ParametersInterceptor.java:__292) at com.opensymphony.xwork2.__interceptor.__ParametersInterceptor.__doIntercept(__ParametersInterceptor.java:__203) at com.opensymphony.xwork2.__interceptor.__MethodFilterInterceptor.__intercept(__MethodFilterInterceptor.java:__98) at com.opensymphony.xwork2.__DefaultActionInvocation.__invoke(__DefaultActionInvocation.java:__249) at com.opensymphony.xwork2.__interceptor.__ParametersInterceptor.__doIntercept(__ParametersInterceptor.java:__211) at com.opensymphony.xwork2.__interceptor.__MethodFilterInterceptor.__intercept(__MethodFilterInterceptor.java:__98) at com.opensymphony.xwork2.__DefaultActionInvocation.__invoke(__DefaultActionInvocation.java:__249) at com.opensymphony.xwork2.__interceptor.__StaticParametersInterceptor.__intercept(__StaticParametersInterceptor.__java:190) at com.opensymphony.xwork2.__DefaultActionInvocation.__invoke(__DefaultActionInvocation.java:__249) at org.apache.struts2.__interceptor.__MultiselectInterceptor.__intercept(__MultiselectInterceptor.java:__75) at com.opensymphony.xwork2.__DefaultActionInvocation.__invoke(__DefaultActionInvocation.java:__249) at org.apache.struts2.__interceptor.__CheckboxInterceptor.intercept(__CheckboxInterceptor.java:90) at com.opensymphony.xwork2.__DefaultActionInvocation.__invoke(__DefaultActionInvocation.java:__249) at org.apache.struts2.__interceptor.__FileUploadInterceptor.__intercept(__FileUploadInterceptor.java:__243) at com.opensymphony.xwork2.__DefaultActionInvocation.__invoke(__DefaultActionInvocation.java:__249) at com.opensymphony.xwork2.__interceptor.__ModelDrivenInterceptor.__intercept(__ModelDrivenInterceptor.java:__100) at com.opensymphony.xwork2.__DefaultActionInvocation.__invoke(__DefaultActionInvocation.java:__249) at com.opensymphony.xwork2.__interceptor.__ScopedModelDrivenInterceptor.__intercept(__ScopedModelDrivenInterceptor.__java:141) at com.opensymphony.xwork2.__DefaultActionInvocation.__invoke(__DefaultActionInvocation.java:__249) at com.opensymphony.xwork2.__interceptor.__ChainingInterceptor.intercept(__ChainingInterceptor.java:145) at com.opensymphony.xwork2.__DefaultActionInvocation.__invoke(__DefaultActionInvocation.java:__249) at com.opensymphony.xwork2.__interceptor.__PrepareInterceptor.__doIntercept(__PrepareInterceptor.java:171) at com.opensymphony.xwork2.__interceptor.__MethodFilterInterceptor.__intercept(__MethodFilterInterceptor.java:__98) at com.opensymphony.xwork2.__DefaultActionInvocation.__invoke(__DefaultActionInvocation.java:__249) at com.opensymphony.xwork2.__interceptor.I18nInterceptor.__intercept(I18nInterceptor.__java:176) at com.opensymphony.xwork2.__DefaultActionInvocation.__invoke(__DefaultActionInvocation.java:__249) at org.apache.struts2.__interceptor.__ServletConfigInterceptor.__intercept(__ServletConfigInterceptor.java:__164) at com.opensymphony.xwork2.__DefaultActionInvocation.__invoke
Will xwork-core-2.2.3.1.jar works for commons-lang3-3.1.jar
Hello, I remembered that xwork2.2.3 does not support commons-lang3-3.0.1.jar, so use commons-lang-2.6.jar. Apache just published a new version lang jar. Does someone know for this newer version, will xwork-core-2.2.3.1.jar + common_lang_3.1 work together? Thanks a lot! Emi On 11/15/2011 04:02 PM, Henri Yandell wrote: The Apache Commons team is pleased to announce the release of Commons Lang 3.1. A list of the 8 changes and 5 bug fixes in this release are found in the release notes: https://commons.apache.org/lang/changes-report.html#a3.1 For general information on Commons Lang please visit the Lang website: http://commons.apache.org/lang/ The latest version may be downloaded from the following page: http://commons.apache.org/lang/download_lang.cgi For advice on upgrading from 2.x to 3.x, see the following page: http://commons.apache.org/lang/article3_0.html Thanks again to all involved in the release, both Commons users and Commons developers. Hen on behalf of the Apache Commons community -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Will xwork-core-2.2.3.1.jar works for commons-lang3-3.1.jar
On 11/17/2011 03:04 PM, Emi Lu wrote: Hello, I remembered that xwork2.2.3 does not support commons-lang3-3.0.1.jar, so use commons-lang-2.6.jar. Just want to remind the reason: depend on “org/apache/commons/lang/StringUtils”; while the new jar shows “org/apache/commons/lang3/StringUtils” Apache just published a new version lang jar. Does someone know for this newer version, will xwork-core-2.2.3.1.jar + common_lang_3.1 work together? For new version, does struts team use the new lang jar? Emi On 11/15/2011 04:02 PM, Henri Yandell wrote: The Apache Commons team is pleased to announce the release of Commons Lang 3.1. A list of the 8 changes and 5 bug fixes in this release are found in the release notes: https://commons.apache.org/lang/changes-report.html#a3.1 For general information on Commons Lang please visit the Lang website: http://commons.apache.org/lang/ The latest version may be downloaded from the following page: http://commons.apache.org/lang/download_lang.cgi For advice on upgrading from 2.x to 3.x, see the following page: http://commons.apache.org/lang/article3_0.html Thanks again to all involved in the release, both Commons users and Commons developers. Hen on behalf of the Apache Commons community -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: s:textfield / Beginner question
Why do I use Struts2/Tiles/openJPA? tiles: to work with layouts struts2: the action concept and the posibility to make mapping between html and the object in my action. Same for me. openJPA: to work with database entities I use mybatis for DB queries. Just curious to know, does someone know the performance between mybatis, openJPA, etc DB process tools? Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
displaytag CSV output throw Internet Explorer cannot display webpage Exception under IE9
Hello List, I know the question is not really related to struts, and I am asking just in case, people had similar problem and has the solution. I am using struts2 + displaytag. Under IE9, for CVS display output, when mouse over the link, it shows https://website?param1=1param2=2paramN=N If there are lots of search parameters para1... N, after clicking CSV output, IE will return Internet Explorer cannot display the webpage page. And the IE tab shows ieframe.dll! Does someone know how to fix this? Note: (1) firefox works fine (2) IE works fine when only param1... param5 , but IE does not accept too many parameters!!! Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: s:submit onclick=return false still call the action in IE 9!
On 10/08/2011 04:40 AM, Li Ying wrote: This page may help: http://www.ontola.com/en/javascript-onclick-return-false-does-not-work-in-i Thank you Ying! I fixed the problem. It seems that ajax firefox return str !='' but and a trim is needed. while IE it returns str ==''. But IE will not accept str.trim; but have to add a trim function. Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
s:submit onclick=return false still call the action in IE 9!
Hello, s:submit onclick=return check_func(); action=ProcessAction/ Firefox, when check_func() returns false, the action will not be called. But in IE9, although check_func() returns false, the action is still be called! Does someone know how to fix this issue? Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
IE open excel file directly but not save as
Hello , I know its not really struts question. But maybe someone knows the answer. IE cannot open an excel file directly (IE8,9) res.reset(); res.setHeader(Cache-Control, private, must-revalidate); res.setHeader(Pragma,private); res.setContentType(application/vnd.ms-excel); res.setHeader(Content-Disposition, inline;filename=\+ fn.xls + \;); res.setContentLength(fileData.length); res.setHeader(Content-Transfer-Encoding, binary); If I save as a file, open it, excel shows: Office File Validation detected a problem while trying to open this file. Opening it may be dangerous Then I have to click open to open it. Does someone know how to open excel file directly but not have to save as under IE please? thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: IE open excel file directly but not save as
Hi Chris, thanks a lot! I updated to : res.setHeader(Cache-Control, private); res.setHeader(Cache-Control, private, must-revalidate); res.setHeader(Pragma,private); res.setContentType(application/vnd.ms-excel); res.setHeader(Content-Disposition, inline); res.setContentLength(fileData.length); res.setHeader(Content-Transfer-Encoding, binary); IE 9 works, but IE8 still did not open the file :( Do you know how to fix the problem for IE8. Emi On 09/26/2011 01:40 PM, Chris Pratt wrote: Try removing the filename from the Content-Disposition header. inline doesn't support this attribute and maybe IE is assuming you mean external because it's there. (*Chris*) On Mon, Sep 26, 2011 at 10:30 AM, Emi Lu em...@encs.concordia.ca mailto:em...@encs.concordia.ca wrote: Hello , I know its not really struts question. But maybe someone knows the answer. IE cannot open an excel file directly (IE8,9) res.reset(); res.setHeader(Cache-Control, private, must-revalidate); res.setHeader(Pragma,__private); res.setContentType(__application/vnd.ms-excel); res.setHeader(Content-__Disposition, inline;filename=\+ fn.xls + \;); res.setContentLength(fileData.__length); res.setHeader(Content-__Transfer-Encoding, binary); If I save as a file, open it, excel shows: Office File Validation detected a problem while trying to open this file. Opening it may be dangerous Then I have to click open to open it. Does someone know how to open excel file directly but not have to save as under IE please? thanks a lot! Emi --__--__- To unsubscribe, e-mail: user-unsubscribe@struts.__apache.org mailto:user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org mailto:user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: IE open excel file directly but not save as
All right, after so many testing with diff IE versions, here comes the trick: res.setHeader(Content-Disposition, attachment;filename=\+ test.xls + \;); inline - attachment. Emi On 09/26/2011 02:05 PM, Emi Lu wrote: Hi Chris, thanks a lot! I updated to : res.setHeader(Cache-Control, private); res.setHeader(Cache-Control, private, must-revalidate); res.setHeader(Pragma,private); res.setContentType(application/vnd.ms-excel); res.setHeader(Content-Disposition, inline); res.setContentLength(fileData.length); res.setHeader(Content-Transfer-Encoding, binary); IE 9 works, but IE8 still did not open the file :( Do you know how to fix the problem for IE8. Emi On 09/26/2011 01:40 PM, Chris Pratt wrote: Try removing the filename from the Content-Disposition header. inline doesn't support this attribute and maybe IE is assuming you mean external because it's there. (*Chris*) On Mon, Sep 26, 2011 at 10:30 AM, Emi Lu em...@encs.concordia.ca mailto:em...@encs.concordia.ca wrote: Hello , I know its not really struts question. But maybe someone knows the answer. IE cannot open an excel file directly (IE8,9) res.reset(); res.setHeader(Cache-Control, private, must-revalidate); res.setHeader(Pragma,__private); res.setContentType(__application/vnd.ms-excel); res.setHeader(Content-__Disposition, inline;filename=\+ fn.xls + \;); res.setContentLength(fileData.__length); res.setHeader(Content-__Transfer-Encoding, binary); If I save as a file, open it, excel shows: Office File Validation detected a problem while trying to open this file. Opening it may be dangerous Then I have to click open to open it. Does someone know how to open excel file directly but not have to save as under IE please? thanks a lot! Emi --__--__- To unsubscribe, e-mail: user-unsubscribe@struts.__apache.org mailto:user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org mailto:user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Share my Struts2 + displaytag note
Hello, To share struts2 + displaytag example: (1) Action1 to browse display all records - a.jsp (2) Button send-all in a.jsp (3) Click send-all If send-all action in Action1.java, displagtag next page will call send-all again So, send-all action should be put another Action Class. I paid for this pain :( My users get 7 mails because of this. Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Could struts2 use commons-lang3-3.0.1.jar ?
Hello, Could someone update struts*.jars to use org/apache/commons/lang3/StringUtils in commons-lang3-3.0.1.jar please? Please see https://commons.apache.org/lang/article3_0.html For struts2.2.3, if with the new lang jar, I got the following exception. Thanks a lot! Emi -- After I downloaded commons-lang.3.0.1, I got the following exceptions: java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:198) at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:180) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:380) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:424) 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.getFilter(ApplicationFilterConfig.java:295) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:115) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4071) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4725) at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1276) at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:625) at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:186) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang.StringUtils at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526) ... 34 more Aug 11, 2011 9:43:14 AM org.apache.catalina.core.StandardContext start - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
how to make onchange in s:select to submit a form and call a specific method in one action class
Good morning, In struts2.2.3, how to submit a form to a predefined action? For example, (1) a.jsp s:select onchange=changeProcess / (2) Process.java ... public String change() { get Form values from a.jsp database actions ... ... return a.jsp; } I'd like to know: === When values changed in s:select, how to submit the form and call change() method in Process.java Thanks lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: how to make onchange in s:select to submit a form and call a specific method in one action class
Hello, The onchange attribute expects JavaScript. So you'd have to write a function to use ajax to make your request to /process_change.action. Or someone could provide more info will sj:select help satisfy the following requirement? (1) sj:select name=country onchange=to_change_region / (2) sj:select name=region onchange=to_change_city / (3) sj:select name=coutry / Actually, I prefer not to use complex javascript code to do change select1, select2 is updated, change select2, and select3 is updated. Thanks a lot! Emi In struts2.2.3, how to submit a form to a predefined action? For example, (1) a.jsp s:select onchange=changeProcess / (2) Process.java ... public String change() { get Form values from a.jsp database actions ... ... return a.jsp; } I'd like to know: === When values changed in s:select, how to submit the form and call change() method in Process.java Thanks lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
how web.xml load several tile files?
Good afternoon, Tiles2.2.2 + struts2.2.3. Web.xml = context-param param-name org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG /param-name param-value /WEB-INF/tiles/t1.xml, /WEB-INF/tiles/t2.xml /param-value /context-param Only t1.xml is found; but t2.xml cannot be found. Can someone tell why? If this way does not work, how to load several tile files? Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: how web.xml load several tile files?
Hi Dave, Could you give an example? Emi On 07/28/2011 04:30 PM, Dave Newton wrote: Did you try the tiles list? Dave On Jul 28, 2011 4:28 PM, Emi Lu em...@encs.concordia.ca mailto:em...@encs.concordia.ca wrote: Good afternoon, Tiles2.2.2 + struts2.2.3. Web.xml = context-param param-name org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG /param-name param-value /WEB-INF/tiles/t1.xml, /WEB-INF/tiles/t2.xml /param-value /context-param Only t1.xml is found; but t2.xml cannot be found. Can someone tell why? If this way does not work, how to load several tile files? Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org mailto:user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org mailto:user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: how web.xml load several tile files?
On 07/28/2011 04:36 PM, mmcken...@wernervas.com wrote: Try removing the return after t1.xml, No. That does not work! Still cannot find t2.xml! How! Emi From: Dave Newtondavelnew...@gmail.com To: Struts Users Mailing Listuser@struts.apache.org, em...@encs.concordia.ca Date: 07/28/2011 03:30 PM Subject:Re: how web.xml load several tile files? Did you try the tiles list? Dave On Jul 28, 2011 4:28 PM, Emi Luem...@encs.concordia.ca wrote: Good afternoon, Tiles2.2.2 + struts2.2.3. Web.xml = context-param param-name org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG /param-name param-value /WEB-INF/tiles/t1.xml, /WEB-INF/tiles/t2.xml /param-value /context-param Only t1.xml is found; but t2.xml cannot be found. Can someone tell why? If this way does not work, how to load several tile files? Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: how web.xml load several tile files?
On 07/28/2011 04:36 PM, mmcken...@wernervas.com wrote: Try removing the return after t1.xml, Ok, it works. Sorry about the previous email. Hope it fix the whole thing. Thanks a lot! Strange, tile2.0.7 enter works. Anyhow, it works. Great! Emi From: Dave Newtondavelnew...@gmail.com To: Struts Users Mailing Listuser@struts.apache.org, em...@encs.concordia.ca Date: 07/28/2011 03:30 PM Subject:Re: how web.xml load several tile files? Did you try the tiles list? Dave On Jul 28, 2011 4:28 PM, Emi Luem...@encs.concordia.ca wrote: Good afternoon, Tiles2.2.2 + struts2.2.3. Web.xml = context-param param-name org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG /param-name param-value /WEB-INF/tiles/t1.xml, /WEB-INF/tiles/t2.xml /param-value /context-param Only t1.xml is found; but t2.xml cannot be found. Can someone tell why? If this way does not work, how to load several tile files? Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: SEVERE: Servlet.service() for servlet default threw exception, java.lang.IllegalStateException
On 07/27/2011 01:55 AM, Łukasz Lenart wrote: 2011/7/26 Emi Luem...@encs.concordia.ca: Did you try to call check_search_oprProcessAction.action directly ? And maybe it's better to JSON plugin instead of home made protocol ? I was thinking about JSON result plus jQuery. For people have similar questions, my solution for now based on ajax + jQuery is: = (1) In global tile template.jsp, added div id=ajax_error_div align=left /div (2) In script.js, defined: == function ajax_check(url) { var xmlhttp; var str = $(form).serialize(); //http://api.jquery.com/serialize/ var tmp_str = ; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject(Microsoft.XMLHTTP); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 xmlhttp.status==200) { document.getElementById(ajax_error_div).innerHTML = xmlhttp.responseText; } } xmlhttp.open(POST, url, false); xmlhttp.setRequestHeader(Content-type,application/x-www-form-urlencoded); xmlhttp.send(str); var str = document.getElementById(ajax_error_div).innerHTML; if(str == null || str.trim() == ) { return true; } return false; } (3) main_display.jsp === s:submit value=Search theme=simple onclick=return ajax_check('ajax_checkProcessAction') action=searchProcessAction / (4) struts.xml = action name=*ProcessAction method={1} class=ProcessAction result name=success type=tilesbrowse_main_page/result result name=error type=tilesbrowse_main_page/result result name=ajax_check /WEB-INF/pages/errorinfo/ajax_error_check.jsp /result /action (5) ajax_error_check.jsp == %@ taglib prefix=s uri=/struts-tags % s:if test=hasActionMessages() center div id=action_message_div style=width: 700px; border:thin solid black; background-color:#C5D1C0; padding-left: 10px; margin-bottom: 5px; align=left s:iterator value=actionMessages li Bs:property escape=false / /B /li /s:iterator /div /center /s:if s:if test=hasActionErrors() center div align=left style=width: 700px; border:thin solid black; background-color:#D0CCAE; padding-left: 10px; margin-bottom: 5px s:iterator value=actionErrors li Bs:property escape=false / /B /li /s:iterator /div /center /s:if Thank you for all inputs! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: SEVERE: Servlet.service() for servlet default threw exception, java.lang.IllegalStateException
filter-mapping filter-namestruts/filter-name url-pattern/*/url-pattern dispatcherREQUEST/dispatcher dispatcherINCLUDE/dispatcher /filter-mapping Did you try to remove these dispatcher params ? Or add FORWARD ? I tried as well, but still got the following exceptions. The server did not die and it seems work fine. But each action returns such SEVERE exception. Why??? tomcat6 + struts2.2.3 + tiles2.2.2 + springframework3.05 + displaytag 1.2. I do need help what may cause this exception. From the outputs, I cannot see any hint! --- SEVERE: Servlet.service() for servlet default threw exception java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:407) at org.apache.struts2.dispatcher.Dispatcher.sendError(Dispatcher.java:819) at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:519) at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) --- Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: SEVERE: Servlet.service() for servlet default threw exception, java.lang.IllegalStateException
Hello, W dniu 26 lipca 2011 16:13 użytkownik Emi Luem...@encs.concordia.ca napisał: It seems that I found the problem. When I commented out ajax section onclick=return ajax_check_search_table('check_search_opr'), the error is gone. But I need ajax check support. Did you try to call check_search_oprProcessAction.action directly ? And maybe it's better to JSON plugin instead of home made protocol ? Situation is: = (1) a.jsp part1 - search form part2 = huge calculation in ActionClass.java; results are shown by using displaytag (2) Checks are needed in part1, but I need avoid calculation in part2. Moreover, a.jsp only part1 will be reloaded, but not the whole page. pa...@a.jsp calls method1 in ActionClass.java (3) JSON/jquery sj:submit seems does not support action parameter, it could not dispatch to another method, isn't ? sj:submit targets=result button=true validate=true validateFunction=customeValidation onBeforeTopics=removeErrors onSuccessTopics=removeErrors value=Submit indicator=indicator action=method1ProcessActionClass //does not dispatch! while s:submit works / Could you suggest a good way? (1) Do not reload whole jsp (2) Calculation must be done through ActionClass.java (extends ActionSupport) The calculation is through database queries, so have to be done through action class. According to the check results, display error message to users through pa...@a.jsp Only if no error return, part2 will be calculated and reloaded. Thanks alot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
SEVERE: Servlet.service() for servlet default threw exception, java.lang.IllegalStateException
Hello, I always get the following exception, does someone know why? web.xml filter filter-namestruts/filter-name filter-classorg.apache.struts2.dispatcher.FilterDispatcher/filter-class init-param param-nameactionPackages/param-name param-valueaction/param-value /init-param /filter filter-mapping filter-namestruts/filter-name url-pattern/*/url-pattern dispatcherREQUEST/dispatcher dispatcherINCLUDE/dispatcher /filter-mapping Thanks a lot! Emi -- SEVERE: Servlet.service() for servlet default threw exception java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:407) at org.apache.struts2.dispatcher.Dispatcher.sendError(Dispatcher.java:819) at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:519) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:434) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: SEVERE: Servlet.service() for servlet default threw exception, java.lang.IllegalStateException
Hello, I tried dispatcher.ng.filter.StrutsPrepareAndExecuteFilter as well, but still got the following error. Could someone help? Thank you, Emi filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter/filter-class init-param param-nameactionPackages/param-name param-valueaction/param-value /init-param /filter filter-mapping filter-namestruts2/filter-name url-pattern/*/url-pattern dispatcherREQUEST/dispatcher dispatcherINCLUDE/dispatcher /filter-mapping ---Exception --- org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet default threw exception java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:407) at org.apache.struts2.dispatcher.Dispatcher.sendError(Dispatcher.java:819) at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:519) at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) On 07/25/2011 04:15 PM, Emi Lu wrote: Hello, I always get the following exception, does someone know why? web.xml filter filter-namestruts/filter-name filter-classorg.apache.struts2.dispatcher.FilterDispatcher/filter-class init-param param-nameactionPackages/param-name param-valueaction/param-value /init-param /filter filter-mapping filter-namestruts/filter-name url-pattern/*/url-pattern dispatcherREQUEST/dispatcher dispatcherINCLUDE/dispatcher /filter-mapping Thanks a lot! Emi -- SEVERE: Servlet.service() for servlet default threw exception java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:407) at org.apache.struts2.dispatcher.Dispatcher.sendError(Dispatcher.java:819) at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:519) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:434) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Unable to load configuration. - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 Exception
Hello List, I got the following exception, could someone tell me what cause it? I am using struts2.2.3 + tiles2.2.2 + springframework3.05 + ognl3.0.2 + freemarker2.3.18 Thanks alot! Emi -- SEVERE: Exception starting filter struts2 Unable to load configuration. - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:437) 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.getFilter(ApplicationFilterConfig.java:295) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:115) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4071) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4725) at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1276) at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:625) at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:186) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) Caused by: Unable to load configuration. - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:380) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:424) ... 28 more Caused by: Unable to load bean: type:org.apache.struts2.views.TagLibrary class:com.jgeppert.struts2.jquery.views.JqueryTagLibrary - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:232) at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:180) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66) ... 30 more Caused by: Bean type interface org.apache.struts2.views.TagLibrary with the name sj has already been loaded by bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0-sources.jar!/struts-plugin.xml:27:125 - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:216) ... 33 more - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Unable to load configuration. - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 Exception
Probably because of what the exception says; try removing the extra jar file. You are Right Dave! I loaded both struts2-jquery-plugin-3.1.0.jar and struts2-jquery-plugin-3.1.0-source.jar into the project. The system complained about this. After I remove the source jar. Compiled successfully. Normally, loaded both the .jar and the source jar should not be a problem, shouldn't it? Emi On Jul 19, 2011 12:12 PM, Emi Lu em...@encs.concordia.ca mailto:em...@encs.concordia.ca wrote: Hello List, I got the following exception, could someone tell me what cause it? I am using struts2.2.3 + tiles2.2.2 + springframework3.05 + ognl3.0.2 + freemarker2.3.18 Thanks alot! Emi -- SEVERE: Exception starting filter struts2 Unable to load configuration. - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:437) 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.getFilter(ApplicationFilterConfig.java:295) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:115) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4071) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4725) at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1276) at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:625) at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:186) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) Caused by: Unable to load configuration. - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:380) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:424) ... 28 more Caused by: Unable to load bean: type:org.apache.struts2.views.TagLibrary class:com.jgeppert.struts2.jquery.views.JqueryTagLibrary - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:232) at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:180) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66) ... 30 more Caused by: Bean type interface org.apache.struts2.views.TagLibrary with the name sj has already been loaded by bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0-sources.jar!/struts-plugin.xml:27:125 - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:216) ... 33 more
Re: Unable to load configuration. - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 Exception
Probably because of what the exception says; try removing the extra jar file. You are Right Dave! I loaded both struts2-jquery-plugin-3.1.0.jar and struts2-jquery-plugin-3.1.0-source.jar into the project. The system complained about this. After I remove the source jar. Compiled successfully. Normally, loaded both the .jar and the source jar should not be a problem, shouldn't it? Emi On Jul 19, 2011 12:12 PM, Emi Lu em...@encs.concordia.ca mailto:em...@encs.concordia.ca wrote: Hello List, I got the following exception, could someone tell me what cause it? I am using struts2.2.3 + tiles2.2.2 + springframework3.05 + ognl3.0.2 + freemarker2.3.18 Thanks alot! Emi -- SEVERE: Exception starting filter struts2 Unable to load configuration. - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:437) 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.getFilter(ApplicationFilterConfig.java:295) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:115) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4071) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4725) at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1276) at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:625) at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:186) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) Caused by: Unable to load configuration. - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:380) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:424) ... 28 more Caused by: Unable to load bean: type:org.apache.struts2.views.TagLibrary class:com.jgeppert.struts2.jquery.views.JqueryTagLibrary - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:232) at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:180) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66) ... 30 more Caused by: Bean type interface org.apache.struts2.views.TagLibrary with the name sj has already been loaded by bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0-sources.jar!/struts-plugin.xml:27:125 - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:216) ... 33 more
Re: Unable to load configuration. - bean - jar:file:/WEB-INF/lib/struts2-jquery-plugin-3.1.0.jar!/struts-plugin.xml:27:125 Exception
Hi Chris, Depends whether the source jar contains just the source, or the source and binaries. Why do you feel the need to put the source files in the run-time directory? It just takes up more time and memory for the JVM to parse the indexes of useless jar files. To browse source codes and for simplification, I just loaded both jars into eclipse. I will probably pointing to my local source jars in eclipse. Thank you, Emi On Tue, Jul 19, 2011 at 10:57 AM, Emi Lu em...@encs.concordia.ca mailto:em...@encs.concordia.ca wrote: Probably because of what the exception says; try removing the extra jar file. You are Right Dave! I loaded both struts2-jquery-plugin-3.1.0.__jar and struts2-jquery-plugin-3.1.0-__source.jar into the project. The system complained about this. After I remove the source jar. Compiled successfully. Normally, loaded both the .jar and the source jar should not be a problem, shouldn't it? Emi On Jul 19, 2011 12:12 PM, Emi Lu em...@encs.concordia.ca mailto:em...@encs.concordia.ca mailto:emilu@encs.concordia.__ca mailto:em...@encs.concordia.ca wrote: Hello List, I got the following exception, could someone tell me what cause it? I am using struts2.2.3 + tiles2.2.2 + springframework3.05 + ognl3.0.2 + freemarker2.3.18 Thanks alot! Emi -- SEVERE: Exception starting filter struts2 Unable to load configuration. - bean - jar:file:/WEB-INF/lib/struts2-__jquery-plugin-3.1.0.jar!/__struts-plugin.xml:27:125 at org.apache.struts2.dispatcher.__Dispatcher.init(Dispatcher.__java:437) 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.__getFilter(__ApplicationFilterConfig.java:__295) at org.apache.catalina.core.__ApplicationFilterConfig.__setFilterDef(__ApplicationFilterConfig.java:__422) at org.apache.catalina.core.__ApplicationFilterConfig.init__(ApplicationFilterConfig.java:__115) at org.apache.catalina.core.__StandardContext.filterStart(__StandardContext.java:4071) at org.apache.catalina.core.__StandardContext.start(__StandardContext.java:4725) at org.apache.catalina.manager.__ManagerServlet.start(__ManagerServlet.java:1276) at org.apache.catalina.manager.__HTMLManagerServlet.start(__HTMLManagerServlet.java:625) at org.apache.catalina.manager.__HTMLManagerServlet.doGet(__HTMLManagerServlet.java:136) at javax.servlet.http.__HttpServlet.service(__HttpServlet.java:617) at javax.servlet.http.__HttpServlet.service(__HttpServlet.java:717) at org.apache.catalina.core.__ApplicationFilterChain.__internalDoFilter(__ApplicationFilterChain.java:__290) at org.apache.catalina.core.__ApplicationFilterChain.__doFilter(__ApplicationFilterChain.java:__206) at org.apache.catalina.filters.__CsrfPreventionFilter.doFilter(__CsrfPreventionFilter.java:186) at org.apache.catalina.core.__ApplicationFilterChain.__internalDoFilter(__ApplicationFilterChain.java:__235) at org.apache.catalina.core.__ApplicationFilterChain.__doFilter(__ApplicationFilterChain.java:__206) at org.apache.catalina.core.__StandardWrapperValve.invoke(__StandardWrapperValve.java:233) at org.apache.catalina.core.__StandardContextValve.invoke(__StandardContextValve.java:191) at org.apache.catalina.__authenticator.__AuthenticatorBase.invoke(__AuthenticatorBase.java:563) at org.apache.catalina.core.__StandardHostValve.invoke(__StandardHostValve.java:127) at org.apache.catalina.valves.__ErrorReportValve.invoke(__ErrorReportValve.java:102) at org.apache.catalina.core.__StandardEngineValve.invoke(__StandardEngineValve.java:109) at org.apache.catalina.connector.__CoyoteAdapter.service(__CoyoteAdapter.java:298) at org.apache.coyote.http11.__Http11Processor.process(__Http11Processor.java:859) at org.apache.coyote.http11.__Http11Protocol$__Http11ConnectionHandler.__process(Http11Protocol.java:__588
jstl.jar vs. jstl-api.jar for struts2.2.3
Hello, Could someone tell me the differences between jstl.jar vs. jstl-api.jar? It seems that jstl-api.jar cannot find: %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; % But from http://jstl.java.net/;, there is only jstl-api.jar. Can someone tell which jar should be used please? Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: jstl.jar vs. jstl-api.jar for struts2.2.3
Hi Dave, One's an implementation, one's the api (I assume). http://jstl.java.net/ provides two jars: . jstl-api.jar . jstl-implementation.jar I thought jstl-api is the newer version of jstl.jar, no? Neither is related to Struts 2. Some app servers provide JSTL out-of-the-box, some you'll need to deploy, you shouldn't need to deploy the API jar, just the implementation. (There's also standard.jar, but I can never remember which impl that's for.) %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; % standard.jar decides it! Thanks a lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
addActionMessage does not show message after redirect (struts2.2.3)
Hello List, Struts2.2.3, it seems that addActionMessage does not show message after redirect. Someone knows why? Thank you, Emi Action.java this.addActionMessage(this.getText(UPDATE.SUCCESS)); return forward_str; action name=*Action method={1} class=Action result name=forward_str type=redirectAction param name=actionNameAction2/param param name=namespace/Action/param /result /action - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: addActionMessage does not show message after redirect (struts2.2.3)
It works for 2.2.1, but the message does not shown for 2.2.3 anymore! Is it a bug? I have a lots classes depend on it. Thanks a lot! Emi On 07/12/2011 11:39 AM, Emi Lu wrote: Hello List, Struts2.2.3, it seems that addActionMessage does not show message after redirect. Someone knows why? Thank you, Emi Action.java this.addActionMessage(this.getText(UPDATE.SUCCESS)); return forward_str; action name=*Action method={1} class=Action result name=forward_str type=redirectAction param name=actionNameAction2/param param name=namespace/Action/param /result /action -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: addActionMessage does not show message after redirect (struts2.2.3)
Hi Dave, Because it's a redirect, and things in the request go away when there's a new request. Not true for previous version. Previous version keeps the ActionMessage. Only ActionErrorMessage does not show. Only the new version does not show the message anymore after redirect, do you know why? Emi On Tue, Jul 12, 2011 at 11:39 AM, Emi Luem...@encs.concordia.ca wrote: Hello List, Struts2.2.3, it seems that addActionMessage does not show message after redirect. Someone knows why? Thank you, Emi Action.java this.addActionMessage(this.getText(UPDATE.SUCCESS)); return forward_str; action name=*Action method={1} class=Action result name=forward_str type=redirectAction param name=actionNameAction2/param param name=namespace/Action/param /result /action - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca+1 514 848-2424 x5884 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org