Using WildFly Application Server with NetBeans IDE

I am used to constantly using the GlassFish server. I am migrating a Java EE application from GlassFish (4.0) to FinalFly 8.1.0 final.

I tried using FinalFly 8.1.0 final on NetBeans 8.0 using this plugin for the server since there was no built-in plugin for the server.

Unlike GlassFish, the application, however, does not deploy when saving project data, even if the deployment option is enabled when saving to the IDE. The application leads to very strange / unknown / unusual problems. For example, this question is full of (simple) some of these problems.

I upgraded NetBeans to 8.0.1 (from JSF to 2.2.8-02), which has a built-in WildFly-Plugin, but it also did not change all the values ​​unlike the previous version of the IDE.

In this comment bug report mentions that the correction was made by changing / adding some the XML, the appropriate JDBC driver as follows,

<driver name="mysql" module="com.mysql">
  <xa-datasource-class>
    com.mysql.jdbc.jdbc2.optional.MysqlDataSource
  </xa-datasource-class>
</driver>

I also made this change to the file standalone-full.xml. This part is as follows.

<subsystem xmlns="urn:jboss:domain:datasources:2.0">
    <datasources>
        <datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">
            <connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE</connection-url>
            <driver>h2</driver>
            <security>
                <user-name>sa</user-name>
                <password>sa</password>
            </security>
        </datasource>

        <datasource jta="false" jndi-name="java:/jdbc/project_datasource" pool-name="project_datasource" enabled="true" use-ccm="false">
            <connection-url>jdbc:mysql://localhost:3306/projectdb</connection-url>
            <driver-class>com.mysql.jdbc.Driver</driver-class>
            <driver>mysql</driver>
            <pool>
                <min-pool-size>5</min-pool-size>
                <max-pool-size>15</max-pool-size>
            </pool>
            <security>
                <user-name>root</user-name>
                <password>root</password>
            </security>
            <validation>
                <validate-on-match>false</validate-on-match>
                <background-validation>false</background-validation>
            </validation>
            <statement>
                <share-prepared-statements>false</share-prepared-statements>
            </statement>
        </datasource>
        <drivers>
            <driver name="h2" module="com.h2database.h2">
                <xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
            </driver>
            <driver name="mysql" module="com.mysql">
                <xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlDataSource</xa-datasource-class>
            </driver>
        </drivers>
    </datasources>
</subsystem>

But all in vain. This has not done anything new.

Anyway, is it possible to use WildFly (8.1.0 or higher, when possible) with NetBeans (perhaps by making some changes)?

It seems like I almost stayed staying with WildFly. It?:)

I don’t know exactly if the plugin is a problem or not. It could be something else.


Update:

, . , , , , , /, ( - ) - .

: , () , ( , IDE) - , , .

-, / IDE , (, GlassFish Server).

+4
3

, . Wildfly 9990 , , Nvidia, Nvidia 9990.

, Nvidia ( ), Netbeans (8.1) wildfly .

, wildfly, . standalone.xml, :

<socket-binding name="management-http"
    interface="management"
    port="${jboss.management.http.port:9990}"/>

. NetBeans, , , , , . 9991 .

( , , )

+3

wildFly NetBeans IDE 8.0.1, , , . , netblans/wildfly . NPE, .

+1

All Articles