jboss AS 7.1에서 404에러 페이지 설정하기

폴더 설정

ROOT.war
  - META-INF
  - WEB-INF
    - web.xml
    - jboss-web.xml
  - error
    - 404.xml


web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
  <display-name>yourcompanyname</display-name>
  <error-page>
            <error-code>404</error-code>
            <location>/error/404.html</location>
  </error-page>
</web-app>




무료다운로드: https://apzw3.app.goo.gl/sheet

댓글

이 블로그의 인기 게시물

Sourcetree에서 bitbucket에 ssh 공개키 접속하기

시트계산기로 계산결과를 비교해보자