Log4j 2 configuration in struts 2.5.x

2017-10-24 Thread ravirajmishr...@gmail.com
Hello, Can Anyone help me with the log4j 2 configuration in struts 2.5.x application. The configuration for log4j2 is different as compared to that of log4j My questions are. 1. Which Jar files I need to add to my application ? 2. How to write the log4j.properties file for log4j2 ? Thanks

Re: Log4j 2 configuration in struts 2.5.x

2017-10-24 Thread Yasser Zamani
On 10/24/2017 2:06 PM, ravirajmishr...@gmail.com wrote: > Can Anyone help me with the log4j 2 configuration in struts 2.5.x application. You correctly ask this in user list but please don't cross post to dev list. Please see Guides of [1]. [1] http://struts.apache.org/mail.html

Struts 2 JSP Taglib error

2017-10-24 Thread ravirajmishr...@gmail.com
Hello, I am facing the following problem SEVERE: Servlet.service() for servlet jsp threw exception java.lang.ClassCastException: org.apache.tiles.jsp.taglib.UseAttributeTag cannot be cast to javax.servlet.jsp.tagext.Tag at

Re: Struts 2 JSP Taglib error

2017-10-24 Thread Yasser Zamani
On 10/24/2017 10:10 AM, ravirajmishr...@gmail.com wrote: > java.lang.ClassCastException: org.apache.tiles.jsp.taglib.UseAttributeTag > cannot be cast to javax.servlet.jsp.tagext.Tag There are several possible things. Please search the web for "cannot be cast to javax.servlet.jsp.tagext.Tag"

Re: Struts 2 JSP Taglib error

2017-10-24 Thread Christoph Nenning
Hi, I have often seen this when application included something jsp-api.jar or jee-api.jar (other filenames are possible). That means Serlvet-Container as another jar containing javax.servlet.jsp.tagext.Tag then application which causes that ClassCastException. Regards, Christoph > From:

Re: Struts 2 JSP Taglib error

2017-10-24 Thread Martin Gainty
From: Christoph Nenning Sent: Tuesday, October 24, 2017 7:40 AM To: Struts Users Mailing List Subject: Re: Struts 2 JSP Taglib error Hi, I have often seen this when application included something jsp-api.jar or jee-api.jar

Re: Upgrading Struts 2.2.3 to 2.3.34

2017-10-24 Thread Ej Magdaluyo
Hi Yasser, Thank you for this. It seems that through your suggestion, the 403 error is gone. We just got a bit confused since our pre-migration app worked even though type="tiles" was not included. The only problem now seems that the page is only partially loaded, and the data is not being

Re: Upgrading Struts 2.2.3 to 2.3.34

2017-10-24 Thread Yasser Zamani
On 10/24/2017 4:21 PM, Ej Magdaluyo wrote: > is it possible to directly call the jsp from struts.xml > instead? Absolutely. try removing `type='tiles'` and correct the path (add `/jsp/`) as below: /jsp/viewMyRequest.jsp - To

Re: Upgrading Struts 2.2.3 to 2.3.34

2017-10-24 Thread Yasser Zamani
On 10/24/2017 6:11 PM, Ej Magdaluyo wrote: > Unfortunately, we are getting the 403 error using that as well. I am not > sure why though. It seems as if the application is not able to access the > jsp folder on this action. > > I tried that path on our pre-migrated version and there were no

Re: Upgrading Struts 2.2.3 to 2.3.34

2017-10-24 Thread Ej Magdaluyo
HI Yasser, Unfortunately, we are getting the 403 error using that as well. I am not sure why though. It seems as if the application is not able to access the jsp folder on this action. I tried that path on our pre-migrated version and there were no issues. It seems to only be denying permission

Re: Upgrading Struts 2.2.3 to 2.3.34

2017-10-24 Thread Ej Magdaluyo
Hi Yasser, We tried the ff: Mapped other direct jsp result to viewAction -> successful Mapped other action which has direct jsp result to viewMyRequest.jsp -> error 403 It seems that the viewMyRequest.jsp is the only one with the issue. Would you have any clue as to what may be the cause of

Re: Upgrading Struts 2.2.3 to 2.3.34

2017-10-24 Thread Yasser Zamani
On 10/24/2017 7:35 PM, Ej Magdaluyo wrote: > It seems that the viewMyRequest.jsp is the only one with the issue. Would > you have any clue as to what may be the cause of this permission issue? So you should come back to tile result because the problem is with that jsp file itself then your