I am part way there. The second problem (NameNotFoundException) is fixed by
ensuring that the destination-jndi-name is prefixed by either "topic/" or
"queue/" as specified in the documentation (sorry)
BUT, what's up with 'deployment.cfg'?
Although the MDB is being deployed correctly I am still getting the
exception related to the deployment.cfg file. The server trace now looks
like this:
-------
[Auto deploy] Auto deploy of file:/C:/jboss/deploy/profiler.jar
[J2EE Deployer Default] exception while searching deployment:
C:\jboss\tmp\deploy\Default\profiler.jar\deployment.cfg (The system cannot
find the file specified)
[J2EE Deployer Default] Deploy J2EE application:
file:/C:/jboss/deploy/profiler.jar
[J2EE Deployer Default] Create application profiler.jar
[J2EE Deployer Default] install module profiler.jar
[Container factory]
Deploying:file:/C:/jboss/tmp/deploy/Default/profiler.jar/
[Verifier] Verifying
file:/C:/jboss/tmp/deploy/Default/profiler.jar/ejb1009.jar
[Container factory] Deploying TestMDB
[Container factory] Deployed application:
file:/C:/jboss/tmp/deploy/Default/profiler.jar/
[J2EE Deployer Default] J2EE application:
file:/C:/jboss/deploy/profiler.jar isdeployed.
-------
** Why the exception related to deployment.cfg?
Thanks,
mike.
-----Original Message-----
From: Michael Hustler [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 09, 2001 5:15 PM
To: Jboss (E-mail)
Subject: [JBoss-user] Problems with MDB
I'm having two problem with Message Driven Beans.
(The server stdout is included below)
The first one is why am I getting the error message "[J2EE Deployer
Default] exception while searching deployment: C:\jboss\tmp\deploy
\Default\profiler.jar\deployment.cfg (The system cannot find the file
specified)" ?
The second one is why am I getting the error message "[Container
factory] Serious error in init: javax.naming.NameNotFoundException:
testTopic not bound" ?
testTopic is my destination-jndi-name as specified in my jboss.xml
file:
<destination-jndi-name>testTopic</destination-jndi-name>
Are they related?
I am creating a Topic MDB with the code practically copied straight
from the Manual. Also testTopic is in the jbossmq.xml file:
<Topic><Name>testTopic</Name></Topic>
Thanks in advance,
mike.
STDOUT from Server:
[Auto deploy] Auto deploy of file:/C:/jboss/deploy/profiler.jar
[J2EE Deployer Default] exception while searching deployment:
C:\jboss\tmp\deploy\Default\profiler.jar\deployment.cfg (The system cannot
find the file specified)
[J2EE Deployer Default] Deploy J2EE application:
file:/C:/jboss/deploy/profiler.jar
[J2EE Deployer Default] Create application profiler.jar
[J2EE Deployer Default] install module profiler.jar
[Container factory]
Deploying:file:/C:/jboss/tmp/deploy/Default/profiler.jar/
[Verifier] Verifying
file:/C:/jboss/tmp/deploy/Default/profiler.jar/ejb1005.jar
[Container factory] Deploying TestMDB
[Container factory] Serious error in init:
javax.naming.NameNotFoundException: testTopic not bound
[Container factory] java.lang.Exception: javax.naming.NameNotFoundException:
testTopic not bound
[Container factory] at
org.jboss.ejb.MessageDrivenContainer.init(MessageDrivenContainer.java:156)
[Container factory] at
org.jboss.ejb.Application.init(Application.java:183)
[Container factory] at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:337)
[Container factory] at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:275)
[Container factory] at java.lang.reflect.Method.invoke(Native Method)
[Container factory] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Container factory] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Container factory] at
org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:435)
[Container factory] at
org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178)
[Container factory] at java.lang.reflect.Method.invoke(Native Method)
[Container factory] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Container factory] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Container factory] at
org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:358)
[Container factory] at
org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
[Container factory] at java.lang.Thread.run(Thread.java:484)
[Container factory] Could not stop JMSContainerInvoker
consumer:java.lang.NullPointerException
[J2EE Deployer Default] Starting profiler.jar failed!
[J2EE Deployer Default] Module profiler.jar is not running
[J2EE Deployer Default] Destroying application profiler.jar
[Auto deploy] Deployment failed:file:/C:/jboss/deploy/profiler.jar
[Auto deploy] org.jboss.deployment.J2eeDeploymentException: Error while
starting profiler.jar: Could not deploy
file:/C:/jboss/tmp/deploy/Default/profiler.jar/
[Auto deploy] at
org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:441)
[Auto deploy] at
org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178)
[Auto deploy] at java.lang.reflect.Method.invoke(Native Method)
[Auto deploy] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Auto deploy] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Auto deploy] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:358)
[Auto deploy] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
[Auto deploy] at java.lang.Thread.run(Thread.java:484)
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user