Re: Mirgrating to struts 2.5.30 from 2.3.37

2023-05-18 Thread Lukasz Lenart
czw., 18 maj 2023 o 08:57 Rohan Patil7 
napisał(a):
>
> Yes, this is the correct file. As it was a working file already, so we also 
> did not change anything in login. jsp.

Maybe you have changed in some other part of your app which affects
the logon.jsp - we haven't released a new version of Struts 2.5.30
since then.


Regards
-- 
Łukasz

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



RE: Mirgrating to struts 2.5.30 from 2.3.37

2023-05-18 Thread Rohan Patil7
Yes, this is the correct file. As it was a working file already, so we also did 
not change anything in login. jsp.

-Original Message-
From: Lukasz Lenart  
Sent: 18 May 2023 12:18
To: Struts Users Mailing List 
Subject: [EXTERNAL] Re: Mirgrating to struts 2.5.30 from 2.3.37

czw., 18 maj 2023 o 08:40 Rohan Patil7 
napisał(a):
> Yes this file worked with 2.5, and regarding dojo plugin, we are not using 
> struts dojo plugin in our project but we are using dojo separately in our 
> code for UI purposes and independent from Struts.

If this already worked with Struts 2.5.30 the issue has nothing to do with 
Struts, I would review the latest changes in your code. Also this login.txt has 
no reference to Struts (neither tags nor classes) also the exceptions says 
about "logon.jsp" - is it the right file?


Regards
--
Łukasz

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



Re: Mirgrating to struts 2.5.30 from 2.3.37

2023-05-18 Thread Lukasz Lenart
czw., 18 maj 2023 o 08:40 Rohan Patil7 
napisał(a):
> Yes this file worked with 2.5, and regarding dojo plugin, we are not using 
> struts dojo plugin in our project but we are using dojo separately in our 
> code for UI purposes and independent from Struts.

If this already worked with Struts 2.5.30 the issue has nothing to do
with Struts, I would review the latest changes in your code. Also this
login.txt has no reference to Struts (neither tags nor classes) also
the exceptions says about "logon.jsp" - is it the right file?


Regards
-- 
Łukasz

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



RE: Mirgrating to struts 2.5.30 from 2.3.37

2023-05-18 Thread Rohan Patil7
Yes this file worked with 2.5, and regarding dojo plugin, we are not using 
struts dojo plugin in our project but we are using dojo separately in our code 
for UI purposes and independent from Struts.  

-Original Message-
From: Lukasz Lenart  
Sent: 18 May 2023 11:54
To: Struts Users Mailing List 
Subject: [EXTERNAL] Re: Mirgrating to struts 2.5.30 from 2.3.37

czw., 18 maj 2023 o 08:20 Rohan Patil7 
napisał(a):
>
> PFA login.jsp file. We did not change anything in login.jsp.

Did this file already work with Struts 2.5? I see you are using Dojo, but the 
Struts 2 Dojo plugin has been removed and Dojo isn't directly supported by 
Struts 2.5


Regards
--
Łukasz
+ 48 606 323 122 
+ INVALID URI REMOVED
+ =DwIFaQ=jf_iaSHvJObTbx-siA1ZOg=Ll_FdyInzbB4Wc0Goy3FmVqPQqouvZbKx
+ C2VA2-3Dhw=KPZsty0yOidIs3smtWTanZ_2MmfGVRc4ujRgeHXqxzi9XJvGylpNdBui8
+ 3cR3mK2=VLmnh2wviQ_4KCvBwgqbA5c2ZnQlD9k1LksfoMwJB60=

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



Re: Mirgrating to struts 2.5.30 from 2.3.37

2023-05-18 Thread Lukasz Lenart
czw., 18 maj 2023 o 08:20 Rohan Patil7 
napisał(a):
>
> PFA login.jsp file. We did not change anything in login.jsp.

Did this file already work with Struts 2.5? I see you are using Dojo,
but the Struts 2 Dojo plugin has been removed and Dojo isn't directly
supported by Struts 2.5


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: Mirgrating to struts 2.5.30 from 2.3.37

2023-05-18 Thread Rohan Patil7
PFA login.jsp file. We did not change anything in login.jsp.

Thanks & Regards
Rohan Patil

-Original Message-
From: Lukasz Lenart  
Sent: 18 May 2023 11:32
To: Struts Users Mailing List 
Subject: [EXTERNAL] Re: Mirgrating to struts 2.5.30 from 2.3.37

czw., 18 maj 2023 o 07:54 Rohan Patil7 
napisał(a):
>
> Yes, I have followed the migration doc, and with specific changes, it was 
> working for some time and suddenly it stopped working giving Error 500 on UI.

If it worked and now stopped, I would review the latest changes to your 
/pageComponents/logon.jsp as suggested by Yasser.


Regards
--
Łukasz
+ 48 606 323 122 
+ INVALID URI REMOVED
+ =DwIFaQ=jf_iaSHvJObTbx-siA1ZOg=Ll_FdyInzbB4Wc0Goy3FmVqPQqouvZbKx
+ C2VA2-3Dhw=127WicSsKYkR5efGCL44ruV5CRgq4zCavajnQnEKUzOIKbuenuz7tf0x2
+ NlUpce9=DgAZLRlvxLJHo05TDQlCiSwIL0368YOw_XFYJOZ4taI=

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

<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="/WEB-INF/tiles-jsp.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/tld/chl-i18n.tld" prefix="i18n"%>
<%@ taglib uri="/WEB-INF/tld/chl-desktop.tld" prefix="desktop"%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%>

<%@page import="com.ibm.icm.chl.console.search.actions.Util"%>
<%@ page import="com.ibm.icm.chl.console.Constants"%>
<%@ page import="com.ibm.icm.chl.console.session.ReposSession"%>
<%@ page import="com.ibm.icm.edc.ral.EDiscoveryServiceConstants"%>
<%@ page import="com.ibm.websphere.security.WSSecurityHelper"%>
<%@ page import="java.util.Locale" %>

<%
((HttpServletResponse) response).setHeader("X-Frame-Options", 
"SAMEORIGIN");
String dojoLocale = (String) 
request.getSession().getAttribute(Constants.DOJO_LOCALE);
 
String dojodebug1 = (System.getenv(Constants.DOJO_DEBUG) != null) ? 
System.getenv(Constants.DOJO_DEBUG) : "false";
if (session.getAttribute(Constants.DEBUG_PARAM) != null)
dojodebug1 = session.getAttribute(Constants.DEBUG_PARAM).toString();
if (dojodebug1 != null) {
session.setAttribute(Constants.DEBUG_PARAM, dojodebug1);
}

ServletContext context = request.getSession().getServletContext();
String buildLevel = (String)context.getAttribute(Constants.BUILD_LEVEL);
%>











@import 
"<%=request.getContextPath()%><%=Constants.DOJO_PATH_DEBUG%>/dojo/resources/dojo.css?<%=buildLevel%>";
@import 
"<%=request.getContextPath()%><%=Constants.DOJO_PATH_DEBUG%>/dijit/themes/dijit.css?<%=buildLevel%>";
@import 
"<%=request.getContextPath()%><%=Constants.DOJO_PATH_DEBUG%>/dijit/themes/claro/claro.css?<%=buildLevel%>";
@import 
"<%=request.getContextPath()%><%=Constants.DOJO_PATH_DEBUG%>/dojox/grid/resources/Grid.css?<%=buildLevel%>";




@import 
"<%=request.getContextPath()%><%=Constants.DOJO_PATH%>/dojo/resources/dojo.css?<%=buildLevel%>";
@import 
"<%=request.getContextPath()%><%=Constants.DOJO_PATH%>/dijit/themes/dijit.css?<%=buildLevel%>";
@import 
"<%=request.getContextPath()%><%=Constants.DOJO_PATH%>/dijit/themes/claro/claro.css?<%=buildLevel%>";
@import 
"<%=request.getContextPath()%><%=Constants.DOJO_PATH%>/dojox/grid/resources/Grid.css?<%=buildLevel%>";








<% String lang = request.getLocale().getLanguage();
boolean isBidi = 
lang.equals((new Locale("he")).getLanguage()) ||
lang.equals((new Locale("ar")).getLanguage());
if(isBidi == true){
%>




<% } %>

${i18n:message(pageContext,"desktop.product.name")}





dojo.registerModulePath("edx", "../../edx");
dojo.registerModulePath("chldojo", "../../chldojo");




,
  encoding: 'utf',
  locale: '<%=dojoLocale%>'">




dojo.require("dojo.parser");
dojo.require(&q

Re: Mirgrating to struts 2.5.30 from 2.3.37

2023-05-18 Thread Lukasz Lenart
czw., 18 maj 2023 o 07:54 Rohan Patil7 
napisał(a):
>
> Yes, I have followed the migration doc, and with specific changes, it was 
> working for some time and suddenly it stopped working giving Error 500 on UI.

If it worked and now stopped, I would review the latest changes to
your /pageComponents/logon.jsp as suggested by Yasser.


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: Mirgrating to struts 2.5.30 from 2.3.37

2023-05-17 Thread Rohan Patil7
Yes, I have followed the migration doc, and with specific changes, it was 
working for some time and suddenly it stopped working giving Error 500 on UI.

Thanks & Regards
Rohan Patil

-Original Message-
From: Lukasz Lenart  
Sent: 18 May 2023 10:57
To: Struts Users Mailing List 
Subject: [EXTERNAL] Re: Mirgrating to struts 2.5.30 from 2.3.37

Did you follow the migration guidelines?
https://cwiki.apache.org/confluence/display/WW/Struts+2.3+to+2.5+migration 


Regards
-- 
Łukasz

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



Re: Mirgrating to struts 2.5.30 from 2.3.37

2023-05-17 Thread Lukasz Lenart
Did you follow the migration guidelines?
https://cwiki.apache.org/confluence/display/WW/Struts+2.3+to+2.5+migration


Regards
-- 
Łukasz

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



Re: Mirgrating to struts 2.5.30 from 2.3.37

2023-05-17 Thread Yasser Zamani

Hi Rohan,

Looks like something in logon.jsp is evaluated to null and you get 
NullPointerException. So I think firstly you need to debug jsp and see 
what's the root cause. If it's from Struts or not.


Regards,
Yasser

On 5/18/2023 8:29 AM, Rohan Patil7 wrote:

Hi team,

Earlier, we have upgraded from struts 2.3.37 to 2.5.30 and it was working fine, 
but later on we starting setting error as below and we stop seeing login page 
of our application

StackTrace of error:

[5/18/23 0:49:41:612 EDT] 008a ServletWrappe I 
com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0242I: [EDMClient] 
[/EDMClient] [/pageComponents/logon.jsp]: Initialization successful.
[5/18/23 0:49:41:632 EDT] 008a   I 
com.ibm.icm.chl.console.tools.SessionListener sessionCreated  HTTP Session 
"jEolWoRsMzFRf9mx__cZUCb" Created at Thu May 18 00:49:41 EDT 2023
[5/18/23 0:49:41:723 EDT] 008a ServletWrappe E 
com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: An exception 
was thrown by one of the service methods of the servlet 
[/pageComponents/logon.jsp] in application [EDMClient]. Exception created : 
[java.lang.NullPointerException
   at com.ibm._jsp._logon._jspService(_logon.java:536)
   at 
com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:99)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
   at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1235)
   at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:779)
   at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
   at 
com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179)
   at 
com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:122)
   at 
com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:220)
   at 
com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:143)
   at 
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:78)
   at 
com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:979)
   at 
com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1119)
   at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:1408)
   at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:198)
   at 
org.apache.tiles.request.servlet.ServletRequest.forward(ServletRequest.java:265)
   at 
org.apache.tiles.request.servlet.ServletRequest.doForward(ServletRequest.java:228)
   at 
org.apache.tiles.request.AbstractClientRequest.dispatch(AbstractClientRequest.java:57)
   at 
org.apache.tiles.request.render.DispatchRenderer.render(DispatchRenderer.java:47)
   at 
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:259)
   at 
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:397)
   at 
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:238)
   at 
org.apache.tiles.TilesContainerWrapper.render(TilesContainerWrapper.java:103)
   at 
org.apache.tiles.impl.mgmt.CachingTilesContainer.render(CachingTilesContainer.java:126)
   at 
org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java:158)
   at 
org.apache.struts2.result.StrutsResultSupport.execute(StrutsResultSupport.java:206)
   at 
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:375)
   at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:279)
   at 
org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:250)
   at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
   at 
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:179)
   at 
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
   at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
   at 
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)
   at 
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:49)
   at 

Mirgrating to struts 2.5.30 from 2.3.37

2023-05-17 Thread Rohan Patil7
Hi team,

Earlier, we have upgraded from struts 2.3.37 to 2.5.30 and it was working fine, 
but later on we starting setting error as below and we stop seeing login page 
of our application

StackTrace of error:

[5/18/23 0:49:41:612 EDT] 008a ServletWrappe I 
com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0242I: [EDMClient] 
[/EDMClient] [/pageComponents/logon.jsp]: Initialization successful.
[5/18/23 0:49:41:632 EDT] 008a   I 
com.ibm.icm.chl.console.tools.SessionListener sessionCreated  HTTP Session 
"jEolWoRsMzFRf9mx__cZUCb" Created at Thu May 18 00:49:41 EDT 2023
[5/18/23 0:49:41:723 EDT] 008a ServletWrappe E 
com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: An exception 
was thrown by one of the service methods of the servlet 
[/pageComponents/logon.jsp] in application [EDMClient]. Exception created : 
[java.lang.NullPointerException
  at com.ibm._jsp._logon._jspService(_logon.java:536)
  at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:99)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
  at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1235)
  at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:779)
  at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
  at 
com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179)
  at 
com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:122)
  at 
com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:220)
  at 
com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:143)
  at 
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:78)
  at 
com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:979)
  at 
com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1119)
  at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:1408)
  at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:198)
  at 
org.apache.tiles.request.servlet.ServletRequest.forward(ServletRequest.java:265)
  at 
org.apache.tiles.request.servlet.ServletRequest.doForward(ServletRequest.java:228)
  at 
org.apache.tiles.request.AbstractClientRequest.dispatch(AbstractClientRequest.java:57)
  at 
org.apache.tiles.request.render.DispatchRenderer.render(DispatchRenderer.java:47)
  at 
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:259)
  at 
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:397)
  at 
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:238)
  at 
org.apache.tiles.TilesContainerWrapper.render(TilesContainerWrapper.java:103)
  at 
org.apache.tiles.impl.mgmt.CachingTilesContainer.render(CachingTilesContainer.java:126)
  at 
org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java:158)
  at 
org.apache.struts2.result.StrutsResultSupport.execute(StrutsResultSupport.java:206)
  at 
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:375)
  at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:279)
  at 
org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:250)
  at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
  at 
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:179)
  at 
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
  at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
  at 
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)
  at 
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:49)
  at 
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
  at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
  at 
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.doIntercept(ConversionErrorInterceptor.java:142)