回复: Question of properties file

2014-07-15 Thread 木叶清风-谢
I have tried,but it doesn't work






-- 原始邮件 --
发件人: Lukasz Lenart;lukaszlen...@apache.org;
发送时间: 2014年7月15日(星期二) 中午12:54
收件人: Struts Users Mailing Listuser@struts.apache.org; 

主题: Re: Question of properties file



2014-07-15 3:57 GMT+02:00 木叶清风-谢 xsm...@qq.com:
 hi!I meet a problem about the properties files.
 I discover that the properties won't be loaded automatically unless use  
 constant name=struts.custom.i18n.resources 
 value=global,Register,Package/ in struts.xml.
 I want to know how to configure the struts2 to load Package.properties and 
 (activity_name).properties automatically,notice the constant 
 name=struts.devMode value=true /,the value is true!!!‍

try using package.properties and check if the both files are in the
same packages as corresponding action class


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: 回复: Question of properties file

2014-07-15 Thread Lukasz Lenart
2014-07-15 9:23 GMT+02:00 木叶清风-谢 xsm...@qq.com:
 I have tried,but it doesn't work

It must be something wrong with your setup, though. What do you use to
build the project and prepare WAR file?
https://github.com/apache/struts/tree/develop/apps/blank/src/main/resources/example


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



FileUploadBase$UnknownSizeException: the request was rejected because its size is unknown

2014-07-15 Thread shriram
I am using struts1 and apache.commons.fileupload1.0 to upload a file of size
more than 4 GB[may change] results in the below exception. I have gone
through struts fileupload api which mentions 256M is  the maximum limit. Is
it possible to upload a huge file size of more than 4GB ? How to change the
default limit 256M to higher limit?. If it is not possible is there any way
to upload a file in struts1?

 [org.apache.struts.upload.CommonsMultipartRequestHandler - handleRequest]
(CommonsMultipartRequestHandler.java:190) - Failed to parse multipart
request
org.apache.commons.fileupload.FileUploadBase$UnknownSizeException: the
request was rejected because its size is unknown
at
org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:305)
at
org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:268)
at
org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(CommonsMultipartRequestHandler.java:182)
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:389)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:191)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1858)   
at javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
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.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: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:745)

I have tried upto 256M limit it works fine.




--
View this message in context: 
http://struts.1045723.n5.nabble.com/FileUploadBase-UnknownSizeException-the-request-was-rejected-because-its-size-is-unknown-tp5716405.html
Sent from the Struts - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: FileUploadBase$UnknownSizeException: the request was rejected because its size is unknown

2014-07-15 Thread Sreekanth S. Nair
Have you checked the controller configuration in struts-config.xml
http://struts.apache.org/release/1.3.x/userGuide/configuration.html

-- 
Thanks  Regards

Sreekanth S Nair
Java Developer
---
eGovernments Foundation http://www.egovernments.org
Ph : 9980078913
---
http://in.linkedin.com/pub/sreekanth-s-nair/b/946/5a0/
https://github.com/sreekanthsnair   sreekanthsn...@hotmail.co.uk
sreekanths...@gmail.com
---


On Tue, Jul 15, 2014 at 5:47 PM, shriram shri1984...@gmail.com wrote:

 I am using struts1 and apache.commons.fileupload1.0 to upload a file of
 size
 more than 4 GB[may change] results in the below exception. I have gone
 through struts fileupload api which mentions 256M is  the maximum limit. Is
 it possible to upload a huge file size of more than 4GB ? How to change the
 default limit 256M to higher limit?. If it is not possible is there any way
 to upload a file in struts1?

  [org.apache.struts.upload.CommonsMultipartRequestHandler - handleRequest]
 (CommonsMultipartRequestHandler.java:190) - Failed to parse multipart
 request
 org.apache.commons.fileupload.FileUploadBase$UnknownSizeException: the
 request was rejected because its size is unknown
 at

 org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:305)
 at

 org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:268)
 at

 org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(CommonsMultipartRequestHandler.java:182)
 at
 org.apache.struts.util.RequestUtils.populate(RequestUtils.java:389)
 at

 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:191)
 at
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1858)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
 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.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: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:745)

 I have tried upto 256M limit it works fine.




 --
 View this message in context:
 http://struts.1045723.n5.nabble.com/FileUploadBase-UnknownSizeException-the-request-was-rejected-because-its-size-is-unknown-tp5716405.html
 Sent from the Struts - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




Upgrading from Struts 2.0 to 2.3.16

2014-07-15 Thread Rizwan Merchant
Hi,
We are working on upgrading our project Struts version to 2.3.16

When we log into our application, the JSP in not being render. Instead we
are getting an error in the logs as shown below.

I have updated the tiles jar files to
tiles-api-2.0.6.jar
tiles-core-2.0.6.jar
tiles-jsp-2.0.6.jar
tiles-servlet-2.1.2.jar

Can someone please help and advise what the issue might be? Hopefully it is
a simple dependency issue that needs to be resolved!!

Any help is appreciated.

Thanks,

org.apache.tiles.TilesException: ServletException including path
'/mmr/jsp/templates/layout_admin_window.jsp'.
at
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:614)
 at
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:246)
at
org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java:105)
 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.DeprecationInterceptor.intercept(DeprecationInterceptor.java:41)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
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.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.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:254)
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:254)
 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
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
 at
org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
 at
org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
 at
org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
 at
com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
 at
com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
 at
com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
 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:246)
at
com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:139)
 at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at

Re: Upgrading from Struts 2.0 to 2.3.16

2014-07-15 Thread Sreekanth S. Nair
 Caused by: java.lang.NoSuchMethodError:
 org.apache.tiles.jsp.taglib.InsertAttributeTag.doFinally()


Must be tiles not compatible

-- 
Thanks  Regards

Sreekanth S Nair
Java Developer
---
eGovernments Foundation http://www.egovernments.org
Ph : 9980078913
---
http://in.linkedin.com/pub/sreekanth-s-nair/b/946/5a0/
https://github.com/sreekanthsnair   sreekanthsn...@hotmail.co.uk
sreekanths...@gmail.com
---