• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Not able to get output for MDB code...

 
Geetesh Mehta
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Reza and Ranchers,

I am not able to get the output for the MDB code and I am not getting any error message in my JBoss console which is as follows:
14:24:54,020 INFO [Server] Starting JBoss (MX MicroKernel)...
14:24:54,020 INFO [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)
14:24:54,020 INFO [Server] Home Dir: C:\jboss-4.2.2.GA
14:24:54,020 INFO [Server] Home URL: file:/C:/jboss-4.2.2.GA/
14:24:54,020 INFO [Server] Patch URL: null
14:24:54,020 INFO [Server] Server Name: default
14:24:54,020 INFO [Server] Server Home Dir: C:\jboss-4.2.2.GA\server\default
14:24:54,020 INFO [Server] Server Home URL: file:/C:/jboss-4.2.2.GA/server/default/
14:24:54,083 INFO [Server] Server Log Dir: C:\jboss-4.2.2.GA\server\default\log
14:24:54,083 INFO [Server] Server Temp Dir: C:\jboss-4.2.2.GA\server\default\tmp
14:24:54,083 INFO [Server] Root Deployment Filename: jboss-service.xml
14:24:54,536 INFO [ServerInfo] Java version: 1.5.0_06,Sun Microsystems Inc.
14:24:54,536 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_06-b05,Sun Microsystems Inc.
14:24:54,536 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
14:24:55,411 INFO [Server] Core system initialized
14:24:59,348 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
14:24:59,348 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
14:25:00,255 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
14:25:00,255 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
14:25:00,598 INFO [TransactionManagerService] Starting recovery manager
14:25:00,739 INFO [TransactionManagerService] Recovery manager started
14:25:00,739 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
14:25:06,036 INFO [EJB3Deployer] Starting java:comp multiplexer
14:25:06,848 INFO [STDOUT] no object for null
14:25:06,864 INFO [STDOUT] no object for null
14:25:06,880 INFO [STDOUT] no object for null
14:25:06,911 INFO [STDOUT] no object for {urn:jboss:bean-deployer}supplyType
14:25:06,927 INFO [STDOUT] no object for {urn:jboss:bean-deployer}dependsType
14:25:10,114 INFO [NativeServerConfig] JBoss Web Services - Native
14:25:10,114 INFO [NativeServerConfig] jbossws-native-2.0.1.SP2 (build=200710210837)
14:25:11,692 INFO [Embedded] Catalina naming disabled
14:25:12,020 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.5.0_06\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\ColdFusion8\verity\k2\_nti40\bin;D:\ColdFusion8\verity\k2\_nti40\bin;D:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\Java\jdk1.5.0_06\bin;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server 2005\90\Tools\binn\;C:\Program Files\Microsoft SQL Server 2005\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server 2005\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Program Files\TortoiseSVN\bin;D:\TCS_INTERNAL\apache-ant-1.7.1\bin;
14:25:12,833 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
14:25:12,864 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
14:25:12,864 INFO [Catalina] Initialization processed in 1165 ms
14:25:12,864 INFO [StandardService] Starting service jboss.web
14:25:12,864 INFO [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA

14:25:12,927 INFO [Catalina] Server startup in 68 ms
14:25:13,083 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
14:25:13,911 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
14:25:14,177 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../deploy/jbossws.sar/jbossws-context.war/
14:25:14,395 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
14:25:16,083 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/

14:25:16,786 INFO [MailService] Mail Service bound to java:/Mail
14:25:17,021 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
14:25:17,083 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
14:25:17,130 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
14:25:17,224 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
14:25:17,286 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
14:25:17,333 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
14:25:17,396 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
14:25:17,411 INFO [QuartzResourceAdapter] start quartz!!!
14:25:17,724 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
14:25:17,755 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
14:25:17,771 INFO [RAMJobStore] RAMJobStore initialized.
14:25:17,771 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
14:25:17,771 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
14:25:17,771 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
14:25:18,911 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'javaefaultDS'
14:25:19,489 INFO [A] Bound to JNDI name: queue/A
14:25:19,489 INFO [B] Bound to JNDI name: queue/B
14:25:19,489 INFO [C] Bound to JNDI name: queue/C
14:25:19,489 INFO [D] Bound to JNDI name: queue/D
14:25:19,489 INFO [ex] Bound to JNDI name: queue/ex
14:25:19,505 INFO [TestMessageExample] Bound to JNDI name: queue/TestMessageExample
14:25:19,521 INFO [testTopic] Bound to JNDI name: topic/testTopic
14:25:19,521 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
14:25:19,536 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
14:25:19,646 INFO [testQueue] Bound to JNDI name: queue/testQueue
14:25:19,708 INFO [UILServerILService] JBossMQ UIL service available at : /127.0.0.1:8093
14:25:19,755 INFO [DLQ] Bound to JNDI name: queue/DLQ
14:25:19,989 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
14:25:20,130 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=eAuditSales' to JNDI name 'java:eAuditSales'
14:25:21,427 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.mdb.MDB
14:25:21,442 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=MDBExample.jar,name=MessageDrivenConsumerBean,service=EJB3 with dependencies:
14:25:21,677 INFO [EJBContainer] STARTED EJB: MDB.MessageDrivenConsumerBean ejbName: MessageDrivenConsumerBean
14:25:21,739 INFO [EJB3Deployer] Deployed: file:/C:/jboss-4.2.2.GA/server/default/deploy/MDBExample.jar
14:25:21,817 INFO [TomcatDeployer] deploy, ctxPath=/EJB_Proj, warUrl=.../tmp/deploy/tmp48822EJB_Proj-exp.war/
14:25:21,942 WARN [config] Unable to process deployment descriptor for context 'null'
14:25:22,614 INFO [TomcatDeployer] deploy, ctxPath=/WebApplication1, warUrl=.../deploy/WebApplication1.war/
14:25:22,849 INFO [TomcatDeployer] deploy, ctxPath=/eaudit1, warUrl=.../deploy/eaudit1.war/
14:25:23,036 INFO [WebappClassLoader] validateJarFile(C:\jboss-4.2.2.GA\server\default\.\deploy\eaudit1.war\WEB-INF\lib\j2ee.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
14:25:23,224 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
14:25:24,146 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
14:25:24,177 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
14:25:24,192 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)] Started in 30s:109ms

My code is as follows


MessageProducer

/


MessageDrivenConsumerBean




TestMessage




I have made the TestMessageExample queue name in jbossmq-destinations-service.xml which is as follows:-


<?xml version="1.0" encoding="UTF-8"?>

<!-- $Id: jbossmq-destinations-service.xml 25907 2004-11-16 04:32:39Z ejort $ -->

<!--
| This file defines the default Queues and Topics that JBossMQ
| ships with. The default Queues and Topics are used by the
| JBoss test suite and by the sample jms programs.
|
| You can add other destinations to this file, or you can create other
| *-service.xml files to contain your application's destinations.
-->

<server>
<!-- Destination without a configured SecurityManager or without a
a SecurityConf will default to role guest with read=true, write=true,
create=false.
-->
<mbean code="org.jboss.mq.server.jmx.Topic"
name="jboss.mq.destination:service=Topic,name=testTopic">
<depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
<depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager</depends>
<attribute name="SecurityConf">
<security>
<role name="guest" read="true" write="true"/>
<role name="publisher" read="true" write="true" create="false"/>
<role name="durpublisher" read="true" write="true" create="true"/>
</security>
</attribute>
</mbean>

<mbean code="org.jboss.mq.server.jmx.Topic"
name="jboss.mq.destination:service=Topic,name=securedTopic">
<depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
<depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager</depends>
<attribute name="SecurityConf">
<security>
<role name="publisher" read="true" write="true" create="false"/>
</security>
</attribute>
</mbean>

<mbean code="org.jboss.mq.server.jmx.Topic"
name="jboss.mq.destination:service=Topic,name=testDurableTopic">
<depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
<depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager</depends>
<attribute name="SecurityConf">
<security>
<role name="guest" read="true" write="true"/>
<role name="publisher" read="true" write="true" create="false"/>
<role name="durpublisher" read="true" write="true" create="true"/>
</security>
</attribute>
</mbean>

<mbean code="org.jboss.mq.server.jmx.Queue"
name="jboss.mq.destination:service=Queue,name=testQueue">
<depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
<depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager</depends>
<attribute name="MessageCounterHistoryDayLimit">-1</attribute>
<attribute name="SecurityConf">
<security>
<role name="guest" read="true" write="true"/>
<role name="publisher" read="true" write="true" create="false"/>
<role name="noacc" read="false" write="false" create="false"/>
</security>
</attribute>
</mbean>
<mbean code="org.jboss.mq.server.jmx.Queue"
name="jboss.mq.destination:service=Queue,name=A">
<depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
</mbean>
<mbean code="org.jboss.mq.server.jmx.Queue"
name="jboss.mq.destination:service=Queue,name=B">
<depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
</mbean>
<mbean code="org.jboss.mq.server.jmx.Queue"
name="jboss.mq.destination:service=Queue,name=C">
<depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
</mbean>
<mbean code="org.jboss.mq.server.jmx.Queue"
name="jboss.mq.destination:service=Queue,name=D">
<depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
</mbean>
<mbean code="org.jboss.mq.server.jmx.Queue"
name="jboss.mq.destination:service=Queue,name=ex">
<depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
</mbean>
<mbean code="org.jboss.mq.server.jmx.Queue"
name="jboss.mq.destination:service=Queue,name=TestMessageExample">
<depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
</mbean>

</server>


Any help would be highly appreciated

Thanks,
Geetesh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic