<div dir="ltr">I went to the forum and it said to post to the mailing list, is there a different forum I should be using?<div><br></div><div style>And I have had it in both places same results (after having it in META-INF I found several posts that said to put it in the lib directory, including the migration guide).</div>
<div style><br></div><div style>-warner</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 16, 2013 at 1:50 PM, James R. Perkins <span dir="ltr">&lt;<a href="mailto:jperkins@redhat.com" target="_blank">jperkins@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    This should really be a post on the forum, but your log4j.xml file
    should probably be in EAR/META-INF not EAR/lib.<div><div class="h5"><br>
    <br>
    <div>On 04/16/2013 11:57 AM, Warner Onstine
      wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <div dir="ltr">I have tried multiple different ways to get my
        log4j working, but to no avail. When we were on 7.1.1 the below
        worked beautifully. We migrated to 7.1.3 (EAP 6.0.1GA) and it is
        no longer working and I&#39;ve gone through several of the forum
        solutions as well as the migration guide but nothing seems to be
        working.
        <div>
          <br>
        </div>
        <div>Here&#39;s my current jboss-deployment-structure file:</div>
        <div>
          <div>&lt;jboss-deployment-structure
            xmlns=&quot;urn:jboss:deployment-structure:1.2&quot;&gt;</div>
          <div>   
&lt;ear-subdeployments-isolated&gt;false&lt;/ear-subdeployments-isolated&gt;</div>
          <div>    &lt;deployment&gt;</div>
          <div>        &lt;exclusions&gt;</div>
          <div>            &lt;module name=&quot;org.apache.log4j&quot;/&gt;</div>
          <div>        &lt;/exclusions&gt;</div>
          <div>    &lt;/deployment&gt;</div>
          <div><br>
          </div>
          <div>    &lt;sub-deployment
            name=&quot;rf-service-ejb-0.1-SNAPSHOT.jar&quot;&gt;</div>
          <div>        &lt;exclusions&gt;</div>
          <div>            &lt;module name=&quot;org.apache.log4j&quot;/&gt;</div>
          <div>        &lt;/exclusions&gt;</div>
          <div>        &lt;dependencies&gt;</div>
          <div>            &lt;module
            name=&quot;deployment.rf-service-ear.ear.Log4j&quot;/&gt;</div>
          <div>        &lt;/dependencies&gt;</div>
          <div>    &lt;/sub-deployment&gt;</div>
          <div><br>
          </div>
          <div>    &lt;module
            name=&quot;deployment.rf-service-ear.ear.Log4j&quot;&gt;</div>
          <div>        &lt;resources&gt;</div>
          <div>            &lt;resource-root
            path=&quot;lib/log4j-1.2.17.jar&quot;&gt;</div>
          <div>            &lt;/resource-root&gt;</div>
          <div>        &lt;/resources&gt;</div>
          <div>    &lt;/module&gt;</div>
          <div>&lt;/jboss-deployment-structure&gt;</div>
          <div><br>
          </div>
          <div>I&#39;ve tried just the basic exclusion (and nothing
            else). I have also added this to the server startup (as
            recommended by the migration guide):</div>
          <div>-Dorg.jboss.as.logging.per-deployment=false<br>
          </div>
        </div>
        <div><br>
        </div>
        <div>My current error is below</div>
        <div>
          <div>11:47:47,252 ERROR [org.jboss.msc.service.fail]
            (ServerService Thread Pool -- 95) MSC000001: Failed to start
            service
            jboss.deployment.subunit.&quot;rf-service-ear.ear&quot;.&quot;rf-service-ejb-0.1-SNAPSHOT.jar&quot;.component.RfServiceControl.START:
            org.jboss.msc.service.StartException in service
            jboss.deployment.subunit.&quot;rf-service-ear.ear&quot;.&quot;rf-service-ejb-0.1-SNAPSHOT.jar&quot;.component.RfServiceControl.START:
            java.lang.IllegalStateException: JBAS011048: Failed to
            construct component instance</div>
          <div><span style="white-space:pre-wrap"> </span>at
            org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:57)
            [jboss-as-ee-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]</div>
          <div><span style="white-space:pre-wrap"> </span>at
            java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
            [rt.jar:1.7.0_15]</div>
          <div><span style="white-space:pre-wrap"> </span>at
            java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
            [rt.jar:1.7.0_15]</div>
          <div><span style="white-space:pre-wrap"> </span>at
            java.util.concurrent.FutureTask.run(FutureTask.java:166)
            [rt.jar:1.7.0_15]</div>
          <div><span style="white-space:pre-wrap"> </span>at
            java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
            [rt.jar:1.7.0_15]</div>
          <div><span style="white-space:pre-wrap"> </span>at
            java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
            [rt.jar:1.7.0_15]</div>
          <div><span style="white-space:pre-wrap"> </span>at
            java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_15]</div>
          <div><span style="white-space:pre-wrap"> </span>at
            org.jboss.threads.JBossThread.run(JBossThread.java:122)</div>
          <div>Caused by: java.lang.IllegalStateException: JBAS011048:
            Failed to construct component instance</div>
          <div><span style="white-space:pre-wrap"> </span>at
            org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:163)
            [jboss-as-ee-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]</div>
          <div><span style="white-space:pre-wrap"> </span>at
            org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:85)
            [jboss-as-ee-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]</div>
          <div><span style="white-space:pre-wrap"> </span>at
org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:118)</div>
          <div><span style="white-space:pre-wrap"> </span>at
org.jboss.as.ejb3.component.singleton.SingletonComponent.start(SingletonComponent.java:133)</div>
          <div><span style="white-space:pre-wrap"> </span>at
            org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:54)
            [jboss-as-ee-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]</div>
          <div><span style="white-space:pre-wrap"> </span>... 7
            more</div>
          <div>Caused by: javax.ejb.EJBException: JBAS014580: Unexpected
            Error</div>
          <div><span style="white-space:pre-wrap"> </span>at
org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:161)</div>
          <div><span style="white-space:pre-wrap"> </span>at
org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:228)</div>
          <div><span style="white-space:pre-wrap"> </span>at
org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:331)</div>
          <div><span style="white-space:pre-wrap"> </span>at
org.jboss.as.ejb3.tx.SingletonLifecycleCMTTxInterceptor.processInvocation(SingletonLifecycleCMTTxInterceptor.java:57)</div>
          <div><span style="white-space:pre-wrap"> </span>at
            org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]</div>
          <div><span style="white-space:pre-wrap"> </span>at
org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)</div>
          <div><span style="white-space:pre-wrap"> </span>at
            org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]</div>
          <div><span style="white-space:pre-wrap"> </span>at
            org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
            [jboss-as-ee-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]</div>
          <div><span style="white-space:pre-wrap"> </span>at
            org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]</div>
          <div><span style="white-space:pre-wrap"> </span>at
            org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
[jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]</div>
          <div><span style="white-space:pre-wrap"> </span>at
            org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:161)
            [jboss-as-ee-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]</div>
          <div><span style="white-space:pre-wrap"> </span>... 11
            more</div>
          <div>Caused by: java.lang.LinkageError: loader constraint
            violation: when resolving field &quot;LOG&quot; the class loader
            (instance of org/jboss/modules/ModuleClassLoader) of the
            referring class,
            com/fourtwosix/razorfish/common/j2eeservices/ServiceControlBase,
            and the class loader (instance of
            org/jboss/modules/ModuleClassLoader) for the field&#39;s
            resolved type, viceControlBase, have different Class objects
            for that type</div>
          <div><span style="white-space:pre-wrap"> </span>at
com.fourtwosix.razorfish.j2eeservices.RfServiceControl.startup(RfServiceControl.java:32)</div>
          <div><span style="white-space:pre-wrap"> </span>at
            sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            [rt.jar:1.7.0_15]</div>
          <div><span style="white-space:pre-wrap"> </span>at
            sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            [rt.jar:1.7.0_15]</div>
          <div><span style="white-space:pre-wrap"> </span>at
            sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            [rt.jar:1.7.0_15]</div>
          <div><span style="white-space:pre-wrap"> </span>at
            java.lang.reflect.Method.invoke(Method.java:601)
            [rt.jar:1.7.0_15]</div>
          <div><span style="white-space:pre-wrap"> </span>at
            org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptorFactory$ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptorFactory.java:130)
            [jboss-as-ee-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]</div>
          <div><span style="white-space:pre-wrap"> </span>at
            org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]</div>
          <div><span style="white-space:pre-wrap"> </span>at
            org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
[jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]</div>
          <div><span style="white-space:pre-wrap"> </span>at
            org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]</div>
          <div><span style="white-space:pre-wrap"> </span>at
org.jboss.as.weld.injection.WeldInjectionInterceptor.processInvocation(WeldInjectionInterceptor.java:73)</div>
          <div><span style="white-space:pre-wrap"> </span>at
            org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]</div>
          <div><span style="white-space:pre-wrap"> </span>at
            org.jboss.as.ee.component.ManagedReferenceInterceptorFactory$ManagedReferenceInterceptor.processInvocation(ManagedReferenceInterceptorFactory.java:95)
            [jboss-as-ee-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]</div>
          <div><span style="white-space:pre-wrap"> </span>at
            org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]</div>
          <div><span style="white-space:pre-wrap"> </span>at
            org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
[jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]</div>
          <div><span style="white-space:pre-wrap"> </span>at
            org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]</div>
          <div><span style="white-space:pre-wrap"> </span>at
            org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
            [jboss-as-ee-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]</div>
          <div><span style="white-space:pre-wrap"> </span>at
            org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]</div>
          <div><span style="white-space:pre-wrap"> </span>at
org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:226)</div>
          <div><span style="white-space:pre-wrap"> </span>... 20
            more</div>
          <div><br>
          </div>
          <div>Anyone have any clue what I&#39;m doing wrong? (Oh,
            and I&#39;ve verified that my log4j.xml file is in my lib
            directory as is the log4j-1.2.17.jar file.</div>
          <div><br>
          </div>
          <div>Thanks in advance, been beating my head against
            this particular rock for the past 2 days.</div>
          <div><br>
          </div>
          <div>-warner</div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
jboss-as7-dev mailing list
<a href="mailto:jboss-as7-dev@lists.jboss.org" target="_blank">jboss-as7-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a></pre><span class="HOEnZb"><font color="#888888">
    </font></span></blockquote><span class="HOEnZb"><font color="#888888">
    <br>
    <pre cols="72">-- 
James R. Perkins
JBoss by Red Hat</pre>
  </font></span></div>

<br>_______________________________________________<br>
jboss-as7-dev mailing list<br>
<a href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a><br></blockquote></div><br></div>