Many would think at this point I am talking about better AJAX support in the core.很多人会认为在这一点上我所说的更好的Ajax的支持,在核心。 While we do need better support for AJAX and I am not talking about DWR, I don’t think that’s what ails Java in its quest for being .同时,我们确实需要更好地支持Ajax的,我不是在谈论dwr ,我不认为这是什么ails Java在追求福祉。 At the end we will look at two ways in which we can overcome this problem.在为此,我们将看看两种方式,使我们可以克服这个问题。

Java is taking a beating in better mass adoption against PHP simply because it is harder to setup in web hosting environment. Java是采取殴打,在群众更好地通过对PHP的简单,因为它是难以安装在Web托管环境。 PHP and even Ruby is available as an Apache module which is very trivial to setup and use. PHP和红宝石,甚至可作为Apache模块这是非常微不足道的安装和使用。 JSP / Servlets on the other hand is much harder to integrate with Apache. JSP中/ / Servlets在另一方面是更加难以整合与Apache 。

Why Apache is the the key to Web 2.0 adoption? 为什么阿帕奇是关键的Web 2.0通过?
Apache is the most popular web server, known for its stability and ease of use. Apache是最流行的Web伺服器,已知其稳定性和易用性。 It is cross platform.这是跨平台。 Most Web 2.0 companies and products rely on Apache as their web server and for right reasons.大多数Web 2.0的公司和产品依赖于他们的Apache Web Server和右的原因。

What are the problems of Java in Apache Integration? 有什么问题的Java在Apache整合?
Complexity in short.复杂性在短期内。 Tomcat is probably the most popular JSP, Servlet container for most organizations.雄猫可能是最流行的的JSP , Servlet的容器,大多数组织。 Tomcat is free (which aids its popularity) and developed under the Apache organization.雄猫是免费的(即艾滋病的受欢迎程度)和发展下的Apache组织。 I would have expected both these products to be tightly integrated.我想,预计这两项产品被紧密集成。 In reality it is a nightmare from hell to even begin.在现实中这是一个来自地狱的梦魇,甚至开始。 I wouldn’t say there aren’t any documents.我不会说是没有任何文件。 There are few少数的 confusing混乱 ones which leads to more questions than answers.那些导致更多的问题多于答案。 What we lack is a clear simple guideline to integrate the two.我们缺乏的是一个明确的指引,简单的整合2 。

Solutions 解决方案
Previouly I had described a much simpler way to previouly我所描述的更简单的方式,去 integrate Tomcat 5.5 with Apache 2.x整合的Tomcat 5.5与Apache 2.x的 , in just 5 steps. ,在短短的5个步骤。

However we need to move further.不过,我们需要提出进一步。 We need to make Java Servlet container as easily integratable as php or ruby .我们需要使Java Servlet的容器很容易集成作为PHP中,或者红宝石。 Running a separate Tomcat instance may not be an acceptable solution to many web hosting providers.运行一个单独的Tomcat ,例如可能不是一个可以接受的解决办法许多Web托管服务提供商。 We need to be able to run Tomcat within Apache itself, use its threads.我们需要能够运行的Tomcat与Apache的本身,利用其线程。 In the distant past there was another Apache project JServ which did that.在遥远的过去还有一个Apache项目jserv ,其中这样做。 Later it was discontinued in favor of Tomcat.后来它被停止在赞成的Tomcat 。 Tomcat is powerful but most small developers do not need its full gamut of capabilities.雄猫是强大的,但大部分小型地产商并不需要充分的所有能力。 Most of them would be happy with a smaller subset which is available everywhere, even on one dollar hosting .他们大多会很乐意与一个较小的子集是无处不在,甚至在1美元兑主办

And finally Sun and java community needs to approach web hosting providers and make the language ubiquitous in every hosting platform, big or small.最后, Sun和Java社区需要的做法,网站托管服务提供商,使语文无处不在每一个托管的平台,或大或小的。 Apachefriends has done an admirable job with XAMPP for LAMP community and has made Tomcat 5.5 available with its simplified LAMP installation. apachefriends已做了令人钦佩的工作与xampp灯社区,并已取得的Tomcat 5.5提供其简化灯安装。 Now if only we could package Java with all Linux and BSD installations by default…现在,只要我们能包的Java与所有Linux和BSD安装默认情况下…