Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>We were also having this issue and since we are required to configure the logging using Log4J this was an issue. However, using <code>prefer-application-packages</code> seems to work so far, i.e. putting a <code>weblogic-application.xml</code> file in the <code>META-INF</code> folder of the EAR with the following:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;weblogic-application xmlns="http://www.bea.com/ns/weblogic/90" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-application.xsd http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd" &gt; &lt;prefer-application-packages&gt; &lt;package-name&gt;org.slf4j&lt;/package-name&gt; &lt;/prefer-application-packages&gt; &lt;/weblogic-application&gt; </code></pre> <p>(ok the specified xmlns is an old one but it works, you may update it if you want, I just took ours and removed the unrelated parts).</p> <p>We still have the aforementioned warning but it uses Log4J as required. In fact, if you look at <a href="http://www.slf4j.org/codes.html#multiple_bindings" rel="nofollow">the URL specified on the next line</a> in the logs (omitted here in the question), it says:</p> <blockquote> <p>The warning emitted by SLF4J is just that, a warning. SLF4J will still bind with <strong>the first framework it finds on the class path</strong>. </p> </blockquote> <p>So I guess it still uses the normal class-loading mechanism for loading <code>org.slf4j.impl.StaticLoggerBinder</code>, which we actually configured to prefer the one in our EAR (i.e. make it the first on the classpath).</p> <p>Yet, the warning remains but it works. Fixing the warning would be good but probably not possible without altering WebLogic's provided libraries.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload