Apache HTTPd + 2 Tomcats with BlazeDS

The web architecture that we have is quite simple, it is a single Apache HTTPd server that is communicating with 2 Tomcat servers using mod_jk. The configuration is made so one Tomcat is in a waiting state in case the other Tomcat server crashes (or bounce).
How can I configure BlazeDS to support this configuration? Is sharing the HTTPSession between the two Tomcats enough for BlazeDS?
I would like the simplest solution possible, I know about BlazeDS clustering possibilities with JGroups but it seems not adapted to multi-environments (DEV/QA/PROD) sites because we have to configure stuff inside the web app.
In short, do BlazeDS only need HTTPSession sharing between Tomcats or is there some other requirements?

As far as my understanding goes there should be no reason to use JGroups unless you are using messaging.
If you are storing session data on the server you will need to using Tomcat clustering other wise you shouldn't even need that.
We are using a similar setup with HTTPd and multiple JBoss servers for high availability/scalability. We are not using messaging so we didn't configure JGroups. We don't have JBoss clustering enabled because we don't have any data to replicate between the JBoss nodes.
I have run several load tests using JMeter and everything runs happily when JBoss nodes are added or removed under load.
Something to note if you are using recent builds of BlazeDS and you want to run 2 or more Tomcat servers concurrently you will need to enable Sticky Sessions with mod_jk and Tomcat other wise recent builds of BlazeDS may start throwing exceptions. This change was introduced to prevent subsequent client requests from needlessly creating new sessions. As it turns out this is a bit of an issue when doing loadbalancing unless Sticky Sessions are used.
Hope some of that information helps,
Lance

Similar Messages

  • Tomcat with Apache

    Hi,
    I have followed the tutorial on this website to configure tomcat to connect with Apache.
    I am on a CENTOS 5 system.
    Apache was already installed and serving three web sites without problems.
    I wanted to add the ability to work with .jsp files and others.
    I loaded Tomcat with incident and it is running.
    I also loaded mod_jk to connect the two as directed by the tutorial.
    However, I cannot access a .jsp file unless I add the port number 8080 in the location bar along with the url.
    Can someone point me to a good guide for getting this up and running? Or maybe provide some insight in what I might be doing wrong.
    Thank You,
    Mike

    On this website? Which tutorial are you talking about? Apache is in no way related to Sun.
    At least you should read the documentation which come along with the Tomcat Connector: [http://tomcat.apache.org/connectors-doc/].

  • Problems with libclntsh.so.10.1 and PHP/Apache HTTPD

    Hello,
    I've been wrestling with the install of Instant Client/OCI8 with PHP 5.0.4 and Apache HTTPD 2.0.52 on RHEL4 ES. Most recently I've followed the instructions detailed here: http://www.oracle.com/technology/pub/notes/technote_php_instant.html
    Apache is installed from the RHN rpm.
    PHP was successfully compiled with the following parameters:
    ./configure with-mysql with-ssl with-ldap with-apxs2 with-dom with-oci8-instant-client=/usr/local/oracle/instantclient_10_2 --enable-sigchild
    I've also attempted to get OCI8 working using the full Administration Client from CD. In either case, I can compile/install PHP just fine. I've indexed the Instant Client directory with ldconfig, and the user that runs HTTPD has read/execute permissions on libclntsh.so.10.1 and on all the directories above it. Nonetheless, when I start Apache, I invariably run into the following error:
    # /etc/init.d/httpd start
    Starting httpd: Syntax error on line 190 of /etc/httpd/conf/httpd.conf:
    Cannot load /usr/lib/httpd/modules/libphp5.so into server: libclntsh.so.10.1: failed to map segment from shared object: Permission denied [FAILED]
    Thanks in advance for any insight,
    Patrick
    Message was edited by:
    dog.breath

    I have a similar problem:
    Syntax error on line 202 of /etc/httpd/conf/httpd.conf:
    Cannot load /usr/lib/httpd/modules/libphp5.so into server: libclntsh.so.10.1: cannot open shared object file: No such file or directory
    Using the following succesfull configuraion
    PHP Version => 5.0.4
    System => Linux 2.6.9-1.667smp #1 SMP Tue Nov 2 14:59:52 EST 2004 i686
    Build Date => Aug 26 2005 11:23:17
    Configure Command => './configure' '--enable-force-cgi-redirect' '--enable-ftp' '--with-dbase' '--with-regex=system' '--with-gd' '--with-bz2' '--with-config-file-path=/etc/httpd/conf/httpd.conf' '--with-zlib' '--with-oci8=/home/oracle/product/10.1.0/Db_1' '--enable-sigchild' '--with-dom-xslt=/usr/lib/libxslt.so.1.1.11' '--with-png' '--with-apxs2'
    Server API => Command Line Interface
    Virtual Directory Support => disabled
    Configuration File (php.ini) Path => /etc/httpd/conf/httpd.conf
    Everything is visible to all users the LD Library path is set even in the httpd.conf file.
    Clear PHP works from within the command line, now I want to get it working via Apache2.
    If anybody has a clue I would be most obliged.
    Also disabling SELinux did not do the trick.

  • Why integrate Tomcat with Apache?

    What's the reason to integrate Tomcat with Apache? What are the benefits?

    Apache is way faster and more scaleable than Tomcat.
    So if your website provides also static content (pages, pictures) etc this would be the reason.
    Additionally if you have other technology to include, that Tomcat cannot handle (PHP for example) you would do this with Apache, too.

  • Is it possible to front-end a SJSAS8.2 instance with Apache httpd

    I know glassfish can be run with Apache httpd by mod_jk.
    But how to make SJSAS8.2 run with Apache like glassfish.

    Yes it is possible.
    Locate the LLB:
    LV folder\vi.lib\daq\dqchnutl.llb
    There you find useful vis to handle virtual channel.
    The Get DAQ ChannelNames.vi return also the channel units

  • Preinstalled apache, apache2 and tomcat

    Hello,
    I'm setting up a Sun Fire V490 running solaris 10 for use as a web server. I need to have Apache httpd version 2 and tomcat version 4.x to run.
    So I found that the machine comes with apache httpd 2 preinstalled and also apache httpd 1 with fully integrated tomcat engine.
    But as stated I need to have apache httpd 2 with tomcat running!
    Apart from configuring the system to run httpd version 2 instead of version 1 by use of svcadm, I'm wondering how to get a solid solution to also have tomcat running. Ok I could simply install a tomcat version from apache.org, but I would like to ensure that this is the right solution for e.g. future upgrades.
    So if anybody has got some more knowledge but this issue, I would be happy about letting me know!
    Thanks, Raimund

    Hey, I came into the same question while configuring tomact on Sun server.
    So, what did you finally do...........?
    any help will be great....
    Thanks,

  • Error: "Cannot access the web server" with BlazeDS Turnkey

    Help! I'm new to Flex and BlazeDS and Eclipse.  I was trying to setup a Flex Project using a BlazeDS/Tomcat server running from Eclipse on Windows XP per the example in flexbandit.com/archives/55#comment-269 and in (www.infoq.com/articles/blazeds-intro).   I am NOT using the Eclipse Flex plug-in.  I'm using Flex Builder for the Flex code.
    Here's what I've done:
    I installed BlazeDS and tested http://localhost:8400 - That worked.
    I setup Tomcat in Eclipse.  -  That seemed to work.
    I created a Dynamic Web Project in Eclipse - That seemed to work.
    I created the bare-bones BlazeDS Configuration under the Eclipse project and then created a basic HelloWorld java class.
    I added the destination in the “remoting-config.xml” file found in the c:/projects/workspace/ReportGenTool/WebContent/WEB-INF/flex” directory:
    <destination id="HelloWorld">   <properties>  <source>HelloWorld</source> </properties> </destination>
    When I started the application server by clicking on the server's green play button in Eclipse and then tried to open localhost:8400/ReportGenTool, I got the 404 error : The requested source (/ReportGenTool/) is not available which according to the instructions is fine.
    Next I created a Flex Project, but when I try to validate the new Flex project configuration, it gives me an error "Cannot access the web server. The server may not be running, or the web root folder or root URL may be invalid."
    When I validated the server was running after setting up the BlazeDs Turnkey, I saw the BlazeDS page.
    Now when I bring up http://localhost:8400 I get:
          Directory Listing for /
          Apache Tomcat/6.0.14
    My eclipse project is named ReportGenTool and I've overwritten the WebContent directory with the META-INF and WEB-INF directories from the BlazeDS installation (C:\blazeds\tomcat\webapps\blazeds).  According to Eclipse the server is running.
    My Flex project is named ReportGenTool and is located in another directory away from the Eclipse project directory.
         My root folder is: C:\Projects\workspace\ReportGenTool\WebContent
         Root URL: is http://localhost:8400/ReportGenTool/
         Context root is: /ReportGenTool/
    Any idea what might be wrong? What didn't I configure that needs to be configured?
    Thanks in advance.

    This is not working because your router has a direct to your web server that is not through the outside interface which is needed for nat to occur, for this to work you need to setup a loopback interface as nat outside and policy route traffic to there for your server traffic
    Bu if your server is internal why do you need nat at all? Can you not use bind with views that might be simpler
    M
    Sent from Cisco Technical Support iPad App

  • Apache httpd.conf and Weblogic server integration.

    Dear friends,
    I am seeing a strange problem in my Apache and weblogic integration work.
    In the Apache httpd.conf file, under mod_weblogic.c module, if i dont turn DebugConfigInfo ON then my system is not working properly. always hitting with http 404 error. can you please explain why this is required and if required is it mandatory to turn it ON ?
    when i read in weblogic docs, its mentioned as to turn it OFF for security reasons. But if i make it as OFF then my website is not working properly.
    Here is the conents of mod_weblogic.c module in my httpd.conf file.
    <IfModule mod_weblogic.c>
    WebLogicHost rlw1csts08.bpweb.bp.com
    WebLogicPort 7001
    DebugConfigInfo On
    #EnforceBasicConstraints OFF
    PathPrepend /csmain-web
    ErrorPage /err/serverErrorWL.xml
    #WLLogFile "| /export/home/wwwst08/apache/bin/rotatelogs /export/home/wwwst08/apache/logs/WL_apache_error.log.%Y%m%d%H%M%S 86400"
    WLLogFile "/export/home/wwwst08/apache/logs/WL_apache_error.log"
    </IfModule>
    Please let me know your inputs. Its very urgent.
    Thanks
    subba.

    I donot have the complete httpd.conf with me right now but you have to follow the following steps:
    1) Compile Apache with ssl module included
    2) Instead of Port 80 change the port to 443 at global level or at virtual directory level
    3) If u want to redirect the traffic on port 80 to port 443 then also include mod_rewrite module while compiliing apache and write a rule to redirect the traffic from port 80 to 443

  • Glibc-2.9.2-i686 breaks apache and causes problems with samba?

    I could not start the apache daemon.  The output from /usr/sbin/apachectl start is
    httpd: ../sysdeps/posix/getaddrinfo.c:1465: rfc3484_sort: Assertion `src->results[i].native == -1 || src->results[i].native == a2_native' failed.
    /usr/sbin/apachectl: line 78: 2933 Aborted $HTTPD -k $ARGV
    The getaddrinfo.c, I believe, is in the glibc package.
    Also, I get error logs in my /var/log/samba directory named like  "__ffff" followed by the IP address of a remote client.  In one of them it says that samba is dumping core and contains
    [2008/12/24 18:47:10, 0] lib/util.c:log_stack_trace(1767)
    BACKTRACE: 23 stack frames:
    #0 /usr/sbin/smbd(log_stack_trace+0x2d) [0xb7cda584]
    #1 /usr/sbin/smbd(smb_panic+0x80) [0xb7cda6e1]
    #2 /usr/sbin/smbd [0xb7cc5033]
    #3 [0xb7a31400]
    #4 /lib/libc.so.6(abort+0x188) [0xb733b0c8]
    #5 /lib/libc.so.6(__assert_fail+0xee) [0xb73326ee]
    #6 /lib/libc.so.6 [0xb73c7a01]
    #7 /lib/libc.so.6 [0xb733b888]
    #8 /lib/libc.so.6(qsort_r+0x291) [0xb733bdd1]
    #9 /lib/libc.so.6(getaddrinfo+0x7cf) [0xb73c91ff]
    #10 /usr/sbin/smbd [0xb7cdca56]
    #11 /usr/sbin/smbd(get_mydnsfullname+0x181) [0xb7cdcc5d]
    #12 /usr/sbin/smbd(get_mydnsdomname+0x17) [0xb7cdada1]
    #13 /usr/sbin/smbd [0xb7b7af8c]
    #14 /usr/sbin/smbd(ntlmssp_update+0x297) [0xb7b792d6]
    #15 /usr/sbin/smbd(auth_ntlmssp_update+0x48) [0xb7d27cc1]
    #16 /usr/sbin/smbd [0xb7b04ecf]
    #17 /usr/sbin/smbd(reply_sesssetup_and_X+0x1c4) [0xb7b057cd]
    #18 /usr/sbin/smbd [0xb7b39f16]
    #19 /usr/sbin/smbd(smbd_process+0x429) [0xb7b3ba61]
    #20 /usr/sbin/smbd(main+0xfa2) [0xb7f2bbc7]
    #21 /lib/libc.so.6(__libc_start_main+0xe5) [0xb73256c5]
    #22 /usr/sbin/smbd [0xb7abfa81]
    I downgraded glibc to 2.8-3 and I can now start apache.  No problems with samba yet either although I had to make pacman skip dependency checks because a number of packages depended on glibc >= 2.9.

    getaddrinfo.c - this is place where glibc 2.9 has a major change in IP resolving. see the bugreport we had and still have. search google and upstream (Fedora/RedHat) for reports.
    maybe a simple recompile of the affected packages can help. holding an outdated version is a bad solution. new packages compiled against the new version may use new functions and break with the old one.

  • Apache (httpd) restarts automatically

    After booting my mac my webserver is not running. starting apache with the command "sudo apachectl -k start" works as it should. the webserver has been started. but after the command "sudo apachectl -k stop" the following happens: (logfile)
    [Fri Aug 10 18:19:42 2012] [notice] caught SIGTERM, shutting down
    [Fri Aug 10 18:19:43 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
    [Fri Aug 10 18:19:44 2012] [notice] Digest: generating secret for digest authentication ...
    [Fri Aug 10 18:19:44 2012] [notice] Digest: done
    [Fri Aug 10 18:19:45 2012] [notice] Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/0.9.8r DAV/2 PHP/5.3.13 with Suhosin-Patch configured -- resuming normal operations
    the apache starts again, and I have access to my document root via http (127.0.0.1 or localhost and as well from other computers via my IP.
    why is the apache restarting automatically???? (and by the way: how can i fix the warning in line 2?)
    thx

    Hi,
    the event description for FMS that you gave mention about the Apache working as expected. A returned value of 0 shows the correct working of the apache httpd service.
    When the apache is stopped, as you are observing, how are the streaming services stopped? They will not be stopped as they are not on http. Anyways, one quick workaround (while we investigate why the apache is stopping intermittantly) is to have an external / separate installation of apache away from FMS and use that for all your web service purposes.
    How did you confirm about the stoppage ? The task manager or other process explorer shows it coming down ? Can you please check the fms logs if there is anything that is related to apache coming down, being logged?
    Thank you !

  • Mod_wl_20.so, apache-2.0.45 with MPM worker

    Hi,
    we currently are using apache-2.0.45 with MPM prefork on Solaris 9. We plan to
    use MPM worker in the future. apache uses mod_wl_20.so to proxy requests for the
    Backend (WLS7 SP2). On http://httpd.apache.org/docs-2.0/misc/perf-tuning.html#compiletime
    they say "prefork:...it can be used with non-thread-safe third-party modules,...".
    As I understand it, this means: If using MPM worker, every module have to be thread-safe.
    The Question is: is mod_wl_20.so thread-safe or not, so that we can use MPM worker?
    Thanks
    Andreas

    Yes, actually what happened is that I was using WL 6.1SP2, and the plugin
    did work for releases lower or equal than version 2.0.44, now the problem is
    fixed with the last available plugin.
    Thanks for your support
    Luis
    "Eric Gross" <[email protected]> wrote in message
    news:3ebacf38$[email protected]..
    That should not be correct.
    Are you sure you are using the same plugin? You would get this message if
    you used any plugin prior to 6.1 SP4 or 7.0 SP2.
    Otherwise you should not get this error message when using the plugin from
    either of the above releases.
    Regards,
    Eric
    "Luis Esteban" <[email protected]> wrote in message
    news:3eb8d994$[email protected]..
    Here, with apache 2.0.44 it works fine, and we have no problem, but whenwe upgrade
    apache from 2.0.44 to 2.0.45 we get the following error
    httpd: module "mod_weblogic.c" is not compatible with this version ofApache (found
    20020612, need 20020903).
    Please contact the vendor for the correct version.
    Could you tell please me where to find a plugin suitable for the newapache version,
    or in the other hand, could you tell me how to workaround this problem.
    Thanks.

  • How to create a webservice in Tomcat with the use of Axis

    I am very new to webservices. I am suppose to create a webservice in Tomcat with the use of Axis. I have downloaded all the required jars.
    Please help me how to start.
    Thanx in advance.
    [email protected]

    Check out the Axis user's guide at: http://ws.apache.org/axis/java/user-guide.html

  • Multi-processor support for apache/httpd?

    Hello all,
    I'm wondering there's a way to get apache/httpd to take advantage of all 8 cores of my Mac Pro? I have a process running that is maxing out at 100% CPU and I would love to see the other 7 processors being utilized. Is this possible? Any help would be much appreciated.

    Apache is usually configured to run multiple worker processes, so yes, it can use all of an eight-core.
    Launch Terminal.app and issue the following command, authenticating with an administrative password:
    $ sudo lsof -i -P | grep -i "httpd"
    That's a list of all the web server processes active.
    Now if your central web activities are all within that one process that is using all of that core, then you do have a problem. Figuring out how to split the processing from that process across more cores depends on exactly what that particular process is doing.

  • How to use remoteobject with blazeDS?

    Hello evebody!
    I have this problem when i build test project use remoteObject and blazeDS.
    It always occurs "send fail" erro.
    I guess that is MessageBrokerServlet.
    How can i fix that?
    This is project:
    http://www.mediafire.com/?cd1zehprmc6lupg
    Thanks!
    [email protected]

    Hi
    I encountered the same problem when I started learning RemoteObject with BlazeDS.
    You need to use the following endpoint url : http://<your_url_goes_here>/messagebroker/amf
    The explanation is as follows
    The <blazeds>\tomcat\webapps\blazeds\web-inf\flex\ folder contains the following .xml - configuration files.
    <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
    <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint" />
    </channel-definition>
    This is a channel definition under the services-config.xml file. This defines that an endpoint url of the above mentioned form should be referred to the AMFEndpoint class. It also provides other channels like secure / polling AMF.
    Hope this helps,
    balakrishnan v

  • Air working with BlazeDS?

    Hi,
    I have done Flex application with BlazeDS.
    Now I plan to develop a AIR application and using BlazeDS
    message "push" feature.the BlazeDS is working on Tomcat now.I do
    not have a idea how to working with it from AIR.
    Please give me a idea.
    Thanks
    Mark

    Hi,
    You will be doing exactly same you did in Flex based web
    application, when you are developing an AIR application which
    communicates with BlazeDS.
    Only change i could see is in the Flex based web application,
    the tokens in the services-config.xml like {server.root} and
    {server.port} are substituted either at run time based on the URL
    you use to access the application. Now in AIR application these
    might have to be modified to have the hard coded URL to the web
    server you are trying to access.
    Hope this helps.

Maybe you are looking for

  • IPhone not recognised in My Computer, but is in itunes

    About a week ago my iPhone just stopped being recognised in My Computer. Before this it was fine, it would recognise and I could move ohotos from my phone to an external hardrive. All of a sudden its not showing up there though? It is recognised in i

  • Safari crashing in Pogo and some videos & ads

    I am having a problem with Safari crashing. I have Googled and searched Mac forums for months now. There seem to be many people with crashing Safari problems but after trying all the troubleshooting suggestions I’ve read, have still not been able to

  • Idea for this code pls

    Hi, In the below code, I have certain doubts. 1.Do I need to go for inner join statements in fetching data for parameters?.. 2. How can I group by document type and print the total of net value...for this do i need to move the datas to another intern

  • Number of unread message is in negative when all message are read

    Hi, in my list of text message of my iphone, when I have all the message read, the number of unread message is in negative! Thank you for your solutions!!

  • Linksys Wre54G range expander

    Can I use a Linksys WRE54G range expander with a Linksys E 3000 router using WPA2/WPA shared ?