Re: Dynamically switching Tiles master layout

2016-11-04 Thread Sreekanth S. Nair
cool 


On Fri, Nov 4, 2016 at 2:09 PM, Lukasz Lenart <lukaszlen...@apache.org>
wrote:

> Thanks but I found this [1] and it works
>
> [1] https://coderanch.com/t/500781/framework/Struts-Tiles-
> changing-layout-runtime#2257930
>
> just used 
>
> 2016-11-04 9:04 GMT+01:00 Sreekanth S. Nair <sreekanth.nair@egovernments.
> org>:
> > There is a wildcard way of doing it but don't know if it helps in this
> case
> >
> > like
> >
> > * >
> > *>> value="/WEB-INF/views/sign/{1}.jsp"/>   *
> >
> >
> >
> >
>
> > On Fri, Nov 4, 2016 at 1:25 PM, Lukasz Lenart <lukaszlen...@apache.org>
> > wrote:
> >
> >> Hi,
> >>
> >> Does someone has a solution how to dynamically change layout that
> >> given Tiles extends from?
> >>
> >> I have two main layouts:
> >>
> >> 
> >>...
> >> 
> >>
> >> 
> >>...
> >> 
> >>
> >> and have a page that should extend one of these when user is logged in
> >> or not. Any idea?
> >>
> >>
> >> 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
> >>
> >>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: Dynamically switching Tiles master layout

2016-11-04 Thread Sreekanth S. Nair
There is a wildcard way of doing it but don't know if it helps in this case

like

*  *




-- 
Thanks & Regards

Sreekanth Nair
Java Developer

eGovernments Foundation <http://www.egovernments.org>
 9980078913

<http://in.linkedin.com/pub/sreekanth-s-nair/b/946/5a0/>
<https://github.com/sreekanthsnair>  <sreekanthsn...@hotmail.co.uk>


On Fri, Nov 4, 2016 at 1:25 PM, Lukasz Lenart <lukaszlen...@apache.org>
wrote:

> Hi,
>
> Does someone has a solution how to dynamically change layout that
> given Tiles extends from?
>
> I have two main layouts:
>
> 
>...
> 
>
> 
>...
> 
>
> and have a page that should extend one of these when user is logged in
> or not. Any idea?
>
>
> 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: How to disable devMode in prod

2016-10-12 Thread Sreekanth S. Nair
 thanks Lukasz..



On Wed, Oct 12, 2016 at 4:47 PM, Lukasz Lenart <lukaszlen...@apache.org>
wrote:

> 2016-10-12 12:43 GMT+02:00 Sreekanth S. Nair <sreekanth.nair@egovernments.
> org>:
> > Cool  thanks Lukasz, when can we expect this release ?
>
> Somehow around end of this year, maybe early.
>
>
> 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: How to disable devMode in prod

2016-10-12 Thread Sreekanth S. Nair
Cool  thanks Lukasz, when can we expect this release ?


On Wed, Oct 12, 2016 at 3:02 PM, Lukasz Lenart 
wrote:

> and docs
> https://cwiki.apache.org/confluence/display/WW/Constant+Configuration#
> ConstantConfiguration-Valuesubstitution
>
> 2016-10-12 11:24 GMT+02:00 Lukasz Lenart :
> > Implemented
> > https://issues.apache.org/jira/browse/WW-4698
> >
> > 2016-09-16 9:06 GMT+02:00 Christoph Nenning <
> christoph.nenn...@lex-com.net>:
> >>> Maybe the first step should be just simple, use ENV in
> >>> struts.xml/struts.properties
> >>>
> >>> 
> >>>
> >>> wdyt?
> >>>
> >>>
> >>
> >> +1
> >>
> >>
> >>
> >> This Email was scanned by Sophos Anti Virus
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: Very confusing documentation

2016-09-20 Thread Sreekanth S. Nair
Hi Joseph,
 Would you like to understand the MVC architecture or to
understand the Struts 1 framework. I would recommend, you can kindly go
though the following link.

http://www.raistudies.com/struts-1/architecture-of-struts-1-mvc-framework/

http://www.roseindia.net/struts/Struts-1-Tutorial.shtml

There are many articles available on net to understand both struts and mvc
for a beginners. The documentation of struts2 may not be apt for beginners
(as you mentioned it may contains words which may not be legible for a
beginner).

My sincere apologies, if the above information is not what you are looking
for.



-- 
Thanks & Regards

Sreekanth Nair

On Tue, Sep 20, 2016 at 6:18 PM, Joseph B Cotton  wrote:

> Christoph
> Thanks again for the nice reply.
>
> Here is the reason that I am looking at Struts.  I am an applications
> programmer in a government office.  Among my other (main) duties, I was
> assigned to be "backup" to another employee.  I was shown how to restart
> the app, and to do some minor database manipulation.  But after the other
> employee was escorted off the installation, the whole megilla was handed to
> me.  While reviewing the code, I see . . .
>
> import org.apache.log4j.Logger;
> import org.apache.struts.action.ActionForm;
> import org.apache.struts.action.ActionForward;
> import org.apache.struts.action.ActionMapping;
> import org.apache.struts.action.ActionMessage;
> import org.apache.struts.action.ActionMessages;
>
> So, it seems that this app uses struts.  The app was written in 2006, so it
> probably is not Struts version 2.  This is why I am interested in struts.
> This app is planned to be re-written.  But the way things go around here, I
> will perhaps retire before that task gets done.  Therefore, I am the office
> struts expert.  Ha.
>
> Did I mention that it runs under Websphere?
>
> I suppose that when you say S2 your mean Struts version 2.  This was never
> actually said. And concerning S2, it doesn't interest me much.  I am
> interested in S1.  I am not about to upgrade to S2 until I understand S1.
>
> All your talk about "interceptors" and "stacks" don't interest me much.
> What I am interested in is the application side, the Java code that gets
> executed.  And - most important - does S1 operate like S2 as described?
>
> In your play-by-play description of the of the action (I would describe the
> process like this:)  the Controller has disappeared.  Does S2 MVC still
> access the "Controller"?
>
> In my understanding the Controller is split up between interceptors and
> action while the Model is split up between action and business logic.
>
> That implies that the MVC concept is shoe-horned into an existing, non-MVC
> environment.  In any case, I am only interested in understanding how my
> ancient legacy application works.
>
> Yours
> Joseph Cotton
>
>
>
>
>
> On Tue, Sep 20, 2016 at 3:13 AM, Christoph Nenning <
> christoph.nenn...@lex-com.net> wrote:
>
> > >
> > > OK, the View does not send the message back to the user.  Instead, the
> > > Controller does that.
> > >
> > > So the Controller receives the HTTP message, sends it to the Handler,
> > the
> > > Handler processes it and hands it back to the Controller.  The
> > Controller
> > > passes the message to the Model, which does processing, and hands the
> > > message back to the Controller.  The Controller passes the message to
> > the
> > > View, which processes it, and hands the message back to the Controller.
> > > Lastly, the Controller passes the message back to the user's browser.
> > >
> > > Is that the sequence of events? If so, then the Handler is a piece of
> > the
> > > puzzle, at least as important as the View, and instead of MVC, it
> should
> > be
> > > called MVHC?
> > >
> > > If you can't explain it simply, you don't understand it well enough. -
> > > Albert Einstein
> > >
> > >
> >
> > Hi,
> >
> > for my taste that is too theoretical. IMO it is not clear what the
> > Controller is in s2.
> >
> > I would describe the process like this:
> > - HTTP Request is passed from servlet container to s2
> > - s2 invokes interceptor stack which contains s2-logic and may contain
> > application logic
> > - interceptors may decide that request is not ok (e.g. user input is
> > invalid or user does not have permission) and invoke a View element. In
> > this case the action is not invoked.
> > - if all interceptors are happy the action is invoked. It decides which
> > parts of business logic shall be run (e.g. read, update, delete data,
> ...)
> > and it decides which View element shall be executed. The action may store
> > data returned by business logic to be accessed by View later.
> > - interceptors are run again, in reverse order (it is a stack) to do
> > optional post-processing
> > - View is executed to generate response.
> >
> > There is always s2 code involved between these steps to do the actual
> > invokation of interceptors, action, View.
> >
> > In my understanding 

Re: How to disable devMode in prod

2016-09-15 Thread Sreekanth S. Nair
Would be great to start with :-)

-- 
Thanks & Regards

Sreekanth Nair
Java Developer

On Thu, Sep 15, 2016 at 8:30 PM, Lukasz Lenart 
wrote:

> Maybe the first step should be just simple, use ENV in
> struts.xml/struts.properties
>
> 
>
> wdyt?
>
>
> 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: How to disable devMode in prod

2016-09-15 Thread Sreekanth S. Nair
Adding one of my thought, it would be better if we can externalize the
System ENV property key name (in Christoph code the key is "environment"),
because the application may already having some key to set its environment
to prod, staging or dev, etc.
eg: if we are using spring its having *spring.profiles.active *as to set
its current environment.

-- 
Thanks & Regards

Sreekanth Nair
Java Developer


Re: How to disable devMode in prod

2016-09-15 Thread Sreekanth S. Nair
+1 for this change, it would be wonderful if this can be done.

-- 
Thanks & Regards

Sreekanth Nair
Java Developer

On Thu, Sep 15, 2016 at 5:21 PM, Christoph Nenning <
christoph.nenn...@lex-com.net> wrote:

> > >> Hi,
> > >>
> > >> Do you have a solution to disable devMode in production environment?
> > >> Based on some ENV variable or something?
> > >
> > > Yes, we register a configProvider in web.xml which disables devMode
> based
> > > on a system property.
> >
> > Maybe it would be good to add such feature directly to Struts Core?
> >
> >
>
> Yeah, that would surly make it simpler for quite a lot of people.
>
> How shall we call that property?
>
> struts.environment?
> struts.staging?
> struts.production?
>
> What value(s) shall we use?
> Boolean?
> Strings like 'prod', 'test', 'dev', 'qa', 'staging'?
>
>
> Make name and value(s) configurable?
>
>
> At work we have 4 staging environments thus our property is not boolean.
>
>
> regards,
> Christoph
>
> This Email was scanned by Sophos Anti Virus
>


Re: Does struts 2.5.2 supports javaassist 3.18.1

2016-08-28 Thread Sreekanth S. Nair
Thanks Lukasz... yes we are using java 8... hope i can go head with
3.20.0-GA.


On Sun, Aug 28, 2016 at 1:46 PM, Lukasz Lenart <lukaszlen...@apache.org>
wrote:

> It should be, in 3.19 support for Java 8 was added so if you are using
> it you must use that version at least
>
> 2016-08-28 10:11 GMT+02:00 Sreekanth S. Nair <sreekanth.nair@egovernments.
> org>:
> > Thanks Lukasz... have one more doubt, I hope you may have answer for it
> > though its not related struts2, does javaassist 3.20.0 have any breaking
> > changes from javaassist 3.18.1 ? i couldn't see any release note
> available
> > for it. Please ignore if its out of the scope.
> >
> > On Sun, Aug 28, 2016 at 1:35 PM, Lukasz Lenart <lukaszlen...@apache.org>
> > wrote:
> >
> >> 2016-08-26 10:54 GMT+02:00 Sreekanth S. Nair
> <sreekanth.nair@egovernments.
> >> org>:
> >> > Does ognl breaks if i exclude 3.20.0-GA javaassist library from
> >> > struts-2.5.2 ? Hibernate version having dependency to javaassist
> >> 3.18.1-GA
> >> > so i'm expecting conflict between these two version.
> >>
> >> Rather no, it will use 3.18.1 version then
> >>
> >>
> >> 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
> >>
> >>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: Does struts 2.5.2 supports javaassist 3.18.1

2016-08-28 Thread Sreekanth S. Nair
Thanks Lukasz... have one more doubt, I hope you may have answer for it
though its not related struts2, does javaassist 3.20.0 have any breaking
changes from javaassist 3.18.1 ? i couldn't see any release note available
for it. Please ignore if its out of the scope.

On Sun, Aug 28, 2016 at 1:35 PM, Lukasz Lenart <lukaszlen...@apache.org>
wrote:

> 2016-08-26 10:54 GMT+02:00 Sreekanth S. Nair <sreekanth.nair@egovernments.
> org>:
> > Does ognl breaks if i exclude 3.20.0-GA javaassist library from
> > struts-2.5.2 ? Hibernate version having dependency to javaassist
> 3.18.1-GA
> > so i'm expecting conflict between these two version.
>
> Rather no, it will use 3.18.1 version then
>
>
> 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
>
>


Does struts 2.5.2 supports javaassist 3.18.1

2016-08-26 Thread Sreekanth S. Nair
Does ognl breaks if i exclude 3.20.0-GA javaassist library from
struts-2.5.2 ? Hibernate version having dependency to javaassist 3.18.1-GA
so i'm expecting conflict between these two version.


Re: Issue in autowiring spring beans from parent context

2016-08-07 Thread Sreekanth S. Nair
I could shown little more patience :-) the problem solved, i was missing
context:componentscan missing for my web applicationContext file.




On Sun, Aug 7, 2016 at 1:32 PM, Sreekanth S. Nair <
sreekanth.n...@egovernments.org> wrote:

> Recently i tried to move some of the services to spring parent context, we
> use spring's *parentContextKey* in web.xml to enable
>  ContextLoaderListener to pick these services loaded globally. I have
> struts2 as well as Spring mvc modules inside an EAR, Spring mvc controller
> is properly getting injected with this parent context bean whereas struts2
> action classes are not getting injected with parent context bean. Any idea,
> if someone can tell me precisely which classes need to be debugged i can do
> that too. FYI, i'm using struts2-spring plugin along with rest and
> convention plugin.
>


Issue in autowiring spring beans from parent context

2016-08-07 Thread Sreekanth S. Nair
Recently i tried to move some of the services to spring parent context, we
use spring's *parentContextKey* in web.xml to enable ContextLoaderListener to
pick these services loaded globally. I have struts2 as well as Spring mvc
modules inside an EAR, Spring mvc controller is properly getting injected
with this parent context bean whereas struts2 action classes are not
getting injected with parent context bean. Any idea, if someone can tell me
precisely which classes need to be debugged i can do that too. FYI, i'm
using struts2-spring plugin along with rest and convention plugin.


Re: Struts 2.5.2 latest can be used with asm-all-5.1

2016-08-05 Thread Sreekanth S. Nair
Thanks Lukasz... for now i'll go with java8 plugin and once 2.5.3 is out
then will use it :)

-- 
Thanks & Regards

Sreekanth Nair

On Fri, Aug 5, 2016 at 11:37 AM, Lukasz Lenart <lukaszlen...@apache.org>
wrote:

> 2016-08-05 7:24 GMT+02:00 Sreekanth S. Nair <sreekanth.nair@egovernments.
> org>:
> > I want to upgrade cglib-3.2.4, where as cglib dependency is asm-5.1, but
> >  Struts2 is also using asm libraries, does struts2 works with asm-5.1 ?
>
> Yes, you must add the STruts 2 Java8 plugin which supports ASM5 or you
> can wait till Struts 2.5.3 will be released (around end of august)
>
>
> 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
>
>


Struts 2.5.2 latest can be used with asm-all-5.1

2016-08-04 Thread Sreekanth S. Nair
I want to upgrade cglib-3.2.4, where as cglib dependency is asm-5.1, but
 Struts2 is also using asm libraries, does struts2 works with asm-5.1 ?


Re: Struts2 initial page loading time

2016-07-28 Thread Sreekanth S. Nair
Am sorry for not updating, though it got resolved yesterday eve by removing



as you asked for the urls, i have noticed yesterday that is the culprit
making things drag it, reading even third party jars (more than 800 entries
are there in url and all are unrelated)


On Thu, Jul 28, 2016 at 2:43 PM, Lukasz Lenart <lukaszlen...@apache.org>
wrote:

> 2016-07-25 13:08 GMT+02:00 Sreekanth S. Nair <
> sreekanth.n...@egovernments.org>:
> > I've tried with both dev mode on and off but the problem still persist.
> No
> > i'm not using any java 8 plugin and also we are not using any java8
> lambda
> > code inside action classes. Fyi, its deployed in wildfly 10.0.0 Final,
> > having around 7 to 8 WARS deployed as an EAR.
>
> By default Struts2 core is using ASM 3 where the Java8 plugin is using
> ASM 5 which is compatible with Java8. Btw. in Struts 2.5.3 ASM3 was
> dropped
>
>
> 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: Struts2 initial page loading time

2016-07-25 Thread Sreekanth S. Nair
I've tried with both dev mode on and off but the problem still persist. No
i'm not using any java 8 plugin and also we are not using any java8 lambda
code inside action classes. Fyi, its deployed in wildfly 10.0.0 Final,
having around 7 to 8 WARS deployed as an EAR.

On Mon, Jul 25, 2016 at 4:31 PM, Lukasz Lenart <lukaszlen...@apache.org>
wrote:

> 2016-07-22 8:23 GMT+02:00 Sreekanth S. Nair <
> sreekanth.n...@egovernments.org>:
> > We are using JDK 8u92, yes i have disabled devmode, enabled back for
> > debugging this issue.
>
> You should switch it off when debugging as in devMode configuration is
> re-loaded on each request. Secondly, do you use the Java8 Plugin?
>
>
> 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: Struts2 initial page loading time

2016-07-22 Thread Sreekanth S. Nair
We are using JDK 8u92, yes i have disabled devmode, enabled back for
debugging this issue.



On Fri, Jul 22, 2016 at 11:48 AM, Lukasz Lenart <lukaszlen...@apache.org>
wrote:

> 2016-07-21 17:30 GMT+02:00 Sreekanth S. Nair <
> sreekanth.n...@egovernments.org>:
> > By investigating further on this its taking time at
> >
> > PackageBasedActionConfigBuilder#buildActionConfigs
> >
> > Line No 293 Set classes = this.findActions();
> >
> > related struts.xml
> >
> >  value="true" />
> >  > value="jar,vfsfile,vfszip,vfs,zip" />
> > 
> > 
> >  />
> >
> >  />
> >
> >
> > further inside findActions method
> >
> > List urls = this.readUrls();
> > *ClassFinder finder = this.buildClassFinder(ex, urls); //LONG TIME*
> >
> > I didn't investigate further will update once done and if required
>
> Which Java version do you use?
>
>
> 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: Struts2 initial page loading time

2016-07-21 Thread Sreekanth S. Nair
By investigating further on this its taking time at

PackageBasedActionConfigBuilder#buildActionConfigs

Line No 293 Set classes = this.findActions();

related struts.xml










further inside findActions method

List urls = this.readUrls();
*ClassFinder finder = this.buildClassFinder(ex, urls); //LONG TIME*

I didn't investigate further will update once done and if required



On Thu, Jul 21, 2016 at 8:32 PM, Sreekanth S. Nair <
sreekanth.n...@egovernments.org> wrote:

> Hi Lukasz,
>   I have debugged through the code (version : 2.3.24.1)
> and found the most time taking (marked in *red*) process ie at
> DefaultConfiguration#reloadContainer class when loading provider called
> convention.PackageProvider
>
> // Then process any package providers from the plugins
> Set packageProviderNames = 
> container.getInstanceNames(PackageProvider.class);
> for (String name : packageProviderNames) {
> PackageProvider provider = container.getInstance(PackageProvider.class, 
> name);
> provider.init(this);
> *provider.loadPackages(); //Taking long time here*
> packageProviders.add(provider);
> }
>
>
> for the first time page loads. The same issue is there in 2.5.2 as well.
> Is it may be a default behavior to take time ?
>
>
>
>
>
>
>
>
> On Thu, Jul 21, 2016 at 12:10 PM, Sreekanth S. Nair <
> sreekanth.n...@egovernments.org> wrote:
>
>> Sure Lukasz...
>>
>>
>> On Thu, Jul 21, 2016 at 11:57 AM, Lukasz Lenart <lukaszlen...@apache.org>
>> wrote:
>>
>>> 2016-07-21 8:22 GMT+02:00 Sreekanth S. Nair <
>>> sreekanth.n...@egovernments.org>:
>>> > May be... We are using strust2-spring-plugin. I'm not pretty sure about
>>> > this plugin internal, need to investigate on this where its spending
>>> time.
>>>
>>> This plugin replaces the Struts ObjectFactory with a Spring
>>> ObjectFactory which simply delegates object instantiating to the
>>> Spring, it would be good if you could share results of your
>>> investigation.
>>>
>>>
>>> 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: Struts2 initial page loading time

2016-07-21 Thread Sreekanth S. Nair
Hi Adam,
   With ref to my previous reply i hope this is nothing to do
with spring, since this delay is happening after struts spring
initialization phase. And yes we have component scanning enabled for spring
which we are limiting to our own package, similar to the one you have
mentioned.


On Thu, Jul 21, 2016 at 8:35 PM, Adam Brin <ab...@digitalantiquity.org>
wrote:

> In your spring configuration, what packages are you scanning?  It could be
> that you’re not limiting things to just your package tree. For example, in
> our spring @Configuration class, we have the following:
>
> @ComponentScan(basePackages = { "org.tdar" },
> excludeFilters = {
> @Filter(type = FilterType.ASSIGNABLE_TYPE,
> value = {
> SimpleAppConfiguration.class
> })
> })
>
> --
> _
> Adam Brin
> Director of Technology, Digital Antiquity
> 480.965.1278
>
> > On Jul 21, 2016, at 8:02 AM, Sreekanth S. Nair <
> sreekanth.n...@egovernments.org> wrote:
> >
> > Hi Lukasz,
> >  I have debugged through the code (version : 2.3.24.1)
> and
> > found the most time taking (marked in *red*) process ie at
> > DefaultConfiguration#reloadContainer class when loading provider called
> > convention.PackageProvider
> >
> > // Then process any package providers from the plugins
> > Set packageProviderNames =
> > container.getInstanceNames(PackageProvider.class);
> > for (String name : packageProviderNames) {
> >PackageProvider provider =
> > container.getInstance(PackageProvider.class, name);
> >provider.init(this);
> >*provider.loadPackages(); //Taking long time here*
> >packageProviders.add(provider);
> > }
> >
> >
> > for the first time page loads. The same issue is there in 2.5.2 as well.
> Is
> > it may be a default behavior to take time ?
> >
> >
> >
> >
> >
> >
> >
> >
> > On Thu, Jul 21, 2016 at 12:10 PM, Sreekanth S. Nair <
> > sreekanth.n...@egovernments.org> wrote:
> >
> >> Sure Lukasz...
> >>
> >>
> >> On Thu, Jul 21, 2016 at 11:57 AM, Lukasz Lenart <
> lukaszlen...@apache.org>
> >> wrote:
> >>
> >>> 2016-07-21 8:22 GMT+02:00 Sreekanth S. Nair <
> >>> sreekanth.n...@egovernments.org>:
> >>>> May be... We are using strust2-spring-plugin. I'm not pretty sure
> about
> >>>> this plugin internal, need to investigate on this where its spending
> >>> time.
> >>>
> >>> This plugin replaces the Struts ObjectFactory with a Spring
> >>> ObjectFactory which simply delegates object instantiating to the
> >>> Spring, it would be good if you could share results of your
> >>> investigation.
> >>>
> >>>
> >>> 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
> >>>
> >>>
> >>
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: Struts2 initial page loading time

2016-07-21 Thread Sreekanth S. Nair
Hi Lukasz,
  I have debugged through the code (version : 2.3.24.1) and
found the most time taking (marked in *red*) process ie at
DefaultConfiguration#reloadContainer class when loading provider called
convention.PackageProvider

// Then process any package providers from the plugins
Set packageProviderNames =
container.getInstanceNames(PackageProvider.class);
for (String name : packageProviderNames) {
PackageProvider provider =
container.getInstance(PackageProvider.class, name);
provider.init(this);
*provider.loadPackages(); //Taking long time here*
packageProviders.add(provider);
}


for the first time page loads. The same issue is there in 2.5.2 as well. Is
it may be a default behavior to take time ?








On Thu, Jul 21, 2016 at 12:10 PM, Sreekanth S. Nair <
sreekanth.n...@egovernments.org> wrote:

> Sure Lukasz...
>
>
> On Thu, Jul 21, 2016 at 11:57 AM, Lukasz Lenart <lukaszlen...@apache.org>
> wrote:
>
>> 2016-07-21 8:22 GMT+02:00 Sreekanth S. Nair <
>> sreekanth.n...@egovernments.org>:
>> > May be... We are using strust2-spring-plugin. I'm not pretty sure about
>> > this plugin internal, need to investigate on this where its spending
>> time.
>>
>> This plugin replaces the Struts ObjectFactory with a Spring
>> ObjectFactory which simply delegates object instantiating to the
>> Spring, it would be good if you could share results of your
>> investigation.
>>
>>
>> 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: Struts2 initial page loading time

2016-07-21 Thread Sreekanth S. Nair
Sure Lukasz...

On Thu, Jul 21, 2016 at 11:57 AM, Lukasz Lenart <lukaszlen...@apache.org>
wrote:

> 2016-07-21 8:22 GMT+02:00 Sreekanth S. Nair <
> sreekanth.n...@egovernments.org>:
> > May be... We are using strust2-spring-plugin. I'm not pretty sure about
> > this plugin internal, need to investigate on this where its spending
> time.
>
> This plugin replaces the Struts ObjectFactory with a Spring
> ObjectFactory which simply delegates object instantiating to the
> Spring, it would be good if you could share results of your
> investigation.
>
>
> 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: Struts2 initial page loading time

2016-07-21 Thread Sreekanth S. Nair
May be... We are using strust2-spring-plugin. I'm not pretty sure about
this plugin internal, need to investigate on this where its spending time.

On Thu, Jul 21, 2016 at 11:45 AM, Lukasz Lenart <lukaszlen...@apache.org>
wrote:

> 2016-07-21 7:58 GMT+02:00 Sreekanth S. Nair <
> sreekanth.n...@egovernments.org>:
> > Hi Adam,
> >I don't think a blank artifact can replicate the issue, in
> > our app action consist of many spring beans dependency and so on. As i
> said
> > this is happening only while first time a page loads from a web context,
> > later on any pages from the same web context loads normal. I guess struts
> > is doing some warming up wrt spring bean injection or something similar.
>
> I would say that the Spring is doing some warmup (e.g. building object
> graph), if you are using the Spring to construct actions and inject
> dependencies, Struts has nothing to do here. Maybe it is possible to
> configure Spring to avoid package-scan (which is slow and performed on
> init).
>
>
> 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: Struts2 initial page loading time

2016-07-20 Thread Sreekanth S. Nair
Hi Adam,
   I don't think a blank artifact can replicate the issue, in
our app action consist of many spring beans dependency and so on. As i said
this is happening only while first time a page loads from a web context,
later on any pages from the same web context loads normal. I guess struts
is doing some warming up wrt spring bean injection or something similar.



On Thu, Jul 21, 2016 at 2:45 AM, Adam Brin <ab...@digitalantiquity.org>
wrote:

> Hi,
>  Have you tried this on a blank artifact? Seems like it might be a local
> configuration issue as opposed to a struts issue. If the former, addressing
> it might depend on your own initialization sequence and perhaps setting up
> your own Servlet init method
>
>
> > On Jul 20, 2016, at 1:46 PM, Sreekanth S. Nair <
> sreekanth.n...@egovernments.org> wrote:
> >
> > It seems like struts2 takes very long time while loading page for the
> first
> > time within a webcontext, this will definitely save deployment time but
> > result in less responsive for enduser for the first time. I guess this is
> > struts's default behavior, is there anyway we can instruct struts2 to
> load
> > in advance, like at deployment time itself ?
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Struts2 initial page loading time

2016-07-20 Thread Sreekanth S. Nair
It seems like struts2 takes very long time while loading page for the first
time within a webcontext, this will definitely save deployment time but
result in less responsive for enduser for the first time. I guess this is
struts's default behavior, is there anyway we can instruct struts2 to load
in advance, like at deployment time itself ?


Re: [ANN] Apache Struts 2.3.30 GA

2016-07-19 Thread Sreekanth S. Nair
Thanks Christoph, like i mentioned before we don't want to carry more
bridges into logging. I'm not against moving towards log4j2 and i already
changed my entire code base to use log4j2 as a part of struts2 upgrade but
the problem here is application server support, we are using latest version
Wildfly available (10.0.0 GA) so our options are at the extreme.

Thanks Lukasz for pointing out that blog link, which i have already tried
and that doesn't work give the desired log output as i mentioned before all
logs from application is getting written into file as well as console as
INFO [stdout]


On Tue, Jul 19, 2016 at 3:31 PM, Lukasz Lenart <lukaszlen...@apache.org>
wrote:

> 2016-07-19 10:55 GMT+02:00 Sreekanth S. Nair <
> sreekanth.n...@egovernments.org>:
> > Hi Christoph,
> >Thanks for your detailed explanation, even though
> > its a huge change for application to move from both slf4j and log4j1 to
> > Log4j2, lets assume we moved all to Log4j2 but if the underlying
> > application server eg: Jboss or wildfly have its own wrapper
> implementation
> > for their logging with log4j1, which will print application generated log
> > using stdout (This is what we have noticed after struts2 upgrade). Lets
> > assume we turned off logging subsystem from Jboss and used Log4js
> >  log4j2.xml which gives less flexibility (changing threshold on the fly)
> > wrt logging in different environment when we compare to jboss one.
> >
> > These all are our concern, we really doubt upgrading struts2, if log is
> > directing to stdout. Please let us know if anyone have any thought
> > regarding this or anyone successfully upgraded without stdout logging in
> > Wildfly or Jboss 6.
>
> As far I know/understand JBoss is using repackaged version of SLF4J
> and it should be manner of configuration to allow both logging
> frameworks to cooperate
> http://blog.c2b2.co.uk/2014/09/alternative-logging-frameworks-for.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: [ANN] Apache Struts 2.3.30 GA

2016-07-19 Thread Sreekanth S. Nair
Hi Christoph,
   Thanks for your detailed explanation, even though
its a huge change for application to move from both slf4j and log4j1 to
Log4j2, lets assume we moved all to Log4j2 but if the underlying
application server eg: Jboss or wildfly have its own wrapper implementation
for their logging with log4j1, which will print application generated log
using stdout (This is what we have noticed after struts2 upgrade). Lets
assume we turned off logging subsystem from Jboss and used Log4js
 log4j2.xml which gives less flexibility (changing threshold on the fly)
wrt logging in different environment when we compare to jboss one.

These all are our concern, we really doubt upgrading struts2, if log is
directing to stdout. Please let us know if anyone have any thought
regarding this or anyone successfully upgraded without stdout logging in
Wildfly or Jboss 6.



On Tue, Jul 19, 2016 at 2:00 PM, Christoph Nenning <
christoph.nenn...@lex-com.net> wrote:

> > I'm not sure about bridging log4j1 to log4j2 gives us any benefit from
> > enduser point of view, and most the people were using slf4j and log4j 1
> for
> > sure, with the addition of log4j2 the chain is getting complex for a
> simple
> > logging.
> >
> >
>
>
> In our apps we have been using slf4j and log4j1 for some time. As log4j1
> has been deprecated and struts 2.5 moved to log4j2-api we switched our
> logging impl to slf4j2 and created appropriate xml config files. To also
> grab log messages via slf4j we added log4j-slf4j-impl.
>
> See:
> https://logging.apache.org/log4j/2.x/log4j-slf4j-impl/
>
>
> That means our logging pipeline looks like this:
>
>
>
> slf4j-api > log4j-slf4j-impl -\
>   |--> log4j-core (v2)
> log4j-api (v2) ---/
>
>
>
> > Why can't struts2 can make a log wrapper around it based on the
> > available logging lib?
>
>
> That has been discussed on -dev mailing list. Reasons that I remember:
> - log4j2 is backed by the ASF
> - log4j2 can do everything slf4j can do
> - There are all kinds of bridging libraries to connect with other logging
> APIs and implementations
>
>
>
> Regards,
> Christoph
>
>
>
>
> > On Mon, Jul 18, 2016 at 9:14 PM, Adam Brin 
> > wrote:
> >
> > > Hi Emi,
> > >   You’ll definitely need a log4j2.xml, and you may need to change the
> > > listeners and also omit some other log4j 1.0 libraries from your pom.
> We
> > > did the upgrade last year and found the docs on the log4j2 website
> useful,
> > > you might start there.
> > >
> > > best of luck.
> > >
> > > --
> > > _
> > > Adam Brin
> > > Director of Technology, Digital Antiquity
> > > 480.965.1278
> > >
> > > > On Jul 18, 2016, at 8:37 AM, Emi  wrote:
> > > >
> > > >> 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 > listener-class>
> > > > 
> > > > ...
> > > > 
> > > >  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
> > > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > > For additional commands, e-mail: user-h...@struts.apache.org
> > >
> > >
>
>
> This Email was scanned by Sophos Anti Virus
>


Re: [ANN] Apache Struts 2.3.30 GA

2016-07-18 Thread Sreekanth S. Nair
I'm not sure about bridging log4j1 to log4j2 gives us any benefit from
enduser point of view, and most the people were using slf4j and log4j 1 for
sure, with the addition of log4j2 the chain is getting complex for a simple
logging. Why can't struts2 can make a log wrapper around it based on the
available logging lib?


On Mon, Jul 18, 2016 at 9:14 PM, Adam Brin 
wrote:

> Hi Emi,
>   You’ll definitely need a log4j2.xml, and you may need to change the
> listeners and also omit some other log4j 1.0 libraries from your pom.  We
> did the upgrade last year and found the docs on the log4j2 website useful,
> you might start there.
>
> best of luck.
>
> --
> _
> Adam Brin
> Director of Technology, Digital Antiquity
> 480.965.1278
>
> > On Jul 18, 2016, at 8:37 AM, Emi  wrote:
> >
> >> 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
> >
>
>
> -
> 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

2016-07-18 Thread Sreekanth S. Nair
Absolutely that's what even i feel, server like Jboss (wildfly doesn't have
support for it) so all logs coming after the following message is writing
to stdout (is that the expected behavior).


On Mon, Jul 18, 2016 at 6:43 PM, Emi  wrote:

> 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: Struts2 & Spring using child web application context

2016-06-26 Thread Sreekanth S. Nair
How you are packaging these two web applications ? as an EAR ? or
independent WAR running inside a we container ?


On Sun, Jun 26, 2016 at 9:47 PM, Chris Cranford <
chris.cranf...@setechusa.com> wrote:

> Has anyone been able to leverage the struts2-spring-plugin and running it
> within a child context?
>
> I am looking into the possibility of something like the following:
>
>  +- Root Application Context (global services, repositories, etc)
>   +- Web Application Context1 (used by struts2 actions)
>   +- Web Application Context2 (used by another technology)
>
> Any help would be greatly appreciated.
> Chris
>


Re: synchronization problem

2016-04-09 Thread Sreekanth S. Nair
Struts2 won't make your custom class threadsafe unless your code is
threadsafe, synchronized(this) or synchronized method can be used in your
service implementation if you think your service class is not threadsafe.
Usually Service or DAO layer should be written threadsafe, don't know about
your DAO or Service is threadsafe to make a clear comment on it. Action
classes are thread safe since it creates new instance per request.




On Sat, Apr 9, 2016 at 10:06 PM, Yaragalla Muralidhar <
yaragallamur...@gmail.com> wrote:

> Hi,
>
>  I have developed a web application using struts 2. In my struts 2
> action class i am calling the service layer and written the synchronization
> code as below in the service layer. Does this really gets synchronized? Is
> there any problem in my synchronization code?
>
>
>
> *The following is my action class:-*
>
>
>
> public class AbcAction extends ActionSupport{
>
>  private AbcService ser=new AbcServiceImpl(); //AbcService is an
> Interface
>
>
>
>  public String execute(){
>
>  ser.createNewRegistration();
>
>  return "SUCCESS";
>
>  }
>
>
>
> }
>
>
>
> *The following is my service Impl class:-*
>
>
>
> public class AbcServiceImpl implements AbcService{
>
> private AbcDao dao=new AbcDaoImpl();
>
>
>
> public void  .createNewRegistration(){
>
> synchronized(AbcServiceImpl.class){
>
> dao.createTheRegistration();
>
> }
>
> }
>
> }
>
>
>
> by writing the above code i assume that no two threads can run the
> "dao.createTheRegistration()"
> method at the same time. but when we analyze the logs i observed this is
> not happening. Two threads are able to execute the method at the same time.
> What is the problem in my code?
>
>
>
> *Thanks and Regards,*
> Muralidhar Yaragalla.
>
> *http://yaragalla.blogspot.in/ *
>


Re: CVE-2015-5209

2015-10-06 Thread Sreekanth S. Nair
Struts1 is completely safe to use since no OGNL involved, unfortunately
people started misusing struts2 the way its easy to use, and its in a way
to fix all the security holes found till now.

-- 
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 Wed, Oct 7, 2015 at 12:36 AM, Lukasz Lenart <lukaszlen...@apache.org>
wrote:

> 2015-10-06 21:04 GMT+02:00 David Gawron <dgaw...@us.ibm.com>:
> > Hello,
> >
> > I know that Struts1 and 2 are completely different code bases, but I was
> > wondering if the technique used by the exploit described in the CVE and
> > https://struts.apache.org/docs/s2-026.html could possibly apply to a
> > Struts 1 deployment?  There is no references to a ValueStack in the
> Struts
> > 1 code, but is there an equivalent feature that could be vulnerable?
>
> Nope, as far I know :)
>
>
> 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: Problem reading package.properties value when deploying application via wildfly-deploy plugin

2015-08-05 Thread Sreekanth S. Nair
Its not the problem of plugin, its plugin's default behavior to do the
deployment to data dir, the option targetDir is not for where to deploy
but from where to get deployable, bit confusing. As i mentioned, there is
no other issue with struts2 application except labels are not coming.

One more thing i have noticed is, if package.properties are packaged inside
war then only this issue is coming, if its packaged inside a jar then no
issues.

I have no idea if its a wildfly-plugin problem or struts2 is unable to
locate package.properties if deployed in wildfly data directory.


On Wed, Jul 29, 2015 at 2:07 PM, Lukasz Lenart lukaszlen...@apache.org
wrote:

 2015-07-29 10:30 GMT+02:00 Sreekanth S. Nair 
 sreekanth.n...@egovernments.org:
  package.properties file values are not getting displayed while we deploy
  our application in wildfly server using wildfly deploy maven plugin, but
 at
  the same time properties values are getting displayed properly if we
 deploy
  from eclipse or manual deployment. The only difference between manual and
  wildfly-deploy plugin is wildfly deploy plugin will add WAR or EAR to
  {WILDFLY_HOME}/standalone/data folder where as manual or eclipse
 deployment
  will add WAR or EAR to {WILDFLY_HOME}/standalone/deployment folder. Any
  insight ?

 but that's an issue with the plugin not Struts itself. Maybe you have
 wrong 'targetDir' set?

 https://docs.jboss.org/wildfly/plugins/maven/latest/deploy-mojo.html#targetDir


 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




Issue reading package.properties value

2015-07-30 Thread Sreekanth S. Nair
Facing some issue, while we use wildfly-deploy maven plugin to deploy
strut2 application to wildfly aka jboss 7, struts2 is unable to read
package.properties file packaged inside .war. If i deploy from an IDE or
manually then there is no issue.

The only difference is wildfly-deploy plugin is deploying application war
inside {WILDFLY_HOME}/standalone/data/ folder where as manual or IDE will
deploy it under {WILDFLY_HOME}/standalone/deployments/ folder.

In essence struts2 unable to read package.properties file if deployed under
certain location.

Any thoughts, application is working perfectly except label's are not
coming only label key is coming in screens.


-- 
Thanks  Regards

Sreekanth S Nair


Problem reading package.properties value when deploying application via wildfly-deploy plugin

2015-07-29 Thread Sreekanth S. Nair
package.properties file values are not getting displayed while we deploy
our application in wildfly server using wildfly deploy maven plugin, but at
the same time properties values are getting displayed properly if we deploy
from eclipse or manual deployment. The only difference between manual and
wildfly-deploy plugin is wildfly deploy plugin will add WAR or EAR to
{WILDFLY_HOME}/standalone/data folder where as manual or eclipse deployment
will add WAR or EAR to {WILDFLY_HOME}/standalone/deployment folder. Any
insight ?

Thanks
Srikanth


Re: Serialization Issue while using tokenInterceptor

2015-05-27 Thread Sreekanth S. Nair
Any kind updates ? is this an issue with struts2
TokenSessionStoreInterceptor ?


On Mon, May 25, 2015 at 5:06 PM, Sreekanth S. Nair 
sreekanth.n...@egovernments.org wrote:

 Once again i have tested afresh, but the same issue is coming. We have
 also found when we are using spring-http-session via redis data store only
 we are getting this issue. What could be the issue, does
 TokenSessionStoreInterceptor really trying to store the Container which is
 not issuing any error in HttpSession (because httpsession can accept
 nonserializable object where redis store can't)?


 On Mon, May 25, 2015 at 2:28 PM, Lukasz Lenart lukaszlen...@apache.org
 wrote:

 2015-05-25 10:29 GMT+02:00 Sreekanth S. Nair 
 sreekanth.n...@egovernments.org:
  Hi Lukasz,
  Based on your comment on WW-4028 issue, struts2 should
 not
  try to store  ActionInvocation  in session, from the log i have attached
  points that its getting stored into session which basically breaks your
  point. FYI we are using redis and spring session to manage HttpSession
  object.

 Not, it isn't like that. Without ActionInvocation you won't be able
 use Session Token. ActionInvocation has a reference to Container (DI)
 which isn't serializable and that was resolved with WW-4028.
 Now I'm trying figure out why do you see this exception and my only
 guess is that you must have serialized an old version of
 ActionInvocation which is now restored and used after upgrading to
 2.3.24. Does it happen locally on a fresh instance?


 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: Serialization Issue while using tokenInterceptor

2015-05-25 Thread Sreekanth S. Nair
Hi Lukasz,
Based on your comment on WW-4028 issue, struts2 should not
try to store  ActionInvocation  in session, from the log i have attached
points that its getting stored into session which basically breaks your
point. FYI we are using redis and spring session to manage HttpSession
object.


Re: Serialization Issue while using tokenInterceptor

2015-05-25 Thread Sreekanth S. Nair
Once again i have tested afresh, but the same issue is coming. We have also
found when we are using spring-http-session via redis data store only we
are getting this issue. What could be the issue, does
TokenSessionStoreInterceptor really trying to store the Container which is
not issuing any error in HttpSession (because httpsession can accept
nonserializable object where redis store can't)?


On Mon, May 25, 2015 at 2:28 PM, Lukasz Lenart lukaszlen...@apache.org
wrote:

 2015-05-25 10:29 GMT+02:00 Sreekanth S. Nair 
 sreekanth.n...@egovernments.org:
  Hi Lukasz,
  Based on your comment on WW-4028 issue, struts2 should
 not
  try to store  ActionInvocation  in session, from the log i have attached
  points that its getting stored into session which basically breaks your
  point. FYI we are using redis and spring session to manage HttpSession
  object.

 Not, it isn't like that. Without ActionInvocation you won't be able
 use Session Token. ActionInvocation has a reference to Container (DI)
 which isn't serializable and that was resolved with WW-4028.
 Now I'm trying figure out why do you see this exception and my only
 guess is that you must have serialized an old version of
 ActionInvocation which is now restored and used after upgrading to
 2.3.24. Does it happen locally on a fresh instance?


 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: Serialization Issue while using tokenInterceptor

2015-05-23 Thread Sreekanth S. Nair
Struts 2 related jars
--
freemarker-2.3.19.jar
ognl-3.0.6.jar
struts2-convention-plugin-2.3.20.jar
struts2-core-2.3.20.jar
struts2-jasperreports-plugin-2.3.20.jar
struts2-jquery-plugin-3.7.1.jar
struts2-json-plugin-2.3.20.jar
struts2-rest-plugin-2.3.20.jar
struts2-spring-plugin-2.3.20.jar
xwork-core-2.3.20.jar


Other Jars
--
aopalliance-1.0.jar
asm-5.0.3.jar
asm-commons-5.0.2.jar
asm-tree-5.0.2.jar
aspectjrt-1.8.2.jar
aspectjweaver-1.8.4.jar
batik-css-1.7.jar
batik-ext-1.7.jar
batik-util-1.7.jar
cglib-3.1.jar
commons-beanutils-1.8.0.jar
commons-codec-1.10.jar
commons-collections-3.2.1.jar
commons-configuration-1.10.jar
commons-dbcp-1.4.jar
commons-digester-2.0.jar
commons-email-1.3.3.jar
commons-fileupload-1.3.1.jar
commons-httpclient-3.1.jar
commons-io-2.4.jar
commons-lang3-3.2.jar
commons-lang-2.5.jar
commons-pool2-2.2.jar
commons-pool-1.5.4.jar
commons-validator-1.1.4.jar
concurrent-1.3.4.jar
displaytag-1.2.jar
displaytag-export-poi-1.2.jar
ehcache-core-2.4.6.jar
ehcache-web-2.0.4.jar
embedded-redis-0.6.jar
ezmorph-1.0.6.jar

gson-2.2.4.jar
jcl-over-slf4j-1.7.7.jar
jcommon-1.0.23.jar
jcr-2.0.jar
jedis-2.4.1.jar
jfreechart-1.0.19.jar
joda-time-2.7.jar
joda-time-jsptags-1.1.1.jar
json-lib-2.3-jdk15.jar
json-simple-1.1.1.jar
jsoup-1.7.3.jar
jsr-275-1.0-beta-2.jar
jts-1.6.jar
jython-standalone-2.5.2.jar
log4j-1.2.17.jar
logback-classic-1.0.0.jar
logback-core-1.0.0.jar
sitemesh-2.4.2.jar
slf4j-api-1.7.7.jar
spring-aop-4.1.4.RELEASE.jar
spring-aspects-4.1.4.RELEASE.jar
spring-beans-4.1.4.RELEASE.jar
context-4.1.4.RELEASE.jar
spring-context-support-4.1.4.RELEASE.jar
spring-core-4.1.4.RELEASE.jar
spring-data-commons-1.9.1.RELEASE.jar
spring-data-envers-0.2.0.RELEASE.jar
spring-data-jpa-1.7.1.RELEASE.jar
spring-data-redis-1.3.0.RELEASE.jar
spring-expression-4.1.4.RELEASE.jar
spring-jdbc-4.1.4.RELEASE.jar
pring-jms-4.1.4.RELEASE.jar
spring-messaging-4.1.4.RELEASE.jar
spring-orm-4.1.4.RELEASE.jar
spring-security-acl-3.2.5.RELEASE.jar
spring-security-config-3.2.5.RELEASE.jar
spring-security-core-3.2.5.RELEASE.jar
spring-security-web-3.2.5.RELEASE.jar
spring-session-1.0.0.RELEASE.jar
spring-struts-3.2.3.RELEASE.jar
spring-tx-4.1.4.RELEASE.jar
spring-web-4.1.4.RELEASE.jar
spring-webmvc-4.1.4.RELEASE.jar
standard-1.0.6.jar

struts-1.2.9.jar
struts-el-1.2.9.jar
tiles-api-3.0.5.jar
tiles-autotag-core-runtime-1.1.0.jar
tiles-core-3.0.5.jar
tiles-jsp-3.0.5.jar
tiles-request-api-1.0.6.jar
tiles-request-jsp-1.0.6.jar
tiles-request-servlet-1.0.6.jar
tiles-servlet-3.0.5.jar
tiles-template-3.0.5.jar
units-0.01.jar
vecmath-1.3.1.jar
velocity-1.5.jar
xml-apis-1.3.04.jar
xml-apis-ext-1.3.04.jar
xmlpull-1.1.3.1.jar
xpp3_min-1.1.4c.jar
xstream-1.4.2.jar


-- 
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 Sat, May 23, 2015 at 12:06 PM, Lukasz Lenart lukaszlen...@apache.org
wrote:

 It's the same issue as WW-4028 which means you did something wrong
 when you were upgrading to latest Struts version. Can you list all
 jars?

 2015-05-23 7:32 GMT+02:00 Sreekanth S. Nair 
 sreekanth.n...@egovernments.org:
  Below is the stacktrace, made log bold where its failing
 
  10:59:30,195 INFO  [org.apache.struts2.rest.RestActionInvocation]
 (default
  task-29) Executed action
 [//assetcategory/assetCategory-save!save!jsp!200]
  took 278317 ms (execution: 277604 ms, result: 713 ms)
  10:59:30,281 ERROR [io.undertow.request] (default task-29) UT005023:
  Exception handling request to /egassets/WEB-INF/jsp/assets/
  assetcategory/assetCategory-edit.jsp: org.springframework.data.
  redis.serializer.SerializationException: Cannot serialize; nested
 exception
  is
 org.springframework.core.serializer.support.SerializationFailedException:
  Failed to serialize object using DefaultSerializer; nested exception is
  java.io.NotSerializableException: com.opensymphony.xwork2.
  inject.ContainerImpl$ConstructorInjector
  at org.springframework.data.redis.serializer.
 
 JdkSerializationRedisSerializer.serialize(JdkSerializationRedisSerializer.java:52)
  [spring-data-redis-1.3.0.RELEASE.jar:1.3.0.RELEASE]
  at
 org.springframework.data.redis.core.AbstractOperations.rawHashValue(AbstractOperations.java:145)
  [spring-data-redis-1.3.0.RELEASE.jar:1.3.0.RELEASE]
  at org.springframework.data.redis.core.DefaultHashOperations.putAll(
  DefaultHashOperations.java:124) [spring-data-redis-1.3.0.
  RELEASE.jar:1.3.0.RELEASE]
  at org.springframework.data.redis.core.DefaultBoundHashOperations.
  putAll(DefaultBoundHashOperations.java:83) [spring-data-redis-1.3.0.
  RELEASE.jar:1.3.0.RELEASE

Re: Serialization Issue while using tokenInterceptor

2015-05-23 Thread Sreekanth S. Nair
Even i have tried replacing asm lib for struts2 by downgrading
asm-*5.0.3.jar to asm-*3.3.1.jar.

On Sat, May 23, 2015 at 12:31 PM, Sreekanth S. Nair 
sreekanth.n...@egovernments.org wrote:

 asm-5.0.3.jar
 asm-commons-5.0.2.jar
 asm-tree-5.0.2.jar




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


Re: Serialization Issue while using tokenInterceptor

2015-05-23 Thread Sreekanth S. Nair
Sorry that stacktrace took when i was testing it with struts2.3.24  (but
the error is same :) )

-- 
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 Sat, May 23, 2015 at 7:01 PM, Lukasz Lenart lukaszlen...@apache.org
wrote:

 Anyway it looks like mixed version of Struts, maybe JBoss keeps in
 cache the old version

 2015-05-23 15:24 GMT+02:00 Sreekanth S. Nair 
 sreekanth.n...@egovernments.org:
  No WEB-INF/lib does not contain any jar, its all in
  Wildfly(JBoss)/standalone/deployment/myear.ear/lib/ folder
 
  --
  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 Sat, May 23, 2015 at 6:45 PM, Lukasz Lenart lukaszlen...@apache.org
  wrote:
 
  Is it listing from WEB-INF/lib folder? Because the stacktrace contains
  this: [xwork-core-2.3.24.jar:2.3.24] which means you mixed up versions
 
  2015-05-23 9:01 GMT+02:00 Sreekanth S. Nair 
  sreekanth.n...@egovernments.org:
   Struts 2 related jars
   --
   freemarker-2.3.19.jar
   ognl-3.0.6.jar
   struts2-convention-plugin-2.3.20.jar
   struts2-core-2.3.20.jar
   struts2-jasperreports-plugin-2.3.20.jar
   struts2-jquery-plugin-3.7.1.jar
   struts2-json-plugin-2.3.20.jar
   struts2-rest-plugin-2.3.20.jar
   struts2-spring-plugin-2.3.20.jar
   xwork-core-2.3.20.jar
  
  
   Other Jars
   --
   aopalliance-1.0.jar
   asm-5.0.3.jar
   asm-commons-5.0.2.jar
   asm-tree-5.0.2.jar
   aspectjrt-1.8.2.jar
   aspectjweaver-1.8.4.jar
   batik-css-1.7.jar
   batik-ext-1.7.jar
   batik-util-1.7.jar
   cglib-3.1.jar
   commons-beanutils-1.8.0.jar
   commons-codec-1.10.jar
   commons-collections-3.2.1.jar
   commons-configuration-1.10.jar
   commons-dbcp-1.4.jar
   commons-digester-2.0.jar
   commons-email-1.3.3.jar
   commons-fileupload-1.3.1.jar
   commons-httpclient-3.1.jar
   commons-io-2.4.jar
   commons-lang3-3.2.jar
   commons-lang-2.5.jar
   commons-pool2-2.2.jar
   commons-pool-1.5.4.jar
   commons-validator-1.1.4.jar
   concurrent-1.3.4.jar
   displaytag-1.2.jar
   displaytag-export-poi-1.2.jar
   ehcache-core-2.4.6.jar
   ehcache-web-2.0.4.jar
   embedded-redis-0.6.jar
   ezmorph-1.0.6.jar
  
   gson-2.2.4.jar
   jcl-over-slf4j-1.7.7.jar
   jcommon-1.0.23.jar
   jcr-2.0.jar
   jedis-2.4.1.jar
   jfreechart-1.0.19.jar
   joda-time-2.7.jar
   joda-time-jsptags-1.1.1.jar
   json-lib-2.3-jdk15.jar
   json-simple-1.1.1.jar
   jsoup-1.7.3.jar
   jsr-275-1.0-beta-2.jar
   jts-1.6.jar
   jython-standalone-2.5.2.jar
   log4j-1.2.17.jar
   logback-classic-1.0.0.jar
   logback-core-1.0.0.jar
   sitemesh-2.4.2.jar
   slf4j-api-1.7.7.jar
   spring-aop-4.1.4.RELEASE.jar
   spring-aspects-4.1.4.RELEASE.jar
   spring-beans-4.1.4.RELEASE.jar
   context-4.1.4.RELEASE.jar
   spring-context-support-4.1.4.RELEASE.jar
   spring-core-4.1.4.RELEASE.jar
   spring-data-commons-1.9.1.RELEASE.jar
   spring-data-envers-0.2.0.RELEASE.jar
   spring-data-jpa-1.7.1.RELEASE.jar
   spring-data-redis-1.3.0.RELEASE.jar
   spring-expression-4.1.4.RELEASE.jar
   spring-jdbc-4.1.4.RELEASE.jar
   pring-jms-4.1.4.RELEASE.jar
   spring-messaging-4.1.4.RELEASE.jar
   spring-orm-4.1.4.RELEASE.jar
   spring-security-acl-3.2.5.RELEASE.jar
   spring-security-config-3.2.5.RELEASE.jar
   spring-security-core-3.2.5.RELEASE.jar
   spring-security-web-3.2.5.RELEASE.jar
   spring-session-1.0.0.RELEASE.jar
   spring-struts-3.2.3.RELEASE.jar
   spring-tx-4.1.4.RELEASE.jar
   spring-web-4.1.4.RELEASE.jar
   spring-webmvc-4.1.4.RELEASE.jar
   standard-1.0.6.jar
  
   struts-1.2.9.jar
   struts-el-1.2.9.jar
   tiles-api-3.0.5.jar
   tiles-autotag-core-runtime-1.1.0.jar
   tiles-core-3.0.5.jar
   tiles-jsp-3.0.5.jar
   tiles-request-api-1.0.6.jar
   tiles-request-jsp-1.0.6.jar
   tiles-request-servlet-1.0.6.jar
   tiles-servlet-3.0.5.jar
   tiles-template-3.0.5.jar
   units-0.01.jar
   vecmath-1.3.1.jar
   velocity-1.5.jar
   xml-apis-1.3.04.jar
   xml-apis-ext-1.3.04.jar
   xmlpull-1.1.3.1.jar
   xpp3_min-1.1.4c.jar
   xstream-1.4.2.jar
  
  
   --
   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

Re: Serialization Issue while using tokenInterceptor

2015-05-23 Thread Sreekanth S. Nair
No WEB-INF/lib does not contain any jar, its all in
Wildfly(JBoss)/standalone/deployment/myear.ear/lib/ folder

-- 
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 Sat, May 23, 2015 at 6:45 PM, Lukasz Lenart lukaszlen...@apache.org
wrote:

 Is it listing from WEB-INF/lib folder? Because the stacktrace contains
 this: [xwork-core-2.3.24.jar:2.3.24] which means you mixed up versions

 2015-05-23 9:01 GMT+02:00 Sreekanth S. Nair 
 sreekanth.n...@egovernments.org:
  Struts 2 related jars
  --
  freemarker-2.3.19.jar
  ognl-3.0.6.jar
  struts2-convention-plugin-2.3.20.jar
  struts2-core-2.3.20.jar
  struts2-jasperreports-plugin-2.3.20.jar
  struts2-jquery-plugin-3.7.1.jar
  struts2-json-plugin-2.3.20.jar
  struts2-rest-plugin-2.3.20.jar
  struts2-spring-plugin-2.3.20.jar
  xwork-core-2.3.20.jar
 
 
  Other Jars
  --
  aopalliance-1.0.jar
  asm-5.0.3.jar
  asm-commons-5.0.2.jar
  asm-tree-5.0.2.jar
  aspectjrt-1.8.2.jar
  aspectjweaver-1.8.4.jar
  batik-css-1.7.jar
  batik-ext-1.7.jar
  batik-util-1.7.jar
  cglib-3.1.jar
  commons-beanutils-1.8.0.jar
  commons-codec-1.10.jar
  commons-collections-3.2.1.jar
  commons-configuration-1.10.jar
  commons-dbcp-1.4.jar
  commons-digester-2.0.jar
  commons-email-1.3.3.jar
  commons-fileupload-1.3.1.jar
  commons-httpclient-3.1.jar
  commons-io-2.4.jar
  commons-lang3-3.2.jar
  commons-lang-2.5.jar
  commons-pool2-2.2.jar
  commons-pool-1.5.4.jar
  commons-validator-1.1.4.jar
  concurrent-1.3.4.jar
  displaytag-1.2.jar
  displaytag-export-poi-1.2.jar
  ehcache-core-2.4.6.jar
  ehcache-web-2.0.4.jar
  embedded-redis-0.6.jar
  ezmorph-1.0.6.jar
 
  gson-2.2.4.jar
  jcl-over-slf4j-1.7.7.jar
  jcommon-1.0.23.jar
  jcr-2.0.jar
  jedis-2.4.1.jar
  jfreechart-1.0.19.jar
  joda-time-2.7.jar
  joda-time-jsptags-1.1.1.jar
  json-lib-2.3-jdk15.jar
  json-simple-1.1.1.jar
  jsoup-1.7.3.jar
  jsr-275-1.0-beta-2.jar
  jts-1.6.jar
  jython-standalone-2.5.2.jar
  log4j-1.2.17.jar
  logback-classic-1.0.0.jar
  logback-core-1.0.0.jar
  sitemesh-2.4.2.jar
  slf4j-api-1.7.7.jar
  spring-aop-4.1.4.RELEASE.jar
  spring-aspects-4.1.4.RELEASE.jar
  spring-beans-4.1.4.RELEASE.jar
  context-4.1.4.RELEASE.jar
  spring-context-support-4.1.4.RELEASE.jar
  spring-core-4.1.4.RELEASE.jar
  spring-data-commons-1.9.1.RELEASE.jar
  spring-data-envers-0.2.0.RELEASE.jar
  spring-data-jpa-1.7.1.RELEASE.jar
  spring-data-redis-1.3.0.RELEASE.jar
  spring-expression-4.1.4.RELEASE.jar
  spring-jdbc-4.1.4.RELEASE.jar
  pring-jms-4.1.4.RELEASE.jar
  spring-messaging-4.1.4.RELEASE.jar
  spring-orm-4.1.4.RELEASE.jar
  spring-security-acl-3.2.5.RELEASE.jar
  spring-security-config-3.2.5.RELEASE.jar
  spring-security-core-3.2.5.RELEASE.jar
  spring-security-web-3.2.5.RELEASE.jar
  spring-session-1.0.0.RELEASE.jar
  spring-struts-3.2.3.RELEASE.jar
  spring-tx-4.1.4.RELEASE.jar
  spring-web-4.1.4.RELEASE.jar
  spring-webmvc-4.1.4.RELEASE.jar
  standard-1.0.6.jar
 
  struts-1.2.9.jar
  struts-el-1.2.9.jar
  tiles-api-3.0.5.jar
  tiles-autotag-core-runtime-1.1.0.jar
  tiles-core-3.0.5.jar
  tiles-jsp-3.0.5.jar
  tiles-request-api-1.0.6.jar
  tiles-request-jsp-1.0.6.jar
  tiles-request-servlet-1.0.6.jar
  tiles-servlet-3.0.5.jar
  tiles-template-3.0.5.jar
  units-0.01.jar
  vecmath-1.3.1.jar
  velocity-1.5.jar
  xml-apis-1.3.04.jar
  xml-apis-ext-1.3.04.jar
  xmlpull-1.1.3.1.jar
  xpp3_min-1.1.4c.jar
  xstream-1.4.2.jar
 
 
  --
  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 Sat, May 23, 2015 at 12:06 PM, Lukasz Lenart lukaszlen...@apache.org
 
  wrote:
 
  It's the same issue as WW-4028 which means you did something wrong
  when you were upgrading to latest Struts version. Can you list all
  jars?
 
  2015-05-23 7:32 GMT+02:00 Sreekanth S. Nair 
  sreekanth.n...@egovernments.org:
   Below is the stacktrace, made log bold where its failing
  
   10:59:30,195 INFO  [org.apache.struts2.rest.RestActionInvocation]
  (default
   task-29) Executed action
  [//assetcategory/assetCategory-save!save!jsp!200]
   took 278317 ms (execution: 277604 ms, result: 713 ms)
   10:59:30,281 ERROR [io.undertow.request] (default task-29) UT005023:
   Exception handling request to /egassets/WEB-INF/jsp/assets/
   assetcategory/assetCategory-edit.jsp: org.springframework.data

Serialization Issue while using tokenInterceptor

2015-05-22 Thread Sreekanth S. Nair
I'm getting Serialization Exception when we use tokenInterceptor, which is
same as https://issues.apache.org/jira/browse/WW-4028 issue. I'm trying
with struts2 2.3.20 and even tried with  2.3.24.


Re: Serialization Issue while using tokenInterceptor

2015-05-22 Thread Sreekanth S. Nair
)
[rt.jar:1.8.0_40]
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
[rt.jar:1.8.0_40]
at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
[rt.jar:1.8.0_40]
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
[rt.jar:1.8.0_40]
at 
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
[rt.jar:1.8.0_40]
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
[rt.jar:1.8.0_40]
at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
[rt.jar:1.8.0_40]
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
[rt.jar:1.8.0_40]
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
[rt.jar:1.8.0_40]
at java.util.HashMap.internalWriteEntries(HashMap.java:1777)
[rt.jar:1.8.0_40]
at java.util.HashMap.writeObject(HashMap.java:1354) [rt.jar:1.8.0_40]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[rt.jar:1.8.0_40]
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_40]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_40]
at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_40]
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988)
[rt.jar:1.8.0_40]
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
[rt.jar:1.8.0_40]
at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
[rt.jar:1.8.0_40]
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
[rt.jar:1.8.0_40]
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
[rt.jar:1.8.0_40]
at org.springframework.core.serializer.DefaultSerializer.
serialize(DefaultSerializer.java:44) [spring-core-4.1.4.RELEASE.
jar:4.1.4.RELEASE]
at org.springframework.core.serializer.support.
SerializingConverter.convert(SerializingConverter.java:62)
[spring-core-4.1.4.RELEASE.jar:4.1.4.RELEASE]
... 43 more

-- 
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 Sat, May 23, 2015 at 10:42 AM, Lukasz Lenart lukaszlen...@apache.org
wrote:

 2015-05-23 7:02 GMT+02:00 Sreekanth S. Nair 
 sreekanth.n...@egovernments.org:
  I'm getting Serialization Exception when we use tokenInterceptor, which
 is
  same as https://issues.apache.org/jira/browse/WW-4028 issue. I'm trying
  with struts2 2.3.20 and even tried with  2.3.24.

 It must be something else, though. Can you post stacktrace?


 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: Struts 2.3.15 and Tiles 3 Plugin

2015-01-13 Thread Sreekanth S. Nair
Please check this link, and make sure you have done tiles integration in
the same way.
http://www.tutorialspoint.com/struts_2/struts_tiles.htm


On Wed, Jan 14, 2015 at 10:32 AM, Kiran Badi ki...@poonam.org wrote:

 Yes I have all jars from struts 2.3.15 in web apps lib  folder.

 I m using tiles listener to initialize the tiles 3.I have followed all
 instruction in plugin page.
  On Jan 13, 2015 11:39 PM, Sreekanth S. Nair 
 sreekanth.n...@egovernments.org wrote:

  The following could be the root cause of the problem
 
  Caused by: java.lang.ClassNotFoundException:
  org.apache.tiles.startup.TilesInitializer
 
 
  have you added all the necessary jar's of tiles ?
 
 
 
  On Wed, Jan 14, 2015 at 9:50 AM, Kiran Badi ki...@poonam.org wrote:
 
   Caused by: java.lang.ClassNotFoundException:
   org.apache.tiles.startup.TilesInitializer
  
 



Re: Struts 2.3.15 and Tiles 3 Plugin

2015-01-13 Thread Sreekanth S. Nair
The following could be the root cause of the problem

Caused by: java.lang.ClassNotFoundException:
org.apache.tiles.startup.TilesInitializer


have you added all the necessary jar's of tiles ?



On Wed, Jan 14, 2015 at 9:50 AM, Kiran Badi ki...@poonam.org wrote:

 Caused by: java.lang.ClassNotFoundException:
 org.apache.tiles.startup.TilesInitializer



Re: replace Java scriptlets in JSP page

2014-12-29 Thread Sreekanth S. Nair
Sure you can, please if you are using struts2 please read these tutorials
Struts2 Tag lesson
http://www.tutorialspoint.com/struts_2/
or
http://struts.apache.org/docs/tag-reference.html

and a bit of JSP EL
http://www.tutorialspoint.com/jsp/jsp_expression_language.htm




-- 
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, Dec 30, 2014 at 4:47 AM, Albert Kao albertk...@yahoo.ca wrote:

 The following Java scriptlet code in a Struts jsp is working fine.
 However, is it possible to change the jsp code so as to remove all
 the Java scriptlet codes?

 The .jsp code is like this:%
   HttpSession httpSession = request.getSession(true);
   MyClient myClient =
 (MyClient)httpSession.getAttribute(MyConst.MY_CLIENT);
 %
 logic:iterate id=pOwnersID name=%=MyConst.MY_CLIENT%
   property=pOwners length=%=MyConst.MY_OWNER_MAX% indexId=index
   %
 pageContext.setAttribute(requiredIndex,
 myClient.getRequiredIndex(index), PageContext.PAGE_SCOPE);
   %
   h2
 bean:message key=common.owner.label / %=
 myClient.getNumber(index) %
   /h2

   div
 logic:lessThan name=requiredIndex value=1
   label for='%=lastName + index%' class=required
 bean:message key=common.lastName.label /
 jsp:include page=/pages/common/required.jsp flush=true /
   /label
 /logic:lessThan
 logic:greaterEqual name=requiredIndex value=1
   label for=%=lastName + index%
 bean:message key=common.lastName.label /
   /label
 /logic:greaterEqual
 html:text styleClass=form-control
   styleId='%=lastName + index%' name=inputForm
   property='%=myForm.pOwners[+index+].lastName%' size=62
   maxlength=30 /
   /div
 /logic:iterate


 The java code is like this:public class Owner implements
 java.io.Serializable {
 private static final long serialVersionUID = 7920764268572909394L;
 private String lastName;
 private String ownershipCode;
 //...

 public Owner() {
 }

 // getter and setters
 public String getLastName() {
 return lastName;
 }

 public void setLastName(String lastName) {
 this.lastName = lastName;
 }

 //...
 public Integer getRequiredIndex(Integer index) {
 Integer requiredIndex = index;
 if (OWNRSHP_PARTNER.equals(ownershipCode)) {
 requiredIndex = requiredIndex - 1;
 }
 return requiredIndex;
 }

 public String getNumber(Integer index) {
 String number = Integer.toString(index + 1);
 if (OWNRSHP_SOLE.equals(ownershipCode)) {
 number = ;
 }
 return number;
 }
 }




Re: validation problem

2014-12-26 Thread Sreekanth S. Nair
There is nothing about sorry, i guess your action package structure or
something is wrong, i recommend you to run the sample war i have attached
in tomcat 7 and see the result (make sure to include strust2 latest lib to
its WEB-INF/lib). Try adding your action class one by one to that sample
and try again.




On Fri, Dec 26, 2014 at 3:07 PM, Yaragalla Muralidhar 
yaragallamur...@gmail.com wrote:

 Hi Sreekanth,
sorry to say this. I tried everything stated in the example that u gave.
 but it did not work for me. I am doing something wrong but could not find
 out what. Thank u for all your help.

 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

 On Fri, Dec 26, 2014 at 12:24 PM, Sreekanth S. Nair 
 sreekanth.n...@egovernments.org wrote:

  I couldn't make your sample war run at all, please find the attached
  sample war which is working for me in tomcat 7 (struts2 jars and other
 dep
  not included). You can follow the directory structure and naming
 convention
  and try to do the same in your project. Do not add @SkipValidation
  annotation in your save or submit method (@SkipValidation will in fact
  ignore validation for it)
 
  --
  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 Fri, Dec 26, 2014 at 11:32 AM, Sreekanth S. Nair 
  sreekanth.n...@egovernments.org wrote:
 
  Ok let me try and will get back to you...
 
 
  On Fri, Dec 26, 2014 at 11:26 AM, Yaragalla Muralidhar 
  yaragallamur...@gmail.com wrote:
 
  Hi Sreekanth,
I think i cannot send attachements to the mailing list so i have
  uploaded the project to my drive and sharing the link
 
 
 
 https://drive.google.com/file/d/0B59LVhKQaKQYamZqbnc4NGtOQm8/view?usp=sharing
 
 
  i am using tomcat 7.
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 
  On Fri, Dec 26, 2014 at 9:32 AM, Sreekanth S. Nair 
  sreekanth.n...@egovernments.org wrote:
 
   Can you share a sample project which is not working, and just let me
  know
   which server you are trying..?
  
   --
   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 Fri, Dec 26, 2014 at 9:10 AM, Yaragalla Muralidhar 
   yaragallamur...@gmail.com wrote:
  
Hi sreekanth,
   I have changed the names as u suggested but it did not
  work. i
have read the link u posted and i did everything that the link
 says.
  i
   have
debugged as well. it is not throwing any error.
   
*Thanks and Regards,*
Muralidhar Yaragalla.
   
*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
   
On Thu, Dec 25, 2014 at 10:43 PM, Sreekanth S. Nair 
sreekanth.n...@egovernments.org wrote:
   
 As Dave said, kindly show some patience.

 First of validation is nothing to do with theme so just leave the
  theme
 alone.

 1) Can you try renaming the action class name from SampleRegOne
 to
 SampleRegOneAction
 and same in struts.xml

 2) If you give action alias name like below,
  action name=sampleRegOne
 class=com.zedlabs.samplereg.action.SampleRegOne 

 as far as i understood you need to use the alias name suffixed
  along
   with
 the action class name so in essence your validator xml name
 should
  be
some
 thing like below

 SampleRegOne-sampleRegOne-validation.xml

 Since i don't have much knowledge in xml based validation i
  recommend
   you
 to read upon struts2 xml based validation from the below link


   
  
 
 http://www.codejava.net/frameworks/struts/struts2-form-validation-basic-example-using-xml

 If the above solution is not working then try and figure out the
   problem
by
 debugging through struts2 source.

 If the above solutions couldn't resolve your problem then get
 some
   debug
 level log of struts2 while accessing that particular action and
  post it
 over here.




 On Thu, Dec 25, 2014 at 8:34 PM, Dave Newton 
  davelnew...@gmail.com
 wrote:

  Unrelated to the technical issue: bear in mind the mailing list
  is a
  volunteer-staffed resource. Nobody is deliberately delaying a
  response. We already know

Re: validation problem

2014-12-25 Thread Sreekanth S. Nair
As Dave said, kindly show some patience.

First of validation is nothing to do with theme so just leave the theme
alone.

1) Can you try renaming the action class name from SampleRegOne to
SampleRegOneAction
and same in struts.xml

2) If you give action alias name like below,
 action name=sampleRegOne
class=com.zedlabs.samplereg.action.SampleRegOne 

as far as i understood you need to use the alias name suffixed along with
the action class name so in essence your validator xml name should be some
thing like below

SampleRegOne-sampleRegOne-validation.xml

Since i don't have much knowledge in xml based validation i recommend you
to read upon struts2 xml based validation from the below link
http://www.codejava.net/frameworks/struts/struts2-form-validation-basic-example-using-xml

If the above solution is not working then try and figure out the problem by
debugging through struts2 source.

If the above solutions couldn't resolve your problem then get some debug
level log of struts2 while accessing that particular action and post it
over here.




On Thu, Dec 25, 2014 at 8:34 PM, Dave Newton davelnew...@gmail.com wrote:

 Unrelated to the technical issue: bear in mind the mailing list is a
 volunteer-staffed resource. Nobody is deliberately delaying a
 response. We already know you need help. In the US, at least, it's a
 fairly major holiday, and people are doing things besides trying to
 reproduce your environment and code to help out.

 With that in mind, please be patient.


 On Thu, Dec 25, 2014 at 9:01 AM, Yaragalla Muralidhar
 yaragallamur...@gmail.com wrote:
  kindly help me solve this issue
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 
  On Thu, Dec 25, 2014 at 8:02 PM, Yaragalla Muralidhar 
  yaragallamur...@gmail.com wrote:
 
  my struts config.xml is as below.kindly help me in solving this.
 
  ?xml version=1.0 encoding=UTF-8 ?
  !DOCTYPE struts PUBLIC
  -//Apache Software Foundation//DTD Struts Configuration 2.3//EN
  http://struts.apache.org/dtds/struts-2.3.dtd;
 
  struts
 
  constant name=struts.enable.DynamicMethodInvocation
 value=false /
  constant name=struts.devMode value=true /
 
 
 
  package name=sr namespace=/ extends=struts-default
 
   interceptors
  interceptor-stack name=appDefault
interceptor-ref name=defaultStack /
  /interceptor-stack
  /interceptors
 
  default-interceptor-ref name=appDefault /
 
  global-results
  result name=error/error.jsp/result
  /global-results
 
  global-exception-mappings
  exception-mapping exception=java.lang.Exception
  result=error/
  /global-exception-mappings
 
action name=start
 class=com.zedlabs.samplereg.action.InitialAction
  
  result name=success
 /sampleReg/jsp/sampleRegTemplate.jsp/result
 
/action
 
action name=sampleRegOne
  class=com.zedlabs.samplereg.action.SampleRegOne 
  result name=success
  /sampleReg/jsp/sampleRegTwoTemplate.jsp/result
  result name=input /sampleReg/jsp/sampleRegTemplate.jsp/result
 
/action
action name=sampleRegTwo
  class=com.zedlabs.samplereg.action.SampleRegTwoAction 
  result name=success
  /sampleReg/jsp/sampleRegThreeTemplate.jsp/result
/action
action name=sampleRegThree
  class=com.zedlabs.samplereg.action.SampleRegThreeAction 
  result name=success
  /sampleReg/jsp/sampleRegFourTemplate.jsp/result
/action
 
  /package
 
  include file=mailreader-default.xml/
 
  /struts
 
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 
  On Thu, Dec 25, 2014 at 7:47 PM, Yaragalla Muralidhar 
  yaragallamur...@gmail.com wrote:
 
  The following is my action class
 
  package com.zedlabs.samplereg.action;
 
  import java.util.HashMap;
  import java.util.Map;
 
  import org.apache.commons.logging.Log;
  import org.apache.commons.logging.LogFactory;
 
  import com.zedlabs.action.ZedActionSupport;
  import com.zedlabs.samplereg.dto.PDDto;
  import com.zedlabs.samplereg.service.SampleRegService;
  import com.zedlabs.samplereg.service.SampleRegServiceImpl;
 
  public class SampleRegOne extends ZedActionSupport {
 
  private static final long serialVersionUID = -8621676046564513353L;
  private Log log=LogFactory.getLog(SampleRegOne.class);
  private SampleRegService sampleReg=new SampleRegServiceImpl();
   private MapString,String sampledrawnBy=new HashMapString,String();
  private PDDto primaryDetails=new PDDto();
   @Override
  public String execute() {
  try{
  sampledrawnBy.put(zedlabs, Zedlabs);
  sampleReg.savePrimaryDetails(primaryDetails);
   }catch(Exception e){
  log.error(e.getMessage(), e);
  }
  return SUCCESS;
  }
 
  public MapString, String getSampledrawnBy() {
  return sampledrawnBy;
  }
 
  public void setSampledrawnBy(MapString, String sampledrawnBy) {
  this.sampledrawnBy = sampledrawnBy;
  }
 
  public 

Re: validation problem

2014-12-25 Thread Sreekanth S. Nair
Can you share a sample project which is not working, and just let me know
which server you are trying..?

-- 
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 Fri, Dec 26, 2014 at 9:10 AM, Yaragalla Muralidhar 
yaragallamur...@gmail.com wrote:

 Hi sreekanth,
I have changed the names as u suggested but it did not work. i
 have read the link u posted and i did everything that the link says. i have
 debugged as well. it is not throwing any error.

 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

 On Thu, Dec 25, 2014 at 10:43 PM, Sreekanth S. Nair 
 sreekanth.n...@egovernments.org wrote:

  As Dave said, kindly show some patience.
 
  First of validation is nothing to do with theme so just leave the theme
  alone.
 
  1) Can you try renaming the action class name from SampleRegOne to
  SampleRegOneAction
  and same in struts.xml
 
  2) If you give action alias name like below,
   action name=sampleRegOne
  class=com.zedlabs.samplereg.action.SampleRegOne 
 
  as far as i understood you need to use the alias name suffixed along with
  the action class name so in essence your validator xml name should be
 some
  thing like below
 
  SampleRegOne-sampleRegOne-validation.xml
 
  Since i don't have much knowledge in xml based validation i recommend you
  to read upon struts2 xml based validation from the below link
 
 
 http://www.codejava.net/frameworks/struts/struts2-form-validation-basic-example-using-xml
 
  If the above solution is not working then try and figure out the problem
 by
  debugging through struts2 source.
 
  If the above solutions couldn't resolve your problem then get some debug
  level log of struts2 while accessing that particular action and post it
  over here.
 
 
 
 
  On Thu, Dec 25, 2014 at 8:34 PM, Dave Newton davelnew...@gmail.com
  wrote:
 
   Unrelated to the technical issue: bear in mind the mailing list is a
   volunteer-staffed resource. Nobody is deliberately delaying a
   response. We already know you need help. In the US, at least, it's a
   fairly major holiday, and people are doing things besides trying to
   reproduce your environment and code to help out.
  
   With that in mind, please be patient.
  
  
   On Thu, Dec 25, 2014 at 9:01 AM, Yaragalla Muralidhar
   yaragallamur...@gmail.com wrote:
kindly help me solve this issue
   
*Thanks and Regards,*
Muralidhar Yaragalla.
   
*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
   
On Thu, Dec 25, 2014 at 8:02 PM, Yaragalla Muralidhar 
yaragallamur...@gmail.com wrote:
   
my struts config.xml is as below.kindly help me in solving this.
   
?xml version=1.0 encoding=UTF-8 ?
!DOCTYPE struts PUBLIC
-//Apache Software Foundation//DTD Struts Configuration 2.3//EN
http://struts.apache.org/dtds/struts-2.3.dtd;
   
struts
   
constant name=struts.enable.DynamicMethodInvocation
   value=false /
constant name=struts.devMode value=true /
   
   
   
package name=sr namespace=/ extends=struts-default
   
 interceptors
interceptor-stack name=appDefault
  interceptor-ref name=defaultStack /
/interceptor-stack
/interceptors
   
default-interceptor-ref name=appDefault /
   
global-results
result name=error/error.jsp/result
/global-results
   
global-exception-mappings
exception-mapping exception=java.lang.Exception
result=error/
/global-exception-mappings
   
  action name=start
   class=com.zedlabs.samplereg.action.InitialAction

result name=success
   /sampleReg/jsp/sampleRegTemplate.jsp/result
   
  /action
   
  action name=sampleRegOne
class=com.zedlabs.samplereg.action.SampleRegOne 
result name=success
/sampleReg/jsp/sampleRegTwoTemplate.jsp/result
result name=input
  /sampleReg/jsp/sampleRegTemplate.jsp/result
   
  /action
  action name=sampleRegTwo
class=com.zedlabs.samplereg.action.SampleRegTwoAction 
result name=success
/sampleReg/jsp/sampleRegThreeTemplate.jsp/result
  /action
  action name=sampleRegThree
class=com.zedlabs.samplereg.action.SampleRegThreeAction 
result name=success
/sampleReg/jsp/sampleRegFourTemplate.jsp/result
  /action
   
/package
   
include file=mailreader-default.xml/
   
/struts
   
   
*Thanks and Regards,*
Muralidhar Yaragalla.
   
*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
   
On Thu, Dec 25, 2014 at 7:47 PM

Re: validation problem

2014-12-25 Thread Sreekanth S. Nair
Ok let me try and will get back to you...

On Fri, Dec 26, 2014 at 11:26 AM, Yaragalla Muralidhar 
yaragallamur...@gmail.com wrote:

 Hi Sreekanth,
   I think i cannot send attachements to the mailing list so i have
 uploaded the project to my drive and sharing the link


 https://drive.google.com/file/d/0B59LVhKQaKQYamZqbnc4NGtOQm8/view?usp=sharing


 i am using tomcat 7.

 *Thanks and Regards,*
 Muralidhar Yaragalla.

 *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*

 On Fri, Dec 26, 2014 at 9:32 AM, Sreekanth S. Nair 
 sreekanth.n...@egovernments.org wrote:

  Can you share a sample project which is not working, and just let me know
  which server you are trying..?
 
  --
  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 Fri, Dec 26, 2014 at 9:10 AM, Yaragalla Muralidhar 
  yaragallamur...@gmail.com wrote:
 
   Hi sreekanth,
  I have changed the names as u suggested but it did not
 work. i
   have read the link u posted and i did everything that the link says. i
  have
   debugged as well. it is not throwing any error.
  
   *Thanks and Regards,*
   Muralidhar Yaragalla.
  
   *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
  
   On Thu, Dec 25, 2014 at 10:43 PM, Sreekanth S. Nair 
   sreekanth.n...@egovernments.org wrote:
  
As Dave said, kindly show some patience.
   
First of validation is nothing to do with theme so just leave the
 theme
alone.
   
1) Can you try renaming the action class name from SampleRegOne to
SampleRegOneAction
and same in struts.xml
   
2) If you give action alias name like below,
 action name=sampleRegOne
class=com.zedlabs.samplereg.action.SampleRegOne 
   
as far as i understood you need to use the alias name suffixed along
  with
the action class name so in essence your validator xml name should be
   some
thing like below
   
SampleRegOne-sampleRegOne-validation.xml
   
Since i don't have much knowledge in xml based validation i recommend
  you
to read upon struts2 xml based validation from the below link
   
   
  
 
 http://www.codejava.net/frameworks/struts/struts2-form-validation-basic-example-using-xml
   
If the above solution is not working then try and figure out the
  problem
   by
debugging through struts2 source.
   
If the above solutions couldn't resolve your problem then get some
  debug
level log of struts2 while accessing that particular action and post
 it
over here.
   
   
   
   
On Thu, Dec 25, 2014 at 8:34 PM, Dave Newton davelnew...@gmail.com
wrote:
   
 Unrelated to the technical issue: bear in mind the mailing list is
 a
 volunteer-staffed resource. Nobody is deliberately delaying a
 response. We already know you need help. In the US, at least, it's
 a
 fairly major holiday, and people are doing things besides trying to
 reproduce your environment and code to help out.

 With that in mind, please be patient.


 On Thu, Dec 25, 2014 at 9:01 AM, Yaragalla Muralidhar
 yaragallamur...@gmail.com wrote:
  kindly help me solve this issue
 
  *Thanks and Regards,*
  Muralidhar Yaragalla.
 
  *http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
 
  On Thu, Dec 25, 2014 at 8:02 PM, Yaragalla Muralidhar 
  yaragallamur...@gmail.com wrote:
 
  my struts config.xml is as below.kindly help me in solving this.
 
  ?xml version=1.0 encoding=UTF-8 ?
  !DOCTYPE struts PUBLIC
  -//Apache Software Foundation//DTD Struts Configuration
 2.3//EN
  http://struts.apache.org/dtds/struts-2.3.dtd;
 
  struts
 
  constant name=struts.enable.DynamicMethodInvocation
 value=false /
  constant name=struts.devMode value=true /
 
 
 
  package name=sr namespace=/ extends=struts-default
 
   interceptors
  interceptor-stack name=appDefault
interceptor-ref name=defaultStack /
  /interceptor-stack
  /interceptors
 
  default-interceptor-ref name=appDefault /
 
  global-results
  result name=error/error.jsp/result
  /global-results
 
  global-exception-mappings
  exception-mapping exception=java.lang.Exception
  result=error/
  /global-exception-mappings
 
action name=start
 class=com.zedlabs.samplereg.action.InitialAction
  
  result name=success
 /sampleReg/jsp/sampleRegTemplate.jsp/result
 
/action

Re: Struts2 Migration issue

2014-12-18 Thread Sreekanth S. Nair
Hmmm, may be a stupid question have you remove servlet-mapping as well ?
that error is very specific to jetty server, is it possible for you to run
the same in tomcat ?

-- 
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 Thu, Dec 18, 2014 at 1:25 PM, Arpan arpan.deb...@gmail.com wrote:

 But this happens only when we remove the following ActionServlet entry from
 web.xml file.
 servlet
 servlet-nameuaconsole/servlet-name

 servlet-classorg.apache.struts.action.ActionServlet/servlet-class

 init-param
 param-nameconfig/param-name
 param-value/WEB-INF/struts-config.xml/param-value
 /init-param

 load-on-startup1/load-on-startup
 /servlet

 With ActionServlet entry everything works fine.
 As we are migrating struts1 to struts2 we should only use
 StrutsPrepareAndExecuteFilter.

 Thanks


 On Thu, Dec 18, 2014 at 11:45 AM, Sreekanth S. Nair 
 sreekanth.n...@egovernments.org wrote:
 
  As i said earlier you need to check your jetty server config..
  http://wiki.eclipse.org/Jetty/Howto/Configure_JSP
 
  Hope you have tried what is on below link
 
 
 http://javaresolutions.blogspot.in/2014/04/pwc6345-there-is-error-in-invoking.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 Thu, Dec 18, 2014 at 11:31 AM, Arpan arpan.deb...@gmail.com wrote:
  
   Hi,
  
   I am starting jetty server through services panel only.
  
   Now I have narrowed down the problem. This problem comes when I have
 any
   .jsp file in web.xml, it shows that error.
  
   welcome-file-list
   welcome-fileindex.jsp/welcome-file
   welcome-fileindex.html/welcome-file
   /welcome-file-list
  
   If I remove index.jsp file, no error appears. But while trying to
 access
   login.action, it is not able to access the login.jsp file again.
   It seems that none of the jsp files are available but action classes
 can
  be
   accessed.
  
   What can be the reason for that.
  
   Thanks
  
   On Mon, Dec 15, 2014 at 3:05 AM, Sreekanth S. Nair 
   sreekanth.n...@egovernments.org wrote:
   
Hi Arpan
I don't think its something do with struts, mostly some config
 problem
   with
jetty server. Are you trying to start jetty server from eclipse ? if
 so
   can
you try starting from terminal (command prompt).
   
Or i would like to check this link
   
   
   
  
 
 http://javaresolutions.blogspot.in/2014/04/pwc6345-there-is-error-in-invoking.html
   
   
   
On Mon, Dec 15, 2014 at 2:45 AM, Arpan arpan.deb...@gmail.com
 wrote:

 PWC6345
   
   
   
   
--
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
---
   
  
 



Re: Struts2 Migration issue

2014-12-17 Thread Sreekanth S. Nair
As i said earlier you need to check your jetty server config..
http://wiki.eclipse.org/Jetty/Howto/Configure_JSP

Hope you have tried what is on below link
http://javaresolutions.blogspot.in/2014/04/pwc6345-there-is-error-in-invoking.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 Thu, Dec 18, 2014 at 11:31 AM, Arpan arpan.deb...@gmail.com wrote:

 Hi,

 I am starting jetty server through services panel only.

 Now I have narrowed down the problem. This problem comes when I have any
 .jsp file in web.xml, it shows that error.

 welcome-file-list
 welcome-fileindex.jsp/welcome-file
 welcome-fileindex.html/welcome-file
 /welcome-file-list

 If I remove index.jsp file, no error appears. But while trying to access
 login.action, it is not able to access the login.jsp file again.
 It seems that none of the jsp files are available but action classes can be
 accessed.

 What can be the reason for that.

 Thanks

 On Mon, Dec 15, 2014 at 3:05 AM, Sreekanth S. Nair 
 sreekanth.n...@egovernments.org wrote:
 
  Hi Arpan
  I don't think its something do with struts, mostly some config problem
 with
  jetty server. Are you trying to start jetty server from eclipse ? if so
 can
  you try starting from terminal (command prompt).
 
  Or i would like to check this link
 
 
 
 http://javaresolutions.blogspot.in/2014/04/pwc6345-there-is-error-in-invoking.html
 
 
 
  On Mon, Dec 15, 2014 at 2:45 AM, Arpan arpan.deb...@gmail.com wrote:
  
   PWC6345
 
 
 
 
  --
  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
  ---
 



Re: 2.3.20 Bug with s:action or s:select tag

2014-12-16 Thread Sreekanth S. Nair
Hi Lukasz,
 Could it be the same problem what i was facing about rest
plugin ?
Hi Roger,
   Don't know if you are using rest plugin, if so can remove
that plugin and try again ?

-- 
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, Dec 16, 2014 at 8:02 PM, Roger Varley roger.var...@googlemail.com
wrote:

 Oh bugger :( I've got actions failing all over the place - but strangely,
 not all of them. The config-browser plugin see's my configured namespaces,
 but lists no actions in any of them.

 Regards

 On 16 December 2014 at 16:23, Roger Varley roger.var...@googlemail.com
 wrote:
 
  Yes, I do. I've checked - and calling the action directly from the
 browser
  gives the same response. The action code is below.
 
  Regards
 
  package com.blackbox.x.actions.admin;
 
  import java.util.List;
 
  import org.springframework.stereotype.Service;
 
  import com.blackbox.entities.db.Platform;
  import com.blackbox.services.Services;
  import com.opensymphony.xwork2.ActionSupport;
 
  @Service
  public class ListPlatforms extends ActionSupport {
 
  /**
   *
   */
  private static final long serialVersionUID = 7092585407905567102L;
  ListPlatform platforms;
 
  public String execute() {
  platforms = Services.listAllPublishedPlatforms();
  return SUCCESS;
  }
 
  public ListPlatform getPlatforms() {
  return platforms;
  }
 
  }
 
  On 16 December 2014 at 16:09, Lukasz Lenart lukaszlen...@apache.org
  wrote:
 
  2014-12-16 15:03 GMT+01:00 Roger Varley roger.var...@googlemail.com:
   Referring to the log file, the dump was preceded by the following few
  lines;
  
   16 Dec 2014 15:44:09 ERROR
  ActionComponent,http-bio-8080-exec-5:42 -
   Could not execute action: /admin/list-platforms
   There is no Action mapped for namespace [/admin] and action name
   [list-platforms] associated with context path
  [/FaultmateGenesis-Server]. -
   [unknown location]
  
   So it looks as if the change is with the s:action tag processing, or
 has
   something else changed between 2.3.16.1 and 2.3.20 that I've missed?
 
  A lot ;-) That's the problem with .20 - too many changes :(
 
  Do you use the Convention plugin?
 
 
  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: Struts 2 'redirectAction' changes protocol from HTTPS to HTTP

2014-12-16 Thread Sreekanth S. Nair
As far as i know it wont be struts2 problem probably you have to look into
your security config, how you are handling http https route ? i can tell
you, we were using strust2 2.3.15.1 distribution with lots of
redirectResult without any trouble (we have the similar login https others
http route).

-- 
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, Dec 16, 2014 at 9:26 PM, d...@free.fr wrote:

 Hello all struts2 users

 I have a JEE web application running in HTTP mode all the time except for
 authentication where we are in HTTPS. We now need to have HTTPS all the
 time.

 While testing, we saw a problem with Struts 2 : redirectAction (which
 generates 302 status return code on the client side) changes the protocol
 from HTTPS to HTTP.

 Example :

 struts
 package name=suiviaffaire namespace=/suiviaffaire
 extends=webapp
 action name=* method={1} class=com.myAction

result name=consultRedirection type=redirectAction
 param
 name=actionNameconsult?idAffaire=${idAffaire}/param
 param name=parsetrue/param
 param name=encodetrue/param
 /result
result name=consult/jsp/suiviaffaire/consult.jsp/result

 Network capture :

 1) status 302 :
 https://localhost:8043/webapp/suiviaffaire/redirectionTypeAffaire.action?idAffaire=XXX
 2) status 200 :
 http://localhost:8043/webapp/suiviaffaire/consult.action?idAffaire=XXX

 We tested in WebLogic 12c and WebSphere 7 and we experienced the same
 issue. Do you know if this a normal behaviour of Struts 2 or a config
 problem in our app ?

 Thanks

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




Re: Struts2 Not Working After Migrating from 2.3.15.1 to 2.3.20 in Wildfly server

2014-12-14 Thread Sreekanth S. Nair
Hi Lukasz,
 We are using this pattern for struts to check action
classes in those specific jars, for this we are naming all our jars
containing action classes with org- prefix.

Yeah i can try removing those, we are using some custom
interceptors(removed from the one i have attached to avoid confusion) that
required to be kept in some specific order in the interceptor stack.


-- 
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 Sun, Dec 14, 2014 at 9:42 PM, Lukasz Lenart lukaszlen...@apache.org
wrote:

 2014-12-13 15:24 GMT+01:00 Sreekanth S. Nair 
 sreekanth.n...@egovernments.org:
 
  Hi Lukasz,
Anything you can give as a hint about it, if you can
  tell me what are the components changed after 2.3.16.3 release, i can
  narrow down to find the exact cause.  I'm attaching my custom struts.xml
  file
 

 I have reviewed the config and have few questions:
 - why do you use this pattern? How do you name your jars?
 constant name=struts.convention.action.includeJars value=.*org-.* /

 - switching to 2.3.20 you must throw away exludeParams - it overlaps
 those defined by the framework


 Regards
 --
 Łukasz
 + 48 606 323 122 http://www.lenart.org.pl/



Re: Struts2 Not Working After Migrating from 2.3.15.1 to 2.3.20 in Wildfly server

2014-12-14 Thread Sreekanth S. Nair
Hi Lukasz,
   Was drafting a mail eureka  :) when i got your last
response (any way, that log is not showing anything while accessing the
url).

   Finally i found the culprit, the struts2-rest-plugin.
Without the rest plugin, its working perfectly. I went and checked again
both plugin wiki, its seems its having some conflict if we don't set some
struts parameter. Eventually i tried adding those parameter to my strust2
config but it didn seems like working. Don't know if its a bug or not.

But i strongly feels like any struts plugin should not hijack the way
struts working normally. I guess convention plugin are the first in the
plugin stack so the rest plugin should not hijack the convention plugin
behavior, at least these kind of conflicting plugin should give a WARN hint
about the possible conflict.

I'm looking forward your best thought about this story. As i have failed to
set rest even after going through the wiki, i would like to ask your help
to give any hint on the config changes i have to do for rest to work. In
addition to this, kindly guide me, if any other config changes i have to do
in my struts.xml (which i have attached) to make it better.




-- 
Thanks  Regards
Sreekanth S Nair

On Mon, Dec 15, 2014 at 12:07 AM, Lukasz Lenart lukaszlen...@apache.org
wrote:

 Looks like you HomepageAction was processed and it should be available at
 /homepage and /common/homepage - see the log exercise below. What happens
 in log when you try access these actions?

 22:34:35,262 DEBUG
 [org.apache.struts2.convention.PackageBasedActionConfigBuilder] (default
 task-8) Processing class [org.egov.web.actions.common.HomepageAction] in
 package [org.egov.web.actions.common]
 22:34:35,263 TRACE
 [org.apache.struts2.convention.PackageBasedActionConfigBuilder] (default
 task-8) Using non-default action namespace from Namespace annotation of [/]
 22:34:35,263 TRACE
 [org.apache.struts2.convention.PackageBasedActionConfigBuilder] (default
 task-8) Got actionName for class [class
 org.egov.web.actions.common.HomepageAction] of [homepage]
 22:34:35,264 TRACE
 [org.apache.struts2.convention.PackageBasedActionConfigBuilder] (default
 task-8) Using non-default parent package from annotation of [egov]
 22:34:35,265 TRACE
 [org.apache.struts2.convention.PackageBasedActionConfigBuilder] (default
 task-8) Created package config named [org.egov.web.actions.common#egov#/]
 with a namespace [/]
 22:34:35,271 TRACE
 [org.apache.struts2.convention.PackageBasedActionConfigBuilder] (default
 task-8) Using non-default action namespace from the Action annotation of
 [/common/homepage]
 22:34:35,272 TRACE
 [org.apache.struts2.convention.PackageBasedActionConfigBuilder] (default
 task-8) Using non-default parent package from annotation of [egov]
 22:34:35,272 TRACE
 [org.apache.struts2.convention.PackageBasedActionConfigBuilder] (default
 task-8) Created package config named
 [org.egov.web.actions.common#egov#/common] with a namespace [/common]
 22:34:35,273 DEBUG
 [org.apache.struts2.convention.PackageBasedActionConfigBuilder] (default
 task-8) Creating action config for class [class
 org.egov.web.actions.common.HomepageAction], name [homepage] and package
 name [org.egov.web.actions.common#egov#/common] in namespace [/common]
 22:34:35,273 TRACE [org.apache.struts2.convention.DefaultResultMapBuilder]
 (default task-8) Using final calculated namespace [/common]
 22:34:35,274 TRACE [org.apache.struts2.convention.DefaultResultMapBuilder]
 (default task-8) Searching for results in the Servlet container at
 [/WEB-INF/jsp/common/] with result prefix of [/WEB-INF/jsp/common/homepage]
 22:34:35,275 TRACE [org.apache.struts2.convention.DefaultResultMapBuilder]
 (default task-8) Processing resource path
 [/WEB-INF/jsp/common/homepage.jsp]
 22:34:35,275 TRACE [org.apache.struts2.convention.DefaultResultMapBuilder]
 (default task-8) The result file [/WEB-INF/jsp/common/homepage.jsp] has no
 result code and therefore will be associated with success, input and error
 by default. This might be overridden by another result file or an
 annotation.
 22:34:35,276 TRACE [org.apache.struts2.convention.DefaultResultMapBuilder]
 (default task-8) Processing resource path
 [/WEB-INF/jsp/common/homepage-error.jsp]
 22:34:35,276 TRACE [org.apache.struts2.convention.DefaultResultMapBuilder]
 (default task-8) The result file [/WEB-INF/jsp/common/homepage-error.jsp]
 has a result code and therefore will be associated with only that result
 code.
 22:34:35,277 TRACE [org.apache.struts2.convention.DefaultResultMapBuilder]
 (default task-8) Searching for results in the class path at
 [WEB-INF/jsp/common/] with a result prefix of
 [/WEB-INF/jsp/common/homepage] and action name [homepage]



 2014-12-14 18:24 GMT+01:00 Sreekanth S. Nair 
 sreekanth.n...@egovernments.org:
 
  Didn find anything in the log like you specified. Attaching trace log for
  your reference.
 
  --
  Thanks  Regards
 
  Sreekanth S Nair
  Java Developer

Re: Struts2 Not Working After Migrating from 2.3.15.1 to 2.3.20 in Wildfly server

2014-12-14 Thread Sreekanth S. Nair
I was able to setup, with rest plugin as well. after adding
constant name=struts.action.extension value=action/
constant name=struts.mapper.class
value=org.apache.struts2.dispatcher.mapper.PrefixBasedActionMapper /
constant name=struts.mapper.prefixMapping value=/rest:rest,:struts/
in struts.xml


-- 
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 Mon, Dec 15, 2014 at 12:18 AM, Sreekanth S. Nair 
sreekanth.n...@egovernments.org wrote:


 Hi Lukasz,
Was drafting a mail eureka  :) when i got your last
 response (any way, that log is not showing anything while accessing the
 url).

Finally i found the culprit, the struts2-rest-plugin.
 Without the rest plugin, its working perfectly. I went and checked again
 both plugin wiki, its seems its having some conflict if we don't set some
 struts parameter. Eventually i tried adding those parameter to my strust2
 config but it didn seems like working. Don't know if its a bug or not.

 But i strongly feels like any struts plugin should not hijack the way
 struts working normally. I guess convention plugin are the first in the
 plugin stack so the rest plugin should not hijack the convention plugin
 behavior, at least these kind of conflicting plugin should give a WARN hint
 about the possible conflict.

 I'm looking forward your best thought about this story. As i have failed
 to set rest even after going through the wiki, i would like to ask your
 help to give any hint on the config changes i have to do for rest to work.
 In addition to this, kindly guide me, if any other config changes i have to
 do in my struts.xml (which i have attached) to make it better.




 --
 Thanks  Regards
 Sreekanth S Nair

 On Mon, Dec 15, 2014 at 12:07 AM, Lukasz Lenart lukaszlen...@apache.org
 wrote:

 Looks like you HomepageAction was processed and it should be available at
 /homepage and /common/homepage - see the log exercise below. What happens
 in log when you try access these actions?

 22:34:35,262 DEBUG
 [org.apache.struts2.convention.PackageBasedActionConfigBuilder] (default
 task-8) Processing class [org.egov.web.actions.common.HomepageAction] in
 package [org.egov.web.actions.common]
 22:34:35,263 TRACE
 [org.apache.struts2.convention.PackageBasedActionConfigBuilder] (default
 task-8) Using non-default action namespace from Namespace annotation of
 [/]
 22:34:35,263 TRACE
 [org.apache.struts2.convention.PackageBasedActionConfigBuilder] (default
 task-8) Got actionName for class [class
 org.egov.web.actions.common.HomepageAction] of [homepage]
 22:34:35,264 TRACE
 [org.apache.struts2.convention.PackageBasedActionConfigBuilder] (default
 task-8) Using non-default parent package from annotation of [egov]
 22:34:35,265 TRACE
 [org.apache.struts2.convention.PackageBasedActionConfigBuilder] (default
 task-8) Created package config named [org.egov.web.actions.common#egov#/]
 with a namespace [/]
 22:34:35,271 TRACE
 [org.apache.struts2.convention.PackageBasedActionConfigBuilder] (default
 task-8) Using non-default action namespace from the Action annotation of
 [/common/homepage]
 22:34:35,272 TRACE
 [org.apache.struts2.convention.PackageBasedActionConfigBuilder] (default
 task-8) Using non-default parent package from annotation of [egov]
 22:34:35,272 TRACE
 [org.apache.struts2.convention.PackageBasedActionConfigBuilder] (default
 task-8) Created package config named
 [org.egov.web.actions.common#egov#/common] with a namespace [/common]
 22:34:35,273 DEBUG
 [org.apache.struts2.convention.PackageBasedActionConfigBuilder] (default
 task-8) Creating action config for class [class
 org.egov.web.actions.common.HomepageAction], name [homepage] and package
 name [org.egov.web.actions.common#egov#/common] in namespace [/common]
 22:34:35,273 TRACE [org.apache.struts2.convention.DefaultResultMapBuilder]
 (default task-8) Using final calculated namespace [/common]
 22:34:35,274 TRACE [org.apache.struts2.convention.DefaultResultMapBuilder]
 (default task-8) Searching for results in the Servlet container at
 [/WEB-INF/jsp/common/] with result prefix of
 [/WEB-INF/jsp/common/homepage]
 22:34:35,275 TRACE [org.apache.struts2.convention.DefaultResultMapBuilder]
 (default task-8) Processing resource path
 [/WEB-INF/jsp/common/homepage.jsp]
 22:34:35,275 TRACE [org.apache.struts2.convention.DefaultResultMapBuilder]
 (default task-8) The result file [/WEB-INF/jsp/common/homepage.jsp] has no
 result code and therefore will be associated with success, input and error
 by default. This might be overridden by another result file or an
 annotation.
 22:34:35,276 TRACE [org.apache.struts2

Re: Struts2 Migration issue

2014-12-14 Thread Sreekanth S. Nair
Hi Arpan
I don't think its something do with struts, mostly some config problem with
jetty server. Are you trying to start jetty server from eclipse ? if so can
you try starting from terminal (command prompt).

Or i would like to check this link

http://javaresolutions.blogspot.in/2014/04/pwc6345-there-is-error-in-invoking.html



On Mon, Dec 15, 2014 at 2:45 AM, Arpan arpan.deb...@gmail.com wrote:

 PWC6345




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


Re: Struts2 Not Working After Migrating from 2.3.15.1 to 2.3.20 in Wildfly server

2014-12-14 Thread Sreekanth S. Nair
:) , all i meant by WARN is to give some clue :), because i was really out
of clue why 404 without any ERROR or something.

-- 
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 Mon, Dec 15, 2014 at 12:10 PM, Lukasz Lenart lukaszlen...@apache.org
wrote:

 2014-12-14 19:48 GMT+01:00 Sreekanth S. Nair 
 sreekanth.n...@egovernments.org:
  Hi Lukasz,
 Was drafting a mail eureka  :) when i got your last
  response (any way, that log is not showing anything while accessing the
  url).
 
 Finally i found the culprit, the struts2-rest-plugin.
  Without the rest plugin, its working perfectly. I went and checked again
  both plugin wiki, its seems its having some conflict if we don't set some
  struts parameter. Eventually i tried adding those parameter to my strust2
  config but it didn seems like working. Don't know if its a bug or not.

 It's all in the docs

 http://struts.apache.org/docs/rest-plugin.html#RESTPlugin-RESTandnon-RESTfulURL'sTogetherConfiguration

  But i strongly feels like any struts plugin should not hijack the way
  struts working normally. I guess convention plugin are the first in the
  plugin stack so the rest plugin should not hijack the convention plugin
  behavior, at least these kind of conflicting plugin should give a WARN
 hint
  about the possible conflict.

 WARN isn't an option because it would be like WARN - overriding
 default framework's behaviour ;)


 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: Struts2 Not Working After Migrating from 2.3.15.1 to 2.3.20 in Wildfly server

2014-12-14 Thread Sreekanth S. Nair
Yeah i checked out the url and set up the rest as well. thanks for the link.

-- 
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 Mon, Dec 15, 2014 at 12:11 PM, Lukasz Lenart lukaszlen...@apache.org
wrote:

 2014-12-14 20:13 GMT+01:00 Sreekanth S. Nair 
 sreekanth.n...@egovernments.org:
  I was able to setup, with rest plugin as well. after adding
  constant name=struts.action.extension value=action/
  constant name=struts.mapper.class
  value=org.apache.struts2.dispatcher.mapper.PrefixBasedActionMapper /
  constant name=struts.mapper.prefixMapping value=/rest:rest,:struts/
  in struts.xml

 As I said, it's in the docs

 http://struts.apache.org/docs/rest-plugin.html#RESTPlugin-RESTandnon-RESTfulURL'sTogetherConfiguration


 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: Struts2 Not Working After Migrating from 2.3.15.1 to 2.3.20 in Wildfly server

2014-12-14 Thread Sreekanth S. Nair
Hi Lukasz,
 :) i haven't intentionally added rest-plugin, that was
by mistake i have included and went clueless.
 I need one more help from you regarding custom struts.xml, can you kindly
tell me the struts.xml i have attached is correct ? i have removed the
excludeParam as you suggested in the earlier mail. Anything similar changes
?

-- 
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 Mon, Dec 15, 2014 at 12:23 PM, Lukasz Lenart lukaszlen...@apache.org
wrote:

 2014-12-15 7:49 GMT+01:00 Sreekanth S. Nair 
 sreekanth.n...@egovernments.org:
  :) , all i meant by WARN is to give some clue :), because i was really
 out
  of clue why 404 without any ERROR or something.

 Hmm maybe some info like REST plugin ...


 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: Struts2 Not Working After Migrating from 2.3.15.1 to 2.3.20 in Wildfly server

2014-12-14 Thread Sreekanth S. Nair
Thanks a lot Lukasz... appreciate all your help on fixing this up. WARN :)

-- 
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 Mon, Dec 15, 2014 at 12:37 PM, Lukasz Lenart lukaszlen...@apache.org
wrote:

 2014-12-15 7:57 GMT+01:00 Sreekanth S. Nair 
 sreekanth.n...@egovernments.org:
  Hi Lukasz,
   :) i haven't intentionally added rest-plugin, that
 was
  by mistake i have included and went clueless.

 That would have been my second question if you still have had problems ;-)

   I need one more help from you regarding custom struts.xml, can you
 kindly
  tell me the struts.xml i have attached is correct ? i have removed the
  excludeParam as you suggested in the earlier mail. Anything similar
 changes
  ?

 !-- Production Performance Environment Setting, Change to inverse
 value of the same in Development Environment --
 constant name=struts.devMode value=true /
 constant name=struts.freemarker.templatesCache value=true /
 constant name=struts.xslt.nocache value=false /
 constant name=struts.ognl.logMissingProperties value=true /
 constant name=struts.el.throwExceptionOnFailure value=true /
 constant name=struts.ognl.enableExpressionCache value=true /
 constant name=struts.serve.static value=true /
 constant name=struts.i18n.reload value=true /
 constant name=struts.configuration.xml.reload value=true /
 constant name=struts.freemarker.beanwrapperCache value=true /
 !-- Performance Environment Setting Ends --

 why do you set all these to false in production? At least these two
 should be always set to true
 constant name=struts.freemarker.templatesCache value=true /
 constant name=struts.freemarker.beanwrapperCache value=true /

 The rest looks good, I have added a note to docs about accepted/excluded
 params

 https://cwiki.apache.org/confluence/display/WW/Security#Security-Accepted/Excludedpatterns


 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: Struts2 Not Working After Migrating from 2.3.15.1 to 2.3.20 in Wildfly server

2014-12-13 Thread Sreekanth S. Nair
Hi Lukasz,
  I have tried with the struts2 version 2.3.16.3, its
working perfectly.

-- 
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 Sat, Dec 13, 2014 at 12:38 AM, Sreekanth S. Nair 
sreekanth.n...@egovernments.org wrote:

 Sure Lukasz, let me try and let you know.

 --
 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 Fri, Dec 12, 2014 at 8:30 PM, Lukasz Lenart lukaszlen...@apache.org
 wrote:

 Can you try with 2.3.16.3 first?

 2014-12-12 15:30 GMT+01:00 Sreekanth S. Nair 
 sreekanth.n...@egovernments.org:
  Hi,
   Am facing a weird issue after upgrading strust2 from  2.3.15.1 to
  2.3.20 in Wildfly server. Its not giving any debug or any kind of trace
  about what is happening, its just going to 404 page. I switched debug
 mode
  in both struts config as well as in my server log but couldn't get a
 single
  clue on what is happening. I'm using strust2-convention-plugin.
  My action class name is HomepageAction and located inside
  org.xyz.web.actions.common
 
  I'm accessing it by url
  http://localhost:8080/ctxtpath/common/homepage.action
 
  The same setup is working perfectly in 2.3.15.1.
 
  Anyone face similar issue ? any help would be appreciated.
 
  Thanks
  Srikanth

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




Re: Struts2 Not Working After Migrating from 2.3.15.1 to 2.3.20 in Wildfly server

2014-12-13 Thread Sreekanth S. Nair
Hi Lukasz,
  Anything you can give as a hint about it, if you can tell
me what are the components changed after 2.3.16.3 release, i can narrow
down to find the exact cause.  I'm attaching my custom struts.xml file

-- 
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 Sat, Dec 13, 2014 at 2:57 PM, Sreekanth S. Nair 
sreekanth.n...@egovernments.org wrote:

 Hi Lukasz,
   I have tried with the struts2 version 2.3.16.3, its
 working perfectly.

 --
 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 Sat, Dec 13, 2014 at 12:38 AM, Sreekanth S. Nair 
 sreekanth.n...@egovernments.org wrote:

 Sure Lukasz, let me try and let you know.

 --
 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 Fri, Dec 12, 2014 at 8:30 PM, Lukasz Lenart lukaszlen...@apache.org
 wrote:

 Can you try with 2.3.16.3 first?

 2014-12-12 15:30 GMT+01:00 Sreekanth S. Nair 
 sreekanth.n...@egovernments.org:
  Hi,
   Am facing a weird issue after upgrading strust2 from  2.3.15.1 to
  2.3.20 in Wildfly server. Its not giving any debug or any kind of trace
  about what is happening, its just going to 404 page. I switched debug
 mode
  in both struts config as well as in my server log but couldn't get a
 single
  clue on what is happening. I'm using strust2-convention-plugin.
  My action class name is HomepageAction and located inside
  org.xyz.web.actions.common
 
  I'm accessing it by url
  http://localhost:8080/ctxtpath/common/homepage.action
 
  The same setup is working perfectly in 2.3.15.1.
 
  Anyone face similar issue ? any help would be appreciated.
 
  Thanks
  Srikanth

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


?xml version=1.0 encoding=UTF-8 ?
 !DOCTYPE struts PUBLIC
	-//Apache Software Foundation//DTD Struts Configuration 2.3//EN
	http://struts.apache.org/dtds/struts-2.3.dtd;

struts
	!-- Production Performance Environment Setting, Change to inverse value of the same in Development Environment --
	constant name=struts.devMode value=true /
	constant name=struts.freemarker.templatesCache value=true /
	constant name=struts.xslt.nocache value=false /
	constant name=struts.ognl.logMissingProperties value=true /
	constant name=struts.el.throwExceptionOnFailure value=true /
	constant name=struts.ognl.enableExpressionCache value=true /
	constant name=struts.serve.static value=true /
	constant name=struts.i18n.reload value=true /
	constant name=struts.configuration.xml.reload value=true /
	constant name=struts.freemarker.beanwrapperCache value=true /
	!-- Performance Environment Setting Ends --
	constant name=struts.convention.exclude.parentClassLoader value=true /
	constant name=struts.convention.action.fileProtocols value=jar,vfsfile,vfszip,vfs,zip /
	constant name=struts.convention.result.path value=/WEB-INF/jsp/ /
	constant name=struts.locale value=en_IN /
	constant name=struts.multipart.maxSize value=10485760 /
	constant name=struts.multipart.parser value=jakarta /
	constant name=struts.convention.action.mapAllMatches value=true /
	constant name=struts.convention.default.parent.package value=org /
	!-- Comma separated list of regular expressions of jar URLs to be scanned --
	constant name=struts.convention.action.includeJars value=.*org-.* /
	
	package name=org extends=struts-default
		interceptors

			interceptor-stack name=org-interceptors
interceptor-ref name=alias /
interceptor-ref name=params
   	param name=excludeParams(.*\.|^|.*|\[('|))(c|C)lass(\.|('|)]|\[).*,^dojo\..*,^struts\..*,^session\..*,^request\..*,^application\..*,^servlet(Request|Response)\..*,^parameters\..*,^action:.*,^method:.*/param
/interceptor-ref
interceptor-ref name=servletConfig /
interceptor-ref name=prepare /
interceptor-ref name=i18n /
interceptor-ref name=chain /
interceptor-ref name

Struts2 Not Working After Migrating from 2.3.15.1 to 2.3.20 in Wildfly server

2014-12-12 Thread Sreekanth S. Nair
Hi,
 Am facing a weird issue after upgrading strust2 from  2.3.15.1 to
2.3.20 in Wildfly server. Its not giving any debug or any kind of trace
about what is happening, its just going to 404 page. I switched debug mode
in both struts config as well as in my server log but couldn't get a single
clue on what is happening. I'm using strust2-convention-plugin.
My action class name is HomepageAction and located inside
org.xyz.web.actions.common

I'm accessing it by url
http://localhost:8080/ctxtpath/common/homepage.action

The same setup is working perfectly in 2.3.15.1.

Anyone face similar issue ? any help would be appreciated.

Thanks
Srikanth


Re: Struts2 Not Working After Migrating from 2.3.15.1 to 2.3.20 in Wildfly server

2014-12-12 Thread Sreekanth S. Nair
Sure Lukasz, let me try and let you know.

-- 
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 Fri, Dec 12, 2014 at 8:30 PM, Lukasz Lenart lukaszlen...@apache.org
wrote:

 Can you try with 2.3.16.3 first?

 2014-12-12 15:30 GMT+01:00 Sreekanth S. Nair 
 sreekanth.n...@egovernments.org:
  Hi,
   Am facing a weird issue after upgrading strust2 from  2.3.15.1 to
  2.3.20 in Wildfly server. Its not giving any debug or any kind of trace
  about what is happening, its just going to 404 page. I switched debug
 mode
  in both struts config as well as in my server log but couldn't get a
 single
  clue on what is happening. I'm using strust2-convention-plugin.
  My action class name is HomepageAction and located inside
  org.xyz.web.actions.common
 
  I'm accessing it by url
  http://localhost:8080/ctxtpath/common/homepage.action
 
  The same setup is working perfectly in 2.3.15.1.
 
  Anyone face similar issue ? any help would be appreciated.
 
  Thanks
  Srikanth

 -
 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




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


Re: Fix security vulnerability

2014-07-10 Thread Sreekanth S. Nair
http://struts.apache.org/struts1eol-announcement.html

-- 
Thanks  Regards

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


On Thu, Jul 10, 2014 at 6:25 PM, walter.heesterm...@toyota-europe.com
wrote:

 seems to be fixed in 1.3.11 or later, but no release date yet

 Walter




 From:   Ruchika Mahajan ruchika.mahaja...@gmail.com
 To: Struts Users Mailing List user@struts.apache.org,
 Date:   10/07/2014 07:24
 Subject:Re: Fix security vulnerability



 Hi,

 CVE-2014-0114 was present till 1.3.10 version. In

 https://issues.apache.org/jira/browse/STR/?selectedTab=com.atlassian.jira.jira-projects-plugin:roadmap-panel

 link
 there are releases for 1.x after 1.3.10. So just wanted to confirm, is
 CVE-2014-0114 fixed in any of the later releases of 1.3.10 or it is yet to
 be fixed.

 BR,
 Ruchika


 On Thu, Jul 10, 2014 at 2:40 AM, Paul Benedict pbened...@apache.org
 wrote:

  Yes, we have releases planned:
 
 

 https://issues.apache.org/jira/browse/STR/?selectedTab=com.atlassian.jira.jira-projects-plugin:roadmap-panel

 
 
  Cheers,
  Paul
 
 
  On Wed, Jul 9, 2014 at 4:08 PM, Dave Newton davelnew...@gmail.com
 wrote:
 
   I'm not sure.
  
   In the meantime:
  
  
  
 

 http://h30499.www3.hp.com/t5/HP-Security-Research-Blog/Protect-your-Struts1-applications/ba-p/6463188#.U72vCa1VRF9

  
   Dave
  
  
  
   On Wed, Jul 9, 2014 at 5:01 PM, walter.heesterm...@toyota-europe.com
   wrote:
  
Hi,
   
http://www.cvedetails.com/cve/CVE-2014-0114/
   
Is there a planned fix for version 1.x?
   
Regards
Walter
   
   
   
   
This e-mail may contain confidential information.
If you are not an addressee or otherwise authorised to receive this
message, you should not use, copy, disclose or take any action based
 on
this e-mail.
If you have received this e-mail in error, please inform the sender
promptly and delete this message and any attachments immediately.
  
  
  
  
   --
   e: davelnew...@gmail.com
   m: 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
  
 





 This e-mail may contain confidential information.
 If you are not an addressee or otherwise authorised to receive this
 message, you should not use, copy, disclose or take any action based on
 this e-mail.
 If you have received this e-mail in error, please inform the sender
 promptly and delete this message and any attachments immediately.



Re: Please help me in resolving the problem(dojo + struts 2)

2014-07-07 Thread Sreekanth S. Nair
Have you tried using jquery plugin, dojo is outdated plugin for strust2
latest. Fyi :
https://cwiki.apache.org/confluence/display/S2PLUGINS/jQuery+plugin+-+Easy+AJAX+and+Widget+Integration

-- 
Thanks  Regards
Srikanth
Software Developer

eGovernments Foundations
www.egovernments.org
Mob : 9980078913



On Mon, Jul 7, 2014 at 4:37 PM, Ratna Kar ratnakarb.t...@gmail.com wrote:

 I am trying to do a sample ajax application(Struts 2.3 latest) which is
 based on dojo.

 but the ajax functionality not working for me. I have included the
 necessary dojo plugin in
 the classpath.

 but still the ajax functionality is not working..

 getting the following errors while testing my action. .. pls help

 *Error 1*

 TypeError: $Rev$.match(...) is null

 revision: Number($Rev$.match(/[0-9]+/)[0]),


 *Error 2*

 TypeError: dojo.require is not a function

 dojo.hostenv.writeIncludes(true);

 Please help me in resolving the issue.



Re: Please help me in resolving the problem(dojo + struts 2)

2014-07-07 Thread Sreekanth S. Nair
Yes its, within my knowledge, jquery plugin is at the top priority now.

-- 
Thanks  Regards
Srikanth
Software Developer

eGovernments Foundations
www.egovernments.org
Mob : 9980078913



On Mon, Jul 7, 2014 at 5:08 PM, Ratna Kar ratnakarb.t...@gmail.com wrote:

 Thanks Srikanth..
 Seems like there is a bug on the above issue..

 https://issues.apache.org/jira/browse/WW-4349

 Also seems like dojo plugin is going to be deprecated from the next major
 release 2.5.. Can any one confirm this..

 One more question, in order to develop ajax based application... Which
 plugin is more suitable and popular at this point of time.. ?
 Is it jquery plugin ? Please help me in choosing the right plugin..

 Thanks once again




 On Mon, Jul 7, 2014 at 4:49 PM, Sreekanth S. Nair 
 sreekanth.n...@egovernments.org wrote:

  Have you tried using jquery plugin, dojo is outdated plugin for strust2
  latest. Fyi :
 
 
 https://cwiki.apache.org/confluence/display/S2PLUGINS/jQuery+plugin+-+Easy+AJAX+and+Widget+Integration
 
  --
  Thanks  Regards
  Srikanth
  Software Developer
  
  eGovernments Foundations
  www.egovernments.org
  Mob : 9980078913
  
 
 
  On Mon, Jul 7, 2014 at 4:37 PM, Ratna Kar ratnakarb.t...@gmail.com
  wrote:
 
   I am trying to do a sample ajax application(Struts 2.3 latest) which is
   based on dojo.
  
   but the ajax functionality not working for me. I have included the
   necessary dojo plugin in
   the classpath.
  
   but still the ajax functionality is not working..
  
   getting the following errors while testing my action. .. pls help
  
   *Error 1*
  
   TypeError: $Rev$.match(...) is null
  
   revision: Number($Rev$.match(/[0-9]+/)[0]),
  
  
   *Error 2*
  
   TypeError: dojo.require is not a function
  
   dojo.hostenv.writeIncludes(true);
  
   Please help me in resolving the issue.
  
 



Re: Error setting expression with Value

2014-06-16 Thread Sreekanth S. Nair
rename your setter  getter method of mAnswerid from setmAnswerid to
setMAnswerid  and getmAnswerid to getMAnswerid. And same thing is
applicable to mQuestionid variable as well.

-- 
Thanks  Regards
Srikanth
Software Developer

eGovernments Foundations
www.egovernments.org
Mob : 9980078913



On Mon, Jun 16, 2014 at 1:53 PM, NIJO GEORGE nijo...@gmail.com wrote:

 import com.dieutek.examsoft.entities.ExmAnswers;
 import com.dieutek.examsoft.entities.ExmQuestion;
 import com.dieutek.examsoft.implementors.AnswerImplementor;
 import com.dieutek.examsoft.implementors.QuestionImplementor;
 import static com.opensymphony.xwork2.Action.SUCCESS;
 import com.opensymphony.xwork2.ActionSupport;
 import javax.servlet.http.HttpServletRequest;
 import org.apache.struts2.interceptor.ServletRequestAware;

 public class UpdateQuestionAction extends ActionSupport implements
 ServletRequestAware {

 int adminid;
 int mQuestionid;
 int mAnswerid;
 private int courseid;
 private int subjectid;
 private String question;
 private String optionA;
 private String optionB;
 private String optionC;
 private String optionD;
 private String optionE;
 private String optionF;
 private String optionG;
 private int answerType;
 private String CorrectAnswer;
 private int showAsMCQ;
 private String hint;
 HttpServletRequest request;

 public int getAdminid() {
 return adminid;
 }

 public void setAdminid(int adminid) {
 this.adminid = adminid;
 }

 public int getmQuestionid() {
 return mQuestionid;
 }

 public void setmQuestionid(int mQuestionid) {
 this.mQuestionid = mQuestionid;
 }

 public int getmAnswerid() {
 return mAnswerid;
 }

 public void setmAnswerid(int mAnswerid) {
 this.mAnswerid = mAnswerid;
 }

 public int getCourseid() {
 return courseid;
 }

 public void setCourseid(int courseid) {
 this.courseid = courseid;
 }

 public int getSubjectid() {
 return subjectid;
 }

 public void setSubjectid(int subjectid) {
 this.subjectid = subjectid;
 }

 public String getQuestion() {
 return question;
 }

 public void setQuestion(String question) {
 this.question = question;
 }

 public String getOptionA() {
 return optionA;
 }

 public void setOptionA(String optionA) {
 this.optionA = optionA;
 }

 public String getOptionB() {
 return optionB;
 }

 public void setOptionB(String optionB) {
 this.optionB = optionB;
 }

 public String getOptionC() {
 return optionC;
 }

 public void setOptionC(String optionC) {
 this.optionC = optionC;
 }

 public String getOptionD() {
 return optionD;
 }

 public void setOptionD(String optionD) {
 this.optionD = optionD;
 }

 public String getOptionE() {
 return optionE;
 }

 public void setOptionE(String optionE) {
 this.optionE = optionE;
 }

 public String getOptionF() {
 return optionF;
 }

 public void setOptionF(String optionF) {
 this.optionF = optionF;
 }

 public String getOptionG() {
 return optionG;
 }

 public void setOptionG(String optionG) {
 this.optionG = optionG;
 }

 public int getAnswerType() {
 return answerType;
 }

 public void setAnswerType(int answerType) {
 this.answerType = answerType;
 }

 public String getCorrectAnswer() {
 return CorrectAnswer;
 }

 public void setCorrectAnswer(String CorrectAnswer) {
 this.CorrectAnswer = CorrectAnswer;
 }

 public int getShowAsMCQ() {
 return showAsMCQ;
 }

 public void setShowAsMCQ(int showAsMCQ) {
 this.showAsMCQ = showAsMCQ;
 }

 public String getHint() {
 return hint;
 }

 public void setHint(String hint) {
 this.hint = hint;
 }

 public UpdateQuestionAction() {
 }

 public String updateQuestion() {
 QuestionImplementor qi = new QuestionImplementor();
 AnswerImplementor ai = new AnswerImplementor();
 System.out.println(Answer Id :  + getmAnswerid());
 System.out.println(Question Id :  + getmQuestionid());
 adminid = ((Integer)
 request.getSession().getAttribute(adminid)).intValue();
 ExmQuestion eqn = new ExmQuestion();
 ExmAnswers eas = new ExmAnswers();
 eqn.setQuestionid(getmQuestionid());//(getmQuestionid());
 eqn.setQuestion(getQuestion());
 eqn.setCourseid(getCourseid());

 eqn.setSubjectid(getSubjectid());//eq.setSubjectid(getSubjectids());
 eqn.setAdminid(adminid);
 eqn.setOccurance(0);
 eqn.setQuestionhint(getHint());
 

Running two different version of struts2 web app in a EAR

2013-10-17 Thread Sreekanth S. Nair
Hi,

I have an .ear project which contains multiple wars, among this i want to
run one war using latest struts2 and others with older version of struts2.
In my .ear/lib/ i have older version which used to run older web apps and
i'm
packaging strust2 latest and its dependency jar in WEB-INF/lib for the one
which i want to run in latest strust2. but its giving the following error.

Caused by: Unable to load bean: type:
class:com.opensymphony.xwork2.ObjectFactory - bean -
jar:file:/home/srikanth/Servers/jboss-4.2.3.GA-erp/server/default/tmp/deploy/tmp7510742630477215514struts2-blank-exp.war/WEB-INF/lib/struts2-core-2.3.15.2.jar!/struts-default.xml:29:72
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:239)
at
org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:100)
at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:156)
at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
... 143 more
Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the
name xwork has already been loaded by bean -
jar:file:/home/srikanth/Servers/jboss-4.2.3.GA-erp/server/default/deploy/egov.ear/lib/struts2-core-2.1.2.jar!/struts-default.xml:29:72
- bean -
jar:file:/home/srikanth/Servers/jboss-4.2.3.GA-erp/server/default/tmp/deploy/tmp7510742630477215514struts2-blank-exp.war/WEB-INF/lib/struts2-core-2.3.15.2.jar!/struts-default.xml:29:72
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:223)
... 146 more

Is it possible to integrate two different version of strust2 in an ear
deployment?

-- 
Thanks  Regards
Srikanth


Re: Running two different version of struts2 web app in a EAR

2013-10-17 Thread Sreekanth S. Nair
hmmm, thanks lukazs. If we want to package jars inside WEB-INF/lib/ which r
the jars needs to be in WEB-INF/lib to resolve this conflict? only struts2
libs or all dependencies as well?

-- 
Thanks  Regards
Srikanth
Software Developer

eGovernments Foundations
www.egovernments.org
Mob : 9980078913



On Thu, Oct 17, 2013 at 3:46 PM, Lukasz Lenart lukaszlen...@apache.orgwrote:

 2013/10/17 Sreekanth S. Nair sreekanth.n...@egovernments.org:
  Hi,
 
  I have an .ear project which contains multiple wars, among this i want to
  run one war using latest struts2 and others with older version of
 struts2.
  In my .ear/lib/ i have older version which used to run older web apps and
  i'm
  packaging strust2 latest and its dependency jar in WEB-INF/lib for the
 one
  which i want to run in latest strust2. but its giving the following
 error.
 
  Caused by: Unable to load bean: type:
  class:com.opensymphony.xwork2.ObjectFactory - bean -
 
 jar:file:/home/srikanth/Servers/jboss-4.2.3.GA-erp/server/default/tmp/deploy/tmp7510742630477215514struts2-blank-exp.war/WEB-INF/lib/struts2-core-2.3.15.2.jar!/struts-default.xml:29:72
  at
 
 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:239)
  at
 
 org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:100)
  at
 
 com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:156)
  at
 
 com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
  ... 143 more
  Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the
  name xwork has already been loaded by bean -
 
 jar:file:/home/srikanth/Servers/jboss-4.2.3.GA-erp/server/default/deploy/egov.ear/lib/struts2-core-2.1.2.jar!/struts-default.xml:29:72
  - bean -
 
 jar:file:/home/srikanth/Servers/jboss-4.2.3.GA-erp/server/default/tmp/deploy/tmp7510742630477215514struts2-blank-exp.war/WEB-INF/lib/struts2-core-2.3.15.2.jar!/struts-default.xml:29:72
  at
 
 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:223)
  ... 146 more
 
  Is it possible to integrate two different version of strust2 in an ear
  deployment?

 It should be possible, each must have its own set of jars in
 WEB-INF/lib - you cannot have shared jars in EAR


 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: Running two different version of struts2 web app in a EAR

2013-10-17 Thread Sreekanth S. Nair
Thanks for your suggestions Lukazs...

-- 
Thanks  Regards
Srikanth
Software Developer

eGovernments Foundations
www.egovernments.org
Mob : 9980078913



On Thu, Oct 17, 2013 at 4:36 PM, Lukasz Lenart lukaszlen...@apache.orgwrote:

 I would rather put all the dependencies - it's safer

 2013/10/17 Sreekanth S. Nair sreekanth.n...@egovernments.org:
  hmmm, thanks lukazs. If we want to package jars inside WEB-INF/lib/
 which r
  the jars needs to be in WEB-INF/lib to resolve this conflict? only
 struts2
  libs or all dependencies as well?
 
  --
  Thanks  Regards
  Srikanth
  Software Developer
  
  eGovernments Foundations
  www.egovernments.org
  Mob : 9980078913
  
 
 
  On Thu, Oct 17, 2013 at 3:46 PM, Lukasz Lenart lukaszlen...@apache.org
 wrote:
 
  2013/10/17 Sreekanth S. Nair sreekanth.n...@egovernments.org:
   Hi,
  
   I have an .ear project which contains multiple wars, among this i
 want to
   run one war using latest struts2 and others with older version of
  struts2.
   In my .ear/lib/ i have older version which used to run older web apps
 and
   i'm
   packaging strust2 latest and its dependency jar in WEB-INF/lib for the
  one
   which i want to run in latest strust2. but its giving the following
  error.
  
   Caused by: Unable to load bean: type:
   class:com.opensymphony.xwork2.ObjectFactory - bean -
  
 
 jar:file:/home/srikanth/Servers/jboss-4.2.3.GA-erp/server/default/tmp/deploy/tmp7510742630477215514struts2-blank-exp.war/WEB-INF/lib/struts2-core-2.3.15.2.jar!/struts-default.xml:29:72
   at
  
 
 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:239)
   at
  
 
 org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:100)
   at
  
 
 com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:156)
   at
  
 
 com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
   ... 143 more
   Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with
 the
   name xwork has already been loaded by bean -
  
 
 jar:file:/home/srikanth/Servers/jboss-4.2.3.GA-erp/server/default/deploy/egov.ear/lib/struts2-core-2.1.2.jar!/struts-default.xml:29:72
   - bean -
  
 
 jar:file:/home/srikanth/Servers/jboss-4.2.3.GA-erp/server/default/tmp/deploy/tmp7510742630477215514struts2-blank-exp.war/WEB-INF/lib/struts2-core-2.3.15.2.jar!/struts-default.xml:29:72
   at
  
 
 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:223)
   ... 146 more
  
   Is it possible to integrate two different version of strust2 in an ear
   deployment?
 
  It should be possible, each must have its own set of jars in
  WEB-INF/lib - you cannot have shared jars in EAR
 
 
  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
 
 

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




Steps Involved in counter measurement for security issues

2013-10-16 Thread Sreekanth S. Nair
Hi,
Due to time and other internal constraints, we are unable to upgrade
strust2 to the latest version. So i would like to know if we use old
strust2 distro (in my case : struts2-core-2.1.2), what are the counter
measurement need to taken care?

Regards


Re: Steps Involved in counter measurement for security issues

2013-10-16 Thread Sreekanth S. Nair
Hi,
Thanks Lukazs,  but that's too much of task to compare rather i can
migrate ;-). Thanks Antonios, i will refer those links.



-- 
Thanks  Regards
sreekanth



On Wed, Oct 16, 2013 at 3:25 PM, Antonios Gkogkakis gkogk...@tcd.ie wrote:

 Hi Sreekanth,

 Lukasz beat me!

 If you don't want to upgrade you should at least check the security
 bulletins
 http://struts.apache.org/release/2.2.x/docs/security-bulletins.html
 http://struts.apache.org/release/2.3.x/docs/security-bulletins.html

 see which vulnerabilities affect you and follow the instructions to resolve
 them.



 On 16 October 2013 10:48, Sreekanth S. Nair 
 sreekanth.n...@egovernments.org
  wrote:

  Hi,
  Due to time and other internal constraints, we are unable to upgrade
  strust2 to the latest version. So i would like to know if we use old
  strust2 distro (in my case : struts2-core-2.1.2), what are the counter
  measurement need to taken care?
 
  Regards
 



Re: Steps Involved in counter measurement for security issues

2013-10-16 Thread Sreekanth S. Nair
One more doubt, does this security vulnerability is able to bring down the
server :-) ? If we authorize ourselves to apache, is it possible for struts
team to give us test case to check the vulnerability?

-- 
Thanks  Regards
Srikanth
Software Developer

eGovernments Foundations
www.egovernments.org
Mob : 9980078913



On Wed, Oct 16, 2013 at 3:34 PM, Sreekanth S. Nair 
sreekanth.n...@egovernments.org wrote:

 Hi,
 Thanks Lukazs,  but that's too much of task to compare rather i can
 migrate ;-). Thanks Antonios, i will refer those links.



 --
 Thanks  Regards
 sreekanth
 


 On Wed, Oct 16, 2013 at 3:25 PM, Antonios Gkogkakis gkogk...@tcd.iewrote:

 Hi Sreekanth,

 Lukasz beat me!

 If you don't want to upgrade you should at least check the security
 bulletins
 http://struts.apache.org/release/2.2.x/docs/security-bulletins.html
 http://struts.apache.org/release/2.3.x/docs/security-bulletins.html

 see which vulnerabilities affect you and follow the instructions to
 resolve
 them.



 On 16 October 2013 10:48, Sreekanth S. Nair 
 sreekanth.n...@egovernments.org
  wrote:

  Hi,
  Due to time and other internal constraints, we are unable to upgrade
  strust2 to the latest version. So i would like to know if we use old
  strust2 distro (in my case : struts2-core-2.1.2), what are the counter
  measurement need to taken care?
 
  Regards
 





Re: Steps Involved in counter measurement for security issues

2013-10-16 Thread Sreekanth S. Nair
Test Case to test the security vulnerability (major ones) in
struts2-core-2.1.2.

-- 
Thanks  Regards
Srikanth
Software Developer

eGovernments Foundations
www.egovernments.org
Mob : 9980078913



On Wed, Oct 16, 2013 at 4:15 PM, Lukasz Lenart lukaszlen...@apache.orgwrote:

 2013/10/16 Sreekanth S. Nair sreekanth.n...@egovernments.org:
  One more doubt, does this security vulnerability is able to bring down
 the
  server :-) ? If we authorize ourselves to apache, is it possible for
 struts
  team to give us test case to check the vulnerability?

 What you mean by that? What test case you refer to?


 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: Steps Involved in counter measurement for security issues

2013-10-16 Thread Sreekanth S. Nair
Thanks Lukazs, the problem i'm facing now is our product is so huge to do a
migration and running mainly on DMI. I'm unable to convince my top
management about how bad strust2 vulnerability is (since i dont know how to
replicate the vulnerability). So I have no choice other than option 2.

-- 
Thanks  Regards
Srikanth
Software Developer

eGovernments Foundations
www.egovernments.org
Mob : 9980078913



On Wed, Oct 16, 2013 at 4:22 PM, Umesh Awasthi umeshawas...@gmail.comwrote:

 I do not think that is possible.
 You have 2 options

 1. Upgrade you struts2 version.
 2. Go through security vulnerability and see what was there and create test
 cases to see what exactly is happening and fix them by checking patches.

 But IMO, upgrading to latest version is much more flexible and less time
 consuming than going through each and every vulnerability and applying
 fixes for them.


 On Wed, Oct 16, 2013 at 4:17 PM, Sreekanth S. Nair 
 sreekanth.n...@egovernments.org wrote:

  Test Case to test the security vulnerability (major ones) in
  struts2-core-2.1.2.
 
  --
  Thanks  Regards
  Srikanth
  Software Developer
  
  eGovernments Foundations
  www.egovernments.org
  Mob : 9980078913
  
 
 
  On Wed, Oct 16, 2013 at 4:15 PM, Lukasz Lenart lukaszlen...@apache.org
  wrote:
 
   2013/10/16 Sreekanth S. Nair sreekanth.n...@egovernments.org:
One more doubt, does this security vulnerability is able to bring
 down
   the
server :-) ? If we authorize ourselves to apache, is it possible for
   struts
team to give us test case to check the vulnerability?
  
   What you mean by that? What test case you refer to?
  
  
   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
  
  
 



 --
 With Regards
 Umesh Awasthi
 http://www.travellingrants.com/



Re: Steps Involved in counter measurement for security issues

2013-10-16 Thread Sreekanth S. Nair
I don't mean it like that, but something like a proof of concept
like http://struts.apache.org/release/2.3.x/docs/s2-016.html


-- 
Thanks  Regards
Srikanth
Software Developer

eGovernments Foundations
www.egovernments.org
Mob : 9980078913



On Wed, Oct 16, 2013 at 4:30 PM, Lukasz Lenart lukaszlen...@apache.orgwrote:

 2013/10/16 Sreekanth S. Nair sreekanth.n...@egovernments.org:
  Test Case to test the security vulnerability (major ones) in
  struts2-core-2.1.2.

 Everything you can find is in Struts repository, it's Open Source not
 a close code software ;-)

 And there is no the test which magically checks security
 vulnerabilities, even security scans we get from time to time are
 mostly useless without deep knowledge of Struts internals (tests/scans
 don't perform impact analysis). If you know that tool, I will be happy
 to use it.


 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: Steps Involved in counter measurement for security issues

2013-10-16 Thread Sreekanth S. Nair
Thanks  Eric and Martin for your valuable information, we already have high
security backed network, server and application configuration. Was just
worried about underlying security issues with struts2.

-- 
Thanks  Regards
Srikanth
Software Developer

eGovernments Foundations
www.egovernments.org
Mob : 9980078913



On Thu, Oct 17, 2013 at 4:33 AM, Martin Gainty mgai...@hotmail.com wrote:

 all initial points of contact to your site should go thru a login process
 with a public key backed by a cert provided by vendor(you)



 if the cert was self-signed or the key is forged you should return a 401
 if the JSSE Key exchange is successful  then yourm session will be
 assigned  a secure token valid only for that Session

 and you will now exchange information on SSLv3/TLS Transport which ever
 connector is assigned to handle Secure Traffic


 The assigned Session-Token would follow you thru the system and if your
 tokens Principal was not in Role for the page or resource then client sees
 a 403ed (Forbidden) coming from you
 if ANYTHING does happen to your Session (invalidate or timeout) ...you
 invalidate the secure Token as well

 attempts to hack the Token by reading cookies wouldnt work either as each
 assigned Token is calc'ed off of JSESSION-ID by an algo than changes at
 random intervals
 SSLv3/TLS algos change on random intervals..so a cipher/algo worked for
 One session would not work the next session

 Both Encryption and Decryption Algorithms as well as their respective Salt
 length would change at random intervals
 If you are a Math whiz and you developed an algo SSL/TLS encrypt algo
 going up it would not work for the algo coming down ...Each entity's update
 schedule is orthogonal meaning that any entity cannot and should not
 necessarily be able to be derived from another known entity (by
 conventional means)

 Moreover since most crypto algos are migrating from symmetric (same algo
 for encryption and decryption) to asymetric (differing algos for encryption
 and decryption) the work you put into creating one non-repudiating algo for
 encrypting does not necessarily dovetail to crack'ing the second algo...
 http://en.wikipedia.org/wiki/Assymetric_key_cryptography

 the algos can be and are oftentimes different as seen here

 Browser-Algo1-Server

 vs

 Browser-Algo2--Server



 how bad strust2 vulnerability is...

 last time i checked this is not strust2 list


 Regards,
 Martin
 __






  Date: Wed, 16 Oct 2013 08:21:28 -0400
  From: ere...@mail.nysed.gov
  To: user@struts.apache.org
  Subject: Re: Steps Involved in counter measurement for security issues
 
  First of all, security on web applications is of a concern but not as
  much as one would think.
 
  To find all the security vulnerabilities within any application, or
  framework, one would find all the entry points which allow user
  provided data. This could be a field, a protocol, etc. and then one
  would fuzz this process until the program crashed.
 
  Not only does a hacker need to crash the program, but hacking also
  requires knowledge by the attacker of the underlying operating system
  and what version it is. Most web applications run in a virtual
  environment with proxies between the real server and the user, so just
  finding out what to attack is hard if the network is properly
  configured.
 
  Certainly something to consider but you will probably never find all
  the vulnerabilities, it's a much better approach to monitor your
  network, and know your underlying systems.
 
  Even though struts can be hacked, look at all those .jar files you
  included and run on your server with high level permissions. Those too
  can be full of exploits and most of those libs are just downloaded from
  the net by amateur developers.
 
  Eric Reed
  New York State Department of Education
 
 
 
 
 
   Lukasz Lenart lukaszlen...@apache.org 10/16/2013 7:12 AM 
  Ok, so the only option is got through each security bulletin and check
  provided Proof-of-Concept if it affects your application. And DMI
  isn't a problem if used wise.
 
  https://cwiki.apache.org/confluence/display/WW/Security+Bulletins
 
  2013/10/16 Sreekanth S. Nair sreekanth.n...@egovernments.org:
   Thanks Lukazs, the problem i'm facing now is our product is so huge
  to do a
   migration and running mainly on DMI. I'm unable to convince my top
   management about how bad strust2 vulnerability is (since i dont know
  how to
   replicate the vulnerability). So I have no choice other than option
  2.
  
   --
   Thanks  Regards
   Srikanth
   Software Developer
   
   eGovernments Foundations
   www.egovernments.org
   Mob : 9980078913
   
  
  
   On Wed, Oct 16, 2013 at 4:22 PM, Umesh Awasthi
  umeshawas...@gmail.comwrote:
  
   I do not think that is possible.
   You have 2 options
  
   1. Upgrade

Struts Javascript error

2013-08-12 Thread Sreekanth S. Nair
Hi,
 Getting the following error in javascript console, happening with latest
struts2 distribution


   1. Uncaught ReferenceError: StrutsUtils is not defined
validation.js:161http://localhost:8080/tradelicense/struts/css_xhtml/validation.js
   http://localhost:8080/tradelicense/struts/css_xhtml/validation.js


Due to this or not, non of the action error messages are getting displayed.
-- 
Thanks  Regards
Srikanth


Re: Struts Javascript error

2013-08-12 Thread Sreekanth S. Nair
Javscript error got resolved by adding s:head between html head tag.
but still i'm unable to see the field error message which i have added
using addFieldError() method.

Sreekanth S. Nair sreekanth.n...@egovernments.org wrote:

 Hi,
  Getting the following error in javascript console, happening with latest
 struts2 distribution


1. Uncaught ReferenceError: StrutsUtils is not defined

 validation.js:161http://localhost:8080/tradelicense/struts/css_xhtml/validation.js
 http://localhost:8080/tradelicense/struts/css_xhtml/validation.js


 Due to this or not, non of the action error messages are getting
 displayed.
 --
 Thanks  Regards
 Srikanth



Struts2 Invalid Request Page is not showing up

2013-08-12 Thread Sreekanth S. Nair
Hi,
 We are using struts2 latest distribution, where we are using
tokenSession interceptor for duplicate submission. Duplicate request
processing is working fine but its not showing result page for duplicate
form submission which we have defined in strust.xml as below.
global-results
 result name=accessDeniedError/error/accessDenied.jsp/result
result name=invalid.token/error/invalidRequest.jsp/result
/global-results

-- 
Thanks  Regards
Srikanth


Re: struts 1 to struts2 migration.

2013-08-08 Thread Sreekanth S. Nair
Hi Arpan,
   We too did a struts1 to strust2 migration in recent past,
its not so easy to migrate as it is. Since Struts2 gives more importance to
security nowadays its always advisable to learn the correct implementation
from struts2 doc and migrate your struts1 actions one by one. Strust2 and
struts1 can co-exist inside same application till you migrate it fully.



-- 
Thanks  Regards
Srikanth


On Wed, Aug 7, 2013 at 9:45 PM, Arpan arpan.deb...@gmail.com wrote:

 Thank you so much Lukasz.. While migrating I found few more problems. Such
 as

 In struts 1 JSP I have used bean:define id=x type=BeanClass
 name=FormName /
 In scriplet there are many places we used % String s = x.getName(); %

 In struts 2 we can write s:bean name=BeanClass var=x/

 Now how can I use the x object in scriplet. As there are many references
 of x already written, I don't want to change so much code for now. Hence
 like to use scriplet only.

 Thanks


 On Wed, Aug 7, 2013 at 7:34 PM, Lukasz Lenart lukaszlen...@apache.org
 wrote:

  You can try to write your own ActionMapper which will extract request
  parameter action and base on that lookup for action.
 
  2013/8/7 Arpan arpan.deb...@gmail.com:
   Anybody to help here...
  
   Thanks in Advance.
  
  
   On Tue, Aug 6, 2013 at 7:43 PM, Arpan arpan.deb...@gmail.com wrote:
  
   Hi All,
  
   We are migrating from struts1 to struts2.
  
   In our pages we have multiple buttons which through struts1
  DispatchAction
   can be guided  to different methods in Action class. For that we need
   minimal changes. Such as
In action mapping if we add parameter=action and in JSP if the URL
 is
   like x.do?action=method1, it happily directs the control to method1 in
   Action class.
  
   I got the bellow link for struts2, but for that also we need much
  changes
   to be done.
  
 
 http://struts.apache.org/development/2.x/docs/multiple-submit-buttons.html
  
   Is there any such way we do similar functionality in struts2 with
  minimal
   changes.
  
   Thanks
  
  
  
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 



Re: struts 1 to struts2 migration.

2013-08-08 Thread Sreekanth S. Nair
I'm sorry about that, in my migration i never tried to do patches on
existing jsp but rewriting the whole jsp. Advise if you take more days but
better do it gud migration ;) .
And i guess ur problem can be solved by
%
OgnlValueStack valStack = (OgnlValueStack)TagUtils.getStack(pageContext);
BeanClass x = (BeanClass)valStack.findValue(x);
%

I'm unsure about if there is any other better way. if so, you can expect
answers from experts like Lukasz.


-- 
Thanks  Regards
Srikanth


On Thu, Aug 8, 2013 at 4:44 PM, Arpan arpan.deb...@gmail.com wrote:

 Thanks Srikanth,

 But what about this problem :
 Such as

 In struts 1 JSP I have used bean:define id=x type=BeanClass
 name=FormName /
 In JSP scriplet there are many places we used % String s = x.getName(); %

 In struts 2 we can write s:bean name=BeanClass var=x/

 Now how can I use the x object in scriplet. As there are many references
 of x already written, I don't want to change so much code for now. Hence
 like to use scriplet only.


 On Thu, Aug 8, 2013 at 3:04 PM, Sreekanth S. Nair 
 sreekanth.n...@egovernments.org wrote:

  Already suggested by Lukasz, i can see thats only possible way if you
 don't
  want to disturb the existing code much. But from my personal experience i
  can say customizing things will make more complicated when strust2
 changes
  its internal. We were facing so many issues while we started migration.
 We
  also had the same kind of situation, like we used to call methods using
  actionName!methodName or by using s:submit and specifying method
 attribute
  (Now these are leading to big OGNL warnings) due to security updates done
  by struts2 team. In my personal opinion better follow what strust2
  suggested way of implementing it (with help of plugins like conventional,
  jquery, etc u can make life easier).
 
  --
  Thanks  Regards
  Srikanth
 
 
  On Thu, Aug 8, 2013 at 2:32 PM, Arpan arpan.deb...@gmail.com wrote:
 
   Hi Sreekanth,
  
   We are also planning to do this similar way. In the meanwhile do you
 have
   any suggestion or solution for the problems I mentioned.
  
   Thank you..
  
  
   On Thu, Aug 8, 2013 at 11:30 AM, Sreekanth S. Nair 
   sreekanth.n...@egovernments.org wrote:
  
Hi Arpan,
   We too did a struts1 to strust2 migration in recent
  past,
its not so easy to migrate as it is. Since Struts2 gives more
  importance
   to
security nowadays its always advisable to learn the correct
   implementation
from struts2 doc and migrate your struts1 actions one by one. Strust2
  and
struts1 can co-exist inside same application till you migrate it
 fully.
   
   
   
--
Thanks  Regards
Srikanth
   
   
On Wed, Aug 7, 2013 at 9:45 PM, Arpan arpan.deb...@gmail.com
 wrote:
   
 Thank you so much Lukasz.. While migrating I found few more
 problems.
Such
 as

 In struts 1 JSP I have used bean:define id=x type=BeanClass
 name=FormName /
 In scriplet there are many places we used % String s =
 x.getName();
  %

 In struts 2 we can write s:bean name=BeanClass var=x/

 Now how can I use the x object in scriplet. As there are many
references
 of x already written, I don't want to change so much code for
 now.
Hence
 like to use scriplet only.

 Thanks


 On Wed, Aug 7, 2013 at 7:34 PM, Lukasz Lenart 
  lukaszlen...@apache.org
 wrote:

  You can try to write your own ActionMapper which will extract
  request
  parameter action and base on that lookup for action.
 
  2013/8/7 Arpan arpan.deb...@gmail.com:
   Anybody to help here...
  
   Thanks in Advance.
  
  
   On Tue, Aug 6, 2013 at 7:43 PM, Arpan arpan.deb...@gmail.com
wrote:
  
   Hi All,
  
   We are migrating from struts1 to struts2.
  
   In our pages we have multiple buttons which through struts1
  DispatchAction
   can be guided  to different methods in Action class. For that
 we
need
   minimal changes. Such as
In action mapping if we add parameter=action and in JSP if
  the
URL
 is
   like x.do?action=method1, it happily directs the control to
   method1
in
   Action class.
  
   I got the bellow link for struts2, but for that also we need
  much
  changes
   to be done.
  
 

   
  
 
 http://struts.apache.org/development/2.x/docs/multiple-submit-buttons.html
  
   Is there any such way we do similar functionality in struts2
  with
  minimal
   changes.
  
   Thanks
  
  
  
 
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 

   
  
 



Re: [struts 2] java.io.FileNotFoundException: http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd

2013-08-07 Thread Sreekanth S. Nair
Try changing you xxx-validation.xml file dtd url declaration with the
latest available dtd inside xwork-core.jar

-- 
Thanks  Regards
Srikanth

On Wed, Aug 7, 2013 at 10:44 PM, John Boyer j...@rodaxsoft.com wrote:

 Hi:

 Suddenly, in-production, we're getting file-not-found errors for the
 xwork-validator-1.0.2.dtd at  http://www.opensymphony.com/xwork.

 How can resolve this problem? We're running Struts 2 v2.3.4.1

 Thanks, John

 -

 10:01:18 ERROR http-8443-1
 com.opensymphony.xwork2.validator.AnnotationActionValidatorManager - Caught
 exception while loading file XXX-validation.xml
 http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd - Class:
 sun.net.www.protocol.http.HttpURLConnection
 File: HttpURLConnection.java
 Method: getInputStream
 Line: 1311 - sun/net/www/protocol/http/HttpURLConnection.java:1311:-1
 ceptor.intercept(I18nInterceptor.java:176)
 ...

 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:619)
 Caused by: java.io.FileNotFoundException:
 http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd
 ...



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




Re: [struts 2] java.io.FileNotFoundException: http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd

2013-08-07 Thread Sreekanth S. Nair
use this

!DOCTYPE validators PUBLIC
-//Apache Struts//XWork Validator 1.0.2//EN
http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd;


-- 
Regards
Srikanth

On Wed, Aug 7, 2013 at 11:06 PM, John Boyer j...@rodaxsoft.com wrote:

 Hi Martin:

 Okay, but my validation XML is pointing to
 http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd, which is no
 longer available. What should it point to now?

 Thanks, John

 ---
 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE validators PUBLIC -//OpenSymphony Group//XWork Validator
 1.0.2//EN
http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd;
 validators

 field name=user.password
 field-validator type=requiredstring
 messagePassword is required/message
 /field-validator
 /field

 field name=user.password
 field-validator type=stringlength
 param name=minLength8/param
 messagePassword must be eight characters or
 more./message
 /field-validator
 /field

 field name=confirmedPassword
 field-validator type=requiredstring
 messagePassword is required/message
 /field-validator
 /field

 field name=confirmedPassword
 field-validator type=stringlength
 param name=minLength8/param
 messagePassword must be eight characters or
 more./message
 /field-validator
 /field

 /validators

 On Aug 7, 2013, at 10:30 AM, Martin Gainty mgai...@hotmail.com wrote:

  Hi John
 
  xwork-validator-1.0.2.dtd *should* be in xwork-core-version.jar
 
  jar -tvf xwork-version.jar | grep xwork-validator
 
  ?
  Martin Gainty
  __
  Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
  Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
 Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
 Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
 dient lediglich dem Austausch von Informationen und entfaltet keine
 rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
 E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
 
  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.
 
 
  From: j...@rodaxsoft.com
  Subject: [struts 2] java.io.FileNotFoundException:
 http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd
  Date: Wed, 7 Aug 2013 10:14:21 -0700
  To: user@struts.apache.org
 
  Hi:
 
  Suddenly, in-production, we're getting file-not-found errors for the
 xwork-validator-1.0.2.dtd at  http://www.opensymphony.com/xwork.
 
  How can resolve this problem? We're running Struts 2 v2.3.4.1
 
  Thanks, John
 
  -
 
  10:01:18 ERROR http-8443-1
 com.opensymphony.xwork2.validator.AnnotationActionValidatorManager - Caught
 exception while loading file XXX-validation.xml
  http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd - Class:
 sun.net.www.protocol.http.HttpURLConnection
  File: HttpURLConnection.java
  Method: getInputStream
  Line: 1311 - sun/net/www/protocol/http/HttpURLConnection.java:1311:-1
  ceptor.intercept(I18nInterceptor.java:176)
   ...
 
 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:619)
  Caused by: java.io.FileNotFoundException:
 http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd
   ...
 
 
 
  -
  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: Getting lists back from struts

2013-08-07 Thread Sreekanth S. Nair
Check this tutorial might help you
http://www.mkyong.com/struts2/how-to-set-default-value-for-multiple-checkboxes-in-struts-2/

-- 
Thanks  Regards
Srikanth
Software Developer

eGovernments Foundations
www.egovernments.org
Mob : 9980078913



On Wed, Aug 7, 2013 at 7:13 PM, Fabian Richter frich...@mtg.de wrote:

 Hi

 I have encountered this issue a couple of times, always found a way to
 code around but now I really need to ask:

 Can struts create lists/arrays (or whatever collection) when e.g. using

 public class MyAction extends ActionSupport {
   public ListChoice getChoices() {
  
   }
   
   public ListString getPreSelectedChoices() {
  // returns a list of Choice.getKey(), which is a String
  
   }
  }

  public class Choice {
  public String getKey() { ...}
  public String getDisplayName() { ... }
  
  }

  ww:checkboxlist name=myChoice
   list=%{choices}
   listKey=%{'key'}
   listValue=%{'displayName'}
   value=%{preSelectedChoices} /

 The selected values are sent to

 public void setMyChoice(String myChoice){
 ...
 }

 correct? There is no way somthing like

 public void setMyChoice(String[] myChoice){
 ...
 }

 works in struts?

 If not, whats the common way to get the values back from the String
 myChoice? Use Split on it?

 Thank you!

 Best
 Fabian




Re: Annotation Support for bypassing prepare

2013-08-07 Thread Sreekanth S. Nair
With all gratitude, I strongly disagree with that idea . That bring more
clumsiness to big strust2 applications. And the idea of taking an array of
Prepare is a good idea but don't you think it consumes a pinch of runtime
performance.


Re: Annotation Support for bypassing prepare

2013-08-07 Thread Sreekanth S. Nair
Guess same performance concern is applicable for that as well. Any ideas of
making it simpler for existing app without much coding, performance and
clumsiness could be better. And i think @SkipPreapre at method level gives
more visibility than at class level
@SkipPrepare({xdsdasds,ydsdsdsdsds,zsdsdsdsdsds}).

-- 
Thanks  Regards
Srikanth
Software Developer

eGovernments Foundations
www.egovernments.org
Mob : 9980078913



On Thu, Aug 8, 2013 at 9:42 AM, Paul Benedict pbened...@apache.org wrote:

 Not an array of prepares, but an array of strings for which execute
 methods the Preaparable callback should be excluded.
 On Aug 7, 2013 11:09 PM, Sreekanth S. Nair 
 sreekanth.n...@egovernments.org wrote:

  With all gratitude, I strongly disagree with that idea . That bring more
  clumsiness to big strust2 applications. And the idea of taking an array
 of
  Prepare is a good idea but don't you think it consumes a pinch of runtime
  performance.
 



Re: Annotation Support for bypassing prepare

2013-08-07 Thread Sreekanth S. Nair
I admit it, thats why i mentioned it as a pinch of performance :) .

-- 
Thanks  Regards
Srikanth
Software Developer

eGovernments Foundations
www.egovernments.org
Mob : 9980078913



On Thu, Aug 8, 2013 at 10:57 AM, Paul Benedict pbened...@apache.org wrote:

 I don't see a performance concern here. Checking a few strings isn't going
 to slow down anything.
 On Aug 8, 2013 12:06 AM, Sreekanth S. Nair 
 sreekanth.n...@egovernments.org wrote:

  Guess same performance concern is applicable for that as well. Any ideas
 of
  making it simpler for existing app without much coding, performance and
  clumsiness could be better. And i think @SkipPreapre at method level
 gives
  more visibility than at class level
  @SkipPrepare({xdsdasds,ydsdsdsdsds,zsdsdsdsdsds}).
 
  --
  Thanks  Regards
  Srikanth
  Software Developer
  
  eGovernments Foundations
  www.egovernments.org
  Mob : 9980078913
  
 
 
  On Thu, Aug 8, 2013 at 9:42 AM, Paul Benedict pbened...@apache.org
  wrote:
 
   Not an array of prepares, but an array of strings for which execute
   methods the Preaparable callback should be excluded.
   On Aug 7, 2013 11:09 PM, Sreekanth S. Nair 
   sreekanth.n...@egovernments.org wrote:
  
With all gratitude, I strongly disagree with that idea . That bring
  more
clumsiness to big strust2 applications. And the idea of taking an
 array
   of
Prepare is a good idea but don't you think it consumes a pinch of
  runtime
performance.
   
  
 



Re: sj:select default value not load

2013-08-07 Thread Sreekanth S. Nair
here the value of why is representing key or value ? The value your are
providing to *value* attribute (value=%{why}), it should always represent
the key (not the display value).

-- 
Thanks  Regards
Srikanth
Software Developer

eGovernments Foundations
www.egovernments.org
Mob : 9980078913



On Sat, Aug 3, 2013 at 1:30 AM, john lee sh_thorn_b...@yahoo.com wrote:


 For struts2 sj:select tag from google

 s:url id=remoteurl action=KeywordcategoryAction/
 sj:select
 href=%{remoteurl}
 id=language
 onChangeTopics=reloadsecondlist
 name=language
 list=languageObjList
 listKey=myKey
 listValue=myValue
 emptyOption=true
 headerKey=-1
 headerValue=Select Category
 value=why
 /

 for above jsp file, i can retrieve the data from KeywordcategoryAction for
 no problem

 but, the default value(why) as defined from KeywordcategoryAction did not
 working at all

 I try to change from value=why to value=%{why}, but still not working,

 the setting inside  KeywordcategoryAction is the following
...
 public String getWhy(String why) { return why; }
 public void setWhy(String why) { this.why=why; }
 why=Temperature;
 return success;


 please advise, thanks in advance

 john


Re: Annotation Support for bypassing prepare

2013-08-03 Thread Sreekanth S. Nair
Attaching SkippablePrepareInterceptor and SkipPrepare Annotation Code, I
hope it may helpful for other who have similar requirement. Struts2 can
include it, if strust2 developer think its worthy.


-- 
Thanks  Regards
Srikanth

On Sat, Jul 27, 2013 at 12:00 AM, Sreekanth S. Nair 
sreekanth.n...@egovernments.org wrote:

 Hi Chris, i already answered for the same, we have more than 50 modules
 and 1000 of Action classes. Doing what you say is not an easy task for us
 instead of adding a simple annotation on those method.

 --
 Thanks  Regards
 Srikanth
 Software Developer
 
 eGovernments Foundations
 www.egovernments.org
 Mob : 9980078913
 


 On Fri, Jul 26, 2013 at 11:55 PM, Chris Pratt thechrispr...@gmail.comwrote:

 Why not just take your action and move the Preparable interface and
 prepare() function to a subclass with the methods that require it's
 support?  Seems a lot easier than creating more infrastructure.
   (*Chris*)


 On Fri, Jul 26, 2013 at 11:22 AM, Sreekanth S. Nair 
 sreekanth.n...@egovernments.org wrote:

  Okay, i can create one for mine, leaving to struts2 framework developer
  whether strust2 need an annotation like @SkipPrepare. Thanks for your
  support Dave.
 
  --
  Thanks  Regards
  Srikanth
  Software Developer
  
  eGovernments Foundations
  www.egovernments.org
  Mob : 9980078913
  
 
 
  On Fri, Jul 26, 2013 at 11:42 PM, Dave Newton davelnew...@gmail.com
  wrote:
 
   Technically it already *is* part of S2 in the MethodFilterInterceptor
   class.
  
   I'm not particularly excited about an annotation to skip Prepareable,
 but
   I'm not fundamentally opposed, either.
  
   Dave
  
  
  
   On Fri, Jul 26, 2013 at 2:07 PM, Sreekanth S. Nair 
   sreekanth.n...@egovernments.org wrote:
  
The idea is precisely good, thats what i wanted but do you think it
  will
   be
a good addition to strust2 framework by any chance then i hope the
 same
could be a part of struts2 framework itself.
   
--
Thanks  Regards
Srikanth
Software Developer

eGovernments Foundations
www.egovernments.org
Mob : 9980078913

   
   
On Fri, Jul 26, 2013 at 7:01 PM, Dave Newton davelnew...@gmail.com
 
wrote:
   
 If you'll note in the docs the interceptor extends
MethodFilterInterceptor,
 so one trivial way to fix it is to configure the interceptor for
 the
 specific actions.

 Another option is to take the existing interceptor and extend it
 to
support
 something like annotations, a naming convention, etc. to skip
 either
 specific or general methods.

 E.g., if your validation call was always named the same thing, you
   could
 either configure the interceptor package-wide, or change the
 prepare
 interceptor to always skip preparation for methods annotated with
 @DoNotPrepare, etc.

 Dave



 On Fri, Jul 26, 2013 at 9:19 AM, Sreekanth S. Nair 
 sreekanth.n...@egovernments.org wrote:

  Too many methods :( needs its own prepare then.
 
  --
  Thanks  Regards
  Srikanth
  Software Developer
  
  eGovernments Foundations
  www.egovernments.org
  Mob : 9980078913
  
 
 
  On Fri, Jul 26, 2013 at 6:37 PM, Dave Newton 
  davelnew...@gmail.com
  wrote:
 
   Did you try `prepareWhateverMethodThatNeedsPrepare`? I don't
  recall
if
  that
   works or not.
  
  
   On Fri, Jul 26, 2013 at 7:24 AM, Sreekanth S. Nair 
   sreekanth.n...@egovernments.org wrote:
  
No i can't do that, because that Action contains other
 method
   which
  needs
Prepare, the only option i can think of is moving these Ajax
   method
 to
   some
other Action which is not extending Prepareable. But as of
 now
   its
 very
hard because so many resources i have to change. Any other
  idea?
   
--
Thanks  Regards
Srikanth
Software Developer

eGovernments Foundations
www.egovernments.org
Mob : 9980078913

   
   
On Fri, Jul 26, 2013 at 4:44 PM, Paul Benedict 
pbened...@apache.org
 
wrote:
   
 Have you thought of removing the implements Preparable
 from
your
action?
 That will do it.
 On Jul 26, 2013 6:12 AM, Sreekanth S. Nair 
 sreekanth.n...@egovernments.org wrote:

  Suppose i need to call any ajax validation on the same
   Action,
it
  unnecessarily run in to prepare. Where that ajax
 validation
 doesn't
  required to call prepare

How to initiate the select tag with empty list

2013-08-02 Thread Sreekanth S. Nair
Hi,
Sometimes we need to provide an empty select tag which will be
populated later depending on some value in form using ajax. Now its
mandatory to provide at least an empty list to make select to work. Why
can't struts2 select tag can handle this case, where we can render the
select tag even we dont provide a prepopulated list?


-- 
Thanks  Regards
Srikanth


Re: Is there any security issue or any side effect if we dont use conversionError interceptor?

2013-08-02 Thread Sreekanth S. Nair
Any idea?

-- 
Thanks  Regards
Srikanth


On Thu, Aug 1, 2013 at 4:49 PM, Sreekanth S. Nairwrote:

 Hi,
 Is there any security issue or any side effect if we don't use
 conversionError interceptor apart from it wont report the conversion errors?

 --
 Thanks  Regards
 Srikanth



Re: Is there any security issue or any side effect if we dont use conversionError interceptor?

2013-08-02 Thread Sreekanth S. Nair
Yup ;) and thanks.

-- 
Thanks  Regards
Srikanth
Software Developer

eGovernments Foundations
www.egovernments.org
Mob : 9980078913



On Fri, Aug 2, 2013 at 1:19 PM, Lukasz Lenart lukaszlen...@apache.orgwrote:

 2013/8/2 Sreekanth S. Nair sreekanth.n...@egovernments.org:
  Any idea?

 There be no problem with that - CEI is used to display conversion
 errors, there is no logic inside used by some vital parts of
 framework. But I would rather find the origins of the problem you have
 - as I understand your application was working fine with previous
 version?


 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: How to initiate the select tag with empty list

2013-08-02 Thread Sreekanth S. Nair
That i know Chris. are you getting away from the question, i was talking
about struts select tag. Apart from tht, I got problem with normal html
select with struts2, its not generating _multiselect_xyz

-- 
Thanks  Regards
Srikanth

On Fri, Aug 2, 2013 at 9:41 PM, Chris Pratt thechrispr...@gmail.com wrote:

 It can, just use a regular select, instead of the s:select
   (*Chris*)


 On Fri, Aug 2, 2013 at 12:36 AM, Sreekanth S. Nair 
 sreekanth.n...@egovernments.org wrote:

  Hi,
  Sometimes we need to provide an empty select tag which will be
  populated later depending on some value in form using ajax. Now its
  mandatory to provide at least an empty list to make select to work. Why
  can't struts2 select tag can handle this case, where we can render the
  select tag even we dont provide a prepopulated list?
 
 
  --
  Thanks  Regards
  Srikanth
 



  1   2   >