JavaBean 怎樣能夠在server上run呢?? 請幫幫手呢! THANKs
請問有没有人知為何我在window下用NetBeans時,run個JSP就没有問題,正常run到login 到.該jsp:
<jsp:useBean id="dbaccess" class="db.DbAccess" scope="application" />
我已經有把 DbAccess.java 放入 web\WEB-INF\classes\db裡.在window下run是没有問題.
但是我把一整個jsp放入linux server時就出現這個問題.
***************************Server Tomcat上login page 時***************************************
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: /FYP/WebContent/fyp/web/includes/login.jsp(5,0) The value for the useBean class attribute db.DbAccess is invalid.
org.apache.(DefaultErrorHandler.java:40)
org.apache.(ErrorDispatcher.java:407)
org.apache.(ErrorDispatcher.java:148)
org.apache.(Generator.java:1229)
org.apache.(Node.java:1178)
org.apache.(Node.java:2361)
org.apache.(Node.java:2411)
org.apache.(Node.java:2417)
org.apache.(Node.java:495)
org.apache.(Node.java:2361)
org.apache.(Generator.java:3440)
org.apache.(Compiler.java:231)
org.apache.(Compiler.java:347)
org.apache.(Compiler.java:327)
org.apache.(Compiler.java:314)
org.apache.jasper.(JspCompilationContext.java:592)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.29 logs.
請問我是否set 錯了什麼呢.
新手寫program,希望各位大大幫手.
THANKS
[ 本帖最后由 gigikings 于 2011-3-28 21:34 编辑 ]