求救!!!!!!jsp執行錯誤;(轉)
求救!!!!!!jsp執行錯誤;(轉)[@more@]我tomcat執行正常;訪問正常;
安裝了mysql,執行也正常;只是不清楚tomcat和mysql之間還需要做什麼嗎?
另外我修改了server.xml檔案,增加了Context引數
我在/usr/local/tomcat/webapps新建了目錄games,在目錄下存放了我的JSP檔案;在執行welcome.jsp時提示錯誤:
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: File "/tags/struts-bean" not found
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
org.apache.jasper.JasperException: File "/tags/struts-bean" not found
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:114)
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:159)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:423)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1552)
org.apache.jasper.compiler.Parser.parse(Parser.java:126)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
Apache Tomcat/5.5.17
以上錯誤是什麼原因導致的呢?請各位大蝦幫忙看看;謝謝!!!!
以下是我的web.xml檔案:
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"">
Games
Welcome to Games
30
action
org.apache.struts.action.ActionServlet
config
/WEB-INF/struts-config.xml
config/member
/WEB-INF/config/member/struts-config.xml
config/admin
/WEB-INF/config/admin/struts-config.xml
debug
2
detail
2
2
dbInit
sys.struts_db.DBInitServlet
driverClass
com.mysql.jdbc.Driver
jdbcURL
jdbc:mysql://wdb:3306/games?useUnicode=true&characterEncoding=UTF-8
minCount
1
maxCount
10000
1
user
games
password
games
Set Character Encoding
sys.function.SetCharacterEncodingFilter
encoding
UTF-8
leagueChange
sys.leagueSelservlet
Set Character Encoding
/*
action
*.do
leagueChange
/do/*
index.html
index.jsp
404
/index.jsp
500
/index.jsp
-->
/tags/struts-bean
/WEB-INF/struts-bean.tld
/tags/struts-html
/WEB-INF/struts-html.tld
/tags/struts-logic
/WEB-INF/struts-logic.tld
/tags/struts-nested
/WEB-INF/struts-nested.tld
/tags/app
/WEB-INF/app.tld
以下是server.xml:
name="simpleValue"
type="java.lang.Integer"
value="30"/>
auth="Container"
description="User database that can be updated and saved"
name="UserDatabase"
type="org.apache.catalina.UserDatabase"
pathname="conf/tomcat-users.xml"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"/>
name="Catalina">
port="8080"
redirectPort="8443"
minSpareThreads="25"
connectionTimeout="20000"
maxThreads="150"
maxSpareThreads="75">
port="8009"
redirectPort="8443"
protocol="AJP/1.3">
defaultHost="localhost"
name="Catalina">
appBase="webapps"
name="localhost">
安裝了mysql,執行也正常;只是不清楚tomcat和mysql之間還需要做什麼嗎?
另外我修改了server.xml檔案,增加了Context引數
我在/usr/local/tomcat/webapps新建了目錄games,在目錄下存放了我的JSP檔案;在執行welcome.jsp時提示錯誤:
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: File "/tags/struts-bean" not found
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
org.apache.jasper.JasperException: File "/tags/struts-bean" not found
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:114)
org.apache.jasper.compiler.TagLibraryInfoImpl.
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:423)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1552)
org.apache.jasper.compiler.Parser.parse(Parser.java:126)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
Apache Tomcat/5.5.17
以上錯誤是什麼原因導致的呢?請各位大蝦幫忙看看;謝謝!!!!
以下是我的web.xml檔案:
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"">
config
/WEB-INF/struts-config.xml
config/member
/WEB-INF/config/member/struts-config.xml
config/admin
/WEB-INF/config/admin/struts-config.xml
debug
2
detail
2
driverClass
com.mysql.jdbc.Driver
jdbcURL
jdbc:mysql://wdb:3306/games?useUnicode=true&characterEncoding=UTF-8
minCount
1
maxCount
10000
user
games
password
games
encoding
UTF-8
-->
以下是server.xml:
type="java.lang.Integer"
value="30"/>
description="User database that can be updated and saved"
name="UserDatabase"
type="org.apache.catalina.UserDatabase"
pathname="conf/tomcat-users.xml"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"/>
redirectPort="8443"
minSpareThreads="25"
connectionTimeout="20000"
maxThreads="150"
maxSpareThreads="75">
redirectPort="8443"
protocol="AJP/1.3">
name="Catalina">
name="localhost">
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10617542/viewspace-958060/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 執行錯誤集
- PbootCMS錯誤提示:執行SQL發生錯誤!錯誤:no such column: def1bootSQL
- 執行SQL發生錯誤!錯誤:disk I/O errorSQLError
- 評“MySQL 隱式轉換引起的執行結果錯誤”MySql
- PbootCMS執行SQL發生錯誤!錯誤:no such column: def1bootSQL
- PbootCMS 執行SQL發生錯誤!錯誤: no such table:ay_configbootSQL
- [求救]電信彩信閘道器開發錯誤-SOAP_VERSIONMISMATCH
- jsp的執行過程JS
- Qt 載入 libjpeg 庫出現“長跳轉已經執行”錯誤QT
- 執行指令碼寫入中間表錯誤返回錯誤資訊指令碼
- 升級提示 執行SQL發生錯誤!錯誤:duplicate column name: picstitleSQL
- shell指令碼執行錯誤 $‘\r‘:command not found指令碼
- mysql執行函式出現1418錯誤MySql函式
- hadoop(二)—hadoop配置、執行錯誤總結Hadoop
- pbootcms升級提示 執行SQL發生錯誤!錯誤:duplicate column name: picstitlebootSQL
- PBOOTCMS網站程式提示“執行SQL發生錯誤!錯誤:DISK I/O ERROR”boot網站SQLError
- 求救安裝 PHP7.4.7 報錯PHP
- Camunda 流程執行錯誤處理ERROR BOUNDARY EVENTError
- 檔案格式引起的指令碼執行錯誤指令碼
- win10執行jade提示399錯誤怎麼辦_win10執行jade提示399錯誤的解決方法Win10
- 關於 IIS 上執行 ASP.NET Core 站點的“HTTP 錯誤 500.19”錯誤ASP.NETHTTP
- jsp錯誤: "javax.servlet.http.HttpServlet" was not found on the Java Build PathJSJavaServletHTTPUI
- Abp框架之執行Update-Database 命令系列錯誤框架Database
- MES專案執行:3個要避免的錯誤
- IIS 7.5 解析錯誤 命令執行漏洞解決方案
- sqlplus執行指令碼時遇到錯誤自動停止SQL指令碼
- springboot整合Batis,執行報錯,資料庫連線密碼錯誤Spring BootBAT資料庫密碼
- 檢視執行計劃出現ORA-22992錯誤
- thinkphp 設定執行目錄為/public後 404錯誤PHP
- 關於 ABAP 的執行時錯誤 ITAB_ILLEGAL_ORDER
- springboot將jsp打包成jar執行的坑Spring BootJSJAR
- flink1.14.0在yarn上執行報錯--類載入錯誤--問題Yarn
- Qt5執行緒錯誤:QThread: Destroyed while thread is still running(執行runThread->exit(0))QT執行緒threadWhile
- MySQL主從複製錯誤——列型別轉換錯誤MySql型別
- ORA-03113錯誤分析(轉)
- 解決 PBootCMS 中因資料庫名稱錯誤導致的“執行 SQL 發生錯誤!錯誤:no such table: ay_config”問題boot資料庫SQL
- [鴻蒙開發]真機轉模擬機執行出現錯誤: ERROR: Failed to find the incremental input file:鴻蒙ErrorAIREM
- 關於安裝ros和執行tuetlebot3的錯誤ROS
- 動態建立 @ViewChild 導致執行時錯誤的原因分析View