[jboss-user] [Installation, Configuration & DEPLOYMENT] - Getting Log4j configured for an EAR: DLQHandler NullPointerE

mmichalek do-not-reply at jboss.com
Fri Apr 18 15:04:14 EDT 2008


I am interested in deploying an EAR which contains its own log4j.xml configuration.  I've seen a lot of references which recommend class loader scoping to get this done.

I followed the advice from http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125552 which apparently has worked for some people.  It worked in part for me.

I was able to get log4j configured for my EAR by adding a jboss-app.xml to my ear:
<jboss-app>
  |   <loader-repository>
  |    com.micros_retail:loader=XcenterLoader
  |     <loader-repository-config>
  |       java2ParentDelegation=false
  |     </loader-repository-config>
  |   </loader-repository>
  | </jboss-app>

However, once I define the loader-repository, my EJB 2.0 MDB fails to deploy:


  | 2008-04-18 13:18:16,592 TRACE [org.jboss.ejb.plugins.jms.DLQHandler] Constructing
  | 2008-04-18 13:18:16,592 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Creating DLQHandler
  | 2008-04-18 13:18:16,592 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Using factory: null
  | 2008-04-18 13:18:16,592 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Initialization failed DLQHandler
  | java.lang.NullPointerException
  | 	at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:187)
  | 	at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)
  | 	at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:188)
  | 	at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerStartDelivery(JMSContainerInvoker.java:510)
  | 	at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl$ExceptionListenerRunnable.run(JMSContainerInvoker.java:1428)
  | 	at java.lang.Thread.run(Thread.java:595)
  | 

Apparently the QueryConnectionFactory lookup is failing.  I don't know where to go from here.  Any help or ideas would be appreciated.  Thanks.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145235#4145235

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145235



More information about the jboss-user mailing list