This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I have been using NetBeans 8.0.1 with Wilfly 8.0.0.Final version server and everything is working fine. Now I try to work with Wildfly 8.1.0.Final and I am facing some issues. Issue#1: Maven webapp is not being deployed Steps to reproduce: 1)Create a maven webapp project and select Wildlfy 8.1.0 server as Server and choose JavaEE 7.0 API level. 2) Right click on project and choose Run. It is starting the server and printing the following on console. NetBeans: Deploying on WildFly Application Server profile mode: false debug mode: false force redeploy: true But when I access the application from browser its not showing up. Then I just changed the Server from Wildfly 8.1.0.Final to Wildfly 8.0.0.Fianl or Glassfish and run it and its working fine. Issue#2: Create Domain classes from DB is not working. Once I created the maven webapp by choosing Wildlfy 8.1.0.Final version, i tried to generate Domain Entities from DB. But in the wizard DataSource dropdown is disabled. I am seeing the following NullPointerException is error log. java.lang.NullPointerException at org.netbeans.modules.javaee.wildfly.config.WildflyDatasource.<init>(WildflyDatasource.java:83) at org.netbeans.modules.javaee.wildfly.config.xml.ds.WildflyDatasourcesHandler.endElement(WildflyDatasourcesHandler.java:110) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:609) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1781) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2957) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:649) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:333) at javax.xml.parsers.SAXParser.parse(SAXParser.java:195) at org.netbeans.modules.javaee.wildfly.config.xml.ConfigurationParser.listDatasources(ConfigurationParser.java:81) at org.netbeans.modules.javaee.wildfly.config.WildflyDatasourceManager.getDatasources(WildflyDatasourceManager.java:105) at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.getDatasources(ServerInstance.java:733) at org.netbeans.modules.j2ee.deployment.devmodules.spi.J2eeModuleProvider.getServerDatasources(J2eeModuleProvider.java:207) at org.netbeans.modules.j2ee.common.DatasourceUIHelper.getDatasources(DatasourceUIHelper.java:627) at org.netbeans.modules.j2ee.common.DatasourceUIHelper.access$200(DatasourceUIHelper.java:98) at org.netbeans.modules.j2ee.common.DatasourceUIHelper$3.run(DatasourceUIHelper.java:454) at org.netbeans.modules.j2ee.core.api.support.progress.ProgressSupport$ActionInvoker.invokeNextActionsOfSameKind(ProgressSupport.java:270) at org.netbeans.modules.j2ee.core.api.support.progress.ProgressSupport$ActionInvoker.access$100(ProgressSupport.java:118) at org.netbeans.modules.j2ee.core.api.support.progress.ProgressSupport$ActionInvoker$1.run(ProgressSupport.java:159) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
The second issue is a duplicate and has been fixed in Netbeans 8.0.1 could you check your version of the plugin
For the first one, did you change the position of the standalone.xml when you defined the WildFly 8.1.0 ? Changing server may introduce issue as the plugin won't change the server configuration path thus pointing to the 'old' one. You need to check that. By the way there is a warning message when you do this.
Yeah, While changing the server it showed an alert and I have pointed to the correct standalone.xml. The second issue, problem in generating Domain classes from DB, is occurring only when using Wildlfy 8.1.0.Final. When I change it to either Wildlfy 8.0.0.Final or Glassfish it is showing the DataSource dropdown properly and I am able to generate Entity classes successfully.
You must have a badly defined datasource in your xml configuration file. That problem arise with the driver element not being defined but was fixed in 8.0.1 (Netbeans) as I expected an empty string and got a null one. Could you try with a vanilla Netbeans 8.0.2 (not importing from previous version or using a different userdir).
References to second issue : https://netbeans.org/bugzilla/show_bug.cgi?id=247035 https://netbeans.org/bugzilla/show_bug.cgi?id=246675
Wow!! I had the mysql driver declaration as <driver name="mysql" module="com.mysql"> Now I changed it to <driver name="mysql" module="com.mysql"> <xa-datasource-class> com.mysql.jdbc.jdbc2.optional.MysqlXADataSource </xa-datasource-class> </driver> Now bot the issues are gone. I am able to generate Domain classes and I can deploy webapp on Wildlfy 8.1.0.Final also. The misleading part, which makes me think it is Netbeans issue, is the server is starting fine and if I just generate a war file and deploy it then also its working fine. Also with the same old driver config Eclipse is working fine. So I thought it might be NetBeans issue. I hope if it is not a problem for Wildlfy to have <driver> config without <driver-class> then it should be fine to NetBeans too. Anyway, thanks a lot for your quick response.