Link to home
Start Free TrialLog in
Avatar of MJ
MJFlag for United States of America

asked on

How to debug statement "IntraLearnLogOnMgr mgr = new IntraLearnLogOnMgr();"

I just started to create a test page. I have this line that causes my page to bomb:

IntraLearnLogOnMgr mgr = new IntraLearnLogOnMgr();


I don't know where to start or how to debug this. I'm importing everything I need but I get a :

We're sorry, but the page you requested could not be found. (acts as if ipage doesn't exist)

I don't do a lot of java or JSP.  What steps should i take to  figure out what's wrong?

//////////////////////////////////////////////////////////////////
complete code
//////////////////////////////////////////////////////////////////

<%@ page import="java.sql.*,java.util.*,java.io.*,javax.servlet.*,javax.servlet.http.*,java.net.*,com.brocade.intralearn.*" %>
<%
      String connString = "thunder";
      String userId=(String)request.getHeader("SM_USER");
      
      Hashtable params = new Hashtable();
      IntraLearnLogOnMgr mgr = new IntraLearnLogOnMgr();
      Connection con = mgr.getConnection(connString);
      Registered reg = mgr.profileExist(con, params, userId);
      
%>

userId: <%=userID%>
<br><br>
REGISTRATION STATUS:<%=reg%>
Avatar of MJ
MJ
Flag of United States of America image

ASKER

correction; userId: <%=userId%>
Avatar of kokchoon78
kokchoon78

Do u mean this statment "IntraLearnLogOnMgr mgr = new IntraLearnLogOnMgr();" cause the error ? If you are using tomcat, u can simply check the tomcat's log file.

How if you remove / comment out the "IntraLearnLogOnMgr mgr = new IntraLearnLogOnMgr();", the page shown ?

show us the code for the IntraLearnLogOnMgr ?
ASKER CERTIFIED SOLUTION
Avatar of copyPasteGhost
copyPasteGhost
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
what app server r u using. I agree with ghost, but the .jsp file location can be anywhere inside your webapp except WEB-INF.

also, I would suggest to start from a simple jsp page with no code in

xyz.jsp:
<%@ page import="com.brocade.intralearn.*" %>
this is xyz.jsp page

if you get this page loaded then add a line to see if it gives you any error:

xyz.jsp:
<%@ page import="com.brocade.intralearn.*" %>
this is xyz.jsp page
<%     IntraLearnLogOnMgr mgr = new IntraLearnLogOnMgr(); %>