Jboss Error Page
Contents |
not work correctly without it enabled. Please turn JavaScript back on and reload this page. All Places > GateIn > Articles Currently Being Moderated Custom Error Pages Version 1 Created by Matt Wringe on Oct 26, 2011 1:45 PM. Last modified by Matt jboss-web.xml error page Wringe on Oct 26, 2011 2:08 PM. Creating custom error pages in jboss eap 6 custom error page GateIn requires an extra step than what would normally be encountered with a java based web application. If jboss 404 error the following steps are not followed, then GateIn will use the default error pages for the server.Modify the portal web.xml to add the custom error pagesYou will need to configure
Jboss Custom 404 Page
the web.xml of the gatein.ear/02Portal.war just like any other normal web application which has custom error pages.For example, to add a custom 404 page, you would need to add the following to the gatein.ear/02portal.war/WEB-INF/web.xml
here for a quick overview of the site Help Center Detailed answers to any questions you might have jbweb000065 Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just https://developer.jboss.org/docs/DOC-17305 like you, helping each other. Join them; it only takes a minute: Sign up How to set a custom 404 page in JBoss 5? up vote 2 down vote favorite 2 How to set a custom 404 page in JBoss 5? jboss jboss5.x share|improve this question edited Jan 18 '12 at 19:11 ThinkingStiff 48.5k16109206 asked Sep http://stackoverflow.com/questions/3754237/how-to-set-a-custom-404-page-in-jboss-5 20 '10 at 18:20 gennad 1,54472941 add a comment| 1 Answer 1 active oldest votes up vote 5 down vote accepted In general handling custom error pages is more to do with the servlet spec rather than the actual application container. Consequently, the most common place to put this is in your web.xml, like this:
Red Hat Certificate System Red Hat Satellite Subscription Asset Manager Red Hat Update Infrastructure Red Hat Insights Ansible Tower by Red Hat Cloud https://access.redhat.com/solutions/18184 Computing Back Red Hat CloudForms Red Hat OpenStack Platform Red Hat http://middlewaremagic.com/jboss/?p=1334 Cloud Infrastructure Red Hat Cloud Suite Red Hat OpenShift Container Platform Red Hat OpenShift Online Red Hat OpenShift Dedicated Storage Back Red Hat Gluster Storage Red Hat Ceph Storage JBoss Development and Management Back Red Hat JBoss Enterprise Application Platform Red Hat JBoss Data Grid Red error page Hat JBoss Web Server Red Hat JBoss Portal Red Hat JBoss Operations Network Red Hat JBoss Developer Studio JBoss Integration and Automation Back Red Hat JBoss Data Virtualization Red Hat JBoss Fuse Red Hat JBoss A-MQ Red Hat JBoss BPM Suite Red Hat JBoss BRMS Mobile Back Red Hat Mobile Application Platform Services Back Consulting Technical Account Management jboss error page Training & Certifications Red Hat Enterprise Linux Developer Program Support Get Support Production Support Development Support Product Life Cycle & Update Policies Knowledge Search Documentation Knowledgebase Videos Discussions Ecosystem Browse Certified Solutions Overview Partner Resources Tools Back Red Hat Insights Learn More Red Hat Access Labs Explore Labs Configuration Deployment Troubleshooting Security Additional Tools Red Hat Access plug-ins Red Hat Satellite Certificate Tool Security Back Product Security Center Security Updates Security Advisories Red Hat CVE Database Security Labs Resources Overview Security Blog Security Measurement Severity Ratings Backporting Policies Product Signing (GPG) Keys Community Back Discussions Red Hat Enterprise Linux Red Hat Virtualization Red Hat Satellite Customer Portal Private Groups All Discussions Start a Discussion Blogs Customer Portal Red Hat Product Security Red Hat Access Labs Red Hat Insights All Blogs Events Customer Events Red Hat Summit Stories Red Hat Subscription Benefits You Asked. We Acted. Open Source Communities Subscriptions Downloads Support Cases Account Back Log In Register Red Hat Account Number: Account Details Newsletter and Contact Preferences User Management Account Main
in Apache for JBoss AS7 by Ravish Mody under Apache, Jboss AS7, JBossAS7, mod_jk, Proxy, WebServer EmailPrintIn this article we would show a simple demonstration of using our own custom error pages which would be severed from Apache side with the static contents like image/HTML/etc files, however here we would using images and HTML pages as a repository. Custom error pages are been required by everyone in there production environments, becasue one would not like there clients to see the default error pages when some issue comes from the server side or by mistake your clients tries to access a non-existing page in your application, hence with this article you can show your own custom error pages using Apache for JBoss AS 7 We would be using the standalone mode for this article and in JBoss AS 7.1.0.CR1b version we have a different xml file called standalone-full.xml which would be used with Apache mod_jk. Now there are few things which has to be noted here to achieve this configuration Add system-properties to give the jvmRoute Enable AJP protocol and add AJP port Custom error pages in Apache for JBoss AS7 For this we would have to modify from both side Apache as well as JBoss AS7 side, hence lets see the configuration one at a time Apache side configuration Lets see what all configuration has to be made from Apache side You can configure mod_jk from the below article Configuring mod_jk to connect to JBoss In the following section of the above link: "Apache WebServer Configuration Part" In the above article you just have to replace the Step-8 by the following content ##### JBOSS ############# LoadModule jk_module modules/mod_jk.so # Include mod_jk's specific configuration file Include conf/mod_jk.conf Listen 10.10.10.10:80 # (1) Setting up the Alias for the "error" directory Alias /error/ "/etc/httpd/www/error/" # (2) Mapping the error codes with custom error pages ErrorDocument 404 /error/404_ErrorPage.html ErrorDocument 503 /error/MaintenancePage.html