JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Application Server » Tomcat  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友   
reply to topicthreaded modego to previous topicgo to next topic
話題被移動
該話題已被移動 - browser , 2005-05-24 13:53
如果您尚不清楚該話題被移動的原因,請參考論壇規則以及本版公告或者聯系本版版主。
本主題所含的標籤
無標籤
作者 IIS與Tomcat結合後上傳檔案大小無法超過50k [精華]
yilintsai





發文: 2
積分: 0
於 2005-05-24 09:17 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
各位大家好
最近嘗試將IIS與Tomcat結合
原本的測試環境是
win2003 server
IIS 6.0
Tomcat 4.1.31
JDK 1.5
如此環境下功能ㄧ切正常
但正式安裝時系統改成win2000 server
卻發生了只要JSP網頁透過IIS bridge 到 Tomcat時
上傳檔案只要超過50k就會發生錯誤
發生錯誤的狀況有時是直接顯示 無法顯示網頁
有時是發生以下錯誤代碼
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
HTTP Status 500 - 
 
--------------------------------------------------------------------------------
 
type Exception report
 
message 
 
description The server encountered an internal error () that prevented it from fulfilling this request.
 
exception 
 
javax.servlet.ServletException: Processing of multipart/form-data request failed. Stream ended unexpectedly
  at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:498)
  at org.apache.jsp.new_class_detail_do_jsp._jspService(new_class_detail_do_jsp.java:205)
  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
  at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162)
  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
  at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
  at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
  at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
  at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
  at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
  at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
  at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
  at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
  at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
  at java.lang.Thread.run(Thread.java:595)
 
root cause 
 
org.apache.commons.fileupload.FileUploadException: Processing of multipart/form-data request failed. Stream ended unexpectedly
  at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:429)
  at org.apache.jsp.new_class_detail_do_jsp._jspService(new_class_detail_do_jsp.java:137)
  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
  at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162)
  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
  at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
  at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
  at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
  at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
  at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
  at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
  at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
  at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
  at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
  at java.lang.Thread.run(Thread.java:595)
 
--------------------------------------------------------------------------------
 
Apache Tomcat/4.1.31


但如果是執行IIS上的ASP網頁就沒有上傳檔案容量限制50k的問題
也檢查過並不是JSP程式碼中上傳檔案容量有所限制

如果不透過IIS bridge 到 Tomcat
也就是直接使用我Tomcat設定的8080 port 連到JSP網頁上傳檔案也是沒有50k檔案限制問題

以上問題不知哪裡設定出了錯
麻煩大家給予建議 謝謝


reply to postreply to post
作者 Re:IIS與Tomcat結合後上傳檔案大小無法超過50k [Re:yilintsai]
alin





發文: 223
積分: 3
於 2005-05-24 10:15 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
這是一個老 Bug

http://issues.apache.org/bugzilla/show_bug.cgi?id=26890

找個新的 Connector 來試試看吧


reply to postreply to post
作者 Re:IIS與Tomcat結合後上傳檔案大小無法超過50k [Re:alin]
yilintsai





發文: 2
積分: 0
於 2005-05-24 13:43 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
alin wrote:
這是一個老 Bug

http://issues.apache.org/bugzilla/show_bug.cgi?id=26890

找個新的 Connector 來試試看吧


看來這個BUG都還沒有一個很好的解決方法
我會試試看裡面所說的SSL方式看看
謝謝您的回應


reply to postreply to post
作者 Re:IIS與Tomcat結合後上傳檔案大小無法超過50k [Re:yilintsai]
celine1130





發文: 2
積分: 0
於 2005-09-23 00:16 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
能不能把你在WIN 2003上做的IIS 6 跟Tomcat結合的方法分享一下?
我在WIN 2000上可以的方法,到WIN 2003就行不通了Disapproved


reply to postreply to post
» JWorld@TW »  Application Server » Tomcat

reply to topicthreaded modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8