Posts tagged tomcat
Push based synchronized Slideshow demo application implemented using CometD and jQuery running on Tomcat2
In a string of recent articles, I have discussed downloading, installing and running demos for a number of different tools, frameworks and libraries that support push-style (web) applications in one way or another. I have looked into â€˜classicâ€™ comet with Grizzly, Atmosphere and CometD as well as ADF Active Data Service and WebLogic Pub/Sub (Bayeux) Channels. I have also looked to WebSockets with jWebSocket, again Atmosphere and CometD and also with Kaazing. I am now working on a series of articles in which I use each of these frameworks and push infrastructures to implement the same simple push-style application – to see how that goes and to compare the various implementations. The functionality I will be implementing is simple:
- the selection of the image is communicated to the server (background WebSocket based or alternatively regular AJAX)Comet (Bayeux)/Long Poll style)
- the server informs all connected clients about the selected image through a pushed message (background WebSocket based or alternatively Comet (Bayeux)/Long Poll style); these clients all synchronize that slide More >
Preparing your environment for modern open source Java libraries and frameworks using Git and Maven, throwing in Tomcat as a bonus2
In my investigations into jWebWSockets, Kaazing, Atmosphere, CometD 2 and other frameworks I came to understand that in order to get these frameworks installed, integrate them into my custom applications or run the samples to go with these products, it would be convenient if not essential to have an environment with Maven and Git operational – and having Tomcat ready to run helps too.
So I decided to set up these tools – and write a short article with some hints for future reference for me and anyone who might be interested. First of all, let me tell you that it took far shorter and far less trouble than I anticipated. It really was easy to have my environment prepared for big and beautiful things. In subsequent posts I will explain how to load and run the Atmosphere demos as well as the CometD 2 samples – leveraging the Maven and Git (and Tomcat) environment discussed in this article.
Here are some practical tips for getting XAMPP running on your Windows 7 machine. I use this for getting my Hudson / Maven / Sonar demonstation environment. There are two issues that can save you a lot of time when you know how to solve them.
- Windows 7, 64 bit.
- Xampp 1.7.4 with Tomcat 7 included. (install via windows installer, nexted through install menu, no special things)
After running the installer there are two issues:
- Apache does not start
- Tomcat will only run command line and not as a Windows service.
The XAMPP control panel does nog give any feedback andÂ command line : apache_start.cmd gives the following error:
[sourcecode] Diese Eingabeforderung nicht waehrend des Running beenden Bitte erst bei einem gewollten Shutdown schliessen Please close this command only for Shutdown Apache 2 is starting … (OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted.Â : make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs
Apache konnte nicht gestartet werden Apache could not be started
It seems there is already a More >