You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Ralph Goers (JIRA)" <ji...@apache.org> on 2012/10/25 18:59:12 UTC

[jira] [Commented] (LOG4J2-104) LogManager initialization failed when running from Jdeveloper.

    [ https://issues.apache.org/jira/browse/LOG4J2-104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13484277#comment-13484277 ] 

Ralph Goers commented on LOG4J2-104:
------------------------------------

The reporter of this problem also has asked on Oracle's forum for a solution - https://forums.oracle.com/forums/thread.jspa?messageID=10657822. In addition, I see at least one other similar report - https://forums.oracle.com/forums/thread.jspa?messageID=9341563. A bug was also opened against the JDK - http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7099658 - which was closed as being a bug in XMLUtils.  It appears Oracle is simply ignoring this bug.
                
> LogManager initialization failed when running from Jdeveloper.
> --------------------------------------------------------------
>
>                 Key: LOG4J2-104
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-104
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Configurators
>    Affects Versions: 2.0-beta2
>         Environment: Environment:
> JDeveloper 11.1.1.6.0 
> logj42  (apache-log4j-2.0-beta2-bin)
> Windows 7 64bits
>            Reporter: Ralph Goers
>
> This issue was incorrectly opened in bugzilla as https://issues.apache.org/bugzilla/show_bug.cgi?id=54053 by Evgeny.
> Steps to Reproduce:
> //config file presents or not - does not meter.
> Run / Debug simple application:
> import org.apache.logging.log4j.LogManager;
> import org.apache.logging.log4j.Logger;
> public class test_log {
>     public test_log() {
>         super();
>     }
>     
>     static Logger logger = LogManager.getLogger(test_log.class.getName());
>     public static void main(String[] args) {
>         test_log test_log = new test_log();
>       
>         logger.entry();
>         logger.debug("test");
>         logger.error("test Err");
>         logger.exit();
>     
>     }
> ...
> }
> Actual Results:
> Failed with error
> java.lang.ExceptionInInitializerError
> 	at view.test_log.<clinit>(test_log.java:13)
> Caused by: java.lang.ClassCastException: oracle.xml.parser.v2.DTD cannot be cast to org.w3c.dom.Element
> 	at java.util.XMLUtils.load(XMLUtils.java:61)
> 	at java.util.Properties.loadFromXML(Properties.java:852)
> 	at org.apache.logging.log4j.LogManager.<clinit>(LogManager.java:77)
> Additional Info:
> When xmlparserv2.jar is deleted - application run fine.
> But - it have to be presents - when deleted, JDeveloper failed to start.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org