【问题标题】:Run web service eclipse - apache tomcat 8运行 web 服务 eclipse - apache tomcat 8
【发布时间】:2015-12-16 15:21:04
【问题描述】:

我正在尝试在 Eclipse 中运行我的动态项目 ...

 GRAVE: Excepción enviando evento inicializado de contexto a instancia de escuchador de clase com.bankVision.webBanking.webServices.WebAppContextListener
    java.lang.NoClassDefFoundError: com/bankVision/webBanking/util/NamingService
        at com.bankVision.webBanking.webServices.WebAppContextListener.contextInitialized(WebAppContextListener.java:32)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4812)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5255)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.bankVision.webBanking.util.NamingService
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1333)
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1167)
    ... 10 more

我在项目中导入了其他项目供使用,并且类有导入,也正确编译

【问题讨论】:

    标签: java eclipse apache web-services tomcat


    【解决方案1】:

    java.lang.ClassNotFoundException: com.bankVision.webBanking.util.NamingService表示tomcat不同意你;请记住,在 Eclipse 中导入类是不够的,它们需要在将要构建的 WAR 中导出...

    【讨论】:

    • 我做到了......我也尝试像 .jar 一样导出项目,但它不起作用
    猜你喜欢
    • 2015-10-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-11-07
    • 2014-07-31
    • 1970-01-01
    • 2020-01-11
    • 2016-01-03
    相关资源
    最近更新 更多