NetBeans The module has not been deployed Error

8.6k Views Asked by At

I have created a app using NetBeans 6.8 and Tomcat 7. When i'm trying to run my application, i'm getting error as The module has not been deployed from below line in build-impl.xml.

<target if="netbeans.home" name="-run-deploy-nb">
     // error come from below line
    <nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
</target>

How can i solve this ?

2

There are 2 best solutions below

0
Amin java On

(1) To sure check it first:

MY JDK 1.8(default). my tomcat 8.0.3.0

(2) Then you should write coding of your application correctly.

(3) if problem occur " Module has not been deployed ".

(4) you should disconnect your network connection.

(5) than restart the computer.

(6) run the project again.

0
Rohit Chauhan On

It maybe because you may need to create Db Resource and Pool manually on the Glassfish server like this,

In Netbeans -> Projects, Open Server Resources -> glassfish-resources.xml We have to create JDBC Resource and JDBC Connection Pool Manually on Glassfish. I am using my values here, don't use them, see your .xml !

Value of jndi-name is your JDBC Resource and Value of pool-name is your JDBC Connection Pool.

Open Browser for Glassfish Admin, https://localhost:4848/

Go to JDBC Connection Pool -> New:
1) Pool Name: mysql_customersdb_rootPool
2) Resource Type: javax.sql.ConnectionPoolDataSource
3) Database Driver Vendor: MySql

Press Next

URL: jdbc:mysql://localhost:3306/customersdb?zeroDateTimeBehavior=convertToNull
Url: jdbc:mysql://localhost:3306/customersdb?zeroDateTimeBehavior=convertToNull
User: root
Password: root

JDBC Resources -> New

JNDI Name: CustomersDS
Pool Name: mysql_customersdb_rootPool

Press Ok.

Right Click your Project and Press Run :)