MyException - 我的异常网
输入您需解决的 软件开发问题并开始搜索, 我的异常网可以方便地提供各类 程序错误解决方案。
当前位置: 我的异常网 » Java Web开发

javax.naming.NameNotFoundException: Name jdbc is not bound in this Context

netbean6.1中布署javapetstore-2.0-ea5出错,大家看看是什么问题
服务器是 classFish v2 
运运时的错误日志如下
naming.bind
Null component com.sun.appserv:type=JspMonitor,name=jsp,WebModule=//server/petstore,J2EEApplication=null,J2EEServer=server
WEB0207:在虚拟服务器 server 上启动 Web 上下文 StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[/petstore] 时出现错误
java.lang.RuntimeException: java.lang.RuntimeException: javax.naming.NameNotFoundException
  at com.sun.enterprise.web.WebModuleListener.loadPersistenceUnits(WebModuleListener.java:193)
  at com.sun.enterprise.web.WebModuleListener.lifecycleEvent(WebModuleListener.java:168)
  at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:143)
  at org.apache.catalina.core.StandardContext.start(StandardContext.java:5094)
  at com.sun.enterprise.web.WebModule.start(WebModule.java:326)
  at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
  at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
  at com.sun.appserv.management.util.misc.RunnableBase._submit(RunnableBase.java:176)
  at com.sun.appserv.management.util.misc.RunnableBase.submit(RunnableBase.java:192)
  at com.sun.enterprise.web.VirtualServer.startChildren(VirtualServer.java:1672)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1231)
  at org.apache.catalina.core.StandardHost.start(StandardHost.java:955)
  at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
  at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
  at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:341)
  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
  at java.util.concurrent.FutureTask.run(FutureTask.java:138)
  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
  at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.RuntimeException: javax.naming.NameNotFoundException
  at com.sun.enterprise.server.PersistenceUnitInfoImpl._getJtaDataSource(PersistenceUnitInfoImpl.java:283)
  at com.sun.enterprise.server.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:116)
  at com.sun.enterprise.server.PersistenceUnitLoaderImpl.load(PersistenceUnitLoaderImpl.java:121)
  at com.sun.enterprise.server.PersistenceUnitLoaderImpl.load(PersistenceUnitLoaderImpl.java:84)
  at com.sun.enterprise.web.WebModuleListener.loadPersistenceUnits(WebModuleListener.java:190)
  ... 20 more
Caused by: javax.naming.NameNotFoundException
  at com.sun.enterprise.naming.TransientContext.resolveContext(TransientContext.java:268)
  at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:191)
  at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:74)
  at com.sun.enterprise.naming.LocalSerialContextProviderImpl.lookup(LocalSerialContextProviderImpl.java:111)
  at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:398)
  at javax.naming.InitialContext.lookup(InitialContext.java:392)
  at com.sun.enterprise.connectors.ConnectorResourceAdminServiceImpl.lookup(ConnectorResourceAdminServiceImpl.java:196)
  at com.sun.enterprise.connectors.ConnectorRuntime.lookupPMResource(ConnectorRuntime.java:1099)
  at com.sun.enterprise.server.PersistenceUnitInfoImpl.lookupPMDataSource(PersistenceUnitInfoImpl.java:294)
软件开发 程序错误 异常 Exception Copyright © 2009-2012 MyException 版权所有