Re: Action failed for Struts 2.3.15.3 GA release

2013-10-30 Thread Emi Lu

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



Re: Action failed for Struts 2.3.15.3 GA release

2013-10-21 Thread Greg Lindholm
If you use struts.mapper.action.prefix.enabled to enable action: prefix
support are you opening up a security whole?
What is the liability?


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




Re: Action failed for Struts 2.3.15.3 GA release

2013-10-19 Thread Lukasz Lenart
2013/10/18 Emi Lu em...@encs.concordia.ca:
 (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
..

And have you used Tiles 3 jars? Maybe try to use some dependency
management tool - Maven?


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

2013-10-18 Thread Emi Lu

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

Re: Action failed for Struts 2.3.15.3 GA release

2013-10-18 Thread Emi Lu

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

2013-10-18 Thread Lukasz Lenart
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



Re: Action failed for Struts 2.3.15.3 GA release

2013-10-18 Thread Lukasz Lenart
2013/10/18 Emi Lu em...@encs.concordia.ca:
 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.

Have you read the docs? You can choose either the Tiles 2 Plugin [1]
or the Tiles 3 plugin [2]- each requires different configuration and
you cannot mix them in one app.

[1] http://struts.apache.org/release/2.3.x/docs/tiles-2-plugin.html
[1] http://struts.apache.org/release/2.3.x/docs/tiles-3-plugin.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



Re: Action failed for Struts 2.3.15.3 GA release

2013-10-18 Thread Emi Lu

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)
  at