3 Replies Latest reply on Jan 20, 2009 9:00 AM by randy.layman

    Problem deploying multiple WAR and MDB together

    randy.layman

      I have an existing application deployed as an EAR file. In the application.xml file it currently has three web modules and an EJB module that deploys a single MDB. This deploys successfuly and has been working for several months.

      Adding an additional web module causes the MDB bean to get a NullPointerException on deployment (startup log below). It doesn't seem to be a magic number problem -- removing one of the old working WAR modules and leaving the new one also causes problems.

      I've tried re-ordering the elements in the XML file and the problem still happens. I've loaded the file into an XML parser and it parses fine so I don't think its a typo in the file.

      I'm at a loss for what could be causing this problem.

      I'm using JBoss 4.0.4 and JBoss 4.0.5 on Linux and Windows.

      Here's what I think is the relevant snippet of the startup:

      2009-01-19 19:30:23,047 DEBUG [org.jboss.system.ServiceController] Creating service jboss.j2ee:service=EARDeployment,url='appserver.ear'
      2009-01-19 19:30:23,047 DEBUG [org.jboss.deployment.EARDeployment] Creating jboss.j2ee:service=EARDeployment,url='appserver.ear'
      2009-01-19 19:30:23,047 DEBUG [org.jboss.deployment.EARDeployment] Created jboss.j2ee:service=EARDeployment,url='appserver.ear'
      2009-01-19 19:30:23,047 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.j2ee:service=EARDeployment,url='appserver.ear' dependents are: []
      2009-01-19 19:30:23,047 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying appserver.ear
      2009-01-19 19:30:23,047 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/C:/Program Files/jboss-4.0.5.GA/server/default/deploy/appserver.ear
      2009-01-19 19:30:23,047 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/C:/Program Files/jboss-4.0.5.GA/server/default/tmp/deploy/tmp53958appserver.ear-contents/hdapBilling.jar
      2009-01-19 19:30:23,047 DEBUG [org.jboss.ws.integration.jboss.DeployerInterceptorEJB21] start: file:/C:/Program Files/jboss-4.0.5.GA/server/default/tmp/deploy/tmp53958appserver.ear-contents/hdapBilling.jar
      2009-01-19 19:30:23,062 DEBUG [org.jboss.ejb.EJBDeployer] start application, deploymentInfo: org.jboss.deployment.DeploymentInfo@a1f66d72 { url=file:/C:/Program Files/jboss-4.0.5.GA/server/default/tmp/deploy/tmp53958appserver.ear-contents/hdapBilling.jar }
       deployer: MBeanProxyExt[jboss.ejb:service=EJBDeployer]
       status: Starting
       state: START_DEPLOYER
       watch: file:/C:/Program Files/jboss-4.0.5.GA/server/default/tmp/deploy/tmp53958appserver.ear-contents/hdapBilling.jar
       altDD: null
       lastDeployed: 1232411394953
       lastModified: 1232411391687
       mbeans:
       jboss.j2ee:jndiName=local/CallLogMDB@1094172,service=EJB state: Created
      , short name: hdapBilling.jar, parent short name: appserver.ear
      2009-01-19 19:30:23,062 DEBUG [org.jboss.system.ServiceController] starting service jboss.j2ee:service=EjbModule,module=hdapBilling.jar
      2009-01-19 19:30:23,062 DEBUG [org.jboss.ejb.EjbModule] Starting jboss.j2ee:service=EjbModule,module=hdapBilling.jar
      2009-01-19 19:30:23,062 DEBUG [org.jboss.ejb.EjbModule] startService, starting container: CallLogMDB
      2009-01-19 19:30:23,062 DEBUG [org.jboss.system.ServiceController] starting service jboss.j2ee:jndiName=local/CallLogMDB@1094172,service=EJB
      2009-01-19 19:30:23,062 DEBUG [org.jboss.ejb.MessageDrivenContainer] Starting jboss.j2ee:jndiName=local/CallLogMDB@1094172,service=EJB
      2009-01-19 19:30:23,078 DEBUG [org.jboss.ejb.MessageDrivenContainer] Begin java:comp/env for EJB: CallLogMDB
      2009-01-19 19:30:23,078 DEBUG [org.jboss.ejb.MessageDrivenContainer] TCL: org.jboss.util.loading.DelegatingClassLoader@839197
      2009-01-19 19:30:23,078 DEBUG [org.jboss.ejb.MessageDrivenContainer] Unable to retrieve orbjavax.management.InstanceNotFoundException: jboss:service=CorbaORB is not registered.
      2009-01-19 19:30:23,078 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@307b8d, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@345743{ url=null ,addedOrder=0}
      2009-01-19 19:30:23,078 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@307b8d, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@33fef5{ url=null ,addedOrder=0}
      2009-01-19 19:30:23,078 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@307b8d, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@3497c4{ url=null ,addedOrder=0}
      2009-01-19 19:30:23,078 DEBUG [org.jboss.ejb.MessageDrivenContainer] Binding env-entry: SPRING_FACTORY_LOCATOR_KEY of type: java.lang.String to value:ear.context
      2009-01-19 19:30:23,078 DEBUG [org.jboss.ejb.MessageDrivenContainer] Binding env-entry: CALL_LOG_PROCESSING_MANAGER_SPRING_ID of type: java.lang.String to value:callLogProcessingMgr
      2009-01-19 19:30:23,078 DEBUG [org.jboss.ejb.MessageDrivenContainer] Binding resource manager: jms/callLogQueue to JDNI ENC as: ConnectionFactory
      2009-01-19 19:30:23,078 DEBUG [org.jboss.ejb.MessageDrivenContainer] End java:comp/env for EJB: CallLogMDB
      2009-01-19 19:30:23,094 DEBUG [org.jboss.ejb.plugins.local.BaseLocalProxyFactory] CallLogMDB cannot be Bound, doesn't have local and local home interfaces
      2009-01-19 19:30:23,094 DEBUG [org.jboss.system.ServiceController] starting service jboss.j2ee:service=EJB,plugin=pool,jndiName=local/CallLogMDB@1094172
      2009-01-19 19:30:23,094 DEBUG [org.jboss.ejb.plugins.MessageDrivenInstancePool] Starting jboss.j2ee:service=EJB,plugin=pool,jndiName=local/CallLogMDB@1094172
      2009-01-19 19:30:23,094 DEBUG [org.jboss.ejb.plugins.MessageDrivenInstancePool] Started jboss.j2ee:service=EJB,plugin=pool,jndiName=local/CallLogMDB@1094172
      2009-01-19 19:30:23,094 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.j2ee:service=EJB,plugin=pool,jndiName=local/CallLogMDB@1094172 dependent components: []
      2009-01-19 19:30:23,094 DEBUG [org.jboss.resource.connectionmanager.CachedConnectionInterceptor] start called in CachedConnectionInterceptor
      2009-01-19 19:30:23,094 DEBUG [org.jboss.system.ServiceController] starting service jboss.j2ee:service=EJB,plugin=invoker,binding=VocalOS-MDB-Invoker,jndiName=local/CallLogMDB@1094172
      2009-01-19 19:30:23,094 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Starting jboss.j2ee:service=EJB,plugin=invoker,binding=VocalOS-MDB-Invoker,jndiName=local/CallLogMDB@1094172
      2009-01-19 19:30:23,109 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Initializing
      2009-01-19 19:30:23,109 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Looking up provider adapter: java:/VocalOSMDB
      2009-01-19 19:30:23,109 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Provider adapter: org.jboss.jms.jndi.JNDIProviderAdapter@2de501
      2009-01-19 19:30:23,125 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Creating DLQHandler
      2009-01-19 19:30:23,172 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@307b8d, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@35204c{ url=null ,addedOrder=0}
      2009-01-19 19:30:23,172 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@307b8d, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@34702f{ url=null ,addedOrder=0}
      2009-01-19 19:30:23,172 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@307b8d, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@3572c0{ url=null ,addedOrder=0}
      2009-01-19 19:30:23,266 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@307b8d, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@35e884{ url=null ,addedOrder=0}
      2009-01-19 19:30:23,281 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@307b8d, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@36280d{ url=null ,addedOrder=0}
      2009-01-19 19:30:23,281 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@307b8d, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@363d54{ url=null ,addedOrder=0}
      2009-01-19 19:30:23,281 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@307b8d, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@35cd94{ url=null ,addedOrder=0}
      2009-01-19 19:30:23,281 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@307b8d, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@35b5f7{ url=null ,addedOrder=0}
      2009-01-19 19:30:23,281 DEBUG [org.jboss.mq.referenceable.SpyConnectionFactoryObjectFactory] Extracting SpyConnectionFactory from reference
      2009-01-19 19:30:23,297 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@307b8d, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@36d8e2{ url=null ,addedOrder=0}
      2009-01-19 19:30:23,297 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@307b8d, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@370ce5{ url=null ,addedOrder=0}
      2009-01-19 19:30:23,297 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@307b8d, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@36c99c{ url=null ,addedOrder=0}
      2009-01-19 19:30:23,297 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@307b8d, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@364cae{ url=null ,addedOrder=0}
      2009-01-19 19:30:23,297 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@307b8d, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@37361d{ url=null ,addedOrder=0}
      2009-01-19 19:30:23,297 DEBUG [org.jboss.mq.referenceable.SpyConnectionFactoryObjectFactory] The GenericConnectionFactory is: GenericConnectionFactory[server=org.jboss.mq.il.uil2.UILServerIL@373541 connectionProperties={ClientILService=org.jboss.mq.il.uil2.UILClientILService, UIL_TCPNODELAY_KEY=yes, UIL_CHUNKSIZE_KEY=1000000, UIL_CONNECTADDRESS_KEY=null, UIL_CONNECTPORT_KEY=0, UIL_SOTIMEOUT_KEY=120000, UIL_RECEIVE_REPLIES_KEY=No, UIL_ADDRESS_KEY=10.9.0.154, UIL_PORT_KEY=8093, PingPeriod=60000, UIL_BUFFERSIZE_KEY=2048}]
      2009-01-19 19:30:23,297 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Using factory: org.jboss.mq.SpyXAConnectionFactory@366426
      2009-01-19 19:30:23,297 DEBUG [org.jboss.mq.Connection] Setting the clockDaemon's thread factory
      2009-01-19 19:30:23,328 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin WriteTask.run
      2009-01-19 19:30:23,344 DEBUG [org.jboss.mq.il.uil2.SocketManager] Created ObjectOutputStream
      2009-01-19 19:30:23,344 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin WriteTask.run
      2009-01-19 19:30:23,344 DEBUG [org.jboss.mq.il.uil2.SocketManager] Created ObjectOutputStream
      2009-01-19 19:30:23,344 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin ReadTask.run
      2009-01-19 19:30:23,344 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin ReadTask.run
      2009-01-19 19:30:23,344 DEBUG [org.jboss.mq.il.uil2.SocketManager] Created ObjectInputStream
      2009-01-19 19:30:23,406 DEBUG [org.jboss.mq.il.uil2.SocketManager] Created ObjectInputStream
      2009-01-19 19:30:23,406 DEBUG [org.jboss.mq.il.uil2.UILClientILService] Starting
      2009-01-19 19:30:23,406 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] Setting up the UILClientIL Connection
      2009-01-19 19:30:23,406 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] The UILClientIL Connection is set up
      2009-01-19 19:30:23,422 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Created connection: Connection@3705345[token=ConnectionToken:null/1b2e2f256c6c6bb7040b0d9be7ef896c rcvstate=STOPPED]
      2009-01-19 19:30:23,422 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@307b8d, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@3a1d3e{ url=null ,addedOrder=0}
      2009-01-19 19:30:23,422 DEBUG [org.jboss.mq.referenceable.SpyDestinationObjectFactory] SpyDestinationObjectFactory->getObjectInstance()
      2009-01-19 19:30:23,422 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Using Queue: QUEUE.DLQ
      2009-01-19 19:30:23,422 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Created DLQHandler
      2009-01-19 19:30:23,422 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] context: javax.naming.InitialContext@3a3c16
      2009-01-19 19:30:23,422 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] jndiSuffix: callLogQueue
      2009-01-19 19:30:23,422 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Got destination type Queue for CallLogMDB
      2009-01-19 19:30:23,422 DEBUG [org.jboss.mq.referenceable.SpyConnectionFactoryObjectFactory] Extracting SpyConnectionFactory from reference
      2009-01-19 19:30:23,422 DEBUG [org.jboss.mq.referenceable.SpyConnectionFactoryObjectFactory] The GenericConnectionFactory is: GenericConnectionFactory[server=org.jboss.mq.il.uil2.UILServerIL@3b2a5b connectionProperties={ClientILService=org.jboss.mq.il.uil2.UILClientILService, UIL_TCPNODELAY_KEY=yes, UIL_CHUNKSIZE_KEY=1000000, UIL_CONNECTADDRESS_KEY=null, UIL_CONNECTPORT_KEY=0, UIL_SOTIMEOUT_KEY=120000, UIL_RECEIVE_REPLIES_KEY=No, UIL_ADDRESS_KEY=10.9.0.154, UIL_PORT_KEY=8093, PingPeriod=60000, UIL_BUFFERSIZE_KEY=2048}]
      2009-01-19 19:30:23,422 DEBUG [org.jboss.jms.ConnectionFactoryHelper] using connection factory: org.jboss.mq.SpyXAConnectionFactory@3b3601
      2009-01-19 19:30:23,422 DEBUG [org.jboss.jms.ConnectionFactoryHelper] using username/password: null/-- not shown --
      2009-01-19 19:30:23,438 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin ReadTask.run
      2009-01-19 19:30:23,438 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin WriteTask.run
      2009-01-19 19:30:23,438 DEBUG [org.jboss.mq.il.uil2.SocketManager] Created ObjectOutputStream
      2009-01-19 19:30:23,438 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin ReadTask.run
      2009-01-19 19:30:23,438 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin WriteTask.run
      2009-01-19 19:30:23,438 DEBUG [org.jboss.mq.il.uil2.SocketManager] Created ObjectOutputStream
      2009-01-19 19:30:23,438 DEBUG [org.jboss.mq.il.uil2.SocketManager] Created ObjectInputStream
      2009-01-19 19:30:23,438 DEBUG [org.jboss.mq.il.uil2.SocketManager] Created ObjectInputStream
      2009-01-19 19:30:23,438 DEBUG [org.jboss.mq.il.uil2.UILClientILService] Starting
      2009-01-19 19:30:23,438 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] Setting up the UILClientIL Connection
      2009-01-19 19:30:23,438 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] The UILClientIL Connection is set up
      2009-01-19 19:30:23,438 DEBUG [org.jboss.jms.ConnectionFactoryHelper] created XAQueueConnection: Connection@3920718[token=ConnectionToken:null/eb9851242ce31f8c0bd38f6dbe92a072 rcvstate=STOPPED]
      2009-01-19 19:30:23,438 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Using client id: null
      2009-01-19 19:30:23,438 DEBUG [org.jboss.mq.referenceable.SpyDestinationObjectFactory] SpyDestinationObjectFactory->getObjectInstance()
      2009-01-19 19:30:23,438 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] looking up session pool factory: java:/StdJMSPool
      2009-01-19 19:30:23,438 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@307b8d, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@3c8d22{ url=null ,addedOrder=0}
      2009-01-19 19:30:23,438 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@307b8d, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@3cb420{ url=null ,addedOrder=0}
      2009-01-19 19:30:23,438 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@307b8d, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@3c7a96{ url=null ,addedOrder=0}
      2009-01-19 19:30:23,438 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@307b8d, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@3cc705{ url=null ,addedOrder=0}
      2009-01-19 19:30:23,438 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@307b8d, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@3cda96{ url=null ,addedOrder=0}
      2009-01-19 19:30:23,438 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@307b8d, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@3a8d99{ url=null ,addedOrder=0}
      2009-01-19 19:30:23,438 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@307b8d, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@3ac088{ url=null ,addedOrder=0}
      2009-01-19 19:30:23,438 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@307b8d, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@3ce494{ url=null ,addedOrder=0}
      2009-01-19 19:30:23,438 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@307b8d, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@3d6d10{ url=null ,addedOrder=0}
      2009-01-19 19:30:23,438 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@307b8d, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@3d0d6d{ url=null ,addedOrder=0}
      2009-01-19 19:30:23,453 DEBUG [org.jboss.mq.il.uil2.SocketManager] End WriteTask.run
      2009-01-19 19:30:23,453 DEBUG [org.jboss.mq.il.uil2.SocketManager] Failed to handle: org.jboss.mq.il.uil2.msgs.CloseMsg3961113[msgType: m_connectionClosing, msgID: -2147483639, error: null]
      java.io.IOException: Client is not connected
       at org.jboss.mq.il.uil2.SocketManager.internalSendMessage(SocketManager.java:264)
       at org.jboss.mq.il.uil2.SocketManager.sendReply(SocketManager.java:238)
       at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:131)
       at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:395)
       at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:398)
       at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
       at java.lang.Thread.run()V(Unknown Source)
      2009-01-19 19:30:23,453 DEBUG [org.jboss.mq.il.uil2.SocketManager] Failed to send error reply
      java.io.IOException: Client is not connected
       at org.jboss.mq.il.uil2.SocketManager.internalSendMessage(SocketManager.java:264)
       at org.jboss.mq.il.uil2.SocketManager.access$800(SocketManager.java:53)
       at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:408)
       at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:398)
       at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
       at java.lang.Thread.run()V(Unknown Source)
      2009-01-19 19:30:23,469 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] Exiting on IOE
      java.net.SocketException: Socket Closed: Descriptor not a socket
       at jrockit.net.SocketNativeIO.read(Ljava.io.FileDescriptor;III)I(Unknown Source)
       at java.net.AbstractSocketImpl$1.read(II)I(Unknown Source)
       at jrockit.io.NativeIOInputStream.read(I[BI)I(Unknown Source)
       at jrockit.io.NativeIOInputStream.read([BII)I(Unknown Source)
       at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
       at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
       at org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInputStream.java:79)
       at java.io.ObjectInputStream$PeekInputStream.peek()I(Unknown Source)
       at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(Z)I(Unknown Source)
       at java.io.ObjectInputStream$BlockDataInputStream.refill()V(Unknown Source)
       at java.io.ObjectInputStream$BlockDataInputStream.read()I(Unknown Source)
       at java.io.ObjectInputStream$BlockDataInputStream.readByte()B(Unknown Source)
       at java.io.ObjectInputStream.readByte()B(Unknown Source)
       at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:316)
       at java.lang.Thread.run()V(Unknown Source)
      2009-01-19 19:30:23,469 DEBUG [org.jboss.mq.il.uil2.SocketManager] End ReadTask.run
      2009-01-19 19:30:23,469 DEBUG [org.jboss.mq.il.uil2.SocketManager] End ReadTask.run
      2009-01-19 19:30:23,469 DEBUG [org.jboss.mq.il.uil2.SocketManager] End WriteTask.run
      2009-01-19 19:30:23,469 DEBUG [org.jboss.mq.il.uil2.UILClientILService] Stopping
      2009-01-19 19:30:23,469 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true
      2009-01-19 19:30:23,469 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false
      2009-01-19 19:30:23,469 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
      2009-01-19 19:30:23,469 WARN [org.jboss.ejb.plugins.jms.JMSContainerInvoker] JMS provider failure detected for CallLogMDB
      org.jboss.deployment.DeploymentException: Error during queue setup; - nested throwable: (java.lang.NullPointerException)
       at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53)
       at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerStartDelivery(JMSContainerInvoker.java:811)
       at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:839)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
       at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
       at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
       at $Proxy0.start()V(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:417)
       at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
       at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:194)
       at org.jboss.ejb.MessageDrivenContainer.startService(MessageDrivenContainer.java:272)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      Caused by: java.lang.NullPointerException
       at org.jboss.ejb.plugins.jms.JMSContainerInvoker.createSessionPool(JMSContainerInvoker.java:1171)
       at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerStartDelivery(JMSContainerInvoker.java:783)
       ... 24 more
      


        • 1. Re: Problem deploying multiple WAR and MDB together
          randy.layman

          After trying a number of things, I've found that the new web module was trying to use TreeCache from the newer version of JBoss. Importing derby, jgroups, jboss-common-core (2.2.8), jcip-annotations, c3p0, and jbosscache-core (2.2.0) through the manifest file seem to cause the problem. I'm trying to repackage my EAR file with these JARs in the individual WAR file and not the top-level EAR. Doing so lets my MDB start up, but its not yet loading the TreeCache again.

          Any ideas why TreeCache might cause this problem?

          • 2. Re: Problem deploying multiple WAR and MDB together
            jaikiran

            Does the new war in its WEB-INF/lib contain any JBoss specific jar files? Can you post the output of:

            jar -tf mynewwar.war


            • 3. Re: Problem deploying multiple WAR and MDB together
              randy.layman

              I actually have a workable solution, but I still don't understand why this is needed.

              In my EAR file I included the files to support the newer version of TreeCache (erby, jgroups, jboss-common-core 2.2.8, jcip-annotations, c3p0, and jbosscache-core 2.2.0). With these files in my EAR file, and referred to from a manifest of my WAR file, the MDB would not deploy with the error mentioned below.

              To fix this, I moved the files above into my WAR's lib directory (and my code that directly referenced it) and removed it from the manifest file. Now, everything starts up and runs correctly.

              I'm guessing that one of the JAR files for TreeCache is doing something to the JNDI lookup for StdJMSPool, but I can't figure out what it would be doing that would cause a problem.

              I did briefly try upgrading to JBoss 4.2.3, and things appeared to start correctly, but I had other issues I didn't want to fix right now (particularly JSF)