连接器设置:
<Connector URIencode="UTF-8" protocol="HTTP/1.1" port="8080" address="${jboss.bind.address}" compressableMimeType="text/html,text/xml,text/plain,application/x-www-form-urlencoded" compression="force" connectionTimeout="20000" redirectPort="8443" />
这似乎适用于HTML,但不适用于typesapplication/x-www-form-urlencoded 。
Jboss的版本是JBOSS_GA_4.2.2
HTTP头: POST / openacs / acs HTTP / 1.1主机: 。 。 。 :8080 Accept: / Accept-Encoding:gzip Content-Type:application / x-www-form-urlencoded; charset = utf-8内容编码:gzip内容长度:817 POST / openacs / acs HTTP / 1
tcpdump的日志Host:192.168.1.71:8080 Accept: / Accept-Encoding:gzip Content-Type:application / x-www-form-urlencoded; charset = utf-8内容编码:gzip内容长度:817 ……….. Wmo.0 …_ ..:。 ….. 4..hm …. 4M ….. LfL项目^ …..我…… S / …> … 2..9.4Lx [。 Lk。$ .. c [.N ..'.. J …%..:O.3.H..4a ……. C …. = ..)… $ ..!$ .. f … \ f&…… C..M …. C …. kX,.EP).....q..R..V6B..........g.;A.=$". .* .2l = …. + ..5.x...{.Vg.rT)....=.%...3...j..$X=..chq.!..yC?. .o..../3.>.\.O \RU.i......K..*..$.|..Xz.......=uIM...A.,.d./....v..j...V...&.x..D..9pYf.w..l5Y..... (.c)0.....c.:..oM:..^.ORRM..v~{;.OF..K*...M..+..VK.u3..nXn..gi~Lj..Z7.. 'a..&.iS......c.>Q...bU.2....n.....|U*C&X...u..%. [.;.ePV.~w.^.....*.'Wp..L....'............. [78..fuO..Z....'.....>....:......#.........0...3........(W.....b..,.......... ..4.......8~.'.{.^.3..%y...d...m6Mk.m....6.Mh...dp.>D..a.#..,...y..p..D #.........lfd..6...i...s..yL>...;..v....d5....}g.YY...........2...........j1. 。… p .. /^….|(P9.zG….Z…..HTTP/1.1 500内部服务器错误服务器:Apache-Coyote / 1.1内容types:text / html; charset = utf-8内容长度:1877date:2014年9月10日星期三14:04:32 GMT连接:closures
<html><head><title>JBossWeb/2.0.1.GA - Error report</title><style><!--H1 {font- family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font- size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background- color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans- serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans- serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans- serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u></u> </p><p><b>description</b> <u>The server encountered an internal error () that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage .javax.xml.soap.SOAPMessage.setProperty(SOAPMessage.java:439) .org.jboss.ws.core.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.java:67) .org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:207) .org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:185) .org.openacs.ACSServlet.processRequest(ACSServlet.java:347) .org.openacs.ACSServlet.doPost(ACSServlet.java:609) .javax.servlet.http.HttpServlet.service(HttpServlet.java:710) .javax.servlet.http.HttpServlet.service(HttpServlet.java:803) .org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) </pre></p><p><b>note</b> <u>The full stack trace of the root cause is available in the JBossWeb/2.0.1.GA logs.</u></p><HR size="1" noshade="noshade"> <h3>JBossWeb/2.0.1.GA</h3></body></html>
connector元素有属性compressableMimeType ,它应该包含所有需要压缩的内容types,用逗号分隔。 默认情况下,它不包含“application / x-www-form-urlencoded”。
有关更多信息,请参阅https://docs.jboss.org/jbossweb/2.1.x/config/http.html
看到错误和完整标题后继续:
这似乎是你有问题的库,要么丢失从libs/endorsed东西或有错误/冲突的版本。
请参阅https://stackoverflow.com/questions/1738542/setproperty-must-be-overridden-by-all-subclasses-of-soapmessage我个人遇到了错误,因为不小心从java.endorsed.dirs参数从JVM启动。 这可能不是你的情况,但答案给出了解决这个问题的各种select。
另外https://developer.jboss.org/message/619833围绕libs/endorsed的内容经历了同样的问题(注意链接到解决scheme的最终评论)。