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.
[ BUILD # : 20101215 ] [ JDK VERSION : 1.6.22 ] When using the "Call enterprice bean" wizard in "Insert code" it creates duplicated entries in the application-client.xml file. This happens if you use this wizard more than one time, that is use it in one class will initially insert the entry into the file, but, if you again use it in an other class in the same project it will insert it again, example below; - - - application-client.xml <?xml version="1.0" encoding="UTF-8"?> <application-client version="6" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application-client_6.xsd"> <display-name>RecietePrg-app-client</display-name> <ejb-ref> <ejb-ref-name>programInit</ejb-ref-name> <ejb-ref-type>Session</ejb-ref-type> <remote>init.ProgramInitRemote</remote> </ejb-ref> <ejb-ref> <ejb-ref-name>ArtBean</ejb-ref-name> <ejb-ref-type>Session</ejb-ref-type> <remote>remote.ArtBeanRemote</remote> </ejb-ref> <ejb-ref> <ejb-ref-name>GlobdataBean</ejb-ref-name> <ejb-ref-type>Session</ejb-ref-type> <remote>remote.GlobdataBeanRemote</remote> </ejb-ref> <ejb-ref> <ejb-ref-name>UserBean</ejb-ref-name> <ejb-ref-type>Session</ejb-ref-type> <remote>ent.SystemBeans.UserBeanRemote</remote> </ejb-ref> <ejb-ref> <ejb-ref-name>KundBean</ejb-ref-name> <ejb-ref-type>Session</ejb-ref-type> <remote>remote.KundBeanRemote</remote> </ejb-ref> <ejb-ref> <ejb-ref-name>KvittoBean</ejb-ref-name> <ejb-ref-type>Session</ejb-ref-type> <remote>remote.KvittoBeanRemote</remote> </ejb-ref> <ejb-ref> <ejb-ref-name>ServiceBean</ejb-ref-name> <ejb-ref-type>Session</ejb-ref-type> <remote>remote.ServiceBeanRemote</remote> </ejb-ref> <ejb-ref> <ejb-ref-name>GlobdataBean</ejb-ref-name> <ejb-ref-type>Session</ejb-ref-type> <remote>remote.GlobdataBeanRemote</remote> </ejb-ref> <ejb-ref> <ejb-ref-name>GlobdataBean</ejb-ref-name> <ejb-ref-type>Session</ejb-ref-type> <remote>remote.GlobdataBeanRemote</remote> </ejb-ref> </application-client>
Problem still exists in build 6447 on 110112.
Still reproducable in beta-2!
Please describe the way how you created the application including the server, its version and j2ee spec level.
Definitely valid issue, set for fixing into NB7.1.
Fixed in web-main #ffd94c9f9eae. It should not duplicate your EjbRefs any more.
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/ffd94c9f9eae User: Martin Fousek <marfous@netbeans.org> Log: #193576 - Call enterprice bean creates duplicate entries