如何在Eclipse中正确配置Apache tomcat 9,因为我有必要的jar文件(mail.jar and activation.jar)

发布于 2025-01-27 17:44:59 字数 1076 浏览 5 评论 0 原文

由于我的Mac上以及Windows上的某些原因,我将我的Apache Tomcat服务器配置在Eclipse中的同一地点。我正在创建一个小型肥皂服务,但是当我启动服务器的警告时,我一直在收到此错误:无法找到所需的类(javax.activation.datahandler和javax.mail.mail.internet.mimemultipart)。附件支持被禁用。就编辑配置文件而言,我尝试了Internet上的许多旧解决方案,并确保在类路径中添加了这些罐子。不确定我是否需要专门将这些JAR文件放置在我的tomcat目录中的某个地方(我尝试过但不起作用),或将它们专门放在我的Eclipse Web-Inf/lib文件夹中(我尝试过但无效)


另一个问题是如何在服务器运行后如何访问Localhost,最初用于加载默认浏览器,但是现在它不是,并且不允许我键入https:// localhost:8443图片附加图片

堆栈: Java版本“ 1.8.0_333” Java(TM)SE运行时环境(构建1.8.0_333-B02) Java热点(TM)64位服务器VM(构建25.333-B02,混合模式) Apache Tomcat服务器9.0.62 Windows 10/Macos Monterey 蚀

For some reason on my Mac along with Windows I'm stuck at the same place as far as configuring my Apache Tomcat server within eclipse. I'm creating a small SOAP service but I keep receiving this error when I start the server 'WARNING: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.' I've tried many of the old solutions on the internet as far as editing config files and making sure those jars are added in the classpath. Not sure if I need to specifically place those jar files somewhere within my tomcat directory (which I tried but didn't work) or place them specifically in my eclipse web-inf/lib folder (which I tried but didnt work)

jar files saved in web-inf/lib of my eclipse workspace

class path picture showing jars uploaded

Not really sure what else do, could those who provide assist give other solutions other than the common ones found on the internet.


And another side question is how to i access localhost after the server is running, it initially used to load on the default browser but now it doesn't and doesn't let me type in https://localhost:8443 picture attached

localhost not loading resource

Stack:
java version "1.8.0_333"
Java(TM) SE Runtime Environment (build 1.8.0_333-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.333-b02, mixed mode)
Apache Tomcat Server 9.0.62
Windows 10/MacOs Monterey
Eclipse

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文