在Tomcat上部署时出现错误
当我在网络中运行它时,我已经编译了我的应用程序 从 Eclipse 模式一切都工作得很好,没有错误 全部。在我的项目中,我使用了多个库,例如 hibernate。全部 库已正确放置在类路径上以及 在 web-inf 的 lib 文件夹中。
但是当我将它部署到tomcat上时,我遇到了几个问题, 首先没有从数据库加载数据。我正在使用一个库 验证码位于 http://www.javacodegeeks.com/2010/06 /add-captcha-gwt-application.html。这也不能很好地工作,
我也在 Jetty 上尝试,遇到同样的问题
有人可以帮忙吗,我必须部署这个系统?
I have already compiled my application, when I am running it in web
mode from Eclipse everything is working perfectly fine, no error at
all. In my project, i'm using several libraries such as hibernate. All
libraries have been correctly been placed on the classpath as well as
in the lib folder in web-inf.
however when i'm deploying it on tomcat, i'm getting several problem,
first no data is being loaded from database. I was using a lib for
capcha at http://www.javacodegeeks.com/2010/06/add-captcha-gwt-application.html. That also is not working well
I am also trying it on Jetty with the same problem
Can someone please help, i've got to deploy this system??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
确保在 /war/WEB-INF/lib 文件夹中包含所有必需的库
Be sure to include all required libraries in your /war/WEB-INF/lib folder
是的,这是 lib 的问题,每当在服务器上部署应用程序时,请确保您的类路径上的 webinf/lib 文件夹中有所需的库。
Yes, it was a problem of lib, whenever deploying your app on the server, make sure that u have the required libs that r on your classpath in the folder webinf/lib.