[ https://issues.apache.org/jira/browse/NETBEANS-5100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
S. M. updated NETBEANS-5100: ---------------------------- Environment: Netbeans 12.2, Glassfish 4 and Glassfish 5, Project: jdk1.8.0_65, Netbeans: jdk 14.01 Netbeans 12.3, Glassfish 5.1, Jdk was:Netbeans 12.2, Glassfish 4 and Glassfish 5, Project: jdk1.8.0_65, Netbeans: jdk 14.01 > Singleton EJB Bean does not deploy > ---------------------------------- > > Key: NETBEANS-5100 > URL: https://issues.apache.org/jira/browse/NETBEANS-5100 > Project: NetBeans > Issue Type: Bug > Affects Versions: 12.0, 12.2 > Environment: Netbeans 12.2, Glassfish 4 and Glassfish 5, Project: > jdk1.8.0_65, Netbeans: jdk 14.01 > Netbeans 12.3, Glassfish 5.1, Jdk > Reporter: S. M. > Priority: Critical > > The exactly same code works fine when it is deployed outside Netbeans or with > an older Netbeans version. So I feel the following is a Netbeans Issue... > Here comes the error description: > Make a new EBJ-Module-Project. Add this Singleton-EJB to the project: > {code} > package test; > import javax.ejb.Singleton; > @Singleton > public class NewSessionBean > { // Add business logic below. (Right-click in editor and choose // "Insert > Code > Add Business Method") > } > {code} > At deployment on Glassfish 4 or 5 the following Exeption occurs: > {code} > Info: Portable JNDI names for EJB NewSessionBean: > [java:global/EJBModule2/NewSessionBean!test.NewSessionBean, > java:global/EJBModule2/NewSessionBean] > Severe: Exception while invoking class org.glassfish.ejb.startup.EjbDeployer > load method > java.lang.RuntimeException: EJB Container initialization error > at > org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:234) > at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:291) > at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:99) > at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:206) > at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:313) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:496) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219) > at > org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:539) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:535) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:360) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:534) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:565) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:557) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:360) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:556) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1464) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:109) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1846) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1722) > at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534) > at > com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224) > at > org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:189) > at > com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459) > at > com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167) > at > org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206) > at > org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180) > at > org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235) > at > org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:132) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:111) > at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) > at > org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:536) > at > org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137) > at > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591) > at > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571) > at java.lang.Thread.run(Thread.java:745) > Caused by: java.lang.RuntimeException: > at test.NewSessionBean.<init>(NewSessionBean.java:1) > at test.__EJB31_Generated__NewSessionBean__Intf____Bean__.<init>(Unknown > Source) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > at java.lang.reflect.Constructor.newInstance(Constructor.java:422) > at java.lang.Class.newInstance(Class.java:442) > at > com.sun.ejb.containers.BaseContainer.instantiateOptionalEJBLocalBusinessObjectImpl(BaseContainer.java:3866) > at > com.sun.ejb.containers.AbstractSingletonContainer.initializeHome(AbstractSingletonContainer.java:215) > at > com.sun.ejb.containers.SingletonContainerFactory.createContainer(SingletonContainerFactory.java:72) > at > org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:221) > ... 43 more > Severe: Exception during lifecycle processing > java.lang.RuntimeException: EJB Container initialization error > at > org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:234) > at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:291) > at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:99) > at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:206) > at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:313) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:496) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219) > at > org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:539) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:535) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:360) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:534) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:565) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:557) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:360) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:556) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1464) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:109) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1846) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1722) > at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534) > at > com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224) > at > org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:189) > at > com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459) > at > com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167) > at > org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206) > at > org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180) > at > org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235) > at > org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:132) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:111) > at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) > at > org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:536) > at > org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137) > at > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591) > at > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571) > at java.lang.Thread.run(Thread.java:745) > Caused by: java.lang.RuntimeException: > at test.NewSessionBean.<init>(NewSessionBean.java:1) > at test.__EJB31_Generated__NewSessionBean__Intf____Bean__.<init>(Unknown > Source) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > at java.lang.reflect.Constructor.newInstance(Constructor.java:422) > at java.lang.Class.newInstance(Class.java:442) > at > com.sun.ejb.containers.BaseContainer.instantiateOptionalEJBLocalBusinessObjectImpl(BaseContainer.java:3866) > at > com.sun.ejb.containers.AbstractSingletonContainer.initializeHome(AbstractSingletonContainer.java:215) > at > com.sun.ejb.containers.SingletonContainerFactory.createContainer(SingletonContainerFactory.java:72) > at > org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:221) > ... 43 more > Severe: Exception while loading the app > Severe: Exception while loading the app : EJB Container initialization error > java.lang.RuntimeException: > at test.NewSessionBean.<init>(NewSessionBean.java:1) > at test.__EJB31_Generated__NewSessionBean__Intf____Bean__.<init>(Unknown > Source) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > at java.lang.reflect.Constructor.newInstance(Constructor.java:422) > at java.lang.Class.newInstance(Class.java:442) > at > com.sun.ejb.containers.BaseContainer.instantiateOptionalEJBLocalBusinessObjectImpl(BaseContainer.java:3866) > at > com.sun.ejb.containers.AbstractSingletonContainer.initializeHome(AbstractSingletonContainer.java:215) > at > com.sun.ejb.containers.SingletonContainerFactory.createContainer(SingletonContainerFactory.java:72) > at > org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:221) > at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:291) > at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:99) > at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:206) > at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:313) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:496) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219) > at > org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:539) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:535) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:360) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:534) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:565) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:557) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:360) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:556) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1464) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:109) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1846) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1722) > at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534) > at > com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224) > at > org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:189) > at > com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459) > at > com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167) > at > org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206) > at > org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180) > at > org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235) > at > org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:132) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:111) > at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) > at > org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:536) > at > org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137) > at > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591) > at > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571) > at java.lang.Thread.run(Thread.java:745) > {code} > > I tested this case in NB 12.3 - which now brings up another exception. The > bean slightly changed: > {code} > @Singleton > @LocalBean > public class NewSessionBean { > // Add business logic below. (Right-click in editor and choose > // "Insert Code > Add Business Method") > } > {code} > > The new exception is: > {code} > java.io.IOException: org.xml.sax.SAXParseException; lineNumber: 5; > columnNumber: 22; Deployment descriptor file META-INF/ejb-jar.xml in archive > [classes]. cvc-complex-type.2.4.b: The content of element 'enterprise-beans' > is not complete. One of '{"http://java.sun.com/xml/ns/j2ee":session, > "http://java.sun.com/xml/ns/j2ee":entity, > "http://java.sun.com/xml/ns/j2ee":message-driven}' is expected. > at > org.glassfish.javaee.core.deployment.DolProvider.processDOL(DolProvider.java:191) > at > org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:207) > at > org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:73) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer(ApplicationLifecycle.java:857) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:797) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:354) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:195) > at > org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:467) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:516) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:512) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:360) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:511) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:542) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:534) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:360) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:533) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1441) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:86) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1823) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1699) > at > com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:510) > at > com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:200) > at > org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:166) > at > com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:439) > at > com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:144) > at > org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182) > at > org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156) > at > org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218) > at > org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88) > at > org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53) > at > org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:515) > at > org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114) > at > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569) > at > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549) > at java.lang.Thread.run(Thread.java:748) > Caused by: org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 22; > Deployment descriptor file META-INF/ejb-jar.xml in archive [classes]. > cvc-complex-type.2.4.b: The content of element 'enterprise-beans' is not > complete. One of '{"http://java.sun.com/xml/ns/j2ee":session, > "http://java.sun.com/xml/ns/j2ee":entity, > "http://java.sun.com/xml/ns/j2ee":message-driven}' is expected. > at > com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:304) > at > com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:221) > at > com.sun.enterprise.deployment.archivist.Archivist.readStandardDeploymentDescriptor(Archivist.java:655) > at > com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:367) > at > com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:247) > at > com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:256) > at > com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:217) > at > com.sun.enterprise.deployment.archivist.ApplicationFactory.openArchive(ApplicationFactory.java:137) > at > org.glassfish.javaee.core.deployment.DolProvider.processDOL(DolProvider.java:183) > ... 43 more > Caused by: org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 22; > cvc-complex-type.2.4.b: The content of element 'enterprise-beans' is not > complete. One of '{"http://java.sun.com/xml/ns/j2ee":session, > "http://java.sun.com/xml/ns/j2ee":entity, > "http://java.sun.com/xml/ns/j2ee":message-driven}' is expected. > at > com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203) > at > com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134) > at > com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:396) > at > com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327) > at > com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:284) > at > com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:454) > at > com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3232) > at > com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.elementLocallyValidComplexType(XMLSchemaValidator.java:3208) > at > com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.elementLocallyValidType(XMLSchemaValidator.java:3155) > at > com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processElementContent(XMLSchemaValidator.java:3057) > at > com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleEndElement(XMLSchemaValidator.java:2136) > at > com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.endElement(XMLSchemaValidator.java:855) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2967) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602) > at > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505) > at > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842) > at > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771) > at > com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) > at > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) > at > com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643) > at > com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:327) > at > com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:294) > ... 51 more > |#] > Exception while deploying the app [EJBModule1_delete] : > org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 22; Deployment > descriptor file META-INF/ejb-jar.xml in archive [classes]. > cvc-complex-type.2.4.b: The content of element 'enterprise-beans' is not > complete. One of '{"http://java.sun.com/xml/ns/j2ee":session, > "http://java.sun.com/xml/ns/j2ee":entity, > "http://java.sun.com/xml/ns/j2ee":message-driven}' is expected. > org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 22; Deployment > descriptor file META-INF/ejb-jar.xml in archive [classes]. > cvc-complex-type.2.4.b: The content of element 'enterprise-beans' is not > complete. One of '{"http://java.sun.com/xml/ns/j2ee":session, > "http://java.sun.com/xml/ns/j2ee":entity, > "http://java.sun.com/xml/ns/j2ee":message-driven}' is expected. > at > com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:304) > at > com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:221) > at > com.sun.enterprise.deployment.archivist.Archivist.readStandardDeploymentDescriptor(Archivist.java:655) > at > com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:367) > at > com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:247) > at > com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:256) > at > com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:217) > at > com.sun.enterprise.deployment.archivist.ApplicationFactory.openArchive(ApplicationFactory.java:137) > at > org.glassfish.javaee.core.deployment.DolProvider.processDOL(DolProvider.java:183) > at > org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:207) > at > org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:73) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer(ApplicationLifecycle.java:857) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:797) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:354) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:195) > at > org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:467) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:516) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:512) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:360) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:511) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:542) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:534) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:360) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:533) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1441) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:86) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1823) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1699) > at > com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:510) > at > com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:200) > at > org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:166) > at > com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:439) > at > com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:144) > at > org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182) > at > org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156) > at > org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218) > at > org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88) > at > org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53) > at > org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:515) > at > org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114) > at > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569) > at > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549) > at java.lang.Thread.run(Thread.java:748) > Caused by: org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 22; > cvc-complex-type.2.4.b: The content of element 'enterprise-beans' is not > complete. One of '{"http://java.sun.com/xml/ns/j2ee":session, > "http://java.sun.com/xml/ns/j2ee":entity, > "http://java.sun.com/xml/ns/j2ee":message-driven}' is expected. > at > com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203) > at > com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134) > at > com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:396) > at > com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327) > at > com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:284) > at > com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:454) > at > com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3232) > at > com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.elementLocallyValidComplexType(XMLSchemaValidator.java:3208) > at > com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.elementLocallyValidType(XMLSchemaValidator.java:3155) > at > com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processElementContent(XMLSchemaValidator.java:3057) > at > com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleEndElement(XMLSchemaValidator.java:2136) > at > com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.endElement(XMLSchemaValidator.java:855) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2967) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602) > at > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505) > at > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842) > at > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771) > at > com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) > at > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) > at > com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643) > at > com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:327) > at > com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:294) > ... 51 more > |#] > {code} > -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists