eclipse 如何在 IIS 中托管 Java Web 服务
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11752651/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to host a Java web service in IIS
提问by Android app_devlpr
I have created one web service in java using eclipse.Can any one tell me how to run that web service through IIS.
我已经使用 eclipse 在 java 中创建了一个 Web 服务。谁能告诉我如何通过 IIS 运行该 Web 服务。
回答by David Oliván Ubieto
You can't. MS IIS can only host web applications developed in Microsoft technologies, like ASP, .NET and also in PHP. Can't host Java applications.
你不能。MS IIS 只能托管使用 Microsoft 技术(如 ASP、.NET 和 PHP)开发的 Web 应用程序。无法托管 Java 应用程序。
In order to host Web Services developed in Java (I suppose you used Apache Axis), you need at least a servlet container (aka Java web server) or a full Java EE container: Free and Open Source like Apache Tomcat, Red Hat JBoss, Apache Jeronimo, Oracle Glassfish; commercial like Oracle WebLogic, IBM WebSphere...
为了托管用 Java 开发的 Web 服务(我假设您使用了 Apache Axis),您至少需要一个 servlet 容器(又名 Java Web 服务器)或一个完整的 Java EE 容器:免费和开源,如 Apache Tomcat、Red Hat JBoss、 Apache Jeronimo、Oracle Glassfish;像 Oracle WebLogic、IBM WebSphere 等商业产品...
You could need also additional libraries used like Apache Axis.
您可能还需要使用其他库,如 Apache Axis。
Depending on your Eclipse configuration, you can deploy it in an embedded Tomcat server within Eclipse in order to test it.
根据您的 Eclipse 配置,您可以将其部署在 Eclipse 内的嵌入式 Tomcat 服务器中以对其进行测试。
回答by adatapost
No! You can't. Java Web service application shouldbe hosted in Java EE container, oryou can run Web Services in Java SE 6.0.
不!你不能。Java Web 服务应用程序应该托管在Java EE 容器中,或者您可以在 Java SE 6.0 中运行Web 服务。
回答by Rosdi Kasim
Well if you insist, I suppose you can use ISAPI plugin. Refer here for more details:
好吧,如果您坚持,我想您可以使用 ISAPI 插件。有关更多详细信息,请参阅此处:
http://tomcat.apache.org/connectors-doc-archive/jk2/jk/iishowto.html
http://tomcat.apache.org/connectors-doc-archive/jk2/jk/iishowto.html