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.

Bug 269190

Summary: Could not deploy Web application with Glassfish 4.1.1 and Netbeans 8.2
Product: serverplugins Reporter: Summit
Component: GlassFishAssignee: Petr Hejl <phejl>
Status: RESOLVED INVALID    
Severity: normal    
Priority: P2    
Version: 8.2   
Hardware: Macintosh (x86)   
OS: Mac OS X   
Issue Type: TASK Exception Reporter:
Attachments: Webapplication zip file followed steps in https://netbeans.org/kb/docs/web/mysql-webapp.html
Glassfish4.1.1 server log

Description Summit 2016-12-01 01:21:46 UTC
Created attachment 163106 [details]
Webapplication zip file followed steps in https://netbeans.org/kb/docs/web/mysql-webapp.html

From Netbeans:

Undeploying ...
In-place deployment at /Users/annguyen/NetBeansProjects/CS535WebApplication/build/web
GlassFish Server 4.1.1, deploy, null, false
/Users/annguyen/NetBeansProjects/CS535WebApplication/nbproject/build-impl.xml:1070: The module has not been deployed.
See the server log for details.

From Glassfish 4.1.1 server log:

....

[2016-11-30T17:07:34.097-0800] [glassfish 4.1] [SEVERE] [] [javax.enterprise.system.core] [tid: _ThreadID=42 _ThreadName=admin-listener(2)] [timeMillis: 1480554454097] [levelValue: 1000] [[
  Exception while deploying the app [CS535WebApplication] : Failue while processing glassfish-resources.xml(s) in the archive  -- 
No local string defined
No local string defined]]


glassfish-resources.xml:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE resources PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Resource Definitions//EN" "http://glassfish.org/dtds/glassfish-resources_1_5.dtd">
<resources>
  <jdbc-resource enabled="true" jndi-name="jdbc/IFPWAFCAD" object-type="user" pool-name="ifpwfcadPool">
    <description>Access the database the provide the data for application</description>
  </jdbc-resource>
  <jdbc-resource enabled="true" jndi-name="jdbc/IFPWAFCAD" object-type="user" pool-name="ifpwafcadPool">
    <description>Access the database that provide data for the application</description>
  </jdbc-resource>
  <jdbc-resource enabled="true" jndi-name="jdbc/IFPWAFCAD" object-type="user" pool-name="ifpwafcadPool">
    <description/>
  </jdbc-resource>
  <jdbc-resource enabled="true" jndi-name="jdbc/IFPWAFCAD1" object-type="user" pool-name="ifpwafcad1Pool">
    <description/>
  </jdbc-resource>
  <jdbc-connection-pool allow-non-component-callers="false" associate-with-thread="false" connection-creation-retry-attempts="0" connection-creation-retry-interval-in-seconds="10" connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0" connection-validation-method="auto-commit" datasource-classname="com.mysql.jdbc.jdbc2.optional.MysqlDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" lazy-connection-association="false" lazy-connection-enlistment="false" match-connections="false" max-connection-usage-count="0" max-pool-size="32" max-wait-time-in-millis="60000" name="ifpwfcadPool" non-transactional-connections="false" ping="false" pool-resize-quantity="2" pooling="true" res-type="javax.sql.ConnectionPoolDataSource" statement-cache-size="0" statement-leak-reclaim="false" statement-leak-timeout-in-seconds="0" statement-timeout-in-seconds="-1" steady-pool-size="8" validate-atmost-once-period-in-seconds="0" wrap-jdbc-objects="false">
    <property name="URL" value="jdbc:mysql://localhost:3306/mynewdatabase"/>
    <property name="User" value="root"/>
    <property name="Password" value="root"/>
  </jdbc-connection-pool>
  <jdbc-connection-pool allow-non-component-callers="false" associate-with-thread="false" connection-creation-retry-attempts="0" connection-creation-retry-interval-in-seconds="10" connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0" connection-validation-method="table" datasource-classname="com.mysql.jdbc.jdbc2.optional.MysqlDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" lazy-connection-association="false" lazy-connection-enlistment="false" match-connections="false" max-connection-usage-count="0" max-pool-size="32" max-wait-time-in-millis="60000" name="ifpwafcadPool" non-transactional-connections="false" ping="false" pool-resize-quantity="2" pooling="true" res-type="javax.sql.ConnectionPoolDataSource" statement-cache-size="0" statement-leak-reclaim="false" statement-leak-timeout-in-seconds="0" statement-timeout-in-seconds="-1" steady-pool-size="8" validate-atmost-once-period-in-seconds="0" wrap-jdbc-objects="true">
    <property name="URL" value="jdbc:mysql://localhost:3306/mynewdatabase"/>
    <property name="User" value="root"/>
    <property name="Password" value="root"/>
  </jdbc-connection-pool>
  <jdbc-connection-pool allow-non-component-callers="false" associate-with-thread="false" connection-creation-retry-attempts="0" connection-creation-retry-interval-in-seconds="10" connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0" connection-validation-method="table" datasource-classname="com.mysql.jdbc.jdbc2.optional.MysqlDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" lazy-connection-association="false" lazy-connection-enlistment="false" match-connections="false" max-connection-usage-count="0" max-pool-size="32" max-wait-time-in-millis="60000" name="ifpwafcad1Pool" non-transactional-connections="false" ping="false" pool-resize-quantity="2" pooling="true" res-type="javax.sql.ConnectionPoolDataSource" statement-cache-size="0" statement-leak-reclaim="false" statement-leak-timeout-in-seconds="0" statement-timeout-in-seconds="-1" steady-pool-size="8" validate-atmost-once-period-in-seconds="0" wrap-jdbc-objects="true">
    <property name="URL" value="jdbc:mysql://localhost:3306/mynewdatabase"/>
    <property name="User" value="root"/>
    <property name="Password" value="root"/>
  </jdbc-connection-pool>
</resources>
Comment 1 Summit 2016-12-01 01:27:53 UTC
Created attachment 163107 [details]
Glassfish4.1.1 server log
Comment 2 Summit 2016-12-01 03:21:12 UTC
I would like to close this bug.  I think I had a bad glassfish-resources.xml file.  I cleaned it up and I can deploy the webapp now. 

Thank you very much.

Here is my updated version of glassfish-resources.xml.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE resources PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Resource Definitions//EN" "http://glassfish.org/dtds/glassfish-resources_1_5.dtd">
<resources>
  <jdbc-resource enabled="true" jndi-name="jdbc/IFPWAFCAD" object-type="user" pool-name="ifpwafcadPool">
    <description>Access the database that provide data for the application</description>
  </jdbc-resource>
  <jdbc-connection-pool allow-non-component-callers="false" associate-with-thread="false" connection-creation-retry-attempts="0" connection-creation-retry-interval-in-seconds="10" connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0" connection-validation-method="table" datasource-classname="com.mysql.jdbc.jdbc2.optional.MysqlDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" lazy-connection-association="false" lazy-connection-enlistment="false" match-connections="false" max-connection-usage-count="0" max-pool-size="32" max-wait-time-in-millis="60000" name="ifpwafcadPool" non-transactional-connections="false" ping="false" pool-resize-quantity="2" pooling="true" res-type="javax.sql.ConnectionPoolDataSource" statement-cache-size="0" statement-leak-reclaim="false" statement-leak-timeout-in-seconds="0" statement-timeout-in-seconds="-1" steady-pool-size="8" validate-atmost-once-period-in-seconds="0" wrap-jdbc-objects="true">
    <property name="URL" value="jdbc:mysql://localhost:3306/mynewdatabase"/>
    <property name="User" value="root"/>
    <property name="Password" value="root"/>
  </jdbc-connection-pool>
</resources>
Comment 3 Java2018 2018-11-26 09:45:48 UTC
I tried running/deploying a Java web app. the glassfish is given an error message. see the message below
n-place deployment at C:\Users\user\Documents\NetBeansProjects\WebApplication1\build\web
GlassFish Server 4.1, deploy, null, false
C:\Users\user\Documents\NetBeansProjects\WebApplication1\nbproject\build-impl.xml:1048: The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 55 seconds)


i need your help to solve this problem