Apache로 쓰던걸 WebLogic으로 바꾸니 error가 많이남.
오류들!
1. 똑같은 jar가 2개 있으면 apache 에서는 그냥 돌아갔는데 weblogic에서는 한개를 지우라고 뜸.
2.
weblogic.servlet.jsp.CompilationException: Failed to compile JSP /WEB-INF/view/main.jsp
main.jsp:6:5: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
^----^
main.jsp:6:5: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
-------------> 검색 결과 Weblogic과 STS(spring)를 같이 사용시 발생하는것이란다.
<form> 태그 이놈때문임..
해결책은 다음의 순서대로.
1.
web.xml에
<jsp-config>
<taglib>
<taglib-uri>http://www.springframework.org/tags/form</taglib-uri>
<taglib-location>/WEB-INF/tlds/spring-form.tld</taglib-location>
</taglib>
</jsp-config>
를 추가
2.
코드를 보면<taglib-location>에 /WEB-INF/tlds/spring-form.tld 라고 있는데 spring-form.tld 는
C:\Users\{사용자명}\.m2\repository\org\springframework\spring-webmvc\{자기 버
전}.RELEASE\{자기 버전}.jar을 압축을 풀면 META-INF 폴더 안에 spring-form.tld가 들어있다.
3.
이 spring-form.tld 파일을 복사해서 내 프로젝트에서 위의 <taglib-location> 경로에 갖다 놓으면 된다