Dashboard > Velo > Jboss Troubleshooting
Jboss Troubleshooting
Added by Asaf Shakarchi, last edited by Asaf Shakarchi on Jun 26, 2008  (view change)
Labels: 
(None)


HTTP GET method parameters UTF-8 encoding.

If you would like to pass parameters as HTTP GET method that are UTF-8 encoded then you have to modify the normal behavior of Tomcat as follows:

  • Open with your favorite editor the tomcat server descriptor:
    nano JBOSS_HOME/server/default/deploy/jboss-web.deployer/server.xml

And add 'URIEncoding="UTF-8"' to the correct Connector tag that defines the connector that host the site.

Following is an explanation how to modify the default Jboss connector:

<Connector port="8080" address="${jboss.bind.address}"    
         maxThreads="250" maxHttpHeaderSize="8192"
         emptySessionPath="true" protocol="HTTP/1.1"
         enableLookups="false" redirectPort="8443" acceptCount="100"
         connectionTimeout="20000" disableUploadTimeout="true"/>

To:

<Connector port="8080" address="${jboss.bind.address}"    
         maxThreads="250" maxHttpHeaderSize="8192"
         emptySessionPath="true" protocol="HTTP/1.1"
         enableLookups="false" redirectPort="8443" acceptCount="100"
         connectionTimeout="20000" disableUploadTimeout="true" URIEncoding="UTF-8"/>

Binding JBoss to other IPs

By default, Jboss binds its services to the 'localhost' interface (127.0.0.1),
Please follow the instructions below in order to bind Jboss services to other network interfaces:

  • Open with your favorite editor and edit Jboss run file:

In Linux:

nano JBOSS_HOME/bin/run.conf

And add the following line at the end of the file:

JAVA_OPTS="$JAVA_OPTS -Djboss.bind.address=0.0.0.0"




- In Windows (when running through run.bat):

notepad JBOSS_HOME/bin/run.bat

And add the line below (after one of the lines that start with set JAVA_OPTS)

set JAVA_OPTS=%JAVA_OPTS% -Djboss.bind.address=0.0.0.0



- In Windows (when running by service):

notepad JBOSS_HOME/bin/service.bat

Under line :cmdStart find the line:

call run.bat > run.log

And change it to:

call run.bat -b 0.0.0.0 > run.log
Binding Jboss to specific IP instead of all IPs

specifying 0.0.0.0 will bind Jboss to all IPs, if you would like to bind Jboss to a specific IP, replace 0.0.0.0 with the relevant IP address.

The gateway<->jboss connectivity does not support utf characters.

Adding the runtime parameter below will tell Jboss to encode characters as UTF-8 over its web services:

  • Open with your favorite editor and edit Jboss run file:

In Linux:

nano JBOSS_HOME/bin/run.conf

And add the following line at the end of the file:

JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=utf-8




- In Windows (when running through run.bat):

notepad JBOSS_HOME/bin/run.bat

And add the line below (after one of the lines that start with set JAVA_OPTS)

set JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=utf-8



Site running on a free Atlassian Confluence Open Source Project License granted to Safehaus. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.4 Build:#809 Jun 12, 2007) - Bug/feature request - Contact Administrators