EgovFrameWork 3.8에 JBoss 7.2 돌아가게 하기
순서대로 따라합시다.
0. 서버 생성
마켓플레이스에서 JBoss Tools 인스톨.
Window/Preferences > Server > Runtime Environment에서 Add
Red Hat JBoss Middleware 에서 Red Hat JBoss Enterprise ~~~ 7.1 Runtime 선택(7.2가 없어서 대체 선택함) 후 apply
New Server 후 Red Hat JBoss Enterprise Application Platform 7.1 선택 (7.2가 없어서 대체 선택함)
The selected profile requires a runtime 에서 아까 생성해준 7.2 Runtime 선택
프로젝트 설정 후 Finish
1. 파일 수정
jboss-eap-7.2\standalone\deployments\000.war\WEB-INF\lib 로 이동
spring-modules-validation-0.9.jar 압축 풀기
파일 안의 META-INF/valang.tld 파일 수정하기
<body-content>None</body-content> => <body-content>empty</body-content>
파일 저장 후, 원래대로 .jar 파일로 압축해놓기.
2. Path 설정
이클립스의 web application 폴더 구조를 보면 WEB-INF 폴더가 있음.
WEB-INF 안에 jboss-web.xml 이라는 파일 생성.
다음과 같이 넣어주기
<?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>
3. 필요시에 따라 context-validator.xml 내부 전체 주석처리하기
저장 후 실행하면 잘 돌아간다.