Is there currently any easy way to set up a YAWS web server in front of Apache Tomcat Servlet container, similar to popular Apache httpd + Tomcat set up?
I do not believe there is an AJP connector for YAWS, but you should be able to front Tomcat with YAWS via HTTP. YAWS is relatively easy to setup as a reverse proxy. See the man page here for details (see revproxy):
http://yaws.hyber.org/yman.yaws?page=yaws.conf
Note: This is not yet considered production quality so you will want to do plenty of testing to ensure this satisfies your production requirements.
I do not know what your use case is, but you may find Nginx is a worthwhile alternative to Apache as a load-balanced, HTTP reverse proxy in front of Tomcat. There are a number of good tutorials for this on the web, or checkout the recent Linux Journal article (requires a subscription):
http://www.linuxjournal.com/article/10108
Related
I have a vps from which I would like to serve a wordpress site, and a Tapestry5 webapp.
I usually use jetty for hosting my webapps, and apache for wordpress, but I am struggling to find a rough guide on how to configure both of these to play nicely together on the same host.
My aim is to have:
blog.foo.com -> The apache server hosting wordpress
foo.com -> The jetty webapp.
I want to avoid having port numbers showing in the address bar, so ideally I am thinking perhaps jetty or apache can check the URL, spot which one should respond, and forward the request appropriately. Since i'm new to this area, I'm struggling to find a guide (or rather.. know which guides to even look for) to achieve this.
My questions are:
Is this possible?
Roughly how does one go about setting this up - is there a specific part of either of the documentations which will help me? Which one of these should be listening on port 80 (assuming they can't both be on that port)?
I am using Tomcat 7.0.59 and currently testing websocket on it. It works fine by itself, but in my production environment, i need to take into account the fact there is an Apache server as the front end, and Tomcat is serving as the application server through the mod_jk connector.
Since it seems websocket does NOT work with mod_jk, and i can not change any part on the Apache side, the only solution left for me is to use a different port (or connector).
First solution: Add Tyrus server standalone jars in Tomcat (ugly for me -- not tested, should work, although i am wondering about potential conflict with Tomcat).
Second solution: Tell Tomcat websocket to 'bind' on another port (connector).
How can i setup the second solution?
Which paramaters can be passed to Tomcat's websocket by web.ml or server.xml ?
I have been searching the web and Tomcat doc for this subsject, but haven't found topics around these questions.
Hi I am trying to use infinispan as a remote caching solution and when following through the guide i see the following:
> This server provides easy to use RESTful HTTP access to the Infinispan
> data grid, build on JAX_RS. This application is delivered (currently)
> as a WAR file, which you can deploy to a servlet container (as many
> instances as you need).
I could not find the WAR in the 5.3.0.Final.
But i see that Infispan Server installation can serve as a Remote Data Grid, so is the REST interface included in the server installation with the latest release?
If yes
What server is it running on ?
Do we need licence to run the Server on enterprise level?
What is the good way to deploy it in any other Application Server?
Any help will be highly appreciated?
But i see that Infinispan Server installation can serve as a Remote Data Grid, so is the REST interface included in the server installation with the latest release?
We will be talking about this: https://github.com/infinispan/infinispan-server Answer is, I'd say, yes. When you will use Infinispan Server, you will have possibility of accessing Infinispan cache via REST endpoint. (see readme + see endpoint subsystem in, for example, standalone.xml configuration file) After start of this standalone server you can connect to http://127.0.0.1:8080/ (REST server) and start using it according to the rules described in the documentation.
What server is it running on ?
The whole Infinispan server is very based on JBoss AS. Imagine "big" JBoss AS minus all unnecessary systems, subsystems and functionality. This "little boy" is Infinispan Server which, for example, doesn't support deploying applications etc.
Do we need licence to run the Server on enterprise level?
No. This is open source project. If you still looking for "officially" supported version, I'd suggest you to check Red Hat's JBoss Data Grid solution, which is productized and supported Infinispan + Infinispan Server. See http://www.redhat.com/products/jbossenterprisemiddleware/data-grid/
What is the good way to deploy it in any other Application Server?
There is no such a way. As I mentioner earlier, Infinispan Server itself is standalone server which already contains everything you need for caching and running cluster of virtually 128 (or even more) nodes.
Any help will be highly appreciated?
Maybe. I can't answer this question properly :(
I'm studying webservices in differents languages and now, I'm stuck on Netbeans one.
I easily create a "RESTful web service with Database" on localhost.
So, I use a MySQL (Connector/J driver) connection with GlassFish server.
My question is : what's the difference between an Apache server and a GlassFish one ?
Indeed, I aim to deploy this webservice on Apache server but I have no idea to do it.
Is someone have tips or ways to help me ?
Thanks a lot !
I'm assuming you followed this tutorial.
If you mean good old trusty Apache httpd, you won't be able to deploy the project you created to that server, what you create is a Java Enterprise application (and more specifically a WAR, a Webapplication ARchive), and you will need a server capable of deploying that type of applications - like of course Glassfish, but also Apache Tomcat, jetty or any of the Java Enterprise Edition servers
Still assuming that you're talking about Apache httpd, that one and Glassfish are entirely different beasts that serve different purposes, Glassfish is indeed capable of serving up content over http but it contains much more functionality than that, see the above Wikipedia link on Java EE for more links and pointers.
EDIT: you cannot run a servlet container like Tomcat or a Java EE server like GlassFish "inside" an Apache server like you would run php "inside" Apache with mod_php, but it's quite easy to run them alongside each other, where the Apache httpd server is the one that faces outward and basically forwards calls to the backend Java server. There are several techniques to achieve this result, the most popular is probably using mod_jk as explained here for Tomcat and here for Glassfish. Alternatively you could setup mod_proxy, a comparison of these two scenarios here on SO.
Anyways, it's not always necessary to front a Tomcat or Glassfish with an Apache but it may be needed e.g. if the website is serving hybrid content partially written in php or another apache-hosted scripting language or useful to avoid using the servlet container to serve up massive quantities of static content, often not their strongest point. For many applications it's perfectly OK to have a Tomcat or a Glassfish serve up all content avoiding the extra complications introduced by mod_proxy or mod_jk and the dual management of both servers.
open server.xml file in conf folder of apache tomcat. And check for line
Here you can see port =5051 means apache tomcat is configured in port 5051
Open we browser and type http://localhost:5051
Then click "Tomcat manager"
Enter your usename and password
In the next screen you can see section "WAR file to deploy". Select your web service war file and click deploy
Is there any equivalent of Apache ProxyPassReverse/ProxyPass for Jboss AS?
I'm not sure if JBoss supports anything like this, but it doesn't seem that it should be the role of an application server to also handle all of the numerous and complex features of a dedicated HTTP server like Apache HTTP Server.
Just like it is very common to front something like Apache Tomcat with Apache HTTP Server, couldn't you do the same with JBoss? If not, please further detail your need so that we can provide a better answer.