Two Laptop Bag*
The moose likes JBoss/WildFly and the fly likes Integrating jBoss 4.0.4 with Netbeans 6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Integrating jBoss 4.0.4 with Netbeans 6" Watch "Integrating jBoss 4.0.4 with Netbeans 6" New topic
Author

Integrating jBoss 4.0.4 with Netbeans 6

Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

Hi! I am working on a project where I need jBoss 4.0.4 as the EJB 3 container. It is a modified version of jBoss which supports EJB 3. Now I want that I am able to run my EJB 3 projects from netbeans directly. But netbeans is not recognizing jBoss as an application server. I don't know how I can make jBoss run my application from the source of my project. So each time I make any changes, I have to build an EAR file, undeploy the application from jBoss and redeploy it. This wastes a lot of time. What should I do to solve this problem. Do I need a netbeans plugin or is there a way jBoss runs my application directly from the build folder of my project. I would be very thankful for any help.

Thanks in advance.


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

here I have seen that this might be the cause of Netbeans not recognizing jBoss. My application is set to Java EE 5 so that might be the reason. But still I want to know how to configure jBoss to run an application from a different folder. I know everything about Apache Tomcat but I'm new to jBoss. So any information or internet resource would be very helpful for me.

Thanks again in advance.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9927
    
158

Ankit Garg wrote:But still I want to know how to configure jBoss to run an application from a different folder.


I don't know how it can be done through any IDE. But if you are interested in knowing how to do it in JBoss, see this thread.

[My Blog] [JavaRanch Journal]
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17


You are the master Jaikiran.

Also this can be easily configured in Netbeans. Although I don't know if there is any configuration option directly, but I went into the nbproject folder and opened the project.properties file and in that changed the value of build.dir property to Project/Project.ear. My project is in g:\myproject folder so I placed ,file:///G:/myproject/Project to the jboss-service.xml file.

I had to change the value of build.dir to Project/Project.ear because if I didn't do that, then I would have to put file:///G:/myproject/ in the jboss-service.xml. Then jBoss would deploy the war and ejb modules in the myproject folder two times. So it would be safe to point the deploy folder into an empty folder and then point jBoss to that empty folder. This is more important in EAR projects which have the sub modules in their own directory. I know this might be confusing to read but if you try this then you will realize what I am saying
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

Well I was to happy too soon. That solved only half of my problem. Now the ear project contains all the required jar and war files in the project. But when any of the .war files is updated, jBoss doesn't takes that into consideration. It shows the old output and the new changes are not reflected. How can this be solved??
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Integrating jBoss 4.0.4 with Netbeans 6
 
Similar Threads
General advice : Upgrade to JBoss-4.0.4-GA
How to install Jboss 4.0 in windows Operating Systems
Ant tool and build.xml
NetBeans 6 vs. JBoss Developer vs. Eclipse
Hard to configurate Hibernate using NetBeans 5.5.1