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 193576 - Call enterprice bean creates duplicate entries
Summary: Call enterprice bean creates duplicate entries
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB (show other bugs)
Version: 7.0
Hardware: PC Windows Vista
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-18 12:48 UTC by Chiana
Modified: 2011-10-26 14:25 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 Chiana 2010-12-18 12:48:36 UTC
[ 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>
Comment 1 Chiana 2011-01-13 00:38:49 UTC
Problem still exists in build 6447 on 110112.
Comment 2 Chiana 2011-02-08 03:19:37 UTC
Still reproducable in beta-2!
Comment 3 Petr Hejl 2011-02-17 15:14:18 UTC
Please describe the way how you created the application including the server, its version and j2ee spec level.
Comment 4 Martin Fousek 2011-10-06 08:34:43 UTC
Definitely valid issue, set for fixing into NB7.1.
Comment 5 Martin Fousek 2011-10-25 11:45:18 UTC
Fixed in web-main #ffd94c9f9eae.

It should not duplicate your EjbRefs any more.
Comment 6 Quality Engineering 2011-10-26 14:25:59 UTC
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