BO XI R2
I had a automatic login working with Crystal Report Server. After I migrated to BO XI R2 I keep getting:
The requested resource (/businessobjects/enterprise115/desktoplaunch/InfoView/logon/logon.objectTST2003TEST.BEDFORD.PROGRESS.COM@10021JWxiHWjsxSluBi5y10020JrO7WBiNUxyhOzUl) is not available
My code reades:
<%@ page import = "com.crystaldecisions.sdk.occa.infostore.*,
com.crystaldecisions.sdk.plugin.desktop.common.*,
com.crystaldecisions.sdk.framework.*,
com.crystaldecisions.sdk.framework.ISessionMgr,
com.crystaldecisions.sdk.framework.CrystalEnterprise,
com.crystaldecisions.sdk.framework.IEnterpriseSession,
com.crystaldecisions.sdk.occa.security.*,
com.crystaldecisions.sdk.properties.*,
com.crystaldecisions.sdk.exception.SDKException"
%>
<%
try {
/* Log on using the Enterprise SDK */
IEnterpriseSession enterpriseSession = CrystalEnterprise.getSessionMgr().logon("user", "pwd", "tst2003test:6400", "secEnterprise");
String logonToken = enterpriseSession.getLogonTokenMgr().getDefaultToken();
/* URL to the InfoView logon page - Ensure that the URL to the Java InfoView's logon page is correct. */
String infoViewURL =" + logonToken;
/* URL request */
response.sendRedirect(infoViewURL);
}
catch(SDKException sdkEx) {
out.println(sdkEx);
}
%>
I think the problem is on this line:
String logonToken = enterpriseSession.getLogonTokenMgr().getDefaultToken();
did this functions changed in R2 ?
thanks
I had a automatic login working with Crystal Report Server. After I migrated to BO XI R2 I keep getting:
The requested resource (/businessobjects/enterprise115/desktoplaunch/InfoView/logon/logon.objectTST2003TEST.BEDFORD.PROGRESS.COM@10021JWxiHWjsxSluBi5y10020JrO7WBiNUxyhOzUl) is not available
My code reades:
<%@ page import = "com.crystaldecisions.sdk.occa.infostore.*,
com.crystaldecisions.sdk.plugin.desktop.common.*,
com.crystaldecisions.sdk.framework.*,
com.crystaldecisions.sdk.framework.ISessionMgr,
com.crystaldecisions.sdk.framework.CrystalEnterprise,
com.crystaldecisions.sdk.framework.IEnterpriseSession,
com.crystaldecisions.sdk.occa.security.*,
com.crystaldecisions.sdk.properties.*,
com.crystaldecisions.sdk.exception.SDKException"
%>
<%
try {
/* Log on using the Enterprise SDK */
IEnterpriseSession enterpriseSession = CrystalEnterprise.getSessionMgr().logon("user", "pwd", "tst2003test:6400", "secEnterprise");
String logonToken = enterpriseSession.getLogonTokenMgr().getDefaultToken();
/* URL to the InfoView logon page - Ensure that the URL to the Java InfoView's logon page is correct. */
String infoViewURL =" + logonToken;
/* URL request */
response.sendRedirect(infoViewURL);
}
catch(SDKException sdkEx) {
out.println(sdkEx);
}
%>
I think the problem is on this line:
String logonToken = enterpriseSession.getLogonTokenMgr().getDefaultToken();
did this functions changed in R2 ?
thanks