<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Ah, it's probably better to use
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<a href="https://community.jboss.org/en/jbossas7">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'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.<br>
<br>
<div class="moz-cite-prefix">On 04/16/2013 02:26 PM, Warner Onstine
wrote:<br>
</div>
<blockquote
cite="mid:CAG371Nd+m-pEisN--1eObS89Rx-+O8HiOEV5BUiQmHTSdK02rA@mail.gmail.com"
type="cite">
<div dir="ltr"><a moz-do-not-send="true"
href="https://community.jboss.org/en/jbossas7/dev">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 moz-do-not-send="true"
href="mailto:jboss-as7-dev@lists.jboss.org">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("%s startup() invoked.", className));<br>
<br>
-warner
<div><br>
On Tue, Apr 16, 2013 at 2:20 PM, James R. Perkins <<a
moz-do-not-send="true" href="mailto:jperkins@redhat.com">jperkins@redhat.com</a>>
wrote:<br>
><br>
> What forum by chance?<br>
><br>
> Maybe the lib directory is correct, but I thought it only
loaded JAR's. I could be wrong though. Is the
com.fourtwosix.razorfish.j2eeservices.RfServiceControl.startup
doing something to setup log4j?<br>
><br>
><br>
><br>
> On 04/16/2013 02:15 PM, Warner Onstine wrote:<br>
><br>
> I went to the forum and it said to post to the mailing
list, is there a different forum I should be using?<br>
><br>
> 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>
><br>
> -warner<br>
><br>
><br>
> On Tue, Apr 16, 2013 at 1:50 PM, James R. Perkins <<a
moz-do-not-send="true" href="mailto:jperkins@redhat.com">jperkins@redhat.com</a>>
wrote:<br>
>><br>
>> 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>
>><br>
>><br>
>> On 04/16/2013 11:57 AM, Warner Onstine wrote:<br>
>><br>
>> 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've gone through several of the
forum solutions as well as the migration guide but nothing
seems to be working.<br>
>><br>
>> Here's my current jboss-deployment-structure file:<br>
>> <jboss-deployment-structure
xmlns="urn:jboss:deployment-structure:1.2"><br>
>>
<ear-subdeployments-isolated>false</ear-subdeployments-isolated><br>
>> <deployment><br>
>> <exclusions><br>
>> <module name="org.apache.log4j"/><br>
>> </exclusions><br>
>> </deployment><br>
>><br>
>> <sub-deployment
name="rf-service-ejb-0.1-SNAPSHOT.jar"><br>
>> <exclusions><br>
>> <module name="org.apache.log4j"/><br>
>> </exclusions><br>
>> <dependencies><br>
>> <module
name="deployment.rf-service-ear.ear.Log4j"/><br>
>> </dependencies><br>
>> </sub-deployment><br>
>><br>
>> <module
name="deployment.rf-service-ear.ear.Log4j"><br>
>> <resources><br>
>> <resource-root
path="lib/log4j-1.2.17.jar"><br>
>> </resource-root><br>
>> </resources><br>
>> </module><br>
>> </jboss-deployment-structure><br>
>><br>
>> I'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>
>> -Dorg.jboss.as.logging.per-deployment=false<br>
>><br>
>> My current error is below<br>
>> 11:47:47,252 ERROR [org.jboss.msc.service.fail]
(ServerService Thread Pool -- 95) MSC000001: Failed to start
service
jboss.deployment.subunit."rf-service-ear.ear"."rf-service-ejb-0.1-SNAPSHOT.jar".component.RfServiceControl.START:
org.jboss.msc.service.StartException in service
jboss.deployment.subunit."rf-service-ear.ear"."rf-service-ejb-0.1-SNAPSHOT.jar".component.RfServiceControl.START:
java.lang.IllegalStateException: JBAS011048: Failed to
construct component instance<br>
>> 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>
>> at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
[rt.jar:1.7.0_15]<br>
>> at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
[rt.jar:1.7.0_15]<br>
>> at
java.util.concurrent.FutureTask.run(FutureTask.java:166)
[rt.jar:1.7.0_15]<br>
>> at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[rt.jar:1.7.0_15]<br>
>> at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[rt.jar:1.7.0_15]<br>
>> at java.lang.Thread.run(Thread.java:722)
[rt.jar:1.7.0_15]<br>
>> at
org.jboss.threads.JBossThread.run(JBossThread.java:122)<br>
>> Caused by: java.lang.IllegalStateException:
JBAS011048: Failed to construct component instance<br>
>> 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>
>> 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>
>> at
org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:118)<br>
>> at
org.jboss.as.ejb3.component.singleton.SingletonComponent.start(SingletonComponent.java:133)<br>
>> 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>
>> ... 7 more<br>
>> Caused by: javax.ejb.EJBException: JBAS014580:
Unexpected Error<br>
>> at
org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:161)<br>
>> at
org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:228)<br>
>> at
org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:331)<br>
>> at
org.jboss.as.ejb3.tx.SingletonLifecycleCMTTxInterceptor.processInvocation(SingletonLifecycleCMTTxInterceptor.java:57)<br>
>> 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>
>> at
org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)<br>
>> 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>
>> 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>
>> 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>
>> 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>
>> 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>
>> ... 11 more<br>
>> Caused by: java.lang.LinkageError: loader constraint
violation: when resolving field "LOG" 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's resolved
type, viceControlBase, have different Class objects for that
type<br>
>> at
com.fourtwosix.razorfish.j2eeservices.RfServiceControl.startup(RfServiceControl.java:32)<br>
>> at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[rt.jar:1.7.0_15]<br>
>> at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[rt.jar:1.7.0_15]<br>
>> at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.7.0_15]<br>
>> at java.lang.reflect.Method.invoke(Method.java:601)
[rt.jar:1.7.0_15]<br>
>> 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>
>> 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>
>> 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>
>> 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>
>> at
org.jboss.as.weld.injection.WeldInjectionInterceptor.processInvocation(WeldInjectionInterceptor.java:73)<br>
>> 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>
>> 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>
>> 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>
>> 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>
>> 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>
>> 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>
>> 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>
>> at
org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:226)<br>
>> ... 20 more<br>
>><br>
>> Anyone have any clue what I'm doing wrong? (Oh, and
I've verified that my log4j.xml file is in my lib directory as
is the log4j-1.2.17.jar file.<br>
>><br>
>> Thanks in advance, been beating my head against this
particular rock for the past 2 days.<br>
>><br>
>> -warner<br>
>><br>
>><br>
>> _______________________________________________<br>
>> jboss-as7-dev mailing list<br>
>> <a moz-do-not-send="true"
href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a><br>
>> <a moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a><br>
>><br>
>><br>
>> -- <br>
>> James R. Perkins<br>
>> JBoss by Red Hat<br>
>><br>
>><br>
>> _______________________________________________<br>
>> jboss-as7-dev mailing list<br>
>> <a moz-do-not-send="true"
href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a><br>
>> <a moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a><br>
><br>
><br>
><br>
> -- <br>
> James R. Perkins<br>
> JBoss by Red Hat</div>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
James R. Perkins
JBoss by Red Hat</pre>
</body>
</html>