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 166993 - Not able to deploy a web project when there is no java file in the project
Summary: Not able to deploy a web project when there is no java file in the project
Status: RESOLVED DUPLICATE of bug 167755
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-12 14:56 UTC by Satyaranjan D
Modified: 2009-07-07 13:44 UTC (History)
2 users (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 Satyaranjan D 2009-06-12 14:56:29 UTC
Product Version         = NetBeans IDE 6.7 RC2 (Build 200906042131)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_11; Java HotSpot(TM) Client VM 11.0-b16; Sun Microsystems Inc.
  Runtime                 = Java(TM) SE Runtime Environment 1.6.0_11-b03
  Java Home               = C:\Java\jdk1.6.0_11\jre

Steps :

- Create a Web Project with default index.jsp
- Don't create any java file inside the web project.
- Start the Glassfish server and try to deploy this project.

The following exception is thrown :

init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
E:\testProjects\WebApplication27\nbproject\build-impl.xml:401: The following error occurred while executing this line:
E:\testProjects\WebApplication27\nbproject\build-impl.xml:224: org.netbeans.modules.java.source.ant.UserCancel
BUILD FAILED (total time: 0 seconds)


The "Clean & Build" option is working fine but the "Deploy" option is throwing exception. But if I create a java file
inside the project, everything starts working properly.

I could able to deploy 1 or 2 projects initially but then this problem started occurring everytime.
Comment 1 Jindrich Sedek 2009-06-12 17:40:24 UTC
What glassfish version do you use? I'm not able to reproduce the problem.
Comment 2 Satyaranjan D 2009-06-12 19:10:49 UTC
I was using Glassfish Enterprise Server 2.1 which comes with NetBeans 6.7 Bundle. But after re-installing the NetBeans
6.7 RC2, I am not able to reproduce the issue again. You may close this bug if it's not reproducible.
Comment 3 Marian Mirilovic 2009-06-13 21:13:43 UTC
it works for me in NB 6.7 RC3 with GFv2.1 as well ... please reopen once you are able to reproduce it 
Comment 4 kk_sriram 2009-07-06 11:57:58 UTC
Same Problem noticed...
Env:WindowsXp+NB6.7+Portalpack3.0.2

I tried this on 2 different machines..
On machine1(Error noticed)

I got this error on machine 1 ..As we know it the exception goes after we create a simple java file and deploy again.
The error is also seen when deploying a plain web-app on glassfish.The plain webapp doens;t have any *.java files.
After creating a java file deploy worked on glassfish.
The error is also seen while depoying a theme-app on webspace.The theme app also contains no *.java file.


On machine2
I tried doing a fresh install of NB6.7 on a different machine with portalpack3.0.2 plugins +NB 6.7 
I couldnlt see this error at all(both on webspace and glassfish)


Comment 5 Petr Jiricka 2009-07-07 13:44:14 UTC
You are right this is a problem, which was meanwhile investigated and fixed in issue 167755. See that issue to track the
progress, the fix is available in the NB 6.8 daily builds: http://bits.netbeans.org/netbeans/trunk/nightly/, and will be
also included in NB 6.7 Patch 1. 


*** This issue has been marked as a duplicate of 167755 ***