<div dir="ltr">Thanks! Will try the user forums :).<div><br></div><div style>-warner</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 16, 2013 at 2:41 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">
    Ah, it&#39;s probably better to use
    
    <a href="https://community.jboss.org/en/jbossas7" target="_blank">https://community.jboss.org/en/jbossas7</a>.
    This mailing list and that community page are more for the
    development of the application server.<br>
    <br>
    Is that the line it fails on? The stacktrace doesn&#39;t give much
    detail on why the log might be causing the issue. If it is indeed
    that line maybe there is a log4j configuration issue. Just a guess
    though.<div><div class="h5"><br>
    <br>
    <div>On 04/16/2013 02:26 PM, Warner Onstine
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr"><a href="https://community.jboss.org/en/jbossas7/dev" target="_blank">https://community.jboss.org/en/jbossas7/dev</a>
        was the page I went to, looking at the posts there seemed to be
        the correct spot to ask questions then saw this:<br>
        <br>
        ANNOUNCEMENT: IMPORTANT - AS7 DEV DISCUSSIONS NOW ON ML<br>
        <br>
        Hide Details<br>
        <br>
        Due to email notifications frequently not working, we are now
        using the <a href="mailto:jboss-as7-dev@lists.jboss.org" target="_blank">jboss-as7-dev@lists.jboss.org</a>
        mailing list as the primary async communication mechanism. You
        can still of course post to this forum, and we will try to
        monitor it, but it will not be as immediate as posting to the
        mailing list. Alternatively you can post to the forum here, and
        then post a reference on the mailing list to the forum.<br>
        <br>
        <br>
        not setting up log4j, using it:<br>
        LOG.info(String.format(&quot;%s startup() invoked.&quot;, className));<br>
        <br>
        -warner
        <div><br>
          On Tue, Apr 16, 2013 at 2:20 PM, James R. Perkins &lt;<a href="mailto:jperkins@redhat.com" target="_blank">jperkins@redhat.com</a>&gt;
          wrote:<br>
          &gt;<br>
          &gt; What forum by chance?<br>
          &gt;<br>
          &gt; Maybe the lib directory is correct, but I thought it only
          loaded JAR&#39;s. I could be wrong though. Is the
          com.fourtwosix.razorfish.j2eeservices.RfServiceControl.startup
          doing something to setup log4j?<br>
          &gt;<br>
          &gt;<br>
          &gt;<br>
          &gt; On 04/16/2013 02:15 PM, Warner Onstine wrote:<br>
          &gt;<br>
          &gt; I went to the forum and it said to post to the mailing
          list, is there a different forum I should be using?<br>
          &gt;<br>
          &gt; 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).<br>
          &gt;<br>
          &gt; -warner<br>
          &gt;<br>
          &gt;<br>
          &gt; On Tue, Apr 16, 2013 at 1:50 PM, James R. Perkins &lt;<a href="mailto:jperkins@redhat.com" target="_blank">jperkins@redhat.com</a>&gt;
          wrote:<br>
          &gt;&gt;<br>
          &gt;&gt; This should really be a post on the forum, but your
          log4j.xml file should probably be in EAR/META-INF not EAR/lib.<br>
          &gt;&gt;<br>
          &gt;&gt;<br>
          &gt;&gt; On 04/16/2013 11:57 AM, Warner Onstine wrote:<br>
          &gt;&gt;<br>
          &gt;&gt; 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.<br>
          &gt;&gt;<br>
          &gt;&gt; Here&#39;s my current jboss-deployment-structure file:<br>
          &gt;&gt; &lt;jboss-deployment-structure
          xmlns=&quot;urn:jboss:deployment-structure:1.2&quot;&gt;<br>
          &gt;&gt;    
&lt;ear-subdeployments-isolated&gt;false&lt;/ear-subdeployments-isolated&gt;<br>
          &gt;&gt;     &lt;deployment&gt;<br>
          &gt;&gt;         &lt;exclusions&gt;<br>
          &gt;&gt;             &lt;module name=&quot;org.apache.log4j&quot;/&gt;<br>
          &gt;&gt;         &lt;/exclusions&gt;<br>
          &gt;&gt;     &lt;/deployment&gt;<br>
          &gt;&gt;<br>
          &gt;&gt;     &lt;sub-deployment
          name=&quot;rf-service-ejb-0.1-SNAPSHOT.jar&quot;&gt;<br>
          &gt;&gt;         &lt;exclusions&gt;<br>
          &gt;&gt;             &lt;module name=&quot;org.apache.log4j&quot;/&gt;<br>
          &gt;&gt;         &lt;/exclusions&gt;<br>
          &gt;&gt;         &lt;dependencies&gt;<br>
          &gt;&gt;             &lt;module
          name=&quot;deployment.rf-service-ear.ear.Log4j&quot;/&gt;<br>
          &gt;&gt;         &lt;/dependencies&gt;<br>
          &gt;&gt;     &lt;/sub-deployment&gt;<br>
          &gt;&gt;<br>
          &gt;&gt;     &lt;module
          name=&quot;deployment.rf-service-ear.ear.Log4j&quot;&gt;<br>
          &gt;&gt;         &lt;resources&gt;<br>
          &gt;&gt;             &lt;resource-root
          path=&quot;lib/log4j-1.2.17.jar&quot;&gt;<br>
          &gt;&gt;             &lt;/resource-root&gt;<br>
          &gt;&gt;         &lt;/resources&gt;<br>
          &gt;&gt;     &lt;/module&gt;<br>
          &gt;&gt; &lt;/jboss-deployment-structure&gt;<br>
          &gt;&gt;<br>
          &gt;&gt; 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):<br>
          &gt;&gt; -Dorg.jboss.as.logging.per-deployment=false<br>
          &gt;&gt;<br>
          &gt;&gt; My current error is below<br>
          &gt;&gt; 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<br>
          &gt;&gt; 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]<br>
          &gt;&gt; at
          java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
          [rt.jar:1.7.0_15]<br>
          &gt;&gt; at
          java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
          [rt.jar:1.7.0_15]<br>
          &gt;&gt; at
          java.util.concurrent.FutureTask.run(FutureTask.java:166)
          [rt.jar:1.7.0_15]<br>
          &gt;&gt; at
          java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          [rt.jar:1.7.0_15]<br>
          &gt;&gt; at
          java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          [rt.jar:1.7.0_15]<br>
          &gt;&gt; at java.lang.Thread.run(Thread.java:722)
          [rt.jar:1.7.0_15]<br>
          &gt;&gt; at
          org.jboss.threads.JBossThread.run(JBossThread.java:122)<br>
          &gt;&gt; Caused by: java.lang.IllegalStateException:
          JBAS011048: Failed to construct component instance<br>
          &gt;&gt; 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]<br>
          &gt;&gt; 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]<br>
          &gt;&gt; at
org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:118)<br>
          &gt;&gt; at
org.jboss.as.ejb3.component.singleton.SingletonComponent.start(SingletonComponent.java:133)<br>
          &gt;&gt; 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]<br>
          &gt;&gt; ... 7 more<br>
          &gt;&gt; Caused by: javax.ejb.EJBException: JBAS014580:
          Unexpected Error<br>
          &gt;&gt; at
org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:161)<br>
          &gt;&gt; at
org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:228)<br>
          &gt;&gt; at
org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:331)<br>
          &gt;&gt; at
org.jboss.as.ejb3.tx.SingletonLifecycleCMTTxInterceptor.processInvocation(SingletonLifecycleCMTTxInterceptor.java:57)<br>
          &gt;&gt; at
          org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]<br>
          &gt;&gt; at
org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)<br>
          &gt;&gt; at
          org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]<br>
          &gt;&gt; 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]<br>
          &gt;&gt; at
          org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]<br>
          &gt;&gt; at
          org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
[jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]<br>
          &gt;&gt; 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]<br>
          &gt;&gt; ... 11 more<br>
          &gt;&gt; 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<br>
          &gt;&gt; at
com.fourtwosix.razorfish.j2eeservices.RfServiceControl.startup(RfServiceControl.java:32)<br>
          &gt;&gt; at
          sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [rt.jar:1.7.0_15]<br>
          &gt;&gt; at
          sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          [rt.jar:1.7.0_15]<br>
          &gt;&gt; at
          sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          [rt.jar:1.7.0_15]<br>
          &gt;&gt; at java.lang.reflect.Method.invoke(Method.java:601)
          [rt.jar:1.7.0_15]<br>
          &gt;&gt; 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]<br>
          &gt;&gt; at
          org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]<br>
          &gt;&gt; at
          org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
[jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]<br>
          &gt;&gt; at
          org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]<br>
          &gt;&gt; at
org.jboss.as.weld.injection.WeldInjectionInterceptor.processInvocation(WeldInjectionInterceptor.java:73)<br>
          &gt;&gt; at
          org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]<br>
          &gt;&gt; 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]<br>
          &gt;&gt; at
          org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]<br>
          &gt;&gt; at
          org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
[jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]<br>
          &gt;&gt; at
          org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]<br>
          &gt;&gt; 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]<br>
          &gt;&gt; at
          org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
[jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]<br>
          &gt;&gt; at
org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:226)<br>
          &gt;&gt; ... 20 more<br>
          &gt;&gt;<br>
          &gt;&gt; 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.<br>
          &gt;&gt;<br>
          &gt;&gt; Thanks in advance, been beating my head against this
          particular rock for the past 2 days.<br>
          &gt;&gt;<br>
          &gt;&gt; -warner<br>
          &gt;&gt;<br>
          &gt;&gt;<br>
          &gt;&gt; _______________________________________________<br>
          &gt;&gt; jboss-as7-dev mailing list<br>
          &gt;&gt; <a href="mailto:jboss-as7-dev@lists.jboss.org" target="_blank">jboss-as7-dev@lists.jboss.org</a><br>
          &gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a><br>
          &gt;&gt;<br>
          &gt;&gt;<br>
          &gt;&gt; -- <br>
          &gt;&gt; James R. Perkins<br>
          &gt;&gt; JBoss by Red Hat<br>
          &gt;&gt;<br>
          &gt;&gt;<br>
          &gt;&gt; _______________________________________________<br>
          &gt;&gt; jboss-as7-dev mailing list<br>
          &gt;&gt; <a href="mailto:jboss-as7-dev@lists.jboss.org" target="_blank">jboss-as7-dev@lists.jboss.org</a><br>
          &gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a><br>
          &gt;<br>
          &gt;<br>
          &gt;<br>
          &gt; -- <br>
          &gt; James R. Perkins<br>
          &gt; JBoss by Red Hat</div>
      </div>
    </blockquote>
    <br>
    <pre cols="72">-- 
James R. Perkins
JBoss by Red Hat</pre>
  </div></div></div>

</blockquote></div><br></div>