Bug 116538 - application.xml with dup ejb module in 1.4 ear
application.xml with dup ejb module in 1.4 ear
Status: NEW
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9
6.x
Sun Solaris
: P4 (vote)
: 6.x
Assigned To: Nitya Doraisamy
issues@serverplugins
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-09-24 15:26 UTC by nouar38
Modified: 2009-05-25 21:05 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nouar38 2007-09-24 15:26:19 UTC
NB 6.0 200709200000 &GF v2 fcs & jdk 1.6 u1

may be j2ee but could not find the supcomp. Put P4 as with the IDE-EAR-Add Java EE Module wizard cannot add a duplicate
module.

http://appserver-sqe.red.iplanet.com/twiki/pub/SQEAdmin90/NetBeanComponent/netbean_plugin_deploy_testspec_5.5.html

Negative tests:
4) Include a duplicate entry for a module in application.xml descriptor 
   of an otherwise valid application archive. Deploy. Check error messages 
   for validity, and usefulness

1.4 EAR with war and ejb (session bean), edit the application.xml (double click) and copy-paste the ejb module lines
<<
...
<module>
    <ejb>EnterpriseApplication9-ejb.jar</ejb>
  </module>
  <module>
    <ejb>EnterpriseApplication9-ejb.jar</ejb>
  </module>
>>

ENH: would be nice to get a clear error message like duplicate entry.

*** XML validate ==>>> no error
<<XML validation started.

Checking file:/NetBeansProjects14/EnterpriseApplication9/src/conf/application.xml...
XML validation finished.
>>

*** build and verify the EAR:
<<
dist:
verify:
running /opt/glassfish-v2-b58g/bin/verifier -ra -d /NetBeansProjects14/EnterpriseApplication9/dist
/NetBeansProjects14/EnterpriseApplication9/dist/EnterpriseApplication9.ear 
 SEVERE: Could not expand entry null into destination
/var/tmp/exploded20070924035923/EnterpriseApplication9/EnterpriseApplication9-ejb_jar
java.io.IOException: Error expanding archive /var/tmp/exploded20070924035923/EnterpriseApplication9/EnterpriseApplic
ation9-ejb.jar; please see the server log file for more information
        at com.sun.enterprise.deployment.backend.J2EEModuleExploder.explodeJar(J2EEModuleExploder.java:359)
        at com.sun.enterprise.deployment.backend.J2EEModuleExploder.explodeEar(J2EEModuleExplo
der.java:296)
...
>>

*** at deploy:
<<<
Cannot link PolicyConfiguration to itself.
Unable to create client jar: null
com.sun.enterprise.deployment.backend.IASDeploymentException
        at com.sun.enterprise.deployment.backend.ClientJarMakerThread.createClientJar(ClientJarMakerThread.java:156)
        at com.sun.enterprise.deployment.backend.ClientJarMakerThread.run(ClientJarMakerThread.java:93)
Caused by: java.util.zip.ZipException: duplicate entry: EnterpriseApplication9-ejb.jar
        at java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:175)
>>>
Comment 1 Vince Kraemer 2008-04-26 04:05:01 UTC
this is not an enhancement
Comment 2 Vince Kraemer 2008-07-28 18:31:40 UTC
re-read the issue.  the user has to do a fair bit of extra work to get into this situation.  pushing back down to p4
Comment 3 Vince Kraemer 2008-12-24 21:57:02 UTC
not worth worrying about in 7.0 time frame


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo