I've logged the stack trace:
SEVERE: java.lang.IllegalStateException: Unable to retrieve EntityManagerFactory for unitName null
SEVERE: at com.sun.enterprise.container.common.impl.EntityManagerFactoryWrapper.getDelegate(EntityManagerFactoryWrapper.java:91)
SEVERE: at com.sun.enterprise.container.common.impl.EntityManagerFactoryWrapper.createEntityManager(EntityManagerFactoryWrapper.java:101)
SEVERE: at com.sun.bookstore1.database.BookDBAO.<init>(BookDBAO.java:27)
SEVERE: at com.sun.bookstore1.listeners.ContextListener.contextInitialized(ContextListener.java:32)
SEVERE: at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4862)
SEVERE: at org.apache.catalina.core.StandardContext.start(StandardContext.java:5551)
SEVERE: at com.sun.enterprise.web.WebModule.start(WebModule.java:498)
SEVERE: at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928)
SEVERE: at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912)
SEVERE: at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:693)
SEVERE: at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1951)
SEVERE: at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1638)
SEVERE: at com.sun.enterprise.web.WebApplication.start(WebApplication.java:88)
SEVERE: at org.glassfish.internal.data.EngineRef.start(EngineRef.java:115)
SEVERE: at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:215)
SEVERE: at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:189)
SEVERE: at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:283)
SEVERE: at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:172)
SEVERE: at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:247)
SEVERE: at com.sun.enterprise.v3.admin.CommandRunnerImpl$4.execute(CommandRunnerImpl.java:419)
SEVERE: at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:434)
SEVERE: at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:521)
SEVERE: at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:137)
SEVERE: at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:313)
SEVERE: at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:180)
SEVERE: at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:165)
SEVERE: at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
SEVERE: at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:208)
SEVERE: at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:746)
SEVERE: at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:655)
SEVERE: at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:905)
SEVERE: at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:161)
SEVERE: at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:136)
SEVERE: at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
SEVERE: at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
SEVERE: at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
SEVERE: at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
SEVERE: at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
SEVERE: at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
SEVERE: at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
SEVERE: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
SEVERE: at java.lang.Thread.run(Thread.java:619)
I've tried to find the source code for all the JEE 6 jars but I couldn't find it. Does anybody know where to get it?
Thanks Tai
[Message sent by forum member 'taitruong' (taitruong)]
http://forums.java.net/jive/thread.jspa?messageID=357322