Very Frustrating error
Earlier My code was running on jakatata tomcat 3 Now i am tring to migrate to Tomcat 5.0.28. Every time I am getting this error.
Also My earlier code was on jdk 1.3 we have migrated to 1.5
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: /smp/src/login/Login.jsp(192,8) The end tag "</jsp:" is unbalanced
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:134)
org.apache.jasper.compiler.Parser.checkUnbalancedEndTag(Parser.java:1695)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1561)
org.apache.jasper.compiler.Parser.parse(Parser.java:126)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
[1795 byte] By [
rajpuniaa] at [2007-10-2 14:26:56]

[nobr]<%--****************************************************************************
*
* File name:Login.jsp
*
* Author:Swetha Sivaram
*
* Creation Date :22 March 2003
*
* Description:This file contains the login module
*
* Modification History :
*
*Date: 24 may 2003
*Change made by: Amit Shah
*Description: Changes made in the appearence of the page
*
* *************************************************************************--%>
<html>
<head>
<title>INGenius SMP</title>
<SCRIPT SRC="../common/javascript/ValidateCommon.js"></SCRIPT>
<script language = "JavaScript">
function validation() {
var type = "o";
retVal = validateStrField(document.loginindex.name, true, "Login");
if (!retVal) {
return retVal;
}
retVal = validateStrField(document.loginindex.password,
true,
"Password");
if (!retVal) {
return retVal;
}
var str = new String("" + document.loginindex.name.value);
// alert("str is "+str);
if (str.charAt(0) == 'o' || str.charAt(0) == 'O') {
return true;
} else if (str.charAt(0) > '0' && str.charAt(0) < '9') {
// alert("in else");
return true;
} else {
alert("Please enter a valid login");
document.loginindex.name.focus();
document.loginindex.name.select();
return false;
}
return retVal;
}
</script>
<script language="JavaScript">
<!--
var msg=" Welcome to INGenius.....";
var delay=100;
var timerId;
function scrollMsg() {
window.defaultStatus = msg;
window.status=msg;
msg = msg.substring(1,msg.length) + msg.substring(0,1);
timerId = setTimeout("scrollMsg()",delay);
}
//-->
</script>
<link rel = "stylesheet"
type = "text/css"
href = "../common/css/style1.css">
<style type = "text/css">
body {background-image: url("../image/ril_login_bk.jpg")
}
</style>
</head>
<body onload="scrollMsg();">
<table border = "0" width = "100%" height = "207">
<tr>
<TD height='78'></TD>
</tr>
</table>
<table border = "0" width = "81%" >
<%@ page language = "java" %>
<%@ page import = "smp.src.utils.DBHelper" %>
<%@ page import = "smp.src.common.exceptions.*" %>
<%@ page import = "com.protomatter.syslog.Syslog" %>
<%@ page isErrorPage = "false"
errorPage= "../common/exceptions/SysError.jsp" %>
<%
String name= request.getParameter("name");
String passwd= request.getParameter("password");
String clientIp = request.getRemoteAddr();
String userType = null;
if (name != null) {
if (name.charAt(0) != 'o' && name.charAt(0) != 'O') {
userType = "s";
} else {
userType = "o";
}
}
%>
<jsp:useBean id= "webSessionBean"
class = "smp.src.login.WebsessionJBean"
scope = "session" />
<%
String submittedStatus = request.getParameter("submitted");
if (submittedStatus != null && submittedStatus.equals("true")) {
webSessionBean.reset();
//System.out.println("name is "+name);
//System.out.println("passwd is "+passwd);
int mreturn =0;
mreturn = webSessionBean.authorizeEntry(name,
passwd,
clientIp,
userType);
if (mreturn == 1) {
session.setAttribute("WebSessionBean", webSessionBean);
session.setMaxInactiveInterval(900000);
response.sendRedirect("Frameset.jsp");
} else if (mreturn == 3) {
%>
<script language = "JavaScript">
alert("Invalid login, password");
history.go(-1);
</script>
<%
} else if (mreturn == 2) {
%>
<script language = "JavaScript">
alert("Invalid terminal access");
history.go(-1);
</script>
<%
} else if (mreturn == 4
|| mreturn == 5
|| mreturn == 6) {
%>
<script language = "JavaScript">
alert("Invalid access. Please login again");
history.go(-1);
</script>
<%
} else if (mreturn == 7) {
%>
<script language = "JavaScript">
alert("You do not have permission to access this site!!");
history.go(-1);
</script>
<%
} else if (mreturn == 11) {
%>
<script language = "JavaScript">
alert("You have subscribed for any features. " +
"Kindly subscriber for INGenius services " +
"to be able to access this site!");
history.go(-1);
</script>
<%
}
} else if (submittedStatus != null
&& submittedStatus.equals("logout")) {
try {
webSessionBean.logout();
} catch (Exception e) {
response.sendRedirect("./Login.jsp");
} finally {
session.invalidate();
}
}
%>
</jsp:useBean>
<form name= "loginindex"
method= "post"
action= "Login.jsp"
onSubmit = "return validation()">
<tr>
<td width = "44%" align = "right"> </td>
<td width = "18%" align = "left">Login</td>
<td width = "66%">
<input type = "text" name = "name" size = "12" maxlength = "10">
</td>
</tr>
<tr>
<td width = "44%" align = "right"> </td>
<td width = "18%" align = "left">Password</td>
<td width = "66%">
<input type= "password"
name= "password"
size= "12"
maxlength = "10">
</td>
</tr>
<tr>
<td width = "44%" align = "right"> </td>
<td width = "18%" align = "left"> </td>
<td width = "66%"> </td>
</tr>
<tr>
<td width = "44%" align = "right"><br></td>
<td width = "18%" align = "right">
<input type = "submit" class="color" name = "button" value = "Login">
</td>
<td width = "66%" align = "left"><br></td>
</tr>
</table>
<br><br><br>
<div align="center">copyright @ 2003 ITC Labs, Reliance Infocomm Ltd.</div>
<script language = "JavaScript">
document.loginindex.name.focus();
</script>
<input type = "hidden" name = "submitted" value = "true">
</form>
</body>
</html>
[/nobr]