GeeCON Prague 2014*
The moose likes JBoss/WildFly and the fly likes JBoss & Eclipse Dev Environment Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss & Eclipse Dev Environment Question" Watch "JBoss & Eclipse Dev Environment Question" New topic
Author

JBoss & Eclipse Dev Environment Question

Cory Hartford
Ranch Hand

Joined: May 16, 2011
Posts: 82

Hi Folks. I am new to JBoss and have been trying to deploy an MDB on my server in Eclipse with no luck. If I export the JAR file to the deploy folder of JBOSS server/all directory, I can run the message generator from Eclipse and it works as I expect (consumer onMessage generates a little "Hello" Message in the log). I can work with it this way, but its a hassle to have to stop and restart the server every time I make a change.
The process I was using in eclipse was:
1) Use add/remove to add the project to the JBOSS 5 server in the server view.
2) Select the project in the server view and select "Full Publish".
3) Start the Server


When I'd run the message generator, the server log would show the connection, but the message consumer wasn't being called. The book I am using says that I should see the JAR file for the project generated at that point in the JBOSS server/all directory, but its not being generated.

I'm sure its something in the way I have Eclipse and JBOSS playing together but I'm not sure what.
Thanks!


‎"The greatest of all weaknesses is the fear of appearing weak." - JB Bossuet
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

It almost sounds like you have automatic builds turned off. If so, did you manually run a build (right-click the project and select Build Project).

Also, I don't think you will see that JAR file in that location when using Eclipse. Instead, there will be a subdirectory somewhere under workspace/.metadata to which the JAR is published and JBoss AS will be instructed to deploy the app from there.

By the way, do you have JBoss Tools installed into Eclipse?


JBoss In Action
Cory Hartford
Ranch Hand

Joined: May 16, 2011
Posts: 82

Thanks for the reply Peter.
Yep, I have autobuild off, but I build each time I make a change. I can turn autobuild though and see if that changes anything. I do have JBoss Tools installed.
I will see If I can check that ./metdata path to see if I can see the jar there.
 
GeeCON Prague 2014
 
subject: JBoss & Eclipse Dev Environment Question