Wednesday 17 July 2013

org.xml.sax.helpers.SecuritySupport12 cannot access its superclass org.xml.sax.helpers.SecuritySupport

Error:


java.lang.IllegalAccessError: class org.xml.sax.helpers.SecuritySupport12 cannot access its superclass org.xml.sax.helpers.SecuritySupport

berlaku ketika cuba run kod di atas Tomcat 7 dengan JDK 1.7

Penyelesaian:

masukkan property metadata-complete="true" dalam web.xml

Contoh:

<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_3_0.xsd" id="WebApp_ID" version="3.0" metadata-complete="true">


Rujukan:


2 comments:

小洛 said...

thanks~ it solved that exception! ;)

Danushka Hiripitiyage said...

Thanks sana... it solved my problem too.. thanks again