Skip to main content

Posts

Showing posts from March, 2014

Rapid Bootstrap CDN Support in NetBeans

I've just published a NetBeans 8 plugin that allows developers to quickly add links to Bootstrap CSS (hosted by bootstrapcdn.com) into their .xhtml files. Once installed, the plugin is appears on the "Insert Code..." dialog within .xhtml files. Selecting the "Bootstrap CDN..." option causes the Bootstrap version selector dialog to be displayed. Select a version of Boostrap CSS to be linked to and press the "OK" button and a link will be added into the file, e.g. <link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet"></link> The .NBM can be downloaded from GitHub along with the full source code . Let me know if you find this useful or if you find any bugs in the plugin.

Unable to start WildFly from NetBeans ?

NetBeans 8 provides native support for WildFly 8. Sometimes however, WildFly can fail to start from within NetBeans. In these instances, the following error is displayed within the NetBeans "WildFly Application Server" output window. Calling "C:\DevTools\wildfly-8.0.0.Final\bin\standalone.conf.bat" | was unexpected at this time. This error has been reported as NetBeans error 242661 . To get around the problem, bring up the server properties for WildFly (right click on WildFly in the services tab and choose Properties).  On the platform tab, uncheck the "Use IDE Proxy Settings" option and then restart NetBeans. You should now be able to start/stop WildFly directly from within NetBeans.

Creating Maven Projects For WildFly

The JBoss/WildFly way to configure Maven projects makes developing Java EE 7 applications with WildFly very straightforward. Configuring a project to use the JBoss Java EE 7 Bill Of Materials (BOM) removes the difficulty of specifying what version of dependencies are required as these are already defined within the BOM. So, to configure a WildFly project, we need to first define the BOM in the project's pom.xml file. <properties> <version.jboss.bom>8.0.0.Final</version.jboss.bom> </properties> <dependencyManagement> <dependencies> <dependency> <groupId>org.wildfly.bom</groupId> <artifactId>jboss-javaee-7.0-with-tools</artifactId> <version>${version.jboss.bom}</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> Once...