-
1. Re: How to set URIEncoding in JBoss 7?
maplefeng.cn Aug 1, 2011 9:39 PM (in response to maplefeng.cn)When using AS 6, I added the attribute URIEncoding for Connector in jbossweb.sar/server.xml:
<Connector protocol="HTTP/1.1" port="8080" URIEncoding="UTF-8" address="${jboss.bind.address}" redriectPort="${jboss.web.https.port}" />
I want to add this attribute in AS 7, too. And tried to add in standalone/configuration/standalone.xml
<Connector name="http" protocol="HTTP/1.1" socket-binding="http" scheme="http" URIEncoding="UTF-8" />
But it did not work. Check the jboss-web.xsd, seems there is no such attribute for Connector in AS 7 now.
So is there any other configuration to do this?
-
2. Re: How to set URIEncoding in JBoss 7?
smigielski Sep 17, 2011 8:00 AM (in response to maplefeng.cn)Hi,
It seems that I have got the same problem. Did you find any solution for that?
-
3. Re: How to set URIEncoding in JBoss 7?
maplefeng.cn Sep 19, 2011 6:01 AM (in response to smigielski)Nope, still no solution for now.
I use JBoss 6.1.0 instead....
-
4. Re: How to set URIEncoding in JBoss 7?
mozo Nov 29, 2011 11:21 AM (in response to maplefeng.cn)Hi
In JBoss 7.1.0.Beta1 there is a solution:
https://issues.jboss.org/browse/AS7-1917
But not on the <Connector .../> element, system properties are used instead.
-
5. Re: How to set URIEncoding in JBoss 7?
mcgjboss Dec 12, 2011 12:24 PM (in response to maplefeng.cn)Please see my post on this at :
-
6. Re: How to set URIEncoding in JBoss 7?
kristjan273 Jan 18, 2012 8:01 PM (in response to mcgjboss)I have tried the above proposed solution by using as 7.1.0.CR1b and my observation is that it does not have the desired effect.
content-type is still set to default:
Response Headers Server Apache-Coyote/1.1 Content-Type text/html;charset=ISO-8859-1 Content-Length 141 Date Thu, 19 Jan 2012 00:46:33 GMT Request Headers Host 127.0.0.1:8080 User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1 Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language en-us,en;q=0.5 Accept-Encoding gzip, deflate Accept-Charset UTF-8,* Connection keep-alive
Also it is not clear to me - is AS7-1917 issue solved by setting the system properties or does it mean that setting the connector should work?
-
7. Re: How to set URIEncoding in JBoss 7?
mcgjboss Jan 22, 2012 11:01 PM (in response to kristjan273)Hello Ales,
It will not show in the context as this property has been moved to system property. Please try using the browser on the code that need URF-8 coding and see if that works. For detail see my post on APEX and JBOSS. APEX required UTF-8 and I made it work like that.
Hope this Helps,
-
8. Re: How to set URIEncoding in JBoss 7?
cvarga Feb 28, 2012 3:15 PM (in response to maplefeng.cn)Hello Maple
This discussion has already been resolved.
Take a look
https://community.jboss.org/message/643825#643825
Hope this resolve your issue
-
9. Re: How to set URIEncoding in JBoss 7?
kristjan273 Mar 6, 2012 3:36 AM (in response to cvarga)Calebe:
tnx, actually already found those parameters, but in addition I still needed to create some filter in front of all servlets to explicitly set the request encoding to UTF-8. Than it worked as desired.
IMO this discussion can be marked answered .