<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
<font size="-1"><tt>Testing out AS 7.0.0.Beta3 with a sample JMS client
web application showed up a CNFE for hornetq classes. The client web
application is just a .war file with only one jsp (just for testing)
which just uses the JMS API to send out a message to a queue:<br>
<br>
<br>
Context context = new InitialContext();<br>
Queue queue = (Queue) context.lookup("queue/test");<br>
... <br>
QueueConnectionFactory queueConnectionFactory =
(QueueConnectionFactory) context.lookup("java:/ConnectionFactory");<br>
QueueConnection queueConnection =
queueConnectionFactory.createQueueConnection();<br>
QueueSession queueSession =
queueConnection.createQueueSession(false,Session.AUTO_ACKNOWLEDGE);<br>
QueueSender queueSender = queueSession.createSender(queue);<br>
//create a TextMessage<br>
TextMessage textMessage = queueSession.createTextMessage("Hello JBoss
AS7");<br>
queueSender.send(textMessage);<br>
...<br>
<br>
<br>
When testing this, it runs into this exception:<br>
<br>
12:51:38,061 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) Caused
by: java.lang.ClassNotFoundException:
org.hornetq.api.core.client.loadbalance.RoundRobinConnectionLoadBalancingPolicy
from [Module "deployment.test.war:main" from Service Module Loader]<br>
12:51:38,061 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at
org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:184)<br>
12:51:38,062 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:357)<br>
12:51:38,062 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:306)<br>
12:51:38,063 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:100)<br>
12:51:38,068 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) at
org.hornetq.core.client.impl.ClientSessionFactoryImpl$1.run(ClientSessionFactoryImpl.java:1162)<br>
12:51:38,069 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) ...
28 more<br>
<br>
<br>
Adding a Dependencies: org.hornetq to the .war/META-INF/MANIFEST.MF of
the war and redeploying the war gets me past this issue. But shouldn't
this dependency on our internal JMS provider impl module be setup
automatically by one of our deployment unit processors, instead of the
user having to do it?<br>
<br>
-Jaikiran<br>
<br>
</tt></font>
</body>
</html>