Hi
We have a dev license for Rollbase Private cloud and are getting the message "Do you want to open or save logout from appdesigner.rollbase.com ?" in the browser when logging out. Is there a way to prevent this?
Thanks
Please try using the attached file and update.
-Regards.
Hi -
We are aware of this issue and we have seen that this only happens in IE. Which browser are you using? (If IE, then can you please try using Chrome or Firefox).
We will be fixing this problem in the future releases (post 4.0), but in case you still need a workaround on IE, then please let us know.
-Regards.
Hi,
This is only in IE. What is the workaround please?
Please replace the attached logout.jsp in your environment under the following two locations and let me know.
\master\components
\prod1\components -- please make sure you replace files in all prods if you have multiple prods configured.
-Thanks
We get the below error now after updating that file.
By the way we are on Private Cloud v3.2.3.0 Win64
We are using a custom login page and logout should redirect to it. Not sure if that is the issue.
type Exception report
message Unable to compile class for JSP:
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: [14] in the generated java file: [D:\Apps\ABC2\apache-tomcat-7.0.39\work\Catalina\localhost\prod1\org\apache\jsp\components\logout_jsp.java] Only a type can be imported. com.rb.util.remote.ISharedFields resolves to a package An error occurred at line: [15] in the generated java file: [D:\Apps\ABC2\apache-tomcat-7.0.39\work\Catalina\localhost\prod1\org\apache\jsp\components\logout_jsp.java] Only a type can be imported. com.rb.core.services.mobile.MobileProperties resolves to a package An error occurred at line: [16] in the generated java file: [D:\Apps\ABC2\apache-tomcat-7.0.39\work\Catalina\localhost\prod1\org\apache\jsp\components\logout_jsp.java] Only a type can be imported. com.rb.core.ui.util.WebUtil resolves to a package An error occurred at line: [17] in the generated java file: [D:\Apps\ABC2\apache-tomcat-7.0.39\work\Catalina\localhost\prod1\org\apache\jsp\components\logout_jsp.java] Only a type can be imported. com.rb.util.system.SystemUtil resolves to a package An error occurred at line: 12 in the jsp file: /components/logout.jsp ISharedFields.FIELD_O cannot be resolved to a type 9: * Copyright (c) 2007-2012 Rollbase 10: */%> 11: <% 12: String redirectUrl = HttpUtil.getParameter(request, ISharedFields.FIELD_O, null); 13: String url = "logout2.jsp" + (CommonUtil.isNull(redirectUrl)?"":("?"+ISharedFields.FIELD_O+"="+redirectUrl)); 14: if(SharedProps.isPublicCloud()){ 15: response.sendRedirect(url); An error occurred at line: 13 in the jsp file: /components/logout.jsp CommonUtil cannot be resolved 10: */%> 11: <% 12: String redirectUrl = HttpUtil.getParameter(request, ISharedFields.FIELD_O, null); 13: String url = "logout2.jsp" + (CommonUtil.isNull(redirectUrl)?"":("?"+ISharedFields.FIELD_O+"="+redirectUrl)); 14: if(SharedProps.isPublicCloud()){ 15: response.sendRedirect(url); 16: return; An error occurred at line: 13 in the jsp file: /components/logout.jsp ISharedFields.FIELD_O cannot be resolved to a type 10: */%> 11: <% 12: String redirectUrl = HttpUtil.getParameter(request, ISharedFields.FIELD_O, null); 13: String url = "logout2.jsp" + (CommonUtil.isNull(redirectUrl)?"":("?"+ISharedFields.FIELD_O+"="+redirectUrl)); 14: if(SharedProps.isPublicCloud()){ 15: response.sendRedirect(url); 16: return; An error occurred at line: 14 in the jsp file: /components/logout.jsp SharedProps cannot be resolved 11: <% 12: String redirectUrl = HttpUtil.getParameter(request, ISharedFields.FIELD_O, null); 13: String url = "logout2.jsp" + (CommonUtil.isNull(redirectUrl)?"":("?"+ISharedFields.FIELD_O+"="+redirectUrl)); 14: if(SharedProps.isPublicCloud()){ 15: response.sendRedirect(url); 16: return; 17: } An error occurred at line: 33 in the jsp file: /components/logout.jsp WebUtil cannot be resolved 30: %> 31: <html> 32: <head> 33: <%=WebUtil.getJQuery() %> 34: <!-- window.location.href ='logout2.jsp'--> 35: <meta http-equiv="refresh" content="5; url='<%=url %>'>"> 36: <title>You are now logging out...</title> Stacktrace: org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:331) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:468) org.apache.jasper.compiler.Compiler.compile(Compiler.java:378) org.apache.jasper.compiler.Compiler.compile(Compiler.java:353) org.apache.jasper.compiler.Compiler.compile(Compiler.java:340) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:646) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) javax.servlet.http.HttpServlet.service(HttpServlet.java:728) com.rb.util.web.NoCacheFilter.doFilter(NoCacheFilter.java:41)
Can you please confirm the rollbase version you are on?
Or please share logout.jsp from your environment and I can share the modified file ?
Private Cloud v3.2.3.0 Win64
Can you please try with the attached file and let me know?
Please make sure you replace it in master and all prods as suggested in my previous post.
The following error is generated with the attached file:
--------------------------------------------------------------------------------
type Exception report
message Unable to compile class for JSP:
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: [14] in the generated java file: [D:\Apps\ABC2\apache-tomcat-7.0.39\work\Catalina\localhost\prod1\org\apache\jsp\components\logout_jsp.java]
Only a type can be imported. com.rb.core.services.mobile.MobileProperties resolves to a package
An error occurred at line: [15] in the generated java file: [D:\Apps\ABC2\apache-tomcat-7.0.39\work\Catalina\localhost\prod1\org\apache\jsp\components\logout_jsp.java]
Only a type can be imported. com.rb.core.ui.util.WebUtil resolves to a package
An error occurred at line: [16] in the generated java file: [D:\Apps\ABC2\apache-tomcat-7.0.39\work\Catalina\localhost\prod1\org\apache\jsp\components\logout_jsp.java]
Only a type can be imported. com.rb.util.system.SystemUtil resolves to a package
An error occurred at line: 11 in the jsp file: /components/logout.jsp
SharedProps cannot be resolved
8: * Copyright (c) 2007-2012 Rollbase
9: */%>
10: <%
11: if(SharedProps.isPublicCloud()){
12: response.sendRedirect("logout2.jsp");
13: return;
14: }
An error occurred at line: 30 in the jsp file: /components/logout.jsp
WebUtil cannot be resolved
27: %>
28: <html>
29: <head>
30: <%=WebUtil.getJQuery() %>
31: <!-- window.location.href ='logout2.jsp'-->
32: <meta http-equiv="refresh" content="5; url=logout2.jsp">
33: <title>You are now logging out...</title>
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:331)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:468)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:378)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:646)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
com.rb.util.web.NoCacheFilter.doFilter(NoCacheFilter.java:41)
Can you share the original logout.jsp from your installation ?
<%@page import="com.rb.core.services.mobile.a484"%>
<%@page import="p19.a321"%>
<%@page import="com.rb.util.system.a180"%>
<%@page import="com.rb.util.core.*"%>
<%@page import="com.rb.util.system.*"%>
<%@page import="com.rb.util.web.*"%>
<%/*
* Copyright (c) 2007-2012 Rollbase
*/%>
<%
if(a182.isPublicCloud()){
response.sendRedirect("logout2.jsp");
return;
}
%>
<%
response.setContentType(IEncoding.HTML_ENCODING);
String langCode = HttpUtil.getParameter(request, "language", "en");
if (langCode == null)
langCode = HttpUtil.getCookie(request, "language", "en");
Language lang = Language.getLanguage(langCode);
int menu = 11;
%>
<html>
<head>
<%=a321.getJQuery() %>
<!-- window.location.href ='logout2.jsp'-->
<meta http-equiv="refresh" content="5; url=logout2.jsp">
<title>You are now logging out...</title>
<style type="text/css">
.center {
text-align: center;
}
.top {
vertical-align: top;
}
.left {
text-align: left;
}
.right {
text-align: right;
}
.bold {
font-weight: bold;
}
.large {
font-size: 18px;
}
.body {
margin: 0;
border-style: none;
line-height: 100%;
word-spacing: normal;
letter-spacing: normal;
text-decoration: none;
text-transform: none;
text-align: left;
text-indent: 0ex;
background-color: #FFF;
font: 12px Arial;
color: #777777;
}
table {
empty-cells: show;
border-collapse: collapse;
font: 12px Arial;
}
.wide {
width: 100%;
}
.noHeight {
height: 0px;
}
</style>
<script type="text/javascript">
function executeLogout(){
$('#logoutSubmission').submit();
}
</script>
</head>
<body onload='executeLogout()' class='body pacific-bootstrap'>
<div class='wide center'>
<div class='wide'>
<table class='wide' cellpadding=0 cellspacing=0 border=0>
<tr>
<td valign='top' style='background-color: #fff'>
<div class='wide'>
<div class='wide' id='pageContent'>
<br>
<table class="wide noborder">
<tr>
<td class='wide center'>
<div>
<img id="loader-img" src="../images/loadinganim.gif" />
<span id="dont-close-text"><%= HtmlUtil.encode(lang.s("Logging_out_Please_dont_close_the_browser_window"))%></span>
</div>
<%
String sessionKillURL = null;
try {
sessionKillURL = a484.getProperties().getSessionKillURL();
} catch (Throwable t) {
}
if (sessionKillURL != null) {
%>
<form id='logoutSubmission' method="POST" action='<%=a484.getProperties().getSessionKillURL() %>' target="myIframe"></form>
<iframe name="myIframe" style="visibility: hidden; display: none" src='' "></iframe>
<% } %>
</td>
</tr>
</table>
</div>
</div>
</td>
</tr>
</table>
</div>
<br>
</div>
</body>
</html>
Please try using the attached file and update.
-Regards.
That worked. thanks
Hi,
Unfortunately this has stopped working since we upgraded to V4.0.1.0. Can we use the same logout.jsp from V3.2.3.0 (Win64) or can you provide an updated version for V4.0.1.0 (Win64) please with the fix in it.
thanks
Can you please share the latest logout.jsp from your installation?
-Thanks
<%@page import="p21.a662"%>
<%@page import="com.rb.core.services.mobile.a349"%>
<%@page import="p19.a157"%>
<%@page import="com.rb.util.system.a543"%>
<%@page import="com.rb.util.core.*"%>
<%@page import="com.rb.util.system.*"%>
<%@page import="com.rb.util.web.*"%>
<%/*
* Copyright (c) 2007-2012 Rollbase
*/%>
<%
String redirectUrl = HttpUtil.getParameter(request, a662.FIELD_O, null);
String url = "logout2.jsp" + (a634.isNull(redirectUrl)?"":("?"+a662.FIELD_O+"="+redirectUrl));
if(a563.isPublicCloud()){
response.sendRedirect(url);
return;
}
%>
<%
response.setContentType(IEncoding.HTML_ENCODING);
String langCode = HttpUtil.getParameter(request, "language", "en");
if (langCode == null)
langCode = HttpUtil.getCookie(request, "language", "en");
Language lang = Language.getLanguage(langCode);
int menu = 11;
%>
<html>
<head>
<%=a157.getJQuery() %>
<!-- window.location.href ='logout2.jsp'-->
<meta http-equiv="refresh" content="5; url='<%=url %>'>">
<title>You are now logging out...</title>
<style type="text/css">
.center {
text-align: center;
}
.top {
vertical-align: top;
}
.left {
text-align: left;
}
.right {
text-align: right;
}
.bold {
font-weight: bold;
}
.large {
font-size: 18px;
}
.body {
margin: 0;
border-style: none;
line-height: 100%;
word-spacing: normal;
letter-spacing: normal;
text-decoration: none;
text-transform: none;
text-align: left;
text-indent: 0ex;
background-color: #FFF;
font: 12px Arial;
color: #777777;
}
table {
empty-cells: show;
border-collapse: collapse;
font: 12px Arial;
}
.wide {
width: 100%;
}
.noHeight {
height: 0px;
}
</style>
<script type="text/javascript">
function executeLogout(){
$('#logoutSubmission').submit();
}
</script>
</head>
<body onload='executeLogout()' class='body pacific-bootstrap'>
<div class='wide center'>
<div class='wide'>
<table class='wide' cellpadding=0 cellspacing=0 border=0>
<tr>
<td valign='top' style='background-color: #fff'>
<div class='wide'>
<div class='wide' id='pageContent'>
<br>
<table class="wide noborder">
<tr>
<td class='wide center'>
<div>
<img id="loader-img" src="../images/loadinganim.gif" />
<span id="dont-close-text"><%= HtmlUtil.encode(lang.s("Logging_out_Please_dont_close_the_browser_window"))%></span>
</div>
<%
String sessionKillURL = null;
try {
sessionKillURL = a349.getProperties().getSessionKillURL();
} catch (Throwable t) {
}
if (sessionKillURL != null) {
%>
<form id='logoutSubmission' method="POST" action='<%=a349.getProperties().getSessionKillURL() %>' target="myIframe"></form>
<iframe name="myIframe" style="visibility: hidden; display: none" src='' "></iframe>
<% } %>
</td>
</tr>
</table>
</div>
</div>
</td>
</tr>
</table>
</div>
<br>
</div>
</body>
</html>
Please use the attached jsp and let me know if it solves the problem.
-Regards,
Manooj
Yes that has fixed it. Thanks