Basic Setup for JSF with Apache - apache

I'm currently working on a JSF project at work. But, I get everything preconfigured, all I have to do is hack my code.
I've been doing this for a few weeks now and I tasted blood using JSF. So to intensify my knowledge I want to build myself a setup which I can use at home to test, work and educate myself.
So what do I need, and what do I need to configure so everything works. Preferably I'd like to use Apache and Tomcat, but that's about as far as my knowledge goes. I do know, that I should have/need a framework like Spring, but what exactly is that for?
I'd appreciate the help
Thx!

Related

Comparison figure between Tomcat and TomEE,and other apache products

Greetings i searched a lot and read even more , it seem i cant get it right for some reason , because i finally found a comparison according to figure
figure of comparision but i cant understand why there is green check on tomee beside lets say JSF and not on Tomcat even i actually can run JSF , struts , other things on it.
So why there is no green check on Tomcat column besides JSF.
See the figure please .
It is true that Tomcat can run everything, that tomee can run. Including JSF!
The difference is that you have to add those libraries to Tomcat yourself before it will do it, or include them with your application, and hope they work well together. Tomee has everything included by default, tested and certified JavaEE compliant, so you don't have to, and you can be sure that everything will work as the standard dictates.

Is there a web application out on the web somewhere that can test apache conf files? Something like JSFiddle for Apache?

Many of us use jsfiddle.com to share DHTML situations with other people. You can include plugins like JQuery while testing. it's very convenient, especially when posting to stackoverflow.com.
I am interested in something like that for Apache httpd. Does it exist?
Here is a diagram of what I'm thinking of. You can imagine all the things that you could do with this.
This does not exist anywhere. I am working on this project starting two weeks ago.

Integration of Awstats into Ruby on Rails

I'm currently working on a RoR project, and stumbled upon a problem.
What I have:
A RoR 3.1 project running on Nginx on a debian server.
What I want:
I want to be able to see the web statistics of my website. Statistics like the amount of hits, the source and perfectly ordered per some predefined time interval. Preferably with a few cool graphs, charts tables, whatever.
What I did:
I looked on the internet for some RoR extensions which supported this, but didn't got very excited with the results. Therefore I looked at tools like 'Webalizer' and 'Awstats'. Finally decided to go with Awstats.
What seems to be the problem:
Now I can access the main page of Awstats, but once I want to look at other months, it sends a request to awstats.pl. This request is (I think) send from Nginx to RoR first. Then RoR looks in its routes.rb for the correct route. Then RoR can't find the route, and redirects me to the 404 error.
I would like to know if there is somebody out there who has some experience in these kind of things. Maybe knows how to configure Awstats correctly for RoR, or either knows another good statistics tool for RoR.
Any help will be greatly appreciated.
-Ron

How to use generic libraries from a Web framework?

OK, I had a look at the memcached module for Nginx but this is clearly not for the faintheart.
Does anyone know about a way to load a library in memory and then use its functions - from a Web server like Nginx, Lighhtpd or Apache?
Example of such libraries abound like JSON parsers, Database client libraries, etc.
Hard to find anything about doing it but those guys have made it pretty easy:
http://dearetc.com/
It takes only one line of code to import a library and all its functions.
Hope it will help others...

Writing a simple web-based IDE - ideas / concepts?

This may be a too broad question but how would you develop a simple web-based IDE/editor? For a lecture I was thinking of a simple editor where you could enter some sort of code, press compile and then display the results, error messages etc. in some way.
Does anyone knows some examples (with source code maybe), or any suggestions on how to do this conceptually?
Or you could try http://codepad.org/
You might also be interested in taking a look at the very new Eclipse Orion project, in particular the architecture overview: http://wiki.eclipse.org/Orion/Architecture
Koding provides a framework for you to develop html5 applications with access to a real Ubuntu VM with Root. The idea for this post, being that you can develop an IDE that works with Client and Server languages, without having to deal with security of giving people access to machines that you are hosting. Security is hard with machines and avoiding exploits