javax.xml.parsers.ParserConfigurationException: Feature 'http://apache.org/xml/features/xinclude' is not recognized.
JEUSMain.xml
<command-option> 추가
-Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z
제우스가 가지고 있는 javax.persistence 버전이 낮아서 오류 발생
/WEB-INF/lib 에 있는 jar를 먼저 로딩하게 하여 버전을 올림...
==> /WEB-INF/jeus-web-dd.xml
<webinf-first>true</webinf-first>
Xerces Parse Error with hadoop (or Solr): Feature ‘http://apache.org/xml/features/xinclude’ is not recognized.
Hadoop, when used programmatically has the nasty habit of getting messed up when reading it’s own config. The stack traces resemble this one:
Caused by: javax.xml.parsers.ParserConfigurationException: Feature ‘http://apache.org/xml/features/xinclude’ is not recognized.
at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown Source)
at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:1889)
Or this:
Caused by: java.lang.RuntimeException: javax.xml.parsers.ParserConfigurationException: Feature ‘http://apache.org/xml/features/xinclude’ is not recognized.
at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2002)
at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:1851)
How to fix that:
1) make sure you have xerces and xalan within your classpath. If you use maven just add the following entries to your dependency section.
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.9.1</version>
</dependency>
<dependency>
<groupId>xalan</groupId>
<artifactId>xalan</artifactId>
<version>2.7.1</version>
</dependency>
2) make sure the JVM uses that parser instead of defaulting to the JDK parser. To do that, pass the following param to your VM:
-Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal
JEUS 라이브러리 위치 및 순서
1. %JEUS_HOME%/lib/system
제우스 자체에서 사용하는 라이브러리
2. %JEUS_HOME%/lib/application
사용자 application에서 사용하는 라이브러이
제우스 전체 컨테이너에 공유
3. %JEUS_HOME%/lib/datasource
Datasourse생성에 필요한 라이브러리
'Server > was' 카테고리의 다른 글
JEUS WAS 한글 인코딩 (1) | 2016.08.11 |
---|---|
Broken pipe 에러 회피 및 기타 옵션 (0) | 2016.01.26 |
Tomcat 현재 열려 있는 Connection pool 개수 조회 (0) | 2015.10.12 |