HTTP状态500 - 无法为JSP编译类: [英] HTTP status 500 - unable to compile class for JSP:

查看:792
本文介绍了HTTP状态500 - 无法为JSP编译类:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Guys正在研究jsp项目这项由我的老年人制作的项目现在他们离开了,我真的只是一点点jsp的声音知识请帮助我当我运行这个项目所以得到这个错误请帮助

我该如何解决呢。



 HTTP状态500  - 无法为JSP编译类:
类型异常​​报告

消息无法为JSP编译类:

说明服务器遇到内部错误,导致无法完成此请求。

异常

org.apache.jasper.JasperException:无法为JSP编译类:

行中出现错误:[18] in生成的java文件:[C:\Program Files \Apache Software Foundation \Tomcat 7.0 \work\Catalina\localhost\vsuite\org\apache\jsp\v_002dsuite\WebContent\ Login_jsp.java]
只能导入一个类型。 com.apv.erp.resource.DbHandler解析为包

生成的java文件中的行:[19]发生错误:[C:\Program Files \ ApachePache Foundation \ Tomcat 7.0 \work\Catalina\localhost\vsuite\org\apache\jsp\v_002dsuite\WebContent\Login_jsp.java]
只能导入一个类型。 com.apv.erp.resource.PersistenceFactory解析为一个包

在jsp文件中的第13行出现错误:/v-suite/WebContent/Login.jsp
UserInformationVO不能解析为
类型10:int iLockUserAttempts = 3; //帐户锁定政策
11:
12:
13:UserInformationVO userVO = new UserInformationVO();
14:RowSet oRowSet = null;
15:Logger oLogger = Logger.getLogger(Login.jsp);
16:





我的尝试:



<%@ page errorPage =ErrorPage.jsp%> 
<%@ page import =test.whatever.Config%>


<%@ page import =com.apv.erp.user。*,com.apv.erp.user.application。*,com.apv.erp.user。 VO。*,com.apv.erp.resource。*,com.apv.erp.resource.DbHandler,com.apv.erp.resource.PersistenceFactory,java.sql中。*,javax.sql.RowSet中,org.apache。的log4j *%>。
<%
String txtUsrId =;
String txtUsrPwd =;

int iPasswordAgeInDays = 30; //密码到期策略
int iLockUserAttempts = 3; //帐户锁定政策


UserInformationVO userVO = new UserInformationVO();
RowSet oRowSet = null;
Logger oLogger = Logger.getLogger(Login.jsp);



if(request.getParameter(txtUsrId)!= null)
txtUsrId = request.getParameter(txtUsrId);
if(request.getParameter(txtUsrPwd)!= null)
txtUsrPwd = request.getParameter(txtUsrPwd);

if(txtUsrId.length()> 0& txtUsrPwd.length()> 0)
{
userVO = com.apv.erp.user。 application.UserManagerBean.getInstance()。authenticateUser(txtUsrId,txtUsrPwd,session);
}
else
userVO = null;


%>

<!DOCTYPE HTML PUBLIC - // W3C // DTD HTML 4.01 Transitional // EN>
< html>
< head>
< title>欢迎使用SBL VAMM模块< / title>
< meta http-equiv =Content-Typecontent =text / html; charset = iso-8859-1>
< link href =css / login.css =stylesheettype =text / css>
< / head>

<! - < body leftmargin =0topmargin =0marginwidth =0marginheight =0> - >
< body onLoad =init()>

< div align =center>
< table width =778border =0cellpadding =0cellspacing =0bgcolor =D7DBE3>
<! - DWLayoutTable - >
< tr>
< td height =74colspan =2valign =top>< table width =100%border =0cellpadding =0cellspacing =0>
<! - DWLayoutTable - >
< tr>
< td width =778height =64>< img src =images / logo.JPGwidth =778height =74>< / td>
< / tr>
< / table>< / td>
< / tr>
< tr>
< td height =145colspan =2valign =top>< table width =100%border =0cellpadding =0cellspacing =0>
<! - DWLayoutTable - >
< tr>
< td width =778height =145valign =top>< img src =images / banner.jpgwidth =778height =145>< / TD>
< / tr>
< / table>< / td>
< / tr>
< tr>
< td width =576height =203valign =top>< table width =100%border =0cellpadding =0cellspacing =0bgcolor = 9BA6BA >
<! - DWLayoutTable - >
< tr>
< td width =576height =20> < / td>
< / tr>
< tr>
< td height =44valign =top>< table width =100%border =0cellpadding =0cellspacing =0>
<! - DWLayoutTable - >
< tr>
< td width =21height =44valign =top>< table width =100%border =0cellpadding =0cellspacing =0>
<! - DWLayoutTable - >
< tr>
< td width =21height =44> < / td>
< / tr>
< / table>< / td>
< td width =554valign =top>< img src =images / clientlogin.jpgwidth =107height =33>< / td>
< / tr>
< / table>< / td>
< / tr>
< tr>
< td height =139valign =top>
< form name =form1method =postaction =Login.jsponSubmit =return validateForm()>
< table width =100%border =0cellpadding =0cellspacing =0>
<! - DWLayoutTable - >
< tr>
< td width =25height =16>< / td>
< td width =549valign =top>< table width =100%border =0cellpadding =0cellspacing =0>
<! - DWLayoutTable - >
< tr>
< td width =555>< font color =#FFFFFFsize =2face =Verdana,Arial,Helvetica,sans-serif>请
输入您的用户ID和密码:< / font>< / td>
< / tr>
< / table>< / td>
< td width =2>< / td>
< / tr>
< tr>
< td height =3>< / td>
< td rowspan =2valign =top>

< table width =100%border =0cellpadding =0cellspacing =0>
<! - DWLayoutTable - >
< tr>
< td width =555height =7>< / td>
< / tr>
< tr>
< td> < font color =#FFFFFFsize =2face =Verdana,Arial,Helvetica,sans-serif>用户
Id< / font> ; < / TD>
< / tr>
< tr>
< td>
< input type =textname =txtUsrIdvalue =maxlength =20>
< / td>
< / tr>
< / table>< / td>
< td>< / td>
< / tr>
< tr>
< td rowspan =4valign =top>< table width =100%border =0cellpadding =0cellspacing =0>
<! - DWLayoutTable - >
< tr>
< td width =26height =120> < / td>
< / tr>
< / table>< / td>
< td height =42>< / td>
< / tr>
< tr>
< td height =16valign =top>< table width =100%border =0cellpadding =0cellspacing =0>
<! - DWLayoutTable - >
< tr>
< td width =555> < font color =#FFFFFFsize =2face =Verdana,Arial,Helvetica,sans-serif>密码< / font> ; < / TD>
< / tr>
< / table>< / td>
< td>< / td>
< / tr>
< tr>
< td height =22>< input type =passwordname =txtUsrPwdvalue =maxlength =12>< / td>
< td>< / td>
< / tr>



< tr>
< td height =40valign =top>< table width =100%border =0cellpadding =0cellspacing =0>
<! - DWLayoutTable - >
< tr>
< td width =555height =40valign =middle>< input type =imagesrc =images / signin.jpgname =Submit>
< script language =JavaScriptsrc =js / validation.js>< / script>
< script language =javascript>
function validateForm()
{
MM_validateForm('txtUsrId','User Id','RisLoginId','txtUsrPwd','Password','R');

返回document.MM_returnValue;
// if(document.MM_returnValue == false)
//返回false

//document.loginForm.submit();
}
< / script>
< / td>
< / tr>
< tr>
< td>< span class =loginErrorMsg>
<%
if(userVO!= null)
{

if(oLogger.isDebugEnabled())
{
oLogger。 debug(密码年龄+ userVO.getPasswordAgeInDays());
oLogger.debug(重置密码+ userVO.getResetPasswordFlag());
oLogger.debug(Segment Name+ userVO.getSegName());
oLogger.debug(Creation Timestamp+ userVO.getPasswordCreationTimestamp());
oLogger.debug(getUserLoginid()+ userVO.getUserLoginid());
oLogger.debug(getUserFirstname+ userVO.getUserFirstname());
oLogger.debug(getUserLastname+ userVO.getUserLastname());
//oLogger.debug(\"getUserEmail+ userVO.getUserEmail());
oLogger.debug(getBrchId+ userVO.getBrchId());
oLogger.debug(getSegId(+ userVO.getSegId());
oLogger.debug(getUserEmployeeid+ userVO.getUserEmployeeid());
oLogger.debug(getUserBudgetedLimit + userVO.getUserBudgetedLimit());
oLogger.debug(getUserNonBudgetedLimit+ userVO.getUserNonBudgetedLimit());
oLogger.debug(getPasswordExpiresFlag+ userVO.getPasswordExpiresFlag());
oLogger.debug(getIsLockedFlag+ userVO.getIsLockedFlag());
}




/// if(oRowSet。(USER_PASSWORD_EXPIRY_TIMESTAMP) )< Timestamp.valueOf(new java.util.Date()。toString()))
if((userVO.getPasswordExpiresFlag()=='y'&& userVO.getPasswordAgeInDays()> = iPasswordAgeInDays)|| userVO.getResetPasswordFlag()=='y')
{
response.sendRedirect(change_expired_pa​​ssword.jsp);
}
else if(userVO。 getIsLockedFlag()=='Y )
{
的out.print( 您的帐户被锁定,请联系管理员);
if(oLogger.isDebugEnabled())
oLogger.debug(您的帐户被锁定,请联系管理员);
}
else
{
response.sendRedirect(Main.jsp);
}

}
else if(txtUsrId.length()> 0& txtUsrPwd.length()> 0)
{
System.out.println(无效的用户ID或密码。请再试一次。);
out.print(无效的用户名或密码。请再试一次。);
%>
< br>
<%
if(oLogger.isDebugEnabled())
{
oLogger.debug(oLockCount+ session.getAttribute(oLockCount));
}

if(session.getAttribute(oLockCount)!= null)
{
整数oLockCount =(整数)session.getAttribute(oLockCount) ;
int iLockCount = oLockCount.intValue();
iLockCount ++;



if(iLockCount> = iLockUserAttempts)
{

int iFlag = com.apv.erp.user.application。 。UserManagerDelegate.getInstance()LOCKUSER(txtUsrId);
if(iFlag> 0)
{
out.print(您的帐户因多次错误尝试而被锁定);
if(oLogger.isDebugEnabled())
oLogger.info(您的帐户因多次错误尝试而被锁定!);
}
else
if(oLogger.isDebugEnabled())
oLogger.info(帐户锁失败);

}
else
{

oLockCount = new Integer(iLockCount);
session.setAttribute(oLockCount,oLockCount);
}
}
else
{
session.setAttribute(oLockCount,new Integer(1));
}

}
%>
< / span>< / td>
< / tr>

< tr>

< td width =555style =display:none>< a href =forgot_password.jspstyle =TEXT-DECORATION:none>< font color =#FFFFFFsize =2face =Verdana,Arial,Helvetica,sans-serif>
忘记了密码?< / font>< a>< / td>

< / tr>

< / table>< / td>
< td>< / td>
< / tr>
< / table>
< / form>< / td>
< / tr>
< / table>< / td>
< td width =202rowspan =2valign =top>< table width =100%border =0cellpadding =0cellspacing =0bgcolor = D7DBE3 >
<! - DWLayoutTable - >
< tr>
< td width =7height =19>< / td>
< td width =194> < / td>
< td width =1>< / td>
< / tr>
< tr>
< td height =19>< / td>
< td valign =top>< p> < font color =666666size =1face =Verdana,Arial,Helvetica,sans-serif>留
Informed< / font>
< / p>< / td>
< td>< / td>
< / tr>
< tr>
< td height =24>< / td>
< td valign =top>< font color =666666size =1face =Verdana,Arial,Helvetica,sans-serif>签署
最多第一个阅读有关vSuite新闻和事件的内容。< / font>< / td>
< td>< / td>
< / tr>
< tr>
< td height =13>< / td>
< td>< / td>
< td>< / td>
< / tr>
< tr>
< td height =19>< / td>
< td valign =top>< font color =666666size =1face =Verdana,Arial,Helvetica,sans-serif> 电邮
地址:< /字体>< / TD>
< td>< / td>
< / tr>
< tr>
< td height =22>< / td>
< td valign =top>< input type =textdisabled name =textfield22>< / td>
< td>< / td>
< / tr>
< tr>
< td height =9>< / td>
< td>< / td>
< td>< / td>
< / tr>
< tr>
< td height =21>< / td>
< td valign =bottom>< img src =images / submit.jpgwidth =77height =21>< / td>
< td>< / td>
< / tr>
< tr>
< td height =83>< / td>
< td> < / td>
< td>< / td>
< / tr>
< tr>
< td rowspan =2> < / td>
< td rowspan =2> < / td>
< td height =52> < / td>
< / tr>
< / table>< / td>
< / tr>
< tr>
< td height =78valign =top>< table width =100%border =0cellpadding =0cellspacing =0>
<! - DWLayoutTable - >
< tr>
< td width =576height =78valign =baselinestyle =border-left:1px solid#9BA6BA; >< object classid =clsid:D27CDB6E-AE6D-11cf-96B8-444553540000codebase =http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0 ,29,0宽度=576高度=78>
< param name =movievalue =images / flash.swf>
< param name =qualityvalue =high>
< embed src =images / flash.swfquality =highpluginspage =http://www.macromedia.com/go/getflashplayertype =application / x-shockwave-flashwidth =576height =78>< / embed>
< / object>< / td>
< / tr>
< / table>< / td>
< / tr>
< tr>
< td height =19colspan =2valign =top>< table width =100%border =0cellpadding =0cellspacing =0bgcolor = 9BA6BA >
<! - DWLayoutTable - >
< tr>
< td width =778height =19>< div align =center>< font color =#FFFFFFsize =1face =Verdana,Arial, Helvetica,sans-serif>版权所有
©2016 vSuite by Workstream Automation Limited / Al Intisar(Private)Limited。< / font>< / div>< / td>
< / tr>
< / table>< / td>
< / tr>
< / table>
< / div>
< / body>
<! - ***************************************** ************* - >
< div id =loadingstyle =position:absolute; width:100%; text-align:center; top:300px;>< img src =img / loading.gifborder = 0>< / DIV>
< script> var ld =(document.all); var ns4 = document.layers; var ns6 = document.getElementById&&!document.all; var ie4 = document.all; if(ns4)ld = document.loading; else if(ns6)ld = document.getElementById(loading)。style;否则if(ie4)ld = document.all.loading.style; function init(){if(ns4){ld.visibility =hidden;} else if(ns6 || ie4)ld.display =none; }< / script>

< script language =JavaScript>
setFocus();
< / script>
<! - ***************************************** ************* - >
< / html>

解决方案

不应该导入com.apv.erp .resource.DbHandler是com.apv.erp.resource.DbHandler。*,com.apv.erp.resource.PersistenceFactory的导入是com.apv.erp.resource.PersistenceFactory。*?


Hello Guys am working on jsp project this project made by my seniors now they left and i really just little bit sound knowledge of jsp please help me when i run this project so am getting this errors please help
how can i solve it.

HTTP Status 500 - Unable to compile class for JSP:
type Exception report

message Unable to compile class for JSP:

description The server encountered an internal error that prevented it from fulfilling this request.

exception

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

An error occurred at line: [18] in the generated java file: [C:\Program Files\Apache Software Foundation\Tomcat 7.0\work\Catalina\localhost\vsuite\org\apache\jsp\v_002dsuite\WebContent\Login_jsp.java]
Only a type can be imported. com.apv.erp.resource.DbHandler resolves to a package

An error occurred at line: [19] in the generated java file: [C:\Program Files\Apache Software Foundation\Tomcat 7.0\work\Catalina\localhost\vsuite\org\apache\jsp\v_002dsuite\WebContent\Login_jsp.java]
Only a type can be imported. com.apv.erp.resource.PersistenceFactory resolves to a package

An error occurred at line: 13 in the jsp file: /v-suite/WebContent/Login.jsp
UserInformationVO cannot be resolved to a type
10:   int 		iLockUserAttempts   = 3; 	//Account Locking Policy
11:   
12:   
13:   UserInformationVO userVO      = new UserInformationVO();
14:   RowSet oRowSet=null;
15:   Logger oLogger=Logger.getLogger("Login.jsp");
16:   



What I have tried:

<%@page errorPage="ErrorPage.jsp" %>
<%@ page import="test.whatever.Config" %>


<%@page import ="com.apv.erp.user.*,com.apv.erp.user.application.*,com.apv.erp.user.vo.*,com.apv.erp.resource.*,com.apv.erp.resource.DbHandler,com.apv.erp.resource.PersistenceFactory,java.sql.*,javax.sql.RowSet,org.apache.log4j.*"%>
<%
  String            txtUsrId    = "";
  String            txtUsrPwd   = "";
  
  int		iPasswordAgeInDays  = 30;	//Password Expiry Policy
  int 		iLockUserAttempts   = 3; 	//Account Locking Policy
  
  
  UserInformationVO userVO      = new UserInformationVO();
  RowSet oRowSet=null;
  Logger oLogger=Logger.getLogger("Login.jsp");
  
  

  if ( request.getParameter("txtUsrId") != null )
    txtUsrId = request.getParameter("txtUsrId");
  if ( request.getParameter("txtUsrPwd") != null )
    txtUsrPwd = request.getParameter("txtUsrPwd");
	
  if (txtUsrId.length() > 0 && txtUsrPwd.length() > 0)
  {
    userVO  = com.apv.erp.user.application.UserManagerBean.getInstance().authenticateUser(txtUsrId, txtUsrPwd, session);
  }
  else
    userVO = null;
    
    
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Welcome to SBL VAMM Module</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="css/login.css" rel="stylesheet" type="text/css">
</head>

<!--<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">  -->
<body onLoad="init()">

<div align="center">
  <table width="778" border="0" cellpadding="0" cellspacing="0" bgcolor="D7DBE3">
    <!--DWLayoutTable-->
    <tr> 
      <td height="74" colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
          <!--DWLayoutTable-->
          <tr> 
            <td width="778" height="64"><img src="images/logo.JPG" width="778" height="74"></td>
          </tr>
        </table></td>
    </tr>
    <tr> 
      <td height="145" colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
          <!--DWLayoutTable-->
          <tr> 
            <td width="778" height="145" valign="top"><img src="images/banner.jpg" width="778" height="145"></td>
          </tr>
        </table></td>
    </tr>
    <tr> 
      <td width="576" height="203" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="9BA6BA">
          <!--DWLayoutTable-->
          <tr> 
            <td width="576" height="20"> </td>
          </tr>
          <tr> 
            <td height="44" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                <!--DWLayoutTable-->
                <tr> 
                  <td width="21" height="44" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                      <!--DWLayoutTable-->
                      <tr> 
                        <td width="21" height="44"> </td>
                      </tr>
                    </table></td>
                  <td width="554" valign="top"><img src="images/clientlogin.jpg" width="107" height="33"></td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td height="139" valign="top">
			 <form name="form1" method="post" action="Login.jsp" onSubmit="return validateForm()">
			<table width="100%" border="0" cellpadding="0" cellspacing="0">			
                <!--DWLayoutTable-->
                <tr> 
                  <td width="25" height="16"></td>
                  <td width="549" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                      <!--DWLayoutTable-->
                      <tr> 
                        <td width="555"><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">Please 
                          enter your User Id and Password:</font></td>
                      </tr>
                    </table></td>
                  <td width="2"></td>
                </tr>
                <tr> 
                  <td height="3"></td>
                  <td rowspan="2" valign="top">
				  
				  <table width="100%" border="0" cellpadding="0" cellspacing="0">
                      <!--DWLayoutTable-->
                      <tr> 
                        <td width="555" height="7"></td>
                      </tr>
                      <tr> 
                          <td><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">User 
                            Id </font></td>
                      </tr>
                      <tr> 
                        <td>
                            <input type="text" name="txtUsrId" value="" maxlength="20">
                        </td>
                      </tr>
                    </table></td>
                  <td></td>
                </tr>
                <tr> 
                  <td rowspan="4" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                      <!--DWLayoutTable-->
                      <tr> 
                        <td width="26" height="120"> </td>
                      </tr>
                    </table></td>
                  <td height="42"></td>
                </tr>
                <tr> 
                  <td height="16" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                      <!--DWLayoutTable-->
                      <tr> 
                        <td width="555"><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">Password</font></td>
                      </tr>
                    </table></td>
                  <td></td>
                </tr>
                <tr> 
                  <td height="22"><input type="password" name="txtUsrPwd" value="" maxlength="12"></td>
                  <td></td>
                </tr>
                
                
                
                <tr> 
                  <td height="40" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                      <!--DWLayoutTable-->
                      <tr> 
                        <td width="555" height="40" valign="middle"><input type="image" src="images/signin.jpg" name="Submit">
						<script language="JavaScript" src="js/validation.js"></script>
						<script language="javascript">
						function validateForm()
						{
							MM_validateForm('txtUsrId','User Id','RisLoginId','txtUsrPwd','Password','R');
						
							return document.MM_returnValue;
							//if (document.MM_returnValue==false)
							//	return false
						
							//document.loginForm.submit();
						}
						</script>
						</td>
                      </tr>
                      <tr>
                        <td><span class="loginErrorMsg">
                          <%
						  if ( userVO != null )
						  {
						  
						  		if(oLogger.isDebugEnabled())
							{
						  		oLogger.debug("Password Age "+userVO.getPasswordAgeInDays());
						  		oLogger.debug("Reset Password "+userVO.getResetPasswordFlag());
						  		oLogger.debug("Segment Name "+userVO.getSegName());
						  		oLogger.debug("Creation Timestamp "+userVO.getPasswordCreationTimestamp());
						  		oLogger.debug("getUserLoginid() "+userVO.getUserLoginid());
						  		oLogger.debug("getUserFirstname "+userVO.getUserFirstname());
						  		oLogger.debug("getUserLastname "+userVO.getUserLastname());
						  		//oLogger.debug("getUserEmail "+userVO.getUserEmail());
						  		oLogger.debug("getBrchId "+userVO.getBrchId());
						  		oLogger.debug("getSegId( "+userVO.getSegId());
						  		oLogger.debug("getUserEmployeeid "+userVO.getUserEmployeeid());
						  		oLogger.debug("getUserBudgetedLimit "+userVO.getUserBudgetedLimit());
						  		oLogger.debug("getUserNonBudgetedLimit "+userVO.getUserNonBudgetedLimit());
						  		oLogger.debug("getPasswordExpiresFlag "+userVO.getPasswordExpiresFlag());
						  		oLogger.debug("getIsLockedFlag "+userVO.getIsLockedFlag());
						  	}
						  	
						  	
						  	

						  	///	if(oRowSet.("USER_PASSWORD_EXPIRY_TIMESTAMP")< Timestamp.valueOf(new java.util.Date().toString()))
						  		if((userVO.getPasswordExpiresFlag()=='y' && userVO.getPasswordAgeInDays() >= iPasswordAgeInDays ) || userVO.getResetPasswordFlag()=='y')
						  	    {
						  			response.sendRedirect("change_expired_password.jsp");
						  		}
						  		else if(userVO.getIsLockedFlag()=='y')
						  		{
						  			out.print("Your Account is Locked, Please Contact Administrator");
						  			if(oLogger.isDebugEnabled())
						  				oLogger.debug("Your Account is Locked, Please Contact Administrator");
						  		}
						  		else
						  		{
						  			response.sendRedirect("Main.jsp");
						  		}
								  
						  }
						  else if (txtUsrId.length() > 0 && txtUsrPwd.length() > 0 )
						  {
								  System.out.println("Invalid User Id or Password. Please Try again.");
								  out.print("Invalid User Id or Password. Please Try again.");
								  %>
								  <br>
								  <%
								  if(oLogger.isDebugEnabled())
								  {
								  	  oLogger.debug("oLockCount "+ session.getAttribute("oLockCount"));
								  }
								  
								  if( session.getAttribute("oLockCount")!=null)
								  {
								  	Integer oLockCount = (Integer) session.getAttribute("oLockCount");
								  	int iLockCount = oLockCount.intValue();
								  	iLockCount++;
								  	
								  	
								  	
								  	if(iLockCount >= iLockUserAttempts)
								  	{
								  		
								  			int iFlag=com.apv.erp.user.application.UserManagerDelegate.getInstance().lockUser(txtUsrId);
								  			if(iFlag>0)
								  			{
								  				out.print("Your Account has been Locked Due to Several Wrong Attempts");
								  				if(oLogger.isDebugEnabled())
								  					oLogger.info("Your Account has been Locked Due to Several Wrong Attempts!");
								  			}
								  			else
								  				if(oLogger.isDebugEnabled())
								  					oLogger.info("Account Lock Failed");
								  		
								  	}
								  	else
								  	{
								  	
								  		oLockCount = new Integer(iLockCount);
								  		session.setAttribute("oLockCount",oLockCount);
								  	}
								  }
								  else
								  {
								  	session.setAttribute("oLockCount",new Integer(1));
								  }
								  
						  }
						  %>
                        </span></td>
                      </tr>
                      
                      <tr>
                      
                      <td width="555" style="display:none"><a href="forgot_password.jsp" style="TEXT-DECORATION:none"><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">
                         Forgot Your Password?</font><a></td>
                      
                      </tr>
                      
                    </table></td>
                  <td></td>
                </tr>
              </table>
			 </form></td>
          </tr>
        </table></td>
      <td width="202" rowspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="D7DBE3">
          <!--DWLayoutTable-->
          <tr> 
            <td width="7" height="19"></td>
            <td width="194"> </td>
            <td width="1"></td>
          </tr>
          <tr> 
            <td height="19"></td>
            <td valign="top"><p><font color="666666" size="1" face="Verdana, Arial, Helvetica, sans-serif">Stay 
                Informed</font></p></td>
            <td></td>
          </tr>
          <tr> 
            <td height="24"></td>
            <td valign="top" ><font color="666666" size="1" face="Verdana, Arial, Helvetica, sans-serif">Sign 
              up to be the first to read about vSuite news and events.</font></td>
            <td></td>
          </tr>
          <tr> 
            <td height="13"></td>
            <td></td>
            <td></td>
          </tr>
          <tr> 
            <td height="19"></td>
            <td valign="top"><font color="666666" size="1" face="Verdana, Arial, Helvetica, sans-serif">Email 
              Address:</font></td>
            <td></td>
          </tr>
          <tr> 
            <td height="22"></td>
            <td valign="top"><input type="text" disabled name="textfield22"></td>
            <td></td>
          </tr>
          <tr> 
            <td height="9"></td>
            <td></td>
            <td></td>
          </tr>
          <tr>
            <td height="21"></td>
            <td valign="bottom"><img src="images/submit.jpg" width="77" height="21"></td>
            <td></td>
          </tr>
          <tr>
            <td height="83"></td>
            <td> </td>
            <td></td>
          </tr>
          <tr> 
            <td rowspan="2"> </td>
            <td rowspan="2"> </td>
            <td height="52"> </td>
          </tr>
        </table></td>
    </tr>
    <tr> 
      <td height="78" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
          <!--DWLayoutTable-->
          <tr> 
            <td width="576" height="78" valign="baseline" style="border-left: 1px solid #9BA6BA;" ><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="576" height="78">
              <param name="movie" value="images/flash.swf">
              <param name="quality" value="high">
              <embed src="images/flash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="576" height="78"></embed>
            </object></td>
          </tr>
        </table></td>
    </tr>
    <tr> 
      <td height="19" colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="9BA6BA">
          <!--DWLayoutTable-->
          <tr> 
            <td width="778" height="19"><div align="center"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">Copyright 
                © 2016 vSuite by Workstream Automation Limited / Al Intisar (Private) Limited.</font></div></td>
          </tr>
        </table></td>
    </tr>
  </table>
</div>
</body>
<!-- ****************************************************** -->
<div id="loading" style="position:absolute; width:100%; text-align:center; top:300px;"><img src="img/loading.gif" border=0></div>
<script> var ld=(document.all); var ns4=document.layers; var ns6=document.getElementById&&!document.all; var ie4=document.all; if (ns4) ld=document.loading; else if (ns6) ld=document.getElementById("loading").style; else if (ie4) ld=document.all.loading.style; function init() { if(ns4){ld.visibility="hidden";} else if (ns6||ie4) ld.display="none"; } </script>

<script language="JavaScript">
        setFocus();
</script>
<!-- ****************************************************** -->
</html>

解决方案

Shouldn't the import of com.apv.erp.resource.DbHandler be com.apv.erp.resource.DbHandler.* and the import of com.apv.erp.resource.PersistenceFactory be com.apv.erp.resource.PersistenceFactory.* ?


这篇关于HTTP状态500 - 无法为JSP编译类:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆