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 246613 - Netbeans deploys only non-empty folders (EAR project + Glassfish) ?
Summary: Netbeans deploys only non-empty folders (EAR project + Glassfish) ?
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-21 14:10 UTC by jredax
Modified: 2015-08-27 01:21 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jredax 2014-08-21 14:10:14 UTC
Hello there,
When deploying a JEE project (EJB + Web [JSF]) inGlassfish, only the folders filled are deployed.
For example:

Project-War
_ | --web Pages
___ | --web-INF (folder)
___ | --resources (folder)
_____ | --img
_______ | --picture1.jpg (file)
_______ | --picture2.jpg (file)
_______ | --background (Folder)
_____ | --css (folder)
_______ | --stylesheet1.css (file)
___ | --.........
_ | --source Packages (folder)

The "background" folder is not deployed, but if I add a file to that folder, it will be deployed.

Conclusion: Netbeans deploys only non-empty folders ?!

Thank you in advance for your advice.
Comment 1 jredax 2015-05-26 15:21:30 UTC
no feedback ?
Comment 2 Tomas Mysik 2015-05-27 05:41:02 UTC
Not a P1 I guess. Will try to look at it.

Just curious - what error will happen if the empty directory is not deployed?

Thanks.
Comment 3 jredax 2015-05-27 06:40:24 UTC
Hello,
(Thank you for your response Tomas Mysik)

no error message in console, but if the application needs to access this folder undeployed , there will be an IO exception.

Here's how to reproduce this bug :

Config:
- Windows 7 64bits
- Netbeans 8.0.2
- JVM 8
- Glassfish 4.1

Procedure:
1) Open Netbeans :p
2) File > New Project
3) Choose project >> Category : Java EE | Project : Entreprise Application
4) Now you have 2 modules , EJB and Web
5) Go to Web Project(xxxxx-war), select folder 'Web Pages'
6) Add these files :
_ | --web Pages
___ | WEB-INF
___ | Folder1
___ | Folder2
_______ | --Folder21
_______ | --Folder22
___________ | --Folder221

7) Clean & build, Deploy project (EJB and War) = EAR
8) Go to "NetbeansProjects" Folder > xxxxx > dist > gfdeploy > xxxxx > xxxxx_war
you will find only Folder2 and Folder22 like this :
___ | Folder2
_______ | --Folder22
___________ | --Folder221

:/

note:
if you look at the EAR archive you will find all folders !! the problem is just in gfdeploy.

Thanks
Comment 4 Tomas Mysik 2015-05-27 08:55:16 UTC
Reassigning, please evaluate. Thanks.
Comment 5 Tomas Mysik 2015-05-27 08:55:46 UTC
Sorry, not sure about proper BZ component. Thanks.
Comment 6 Petr Hejl 2015-08-26 07:56:34 UTC
Reproducible only for EAR.
Comment 7 Petr Hejl 2015-08-26 12:51:10 UTC
Fixed in web-main efda7ddda961.
Comment 8 Quality Engineering 2015-08-27 01:21:32 UTC
Integrated into 'main-silver', will be available in build *201508270002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/efda7ddda961
User: Petr Hejl <phejl@netbeans.org>
Log: #246613 - Netbeans deploys only non-empty folders (EAR project + Glassfish) ?