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.
Create new ejbjar project from existing source with AS7 cmp beans (so sun-cmp-mappings.xml will be at AS7 level), set J2EE level at 1.4. Try to add a session bean, open configuration files for AS, edit the new bean jndi name or some different value like pool size,... Save is not enabled, close the as config tab and use the dialog OK to save. Use text editor to see that the sun-ejb-jar.xml is not updated with the new bean values. It seems that the xml editor on sun-ejb-jar.xml still behave the same way. On the console, we have multitude of this stack traces (full stack in attachment): --------------- java.lang.ClassCastException: org.netbeans.modules.j2ee.sun.dd.impl.ejb.model_2_0_0.PmDescriptors at org.netbeans.modules.j2ee.sun.dd.impl.ejb.model_2_1_1.EnterpriseBeans.setPmDescriptors(EnterpriseBeans.java:146) at org.netbeans.modules.j2ee.sun.share.configBean.EjbJarRoot$2.getDDSnippet(EjbJarRoot.java:219) at org.netbeans.modules.j2ee.sun.share.configBean.Base.addToGraphs(Base.java:625) at org.netbeans.modules.j2ee.sun.share.configBean.SunONEDeploymentConfiguration.updateContentMap(SunONEDeploymentConfiguration.java:923) at org.netbeans.modules.j2ee.sun.share.configBean.SunONEDeploymentConfiguration.extractFileFromPlanForModule(SunONEDeploymentConfiguration.java:837) at org.netbeans.modules.j2ee.sun.ide.j2ee.incrdeploy.DirectoryDeployment.writeDeploymentPlanFiles(DirectoryDeployment.java:399) --------------- java.lang.NullPointerException at org.netbeans.modules.j2ee.sun.share.configBean.EjbJarRoot.processParentBean(EjbJarRoot.java:310) at org.netbeans.modules.j2ee.sun.share.configBean.Base.addToGraphs(Base.java:654) at org.netbeans.modules.j2ee.sun.share.configBean.SunONEDeploymentConfiguration.updateContentMap(SunONEDeploymentConfiguration.java:923)
Created attachment 24895 [details] NB4.1 exception stacks when saving ejbjar project with existing srouce from AS7
Is the root cause "the same" as the issue 59232???
Nam, could you attach the project that generated this problem please?
Created attachment 24903 [details] imported project, just edit configuration and try to save will see stack and config not saved
This should be fixed now.
More version related code requird to fix this, still some open issues.
Updated code that handled different versions of incoming sun-xxx descriptor files. 7.0 files are now handled properly, 8.0 as well.