主题:JSP网页中的问题,帮忙解决啊!!
JSP网页中的问题,帮忙解决啊!!
我在INTERNET服务管理器下的默认的WEB站点下建立了一个虚目录,别名Java。
我有一个网页在当地能打开,即在http://localhost/Java/lenso/error.jsp.
但是传到网上就打不开了,即在http://2005.lenso.cn/error.jsp.其中http://2005.lenso.cn
是我公司的网站。不知道为什么,望各位大哥大姐多多帮帮忙啊!多谢拉!
代码:
<%@ page contentType="text/html; charset=8859_1" %>
<%
/**
*用户验证
*/
String us = session.getAttribute("adminuser")!=null?session.getAttribute("adminuser").toString():"".toString();
if(us.equals(""))
{
response.sendRedirect("/errorpage?msg=用户登录失败");
return;
}
%>
<html>
<head>
<title>mbabank经理人俱乐部</title>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
<base target="contents">
<link href="../style/css.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0">
</body>
</html>
出现的错误为:
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Files' name is invalid or does not exist (1205).
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
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)
root cause
java.lang.IllegalArgumentException: Files' name is invalid or does not exist (1205).
com.jspsmart.upload.Files.getFile(Files.java:73)
org.apache.jsp.uploadlogo_jsp._jspService(uploadlogo_jsp.java:110)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
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)
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.30 logs.
--------------------------------------------------------------------------------
Apache Tomcat/5.0.30
我用的WIN2000,JDK +TOMCAT4.1配置的JSP服务器,数据库是MYSQL,我测试了JSP服务器
配置没问题,数据库也连接好了。我不知道问题出在那呀?
开发的时候用的是TOMCAT5.0我测试的时候用TOMCAT4.1,应该没什么问题吧?
我在INTERNET服务管理器下的默认的WEB站点下建立了一个虚目录,别名Java。
我有一个网页在当地能打开,即在http://localhost/Java/lenso/error.jsp.
但是传到网上就打不开了,即在http://2005.lenso.cn/error.jsp.其中http://2005.lenso.cn
是我公司的网站。不知道为什么,望各位大哥大姐多多帮帮忙啊!多谢拉!
代码:
<%@ page contentType="text/html; charset=8859_1" %>
<%
/**
*用户验证
*/
String us = session.getAttribute("adminuser")!=null?session.getAttribute("adminuser").toString():"".toString();
if(us.equals(""))
{
response.sendRedirect("/errorpage?msg=用户登录失败");
return;
}
%>
<html>
<head>
<title>mbabank经理人俱乐部</title>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
<base target="contents">
<link href="../style/css.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0">
</body>
</html>
出现的错误为:
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Files' name is invalid or does not exist (1205).
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
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)
root cause
java.lang.IllegalArgumentException: Files' name is invalid or does not exist (1205).
com.jspsmart.upload.Files.getFile(Files.java:73)
org.apache.jsp.uploadlogo_jsp._jspService(uploadlogo_jsp.java:110)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
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)
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.30 logs.
--------------------------------------------------------------------------------
Apache Tomcat/5.0.30
我用的WIN2000,JDK +TOMCAT4.1配置的JSP服务器,数据库是MYSQL,我测试了JSP服务器
配置没问题,数据库也连接好了。我不知道问题出在那呀?
开发的时候用的是TOMCAT5.0我测试的时候用TOMCAT4.1,应该没什么问题吧?