jBoss7은 설치 되어 있어야 하고, Web Application 기준으로 설명 한다.


아래 그림은 일반적인 Web Application의 폴더 구조 이다. /WEB-INF/ 안에 해당 파일을 만들어 보자.




<?xml version="1.0" encoding="UTF-8"?>

<!-- JBoss, Home of Professional Open Source Copyright 2012, Red Hat, Inc. 

    and/or its affiliates, and individual contributors by the @authors tag. See 

    the copyright.txt in the distribution for a full listing of individual contributors. 

    Licensed under the Apache License, Version 2.0 (the "License"); you may not 

    use this file except in compliance with the License. You may obtain a copy 

    of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required 

    by applicable law or agreed to in writing, software distributed under the 

    License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 

    OF ANY KIND, either express or implied. See the License for the specific 

    language governing permissions and limitations under the License. -->


<!-- Configure usage of the security domain "other" -->

<jboss-web>

   <context-root>/</context-root>

</jboss-web>



jBoss가 Start 될 때, Path를 설정 하는 부분이다. 


  • / -> http://localhost:8080/
  • /test -> http://localhost:8080/test

이런 형태로 적용이 된다.


+ Recent posts