gpt4 book ai didi

java - 运行 web 服务 eclipse - apache tomcat 8

转载 作者:行者123 更新时间:2023-11-28 23:28:09 25 4
gpt4 key购买 nike

我正在尝试在 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.lang.ClassNotFoundException: com.bankVision.webBanking.util.NamingService 表示tomcat不同意你;请记住,在 Eclipse 中导入类是不够的,它们需要在将要构建的 WAR 中导出...

关于java - 运行 web 服务 eclipse - apache tomcat 8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34315736/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com