[CentOS] Tomcat query from complete newbie

2013-03-02 Thread Timothy Murphy
I'm a complete tomcat beginner -
(I installed it on my CentOS-6.3 server this morning.)
According to the web-interface on port 8080
tomcat is running fine.

Basically, I want to allow a Java program I have written
(which works well) to be run over the internet.
This is to test students understanding of Turing machines.
The student has to enter a short "program"
(consisting of 20-80 "quadruples").
My program will then test if the program does
what it is meant to do.

So the student enters his program (about 1k),
eg by pasting from a file - the program should then run,
and the student should see what it outputs.

I'm looking for advice on the best way to set this up.
As I understand it, tomcat can either be run "standalone"
or "behind apache".
I am running httpd on the server, so either method should be available.
It seems that the standalone option is simpler,
so I would probably prefer that.

Any and all suggestions gratefully received.


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Tomcat query from complete newbie

2013-03-03 Thread Les Mikesell
On Sat, Mar 2, 2013 at 9:45 AM, Timothy Murphy  wrote:
> I'm a complete tomcat beginner -
> (I installed it on my CentOS-6.3 server this morning.)
> According to the web-interface on port 8080
> tomcat is running fine.
>
> Basically, I want to allow a Java program I have written
> (which works well) to be run over the internet.
> This is to test students understanding of Turing machines.
> The student has to enter a short "program"
> (consisting of 20-80 "quadruples").
> My program will then test if the program does
> what it is meant to do.
>
> So the student enters his program (about 1k),
> eg by pasting from a file - the program should then run,
> and the student should see what it outputs.
>
> I'm looking for advice on the best way to set this up.
> As I understand it, tomcat can either be run "standalone"
> or "behind apache".
> I am running httpd on the server, so either method should be available.
> It seems that the standalone option is simpler,
> so I would probably prefer that.

On the tomcat side there really isn't any difference.  The reason you
would run behind apache would be to permit running all http
connections over port 80, while letting apache handle some URL's
internally and proxying other paths to other programs.If port 8080
is open and you don't need to restrict access to other tomcat apps you
might as well go direct.

-- 
   Les Mikesell
 lesmikes...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Tomcat query from complete newbie

2013-03-03 Thread John R Pierce
On 3/2/2013 7:45 AM, Timothy Murphy wrote:
> As I understand it, tomcat can either be run "standalone"
> or "behind apache".
> I am running httpd on the server, so either method should be available.
> It seems that the standalone option is simpler,
> so I would probably prefer that.

the main reason to run 'behind apache' is so static content can be 
delivered by apache which is more efficient at that, and only dynamic 
content is pushed through Tomcat.

If you're just providing 'webapp' APIs, there's no reason to not run it 
directly.



-- 
john r pierce  37N 122W
somewhere on the middle of the left coast

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Tomcat query from complete newbie

2013-03-04 Thread Timothy Murphy
Les Mikesell wrote:

>> As I understand it, tomcat can either be run "standalone"
>> or "behind apache".
>> I am running httpd on the server, so either method should be available.
>> It seems that the standalone option is simpler,
>> so I would probably prefer that.

> On the tomcat side there really isn't any difference.  The reason you
> would run behind apache would be to permit running all http
> connections over port 80, while letting apache handle some URL's
> internally and proxying other paths to other programs.If port 8080
> is open and you don't need to restrict access to other tomcat apps you
> might as well go direct.

Thanks very much for the responses.

I was rather frustrated when I wrote
as I had visited several - probably a dozen or more -
tutorial sites after googling for "tomcat jsp",
and I was astonished at the quantity of useless
or just incorrect advice I received -
not saying where files should be located,
what port to use, etc.
Fortunately after many misadventures I found

which explained everything clearly.


-- 
Timothy Murphy  
e-mail: gayleard /at/ eircom.net
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College Dublin


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos