How to set response content type in jboss 5.x ? Is there any configuration setting for jboss 5.x? - jboss5.x

I need to set response content type to "text/html;charset=UTF-8" at server level in jboss 5.x . Please me help on this topic.
Thanks
Tahir.

You have to edit the server.xml which is inside jbossweb.sar. Hope the below link would be useful to you
https://community.jboss.org/message/702917

Related

Apache Archiva Error Message - Configuration can not be saved when it is loaded from two sources

I have this error message when I try to add or edit any configuration.
Already make sure only 1 Archiva.xml can be load as configuration source.  
I am using Weblogic 12.2.1.4.0 if there is related.
Please help, thanks.

How to config remember me in jasig cas 5.1.x

I successed in cas 4.2.x via this document:
https://apereo.github.io/cas/4.2.x/installation/Configuring-LongTerm-Authentication.html
many changes in cas 5.1.x ,now I want to upgrade to 5.1.x . Readed many documents,but still confused. like . where is <var name="credential" class="org.jasig.cas.authentication.UsernamePasswordCredential"/> etc.
I don't know how to config it . any one master it? or tell me the document where it is . Thanks.
Since you asked about the document and its location, the guide is here
https://apereo.github.io/cas/5.1.x/installation/Configuring-LongTerm-Authentication.html
Follow the guide and adjust your settings appropriately. There is no need for xml.

What is the use of org.apache.struts.chain.ComposableRequestProcessor in struts and java.nio.charset.IllegalCharsetNameException

We ran into a migration issue where in we are migrating an application from JBoss 4.2.1.GA to JBoss EAP 7.0.0.GA. The exception encountered is as below.
java.lang.RuntimeException: java.nio.charset.IllegalCharsetNameException:
at io.undertow.servlet.spec.RequestDispatcherImpl.forwardImpl(RequestDispatcherImpl.java:226)
So we have a fix for the same which involves
Adding the below in the struts config.xml file.
this line in config
<controller processorClass="org.apache.struts.chain.ComposableRequestProcessor"
locale="true" nocache="false" contentType="text/html; charset= UTF8">
<set-property property="maxFileSize" value="7M"/>
</controller>
has been changes to
tag from charset= UTF8 to charset= ISO-8859-1"
and an additional property
This has resolved the issue but wants to know what is the proper use of class ComposableRequestProcessor. And why it is helping our solution here.
We don't see a proper document or blog on the net explaining why and when we need to add this configration. What is the advantage of doing so?
Also, we want to know JBoss 4.2.1.GA the page-context encoding was not enforced but in JBoss EAP 7.0.0.GA we need to define it as ISO else it won't work in windows server environment.
We know it has to do with some Undertow implementation over the earlier Apache Tomcat HTTPs implementation framework used by JBoss.
Any help by pointing to right document or information is widely appreciated.

which jboss application server works with netbeans 6.91.?

I am trying to add a jboss server in netbeans 6.9.1
I tried,
openlogic-jboss-5.1.0.GA-all-bin-1
jboss-as-distribution-6.1.0.Final
jboss-as-distribution-6.0.0.20100721-M4-src
jboss-5.1.0.GA-src.tar
but it gives the same error select valid jboss application server 4 or 5
can anybody please give me a link with exact verson of it.
I need to specify the path to the folder of the server only or do i need to do anything else?
please explain in brief.
Thank you.
your answer is appreciated.
I got the solution. I am not deleting this question because anybody with such query can get help from it.
refer this link
http://www.paulomotta.pro.br/2011/05/14/netbeans-6-9-jboss-6-support-to-use-icefaces-2-0
download the code specified at the end of the block and put the files in the specified location.

Declaring a JNDI variable in JBoss 4.0.5

I want to declare a new JNDI variable in the JBoss 4.0.5 server. Can someone please explain how this can be done?
waiting for your replies.
Thanks.
Found these two links that can help...
create a file called filename-service.xml under $CATALINA_BASE$/deploy directory with contents as indicated in these links
http://www.redhat.com/docs/manuals/jboss/jboss-eap-4.2/doc/Server_Configuration_Guide/Additional_Naming_MBeans-JNDI_Binding_Manager.html
check a jboss jira, JBPAPP-2809 for correction in xmlns:jndi
Have a look here and specifically here. You need to add an entry in the ejb-jar.xml file of your application.
I am facing this probelm too today. Looks like to add a simple jndi entry on the app server, in JBoss one will have to create a new file $CATALINA_BASE/conf/context.xml and invoke a MBean to add the variable and its value.
In server like websphere you can pass new values in jndi.properties, which jboss 5.0.0 upwards does not like.
Very Bad that there is absolutely NO DOCUMENTATION in jboss/docs that indicate anything on this topic.