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 116470 - deploy Java EE 5 EAR with application.xml and bad java module
Summary: deploy Java EE 5 EAR with application.xml and bad java module
Status: RESOLVED WONTFIX
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 6.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-24 09:29 UTC by nouar38
Modified: 2007-09-24 19:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
run_deploy output (1.42 KB, text/plain)
2007-09-24 09:33 UTC, nouar38
Details
server.log for the domain (29.37 KB, text/plain)
2007-09-24 09:35 UTC, nouar38
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nouar38 2007-09-24 09:29:25 UTC
NB 6.0 200709200000 & GF v2 b58g & jdk 1.6u1: did the test on solaris-sparc

Negative test:
<<
3) Include a bogus entry for a module in application.xml descriptor of 
   an otherwise valid application archive. Deploy. Check error messages for 
   validity, and usefulness
>>

Was able to deploy an Java EE 5 EAR with good ejb (1 session bean ) web (jsp and html) and a bad java module
added in application.xml as:

<module>
      <java> MyJar file toto.jar </java>
</module>

How to produce:
----------------
1- start a registered domain (used a personal cluster)
2- create an EAR Java EE 5 with ejb and web modules
3- add a session bean stateless to the ejb
4- add a html file for the web
5- add application.xml to the EAR: Projects/New/Standard Deployment Descriptor
6- edit the application.xml and add the bad java module 
7- build and deploy

==>> the EAR is deployed with the bad module, but few messages & exception can be seen in the server.log

will attach the application-output (run-deploy), and the server log.
Comment 1 nouar38 2007-09-24 09:33:19 UTC
Created attachment 49344 [details]
run_deploy output
Comment 2 nouar38 2007-09-24 09:35:06 UTC
Created attachment 49345 [details]
server.log for the domain
Comment 3 Vince Kraemer 2007-09-24 19:37:54 UTC
I was able to replicate this issue.  I was also able to replicate it using asadmin deploydir.

The server allows the user to directory deploy an app like this.  The server provides a warning.  That warning is
integrated into the output that the NB user sees when they do a deploy from inside NetBeans.

By being "forgiving", the IDE and server allow folks to make progress despite their errors while providing feedback that
there is something wrong.

That seems like a good thing to me.

Note: asadmin's archive deployment fails in this situation.  I don't know if that is good or bad.