Skip to Content
author's profile photo Former Member
Former Member

Getting error importing com.crystaldecisions.sdk.framework.iSessionMgr

I am trying to create a login into the CMS server and I evidently don't have my setup quite right. I am new to BO and went through a tutorial I found that showed how to do the setup to create a new web app using JSP. My login code is listed below. When I run it, it fails on importing iSessionMgr. The others work so there must be something in my setup that isn't quite right. Can someone tell me where that should be located or what jar it's in to get my import to work?

The error I get is:

org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:

C:\Program Files\Business Objects\Tomcat\work\Catalina\localhost\smjsp2\org\apache\jsp\login_jsp.java:8: cannot resolve symbol

symbol : class iSessionMgr

location: package framework

import com.crystaldecisions.sdk.framework.iSessionMgr;

The code I'm trying to run is:

<%@ page import="com.crystaldecisions.sdk.framework.CrystalEnterprise" %>

<%@ page import="com.crystaldecisions.sdk.framework.IEnterpriseSession" %>

<%@ page import="com.crystaldecisions.sdk.framework.iSessionMgr" %>

<%@ page import="com.crystaldecisions.sdk.exception.SDKException" %>

<%

String CMS = request.getParameter("cms");

String userID = request.getParameter("user");

String password = request.getParameter("password");

String auth = request.getParameter("auth");

if ( CMS == null ) CMS = "";

if ( userID == null ) userID = "";

if ( password == null ) password = "";

if ( auth == null ) auth = "";

IEnterpriseSession enterpriseSession;

try

{

ISessionMgr mySessionMgr = CrystalEnterprise.getSessionMgr();

enterpriseSession = mySessionMgr.logon(userID, password, CMS, auth);

if (enterpriseSession != null)

{

session.setAttribute("EnterpriseSession", enterpriseSession);

IInfoStor iStor = (IInfoStore)

enterpriseSession.getServer("InfoStor");

session.setAttribute("InfoStor", iStore);

response.sendRedirect("home.html");

}

else response.sendRedirect("index.jsp");;

}

catch( SDKException mySDKExcept)

{

response.sendRedirect("index.jsp");

}

%>

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Apr 27, 2007 at 05:07 AM

    ISessionMgr? It's case-sensitive, was that a typo?

    Ted Ueda

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.