intelliJ 9 找不到我在 web.xml 中指定的类
我正在尝试让 logdigger 在使用 google 的 java 应用程序中工作应用程序引擎。我尝试将我的jar文件放在src/目录、lib/目录中,无论我做什么,它都找不到该类。它找到的唯一东西是 com.google.appengine 的东西。我尝试过扰乱我的依赖项,但它不起作用。以前有人这样做过并让它发挥作用吗?我不确定如何通过 intelliJ 修改类路径(但是在项目设置中,我将 jar 作为模块部分下的依赖项链接起来)。
I am trying to get logdigger to work in my java app that uses google app engine. I have tried putting my jar files in the src/ directory, lib/ directory, and no matter what I do, it can't find the class. The only thing that it finds is the com.google.appengine stuff. I have tried messing with my dependencies and it's not working. Has anyone done this before and gotten it to work? I am not sure how to modify the classpath through intelliJ (however in the project settings I have the jars linked as a dependency under the modules section).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能需要查看项目的工件。 IntelliJ 将 WAR 的运行时组装分离到工件部分。查看您的 WAR 文件是否已正确组装。我猜你没有将 /lib 目录的内容放入 WAR 的 WEB-INF/lib 中。编译的输出应该进入 WEB-INF/classes。所有其他输出都属于部署的根目录。
You probably need to look at the artifacts for your project. IntelliJ separates runtime assembly of WARs into the artifacts section. Look and see that your WAR file is assembled properly. I'm guessing that you don't put the contents of the /lib directory into the WEB-INF/lib of your WAR. The compiled output ought to go into WEB-INF/classes. All other output belongs in the root of the deployment.