iT邦幫忙

0

[JAVA]詭異事件,相同檔案和一樣環境下移轉到另外一台電腦上卻無法顯示網頁JSP

遇到詭異事件,相同檔案和一樣環境下移轉到另外一台電腦上卻無法顯示網頁,網路找好多問題解決方式
一直都沒可以用的解決方式,請教各位高手有解招方式?

環境:
WIN7 32X
Apache Tomcat 6.0
jdk-6u45-windows-i586
JVM版本:1.6.0_45-B06

錯誤代碼如下:

HTTP Status 500 - /XX/index.jsp(2,41) File "/struts-tags" not found

type Exception report

message /XX/index.jsp(2,41) File "/struts-tags" not found

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

exception

org.apache.jasper.JasperException: /gp/index.jsp(2,41) File "/struts-tags" not found
	org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
	org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
	org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:132)
	org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:161)
	org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:386)
	org.apache.jasper.compiler.Parser.parseDirective(Parser.java:450)
	org.apache.jasper.compiler.Parser.parseElements(Parser.java:1399)
	org.apache.jasper.compiler.Parser.parse(Parser.java:130)
	org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255)
	org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
	org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:185)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:321)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
	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.36 logs.

Apache Tomcat/6.0.36

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

2 則留言

0
海綿寶寶
iT邦大神 1 級 ‧ 2016-09-06 17:20:46

還有另一個詭異的事件
就是
如果換個地方問問題
就會有邦友回答了
/images/emoticon/emoticon68.gif

2
fillano
iT邦超人 1 級 ‧ 2016-09-06 17:27:32

所以index.jsp第二行是什麼?這個嗎?

<%@ taglib prefix="s" uri="/struts-tags" %>

應該是struts沒設定好吧...

看更多先前的回應...收起先前的回應...

index.jsP 第二行沒錯是

<%@ taglib prefix="s" uri="/struts-tags" %>

但設定沒變只是移動過去

fillano iT邦超人 1 級 ‧ 2016-09-07 12:17:54 檢舉

你去logs目錄把stderr的log中,找出完整的錯誤代碼貼出來,這樣比較好推測問題。除了這個,應該還有其他的錯誤。file not found只是結果。

偏偏錯誤只有那個
再來我重建一次環境步驟也是一樣居然正常了!!

感謝您的回答!!

fillano iT邦超人 1 級 ‧ 2016-09-07 15:28:19 檢舉

XD

我要留言

立即登入留言