javax.naming.NamingException:无法创建资源实例

时间:2015-12-04 23:52:31

标签: java eclipse postgresql servlets

我想在Eclipse中编译this example并使其在Tomcat 7.0.47 / 64上运行。编译似乎没有错。没有这样的选项可以在Redhat EAP以外的Web服务器上运行。我检查了作者的博客,有人在那里问了同样的问题,但从今年8月开始,它还没有得到答复。 Here是另一个例子,它能够在Tomcat上运行,但我得到了以下错误:

SEVERE: Servlet /jbpmwebexample threw load() exception
javax.naming.NamingException: Cannot create resource instance
    at org.apache.naming.factory.TransactionFactory.getObjectInstance(TransactionFactory.java:113)
    at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:321)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
    at org.apache.naming.SelectorContext.lookup(SelectorContext.java:152)
    at javax.naming.InitialContext.lookup(InitialContext.java:411)
    at com.sample.processserver.TaskProcessServlet.init(TaskProcessServlet.java:61)
    at javax.servlet.GenericServlet.init(GenericServlet.java:212)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1213)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
    at org.apache.catalina.core.StandardService.start(StandardService.java:525)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
    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:606)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

以下是我安装和编译这些示例的过程:

  1. 下载了jBPM 6.2.0-Final;
  2. 按照手册,正确启动演示;
  3. 打开WildFly控制台平台,我能够查看和配置数据源;
  4. ant start.demo,打开Eclipse Kepler并导入其中的每个示例,单独编译它们。
  5. 这是如何引起的?如何解决?

0 个答案:

没有答案