[jboss-user] [JBoss Tools] - Eclipse works, Run doesn't?

Matt Stockbridge do-not-reply at jboss.com
Tue Jun 26 18:43:55 EDT 2012


Matt Stockbridge [https://community.jboss.org/people/mstockbr] created the discussion

"Eclipse works, Run doesn't?"

To view the discussion, visit: https://community.jboss.org/message/744399#744399

--------------------------------------------------------------
I've run into an interesting (read: "agrivating") problem: I can run an instance of JBoss with my .ear just fine from Eclipse using the JBoss tools, but if I try to deploy it by throwing what's in the deploy folder in the Eclipse project into the default/deploy folder in JBoss and running using run.conf.bat I run into some rather nasty JMS problems with one of four queues:

10:50:51,750 ERROR [org.hornetq.ra.HornetQRASessionFactoryImpl] Could not create session: javax.jms.IllegalStateException: Only allowed one session per connection. See the J2EE spec, e.g. J2EE1.4 Section 6.6
    at org.hornetq.ra.HornetQRASessionFactoryImpl.allocateConnection(HornetQRASessionFactoryImpl.java:816) [:6.1.0.Final]

This, of course, doesn't happen in Eclipse using the JBoss tools. There is literally nothing else (as far as applications not provided by JBoss) on the server. This has worked in the past, but due to the fact that the project in question is being developed quickly and without much support for infrastructure (read: There's one person on it and no supporting resources) determining what's gone wrong is less about rolling back (which might work, but, since I haven't identified the actual problem, might not) and more about process of elimination.

So, why would launching from Eclipse using the tools prevent the above error? Why would that error happen in the first place if the only things referencing the queue are one bean that sends messages in and one that takes them out (a paradigm that works for the other three queues without producing the error)? And, possibly the most unanswerable, why would it previously have worked and not be working now?

I know the typical response is to post everything. I can't do that. But I can post parts. I'm using vanilla JBoss 6.1.0 Final, Eclipse Java EE IDE Indigo SR1, JBoss Seam Tools for Eclipse 3.3.0.v20120302-2019-H81-Beta1, and Java 7.
I've got four queues, in addition to DLQ and ExpiryQueue:
components.xml

 <component class="org.jboss.seam.jms.ManagedQueueSender" name="dispatchQueueSender">
  <property name="queueJndiName">/queue/RnD/dispatch</property>
 </component>
 <component class="org.jboss.seam.jms.ManagedQueueSender" name="scheduleQueueSender">
  <property name="queueJndiName">/queue/RnD/schedule</property>
 </component>
 <component class="org.jboss.seam.jms.ManagedQueueSender" name="registerQueueSender">
  <property name="queueJndiName">/queue/RnD/register</property>
 </component>
 <component class="org.jboss.seam.jms.ManagedQueueSender" name="resultsQueueSender">
  <property name="queueJndiName">/queue/RnD/results</property>
 </component>

hornetq-jms.xml

   <queue name="DnR Dispatch">
      <entry name="/queue/RnD/dispatch"/>
   </queue>

   <queue name="DnR Scheduling">
      <entry name="/queue/RnD/schedule"/>
   </queue>

   <queue name="DnR Registration">
      <entry name="/queue/RnD/register"/>
   </queue>

   <queue name="DnR Results">
      <entry name="/queue/RnD/results"/>
   </queue>

I'm using hibernate in my project with MySQL, and everything is configured as an .ear (with ejb's and a .war inside).

Any thoughts?

-M.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/744399#744399]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120626/50513961/attachment.html 


More information about the jboss-user mailing list