Reputation: 7352
I'm trying to setup jBoss 7 server with NetBeans Wizard but it says "Provide a valid jBoss Application Server 6, 5 or 4 Location". I downloaded version 6 too to give it a try and it worked fine. What is the proper way of adding jBoss 7 on netbeans IDE 7.1.2??
Any help would be appreciated...
Upvotes: 17
Views: 36610
Reputation: 337
I use netbeans 8.0 and installed jboss 6.4 on ubuntu 16. To do it:
Unzip it into a folder of your choice
You might have to create a RedHat account. I hope that this helps.
Upvotes: 1
Reputation: 811
I had similar simptoms with Netbeans 8 - JBoss 7.2
For me somebody deleted - or didn't exist - the 'lib' folder from standalone. As I put it back from somewhere else, it worked fine.
Upvotes: 1
Reputation: 523
Pretty late reply, but some update, JBoss 7.1.1 worked with Netbeans 7.4 for me.
Upvotes: 2
Reputation: 109
According to this: http://developinjava.com/articles/using-jboss-as-7-with-netbeans/
The development Version of netbeans has support for jboss 7.
Have not tested it though. Because my problem is that my jboos install is on a diffrent machine and it looks like it need to be local to be supported. :(
Upvotes: 0
Reputation: 13679
To deploy on build, and undeploy on clean for:
Copy this ant script to the 'build.xml' file inside your project, and change the property jboss.dir to your path:
<project>
...
<property name="jboss.dir"
value="D:/Share/Sync/Dev/tools/j/jboss-as-7.1.1.Final/standalone/deployments"/>
<target depends="-post-clean" name="post-clean"/>
<target depends="-jboss-env" name="-post-clean">
<echo>Undeploying: ${jboss.projectFile}</echo>
<delete file="${jboss.dir}/${jboss.projectFile}"/>
<delete file="${jboss.dir}/${jboss.projectFile}.${jboss.projectState}"/>
</target>
<target depends="-post-dist" name="post-dist"/>
<target depends="-jboss-env" name="-post-dist">
<echo>Deploying: ${jboss.projectFile}</echo>
<copy file="${dist.dir}/${jboss.projectFile}" todir="${jboss.dir}"/>
<delete file="${jboss.dir}/${jboss.projectFile}.failed" />
</target>
<target name="-jboss-env" >
<condition property="jboss.projectFile" value="${war.name}">
<isset property="war.name"/>
</condition>
<condition property="jboss.projectFile" value="${jar.name}">
<isset property="jar.name"/>
</condition>
<available property="jboss.projectState"
file="${jboss.dir}/${jboss.projectFile}.undeployed"
value="undeployed"/>
<available property="jboss.projectState"
file="${jboss.dir}/${jboss.projectFile}.failed"
value="failed"/>
<available property="jboss.projectState"
file="${jboss.dir}/${jboss.projectFile}.deployed"
value="deployed"/>
</target>
</project>
Upvotes: 4
Reputation: 20065
The official support for JBoss AS 7 is not available yet for Netbeans 7.1.x.
Netbeans Bug report : Bug 200132 - Add support for JBoss AS 7
List of Netbeans supported technologies (JBoss 6.1 is the last supported version)
But according to this link, there is an unofficial plugin, that can manage server, but can't deploy application on JBoss AS 7.
Upvotes: 7