简体   繁体   English

使用Apache Tomcat 8.x从Linux服务器使用Java Web App打开Outlook

[英]Opening Outlook with a Java Web App from a Linux Server with Apache Tomcat 8.x

I'm trying to make a web app on an apache tomcat 8.0.22 server that will allow the user to send out pre-defined boilerplate emails to groups. 我正在尝试在apache tomcat 8.0.22服务器上制作一个Web应用程序,该服务器将允许用户向组发送预定义的样板电子邮件。 It works perfectly on my local machine, but now that I've deployed it on the apache tomcat on our linux server it fails to work saying that no X11 DISPLAY variable has been set. 它可以在我的本地计算机上完美运行,但是现在我已经将其部署在我们的Linux服务器上的apache tomcat中,它无法工作,表明没有设置X11 DISPLAY变量。 I was wondering how I could go about fixing this. 我想知道如何解决这个问题。 I haven't been able to find any information regarding using an app on a linux server to open Outlook on the user's computer. 我尚未找到有关在Linux服务器上使用应用程序在用户计算机上打开Outlook的任何信息。

I can't imagine how and where you automate Outlook, but Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit unstable behavior and/or deadlock when Office is run in this environment. 我无法想象如何以及在何处实现Outlook自动化,但是Microsoft目前不建议并且不支持从任何无人参与的非交互式客户端应用程序或组件(包括ASP,ASP.NET,DCOM,和NT服务),因为在这种环境下运行Office时,Office可能表现出不稳定的行为和/或死锁。 You can read more about that in the Considerations for server-side Automation of Office article. 您可以在“ 服务器端Office自动化注意事项”文章中阅读有关此内容的更多信息。

If you deal with an Exchange server profile consider using the EWS (Exchange Web Services). 如果要处理Exchange服务器配置文件,请考虑使用EWS(Exchange Web服务)。 See EWS Managed API, EWS, and web services in Exchange for more information. 有关更多信息请参见Exchange中的EWS托管API,EWS和Web服务

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM