JUnit test won't work when calling embeddable EJBContainer

I'm trying to create a unit test on my application but I get an error when I call:
EJBContainer container = javax.ejb.embeddable.EJBContainer.createEJBContainer();
I've tried on multiple projects with the same result. I also downloaded the source from this tutorial: http://netbeans.org/kb/docs/javaee/javaee-entapp-junit.html and it failed. I've gone through the logs and output and nothing jumps out. The application itself will compile, deploy and work.
Anyone have any ideas?
Here is the full output:
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-test:
Testsuite: bean.MyBeanTest
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: javax.resource.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: javax.transaction.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: weld-osgi-bundle.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: javax.security.auth.message.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: jsf-api.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: bean-validator.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: jstl-impl.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: javax.servlet.jsp.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: jsf-impl.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: jersey-core.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping entry with a Manifest file with a special attribute: javax.annotation.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: javax.ejb.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: jaxrpc-api-osgi.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping entry with a Manifest file with a special attribute: webservices-api-osgi.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: javax.persistence.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: javax.jms.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: javax.servlet.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: javax.security.jacc.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: javax.management.j2ee.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: javax.servlet.jsp.jstl.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: javax.mail.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: javax.enterprise.deploy.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: jaxr-api-osgi.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping entry with a Manifest file with a special attribute: glassfish-embedded-static-shell.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
+INFO: [DeploymentElement] adding ant.jar to exploded ear isEJBModule? false isWebApp? false+
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
+INFO: [DeploymentElement] adding NetBeansJunitTutorial to exploded ear isEJBModule? true isWebApp? false+
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
+INFO: [DeploymentElement] adding lucene-demo-3.4.0.jar to exploded ear isEJBModule? false isWebApp? false+
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
+INFO: [DeploymentElement] adding ant-junit4.jar to exploded ear isEJBModule? false isWebApp? false+
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
+INFO: [DeploymentElement] adding jaxb-api-osgi.jar to exploded ear isEJBModule? false isWebApp? false+
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
+INFO: [DeploymentElement] adding classes to exploded ear isEJBModule? false isWebApp? false+
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
+INFO: [DeploymentElement] adding lucene-core-3.4.0.jar to exploded ear isEJBModule? false isWebApp? false+
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
+INFO: [DeploymentElement] adding ant-junit.jar to exploded ear isEJBModule? false isWebApp? false+
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
+INFO: [DeploymentElement] adding junit-4.8.2.jar to exploded ear isEJBModule? false isWebApp? false+
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
+INFO: [DeploymentElement] adding classes to exploded ear isEJBModule? true isWebApp? false+
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
+INFO: [DeploymentElement] adding ant-launcher.jar to exploded ear isEJBModule? false isWebApp? false+
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerImpl deploy
+INFO: [EJBContainerImpl] Deploying app: /tmp/ejb-app4556776368985078980+
SLF4J: Class path contains multiple SLF4J bindings.
+SLF4J: Found binding in [jar:file:/home/alan/glassfish3/glassfish/modules/weld-osgi-bundle.jar!/org/slf4j/impl/StaticLoggerBinder.class]+
+SLF4J: Found binding in [jar:file:/home/alan/glassfish3/glassfish/modules/bean-validator.jar!/org/slf4j/impl/StaticLoggerBinder.class]+
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
Dec 02, 2011 6:30:23 PM org.hibernate.validator.util.Version <clinit>
INFO: Hibernate Validator 4.1.0.Final
Dec 02, 2011 6:30:23 PM org.hibernate.validator.engine.resolver.DefaultTraversableResolver detectJPA
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
Dec 02, 2011 6:30:26 PM org.glassfish.api.ActionReport failure
+SEVERE: Exception while deploying the app [ejb-app]+
Dec 02, 2011 6:30:26 PM com.sun.enterprise.v3.server.ApplicationLifecycle deploy
+SEVERE: Invalid ejb jar [NetBeansJunitTutorial.jar]: it contains zero ejb.+
Note:
+1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message-driven bean.+
+2. EJB3+ entity beans (@Entity) are POJOs and please package them as library jar.+
+3. If the jar file contains valid EJBs which are annotated with EJB component level annotations (@Stateless, @Stateful, @MessageDriven, @Singleton), please check server.log to see whether the annotations were processed properly.+
+java.lang.IllegalArgumentException: Invalid ejb jar [NetBeansJunitTutorial.jar]: it contains zero ejb.+
Note:
+1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message-driven bean.+
+2. EJB3+ entity beans (@Entity) are POJOs and please package them as library jar.+
+3. If the jar file contains valid EJBs which are annotated with EJB component level annotations (@Stateless, @Stateful, @MessageDriven, @Singleton), please check server.log to see whether the annotations were processed properly.+
+PlainTextActionReporterFAILUREDescription: deploy AdminCommandError occurred during deployment: Exception while deploying the app [ejb-app] : Invalid ejb jar [NetBeansJunitTutorial.jar]: it contains zero ejb.+
Note:
+1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message-driven bean.+
+2. EJB3+ entity beans (@Entity) are POJOs and please package them as library jar.+
+3. If the jar file contains valid EJBs which are annotated with EJB component level annotations (@Stateless, @Stateful, @MessageDriven, @Singleton), please check server.log to see whether the annotations were processed properly.. Please see server.log for more details.+
+[name=ejb-app+
Tests run: 0, Failures: 0, Errors: 2, Time elapsed: 9.606 sec
------------- Standard Output ---------------
+PlainTextActionReporterFAILUREDescription: deploy AdminCommandError occurred during deployment: Exception while deploying the app [ejb-app] : Invalid ejb jar [NetBeansJunitTutorial.jar]: it contains zero ejb.+
Note:
+1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message-driven bean.+
+2. EJB3+ entity beans (@Entity) are POJOs and please package them as library jar.+
+3. If the jar file contains valid EJBs which are annotated with EJB component level annotations (@Stateless, @Stateful, @MessageDriven, @Singleton), please check server.log to see whether the annotations were processed properly.. Please see server.log for more details.+
+[name=ejb-app+
------------- Standard Error -----------------
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: javax.resource.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: javax.transaction.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: weld-osgi-bundle.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: javax.security.auth.message.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: jsf-api.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: bean-validator.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: jstl-impl.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: javax.servlet.jsp.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: jsf-impl.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: jersey-core.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping entry with a Manifest file with a special attribute: javax.annotation.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: javax.ejb.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: jaxrpc-api-osgi.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping entry with a Manifest file with a special attribute: webservices-api-osgi.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: javax.persistence.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: javax.jms.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: javax.servlet.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: javax.security.jacc.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: javax.management.j2ee.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: javax.servlet.jsp.jstl.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: javax.mail.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: javax.enterprise.deploy.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping module: jaxr-api-osgi.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl skipJar
INFO: ... skipping entry with a Manifest file with a special attribute: glassfish-embedded-static-shell.jar
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
+INFO: [DeploymentElement] adding ant.jar to exploded ear isEJBModule? false isWebApp? false+
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
+INFO: [DeploymentElement] adding NetBeansJunitTutorial to exploded ear isEJBModule? true isWebApp? false+
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
+INFO: [DeploymentElement] adding lucene-demo-3.4.0.jar to exploded ear isEJBModule? false isWebApp? false+
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
+INFO: [DeploymentElement] adding ant-junit4.jar to exploded ear isEJBModule? false isWebApp? false+
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
+INFO: [DeploymentElement] adding jaxb-api-osgi.jar to exploded ear isEJBModule? false isWebApp? false+
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
+INFO: [DeploymentElement] adding classes to exploded ear isEJBModule? false isWebApp? false+
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
+INFO: [DeploymentElement] adding lucene-core-3.4.0.jar to exploded ear isEJBModule? false isWebApp? false+
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
+INFO: [DeploymentElement] adding ant-junit.jar to exploded ear isEJBModule? false isWebApp? false+
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
+INFO: [DeploymentElement] adding junit-4.8.2.jar to exploded ear isEJBModule? false isWebApp? false+
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
+INFO: [DeploymentElement] adding classes to exploded ear isEJBModule? true isWebApp? false+
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.DeploymentElement getOrCreateApplication
+INFO: [DeploymentElement] adding ant-launcher.jar to exploded ear isEJBModule? false isWebApp? false+
Dec 02, 2011 6:30:22 PM org.glassfish.ejb.embedded.EJBContainerImpl deploy
+INFO: [EJBContainerImpl] Deploying app: /tmp/ejb-app4556776368985078980+
SLF4J: Class path contains multiple SLF4J bindings.
+SLF4J: Found binding in [jar:file:/home/alan/glassfish3/glassfish/modules/weld-osgi-bundle.jar!/org/slf4j/impl/StaticLoggerBinder.class]+
+SLF4J: Found binding in [jar:file:/home/alan/glassfish3/glassfish/modules/bean-validator.jar!/org/slf4j/impl/StaticLoggerBinder.class]+
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
Dec 02, 2011 6:30:23 PM org.hibernate.validator.util.Version <clinit>
INFO: Hibernate Validator 4.1.0.Final
Dec 02, 2011 6:30:23 PM org.hibernate.validator.engine.resolver.DefaultTraversableResolver detectJPA
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
Dec 02, 2011 6:30:26 PM org.glassfish.api.ActionReport failure
+SEVERE: Exception while deploying the app [ejb-app]+
Dec 02, 2011 6:30:26 PM com.sun.enterprise.v3.server.ApplicationLifecycle deploy
+SEVERE: Invalid ejb jar [NetBeansJunitTutorial.jar]: it contains zero ejb.+
Note:
+1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message-driven bean.+
+2. EJB3+ entity beans (@Entity) are POJOs and please package them as library jar.+
+3. If the jar file contains valid EJBs which are annotated with EJB component level annotations (@Stateless, @Stateful, @MessageDriven, @Singleton), please check server.log to see whether the annotations were processed properly.+
+java.lang.IllegalArgumentException: Invalid ejb jar [NetBeansJunitTutorial.jar]: it contains zero ejb.+
Note:
+1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message-driven bean.+
+2. EJB3+ entity beans (@Entity) are POJOs and please package them as library jar.+
+3. If the jar file contains valid EJBs which are annotated with EJB component level annotations (@Stateless, @Stateful, @MessageDriven, @Singleton), please check server.log to see whether the annotations were processed properly.+
at com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:76)
at com.sun.enterprise.deployment.util.ApplicationValidator.accept(ApplicationValidator.java:128)
at com.sun.enterprise.deployment.EjbBundleDescriptor.visit(EjbBundleDescriptor.java:730)
at com.sun.enterprise.deployment.Application.visit(Application.java:1765)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.validate(ApplicationArchivist.java:816)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openWith(ApplicationArchivist.java:277)
at com.sun.enterprise.deployment.archivist.ApplicationFactory.openWith(ApplicationFactory.java:240)
at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:171)
at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:93)
at com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer(ApplicationLifecycle.java:828)
at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:770)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:368)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:382)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1064)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1244)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1232)
at com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:129)
at org.glassfish.ejb.embedded.EJBContainerImpl.deploy(EJBContainerImpl.java:142)
at org.glassfish.ejb.embedded.EJBContainerProviderImpl.createEJBContainer(EJBContainerProviderImpl.java:134)
at javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:127)
at bean.MyBeanTest.setUpClass(MyBeanTest.java:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:76)
at com.sun.enterprise.deployment.util.ApplicationValidator.accept(ApplicationValidator.java:128)
at com.sun.enterprise.deployment.EjbBundleDescriptor.visit(EjbBundleDescriptor.java:730)
at com.sun.enterprise.deployment.Application.visit(Application.java:1765)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:518)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.validate(ApplicationArchivist.java:816)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1052)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:906)
Dec 02, 2011 6:30:26 PM org.glassfish.deployment.admin.DeployCommand execute
+SEVERE: Exception while deploying the app [ejb-app] : Invalid ejb jar [NetBeansJunitTutorial.jar]: it contains zero ejb.+
Note:
+1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message-driven bean.+
+2. EJB3+ entity beans (@Entity) are POJOs and please package them as library jar.+
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openWith(ApplicationArchivist.java:277)
at com.sun.enterprise.deployment.archivist.ApplicationFactory.openWith(ApplicationFactory.java:240)
at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:171)
at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:93)
at com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer(ApplicationLifecycle.java:828)
+3. If the jar file contains valid EJBs which are annotated with EJB component level annotations (@Stateless, @Stateful, @MessageDriven, @Singleton), please check server.log to see whether the annotations were processed properly.+
Dec 02, 2011 6:30:26 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl createEJBContainer
+INFO: [EJBContainerProviderImpl] Cleaning up on failure ...+
Testcase: bean.MyBeanTest:  Caused an ERROR
Failed to deploy EJB modules - see log for details
javax.ejb.EJBException: Failed to deploy EJB modules - see log for details
at org.glassfish.ejb.embedded.EJBContainerImpl.deploy(EJBContainerImpl.java:150)
at org.glassfish.ejb.embedded.EJBContainerProviderImpl.createEJBContainer(EJBContainerProviderImpl.java:134)
at javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:127)
at bean.MyBeanTest.setUpClass(MyBeanTest.java:35)
at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:770)
Testcase: bean.MyBeanTest:  Caused an ERROR
null
java.lang.NullPointerException
at bean.MyBeanTest.tearDownClass(MyBeanTest.java:41)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:368)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:382)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1064)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1244)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1232)
at com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:129)
at org.glassfish.ejb.embedded.EJBContainerImpl.deploy(EJBContainerImpl.java:142)
at org.glassfish.ejb.embedded.EJBContainerProviderImpl.createEJBContainer(EJBContainerProviderImpl.java:134)
at javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:127)
at bean.MyBeanTest.setUpClass(MyBeanTest.java:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:518)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1052)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:906)
Dec 02, 2011 6:30:26 PM org.glassfish.deployment.admin.DeployCommand execute
+SEVERE: Exception while deploying the app [ejb-app] : Invalid ejb jar [NetBeansJunitTutorial.jar]: it contains zero ejb.+
Note:
+1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message-driven bean.+
+2. EJB3+ entity beans (@Entity) are POJOs and please package them as library jar.+
+3. If the jar file contains valid EJBs which are annotated with EJB component level annotations (@Stateless, @Stateful, @MessageDriven, @Singleton), please check server.log to see whether the annotations were processed properly.+
Dec 02, 2011 6:30:26 PM org.glassfish.ejb.embedded.EJBContainerProviderImpl createEJBContainer
+INFO: [EJBContainerProviderImpl] Cleaning up on failure ...+
at com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:76)
Test bean.MyBeanTest FAILED
test-report:
test:
BUILD SUCCESSFUL (total time: 12 seconds)

I am obviously talking to Apple AND I posted this letter here, because a lot users seem confused about why their computers won't sleep. Even most AppleCare reps are confused. In the past, I couldn't find much in the way of explanations pointing to this issue, so I thought I post it here in case other people are looking for an explanation.
The auto-sleep function was built before websites auto-updated and needs to be updated to accomodate them. For the average user, it doesn't make sense for the computer not to sleep just because Gmail is open. Just because some website auto-refreshes in my browser, doesn't mean I never want my computer to sleep. By the same token, if I wanted to turn off auto-sleep I could easily do so from within Energy Saver Preferences. The two should be independent, so the user has the choice.
Why should I have to close my browser every time I walk away from my computer in order for it to sleep? I've acknowledged that in certain circumstance it makes sense for the computer not to auto-sleep: watching a movie, uploading, etc, but Apple has already accounted for those instances because the computer does not auto-sleep when those programs are running. All I'm suggesting is making the auto-sleep mechanism more sophisticated so that it isn't overridden by websites auto-refreshing. 
Why the negative attitude, dwb? Based on the amount of time you spend in these discussion forums, you obviously never turn your computer off, so this doesn't really affect you. Maybe it's time to step outside and get some fresh air?

Similar Messages

  • HT1430 my iPhone4 will not turn on or show that is working at all, i have tried to charge it so that the screen will light up but it won't work, when plugged into the computer iTunes does not show any sign it is plugged in, what do i do?

    my iPhone4 will not turn on or show that is working at all, i have tried to charge it so that the screen will light up but it won't work, when plugged into the computer iTunes does not show any sign it is plugged in, what do i do?

    There is a hardware problem.  Whether it's worth it to you to have no working phone for 2 months until you can update vs paying for replacement/repair now is a question only you can answer.

  • After upgrading to yosemite my magic mouse won't work when I wake up my mac mini. I have to power down then restore power to get it to function.

    after upgrading to yosemite my magic mouse won't work when I wake up my mac mini. I have to power down and restore power for it to function. Also cannot send email from mac mini or iPad.

    after upgrading to yosemite my magic mouse won't work when I wake up my mac mini. I have to power down and restore power for it to function. Also cannot send email from mac mini or iPad.

  • After up date my I phone 5 will no longer work when calling an automated phone . Press 1 for this or 2 for that. It tells me wrong selection.

    Why will my phone no longer work when calling an system with automated dialing, press 1 for this or 2 for that. Tells me not a valid number.

    sunshinesunshine wrote:
    So basically if a iphone has a fault after the 1 year warranty period is over, there is nothing the consumer can do but purchase a new phone??
    Pretty much. Except that Apple will replace it for a fixed fee that is far less than the cost of a new phone. In the US the replacement cost for an iPhone 4 is $149. It is comparable in the UK. Unless you can prove that the fault was present at the time of purchase. A switch wearing out would probably be considered normal wear and tear, not a "fault".

  • I have recently upgraded to iPhone 5 from 4, call line identity doesn't work when call other iPhones.  It works when calling any other brand of cell phone.  Network carrier assures me problem is not on there side.  Any assistance will be appreciated.

    I have recently upgraded to iPhone 5 from 4, call line identity doesn't work when call other iPhones.  It works when calling any other brand of cell phone.  Network carrier assures me problem is not on there side.  Any assistance will be appreciated.

    I have recently upgraded to iPhone 5 from 4, call line identity doesn't work when call other iPhones.  It works when calling any other brand of cell phone.  Network carrier assures me problem is not on there side.  Any assistance will be appreciated.

  • My 8 key won't work when I press it to put in my password, what can I do?

    my 8 key won't work when I press it to put in my password, what can I do?

    Presumably you are connecting it from the *Dock Connector.* In this case, the controls on the car stereo should be controlling the iPod and the iPod's controls are disabled.
    If you are using the car's connection interface, consult the car manual to find out how to control the iPod. If you are using an adaptor between the iPod and car, ask the adaptors installer or manufacturer.
    Phil

  • Since I updated to Yosemite my mouse won't work when I turn on, unless I unplug it and put it in again

    I have a mini mac updated to Yosemite, since I updated,  my mac mouse won't work when I open ...So I have to unplug from my mac keyboard and plug back in again . Does anyone have the same problem?

    Thanks Eric...a few other things have happened too...still working on them, I like the change just updating and figuring out why I might have some other problems...thånks again

  • My nano works when connected to a computer but won't work when unconnected.  The battery is full.

    My nano won't work when it is not connected to a computer.  It won't even reset.  If I pull it into my computer it will work and it shows that the battery is full.  What might be the problem?

    Then that sounds to be the Apple ID that owns this Mac, the OS and any preinstalled apps. Did that Apple ID set the Mac up when new?

  • Installed Windows 7 on bootcamp but now my wireless mouse won't work when in windows. What can I do?

    Installed Windows 7 on bootcamp but now my wireless mouse won't work when in windows. What can I do?

    assuming it is an optical mouse (no ball etc.) then there aren't any moving parts involve in the motion detection
    so there's a faulty component or connection
    from what you describe it could be just a loose/broken connection, so if you know someone familiar with electronics see if they can open it up and have a look

  • Movies won't work when a DVD is inserted ?

    Movies won't work when a DVD is inserted.  What do I do to watch a movie ?

    Just one DVD or all of them?
    Some DVD's just need a gentile cloth and rubbing alcohol wipe on the bottom to rid of fingerprints etc.
    If your using out of region code DVD's (each area of the world has regions codes assigned to the computer and disks) then that needs to be changed.
    This can happen if you buy a Mac used from another part of the world or use DVD's from another region.

  • Hardware Test Won't Work!

    I have an early 2011 MacBook Pro i5 with 8gb running Mountain Lion and the Hardware Test won't work. Everytime I hold down the "d" key it just boots normally. Since I have an early 2011 Mac I used to have Snow Leopard installed but then I upgraded to Mountain Lion. What should I do?

    ... the Internet Recovery window wouldn't accept my network name and password.
    No idea, but review the chart here: http://support.apple.com/kb/HT4718
    If your usual or current Internet connection has requirements or settings not supported by OS X Restore, either change the settings to a supported configuration for the duration of your OS X reinstall, or seek out acceptable networks from which you are permitted to access the Internet ...
    Try changing your network settings to conform to whatever OS X Recovery needs.
    Also why would my Mac be the the computer built without AHT if I bought it in early 2011?
    This long thread describes what happened: Apple Hardware Test (AHT) is GONE!! after Lion install

  • 1.call information such as call waiting,call forwarding, call holding is not working when caller the call me or im wait for my call i cant see any title by iphon , and also holding is the same.2. there is not any option for call baring.

    Hi. please solve my problem.
    .call information such as call waiting,call forwarding, call holding is not working when caller the call me or im wait for my call i cant see any title by iphon , and also holding is the same.2. there is not any option for call baring.3.playback music is not hearing by second partner during the call.4.i cant select ringing ton from saving tons.
    thank you in advance.

    Hi Ersin,
    Exception 1 would seem to be FORMATTING_ERROR, which suggests something in the design of the Smartform.  However, that doesn't fit with the form being generated from a report, but only erroring when called from a function module.  I can think of no reason why the different calling method would be a factor.
    When FORMATTING_ERROR is raise it should also set a message ID and number, are you able to determine what they are?
    Regards,
    Nick

  • Extensions still work when calling from outside but not in listed in DN

    Hello,
    There are 3 extensions that still work when calling from the outside, but they don't reside in the DN listing.  Where could they still exist?  Using Cisco Unified CM 8.5.1.                  
    Thank you for any assistance!

    Review you dial plan and also the unassigned DNs, they might not exist as an exact match, but maybe in something with wildcards.
    You can use DNA to search for them.
    HTH
    java
    if this helps, please rate
    www.cisco.com/go/pdihelpdesk

  • HTMLResources works when tested local but won't work when the folio is uploaded

    hi there,
    creating a DPS app with on the cover, inside a popup, a button that calls a pdf in the HTMLResources.zip
    Button's function
    HTMLResources/cover/filename.pdf
    filename.pdf sits in the folder 'cover' inside the HTMLResources folder before zipping.
    This works when I test it local, and it has worked online some days ago in a previous release of the folio.
    But since this morning I always get this error:
    "The requested url was not found an this server." (-1100)
    I've checked everything twice and the online Folio Producer tells the HTMLResources.zip is uploaded
    Any ideas what could be wrong ? How to solve this ?
    Thanx in advance,
    Herman Belgy

    -> [[Troubleshooting extensions and themes]]
    Check and tell if its working.
    Not related to your problem but your plugins needs to be updated.
    -> Your Flash plugin is quite older. You need to update it.
    * Adobe Flash Player 11.0.1.152 (3.59 MB)
    * http://get.adobe.com/flashplayer/
    -> Your Java plugin is quite older. You need to update it.
    * Java Version 6 Update 29
    * http://java.com/en/download/index.jsp
    * [[Using the Java plugin with Firefox]]
    -> Update All your Firefox Plugins
    * https://www-dev.allizom.org/en-US/plugincheck/
    * http://www.mozilla.com/en-US/plugincheck/
    '''When Downloading Plugins Update setup files, Remove Checkmark from Downloading other Optional Softwares with your Plugins (e.g. Toolbars, McAfee, Google Chrome, etc.)'''

  • Ringer won't work when getting a call

    ringer won't sound when receiving a call

    First thing to check when the phone is not ringing is the mute switch. See this graphic.
    If that is alright, the next thing to check is to see if Do Not Disturb is turned on. Is there a small crescent moon icon next to the battery icon? If so, then go to the Control Panel by swiping upwards from the bottom of the screen. Do Not Disturb is the next to the last icon on the top row, the one that has that crescent moon.

Maybe you are looking for