Solved

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

Posted on 2004-03-22
4
219 Views
Last Modified: 2010-04-01
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%>
0
Comment
Question by:894359
4 Comments
 

Author Comment

by:894359
ID: 10653864
correction; userId: <%=userId%>
0
 
LVL 4

Expert Comment

by:kokchoon78
ID: 10654526
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 ?
0
 
LVL 13

Accepted Solution

by:
copyPasteGhost earned 500 total points
ID: 10654618
if you make a java bean out of the IntraLearnLogOnMgr class

then it will work
if you use this...

<jsp:useBean class="com.brocade.intralearn.IntraLearnLogOnMgr " id="mgr" scope="page"/>
<%@ 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();
     Connection con = mgr.getConnection(connString);
     Registered reg = mgr.profileExist(con, params, userId);
     
%>

userId: <%=userID%>
<br><br>
REGISTRATION STATUS:<%=reg%>

Also be sure that your IntraLearnLogOnMgr.class file is located in this directory

WEB-INF/classes/com/brocade/intralearn/IntraLearnLogOnMgr.class

also all your .jsp files must be at the same level as the WEB-INF folder
Hope that helps,
ghost
0
 
LVL 14

Expert Comment

by:kennethxu
ID: 10655022
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(); %>
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
February 24, 2017 — On February 23, Travis Ormandy, a vulnerability researcher at Google, reported on Twitter (https://twitter.com/taviso/status/834900838837411840) that massive stores of data have been leaked by CloudFlare, a company that provide…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question