[jboss-user] [Installation, Configuration & DEPLOYMENT] - Problem starting JBoss (MBeans waiting for other MBeans)
jharby1
do-not-reply at jboss.com
Wed Jul 16 17:30:59 EDT 2008
I am getting some deployment errors when starting JBoss. I have an MDB that uses a database appender to do logging but apparently there is some problem with the dependencies between that data source and the ear file in deployment. Does anyone have any suggestions? TIA
1. Output of run.sh
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /Storage/Programs/jboss-4.2.2.GA
JAVA: /usr/lib/jvm/jre/bin/java
JAVA_OPTS: -Dprogram.name=run.sh -server -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n -Djava.net.preferIPv4Stack=true
CLASSPATH: /Storage/Programs/jboss-4.2.2.GA/bin/run.jar
=========================================================================
Listening for transport dt_socket at address: 8787
13:40:54,754 INFO [Server] Starting JBoss (MX MicroKernel)...
13:40:54,756 INFO [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)
13:40:54,759 INFO [Server] Home Dir: /Storage/Programs/jboss-4.2.2.GA
13:40:54,760 INFO [Server] Home URL: file:/Storage/Programs/jboss-4.2.2.GA/
13:40:54,762 INFO [Server] Patch URL: null
13:40:54,762 INFO [Server] Server Name: default
13:40:54,762 INFO [Server] Server Home Dir: /Storage/Programs/jboss-4.2.2.GA/server/default
13:40:54,763 INFO [Server] Server Home URL: file:/Storage/Programs/jboss-4.2.2.GA/server/default/
13:40:54,763 INFO [Server] Server Log Dir: /Storage/Programs/jboss-4.2.2.GA/server/default/log
13:40:54,764 INFO [Server] Server Temp Dir: /Storage/Programs/jboss-4.2.2.GA/server/default/tmp
13:40:54,766 INFO [Server] Root Deployment Filename: jboss-service.xml
13:40:55,517 INFO [ServerInfo] Java version: 1.6.0_06,Sun Microsystems Inc.
13:40:55,518 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 10.0-b22,Sun Microsystems Inc.
13:40:55,518 INFO [ServerInfo] OS-System: Linux 2.6.22.17-0.1-default,i386
13:40:56,384 INFO [Server] Core system initialized
13:41:01,195 INFO [WebService] Using RMI server codebase: http://10.10.1.17:8083/
13:41:01,200 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
13:41:02,239 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
13:41:02,240 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
13:41:02,698 INFO [TransactionManagerService] Starting recovery manager
13:41:02,943 INFO [TransactionManagerService] Recovery manager started
13:41:02,943 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
13:41:08,928 INFO [EJB3Deployer] Starting java:comp multiplexer
13:41:09,736 INFO [STDOUT] no object for null
13:41:09,744 INFO [STDOUT] no object for null
13:41:10,114 INFO [STDOUT] no object for null
13:41:10,175 INFO [STDOUT] no object for {urn:jboss:bean-deployer}supplyType
13:41:10,209 INFO [STDOUT] no object for {urn:jboss:bean-deployer}dependsType
13:41:14,550 INFO [NativeServerConfig] JBoss Web Services - Native
13:41:14,550 INFO [NativeServerConfig] jbossws-native-2.0.1.SP2 (build=200710210837)
13:41:16,692 INFO [Embedded] Catalina naming disabled
13:41:17,093 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-1.6.0.u6-sun-1.6.0.u6/jre/lib/i386/server:/usr/lib/jvm/java-1.6.0.u6-sun-1.6.0.u6/jre/lib/i386:/usr/lib/jvm/java-1.6.0.u6-sun-1.6.0.u6/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
13:41:17,254 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-10.10.1.17-18080
13:41:17,256 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-10.10.1.17-18009
13:41:17,256 INFO [Catalina] Initialization processed in 564 ms
13:41:17,256 INFO [StandardService] Starting service jboss.web
13:41:17,262 INFO [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA
13:41:17,388 INFO [Catalina] Server startup in 131 ms
13:41:17,653 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
13:41:19,784 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
13:41:20,106 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../deploy/jbossws.sar/jbossws-context.war/
13:41:20,370 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
13:41:22,429 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
13:41:23,559 INFO [MailService] Mail Service bound to java:/Mail
13:41:23,963 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
13:41:24,040 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
13:41:24,109 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
13:41:24,187 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
13:41:24,877 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
13:41:25,127 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
13:41:25,229 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
13:41:25,248 INFO [QuartzResourceAdapter] start quartz!!!
13:41:25,399 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
13:41:25,484 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
13:41:25,491 INFO [RAMJobStore] RAMJobStore initialized.
13:41:25,492 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
13:41:25,492 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
13:41:25,493 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
13:41:26,000 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
13:41:26,283 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=jdbc/MSSQLDS' to JNDI name 'java:jdbc/MSSQLDS'
13:41:26,619 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
13:41:28,385 INFO [A] Bound to JNDI name: queue/A
13:41:28,391 INFO [B] Bound to JNDI name: queue/B
13:41:28,397 INFO [C] Bound to JNDI name: queue/C
13:41:28,404 INFO [D] Bound to JNDI name: queue/D
13:41:28,411 INFO [ex] Bound to JNDI name: queue/ex
13:41:28,417 INFO [csaNotifier] Bound to JNDI name: queue/csaNotifier
13:41:28,425 INFO [csaNotifierResponse] Bound to JNDI name: queue/csaNotifierResponse
13:41:28,445 INFO [csaLogger] Bound to JNDI name: topic/csaLogger
13:41:28,481 INFO [testTopic] Bound to JNDI name: topic/testTopic
13:41:28,488 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
13:41:28,494 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
13:41:28,504 INFO [testQueue] Bound to JNDI name: queue/testQueue
13:41:28,593 INFO [UILServerILService] JBossMQ UIL service available at : /10.10.1.17:8093
13:41:28,802 INFO [DLQ] Bound to JNDI name: queue/DLQ
13:41:28,821 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=loggingDb' to JNDI name 'java:loggingDb'
13:41:28,878 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
13:41:29,168 INFO [EARDeployer] Init J2EE application: file:/Storage/Programs/jboss-4.2.2.GA/server/default/deploy/loggingApp-1.0.ear
13:41:33,473 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.mdb.MDB
13:41:33,485 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=loggingApp-1.0.ear,jar=loggingBean-1.0.jar,name=CsaLoggerEJB,service=EJB3 with dependencies:
13:41:33,486 INFO [JmxKernelAbstraction] persistence.units:unitName=loggingDb
13:41:33,493 INFO [EJB3Deployer] Deployed: file:/Storage/Programs/jboss-4.2.2.GA/server/default/tmp/deploy/tmp17533loggingApp-1.0.ear-contents/loggingBean-1.0.jar
13:41:33,518 INFO [EARDeployer] Started J2EE application: file:/Storage/Programs/jboss-4.2.2.GA/server/default/deploy/loggingApp-1.0.ear
13:41:33,545 INFO [EARDeployer] Init J2EE application: file:/Storage/Programs/jboss-4.2.2.GA/server/default/deploy/notificationApp.ear
13:41:34,608 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
13:41:34,619 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=notificationApp.ear,jar=notificationBean.jar,name=FaxHandlerEJB,service=EJB3 with dependencies:
13:41:35,037 INFO [EJBContainer] STARTED EJB: com.csatp.service.FaxNotificationHandler ejbName: FaxHandlerEJB
13:41:35,145 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.mdb.MDB
13:41:35,145 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=notificationApp.ear,jar=notificationBean.jar,name=CsaNotifierEJB,service=EJB3 with dependencies:
13:41:35,145 INFO [JmxKernelAbstraction] jboss.j2ee:ear=notificationApp.ear,jar=notificationBean.jar,name=EmailHandlerEJB,service=EJB3
13:41:35,146 INFO [JmxKernelAbstraction] jboss.j2ee:ear=notificationApp.ear,jar=notificationBean.jar,name=FaxHandlerEJB,service=EJB3
13:41:35,151 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
13:41:35,151 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=notificationApp.ear,jar=notificationBean.jar,name=EmailHandlerEJB,service=EJB3 with dependencies:
13:41:35,185 INFO [EJBContainer] STARTED EJB: com.csatp.service.EmailNotificationHandler ejbName: EmailHandlerEJB
13:41:35,215 INFO [EJBContainer] STARTED EJB: com.csatp.service.CsaNotifierBean ejbName: CsaNotifierEJB
13:41:35,350 INFO [EJB3Deployer] Deployed: file:/Storage/Programs/jboss-4.2.2.GA/server/default/tmp/deploy/tmp17534notificationApp.ear-contents/notificationBean.jar
13:41:35,365 INFO [EARDeployer] Started J2EE application: file:/Storage/Programs/jboss-4.2.2.GA/server/default/deploy/notificationApp.ear
13:41:35,451 INFO [EARDeployer] Init J2EE application: file:/Storage/Programs/jboss-4.2.2.GA/server/default/deploy/scheduler.ear
13:41:40,911 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.mdb.MDB
13:41:40,912 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=scheduler.ear,jar=Letter.jar,name=AnnotatedQuartzMDBBean,service=EJB3 with dependencies:
13:41:40,937 INFO [EJBContainer] STARTED EJB: com.csatp.service.scheduler.AnnotatedQuartzMDBBean ejbName: AnnotatedQuartzMDBBean
13:41:41,008 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.mdb.MDB
13:41:41,008 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=scheduler.ear,jar=Letter.jar,name=ResponseMDBEJB,service=EJB3 with dependencies:
13:41:41,064 INFO [EJBContainer] STARTED EJB: com.csatp.service.scheduler.ResponseMDBBean ejbName: ResponseMDBEJB
13:41:41,197 INFO [EJB3Deployer] Deployed: file:/Storage/Programs/jboss-4.2.2.GA/server/default/tmp/deploy/tmp17535scheduler.ear-contents/Letter.jar
13:41:41,293 INFO [EARDeployer] Started J2EE application: file:/Storage/Programs/jboss-4.2.2.GA/server/default/deploy/scheduler.ear
13:41:41,297 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- MBeans waiting for other MBeans ---
ObjectName: jboss.j2ee:ear=loggingApp-1.0.ear,jar=loggingBean-1.0.jar,name=CsaLoggerEJB,service=EJB3
State: NOTYETINSTALLED
I Depend On:
persistence.units:unitName=loggingDb
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: persistence.units:unitName=loggingDb
State: NOTYETINSTALLED
Depends On Me:
jboss.j2ee:ear=loggingApp-1.0.ear,jar=loggingBean-1.0.jar,name=CsaLoggerEJB,service=EJB3
13:41:41,728 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-10.10.1.17-18080
13:41:41,865 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-10.10.1.17-18009
13:41:41,923 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)] Started in 47s:149ms
2. MDB code listing
package com.csatp.service.logging;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import javax.ejb.MessageDriven;
import javax.ejb.ActivationConfigProperty;
import javax.jms.MessageListener;
import javax.jms.Message;
import javax.jms.ObjectMessage;
import javax.jms.JMSException;
import javax.persistence.PersistenceContext;
import javax.persistence.EntityManager;
import java.io.Serializable;
import com.csatp.logging.LogMessage;
import com.csatp.service.logging.Event;
@MessageDriven(name = "CsaLoggerEJB", activationConfig = {
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Topic"),
@ActivationConfigProperty(propertyName = "destination", propertyValue = "topic/csaLogger")
})
public class CsaLoggingBean implements MessageListener {
private static final Log log = LogFactory.getLog(CsaLoggingBean.class);
@PersistenceContext(unitName="loggingDb") EntityManager manager;
public void onMessage(Message message) {
System.out.println("got message");
try {
if (message instanceof ObjectMessage) {
ObjectMessage objectMessage = (ObjectMessage) message;
Serializable payload = objectMessage.getObject();
if (payload instanceof LogMessage) {
LogMessage logMessage = (LogMessage) payload;
save(new Event(logMessage));
} else {
log.warn("JMS message carries unknown message type:" + payload);
}
} else {
log.warn("Unexpected jms message type: " + message);
}
} catch (JMSException e) {
log.error("Unable to process a jms message " + message, e);
}
}
private void save(LogMessage logMessage) {
log.info("Saving message: " + logMessage.getData());
manager.persist(logMessage);
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4164855#4164855
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4164855
More information about the jboss-user
mailing list