You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by elvberg <da...@elvberg.com> on 2008/02/20 16:52:59 UTC
Apache2 and tomcat5.5
I'm running FedoraCore8.x86_64 on a machine placed in a LAN with router
address 195.168.0.135. The Internet static IP address is 87.227.4.194.
So, by hitting http://87.227.4.194 you'll come to the Apache2 welcome
page because there is nothing in /var/www/html.
My question:
Is my tomcat5.5 to be regarded as a COMBINED web server and application
server?
If yes, what shall I do in order to see the tomcat instead of the the
Apache2 welcome page by hitting http://87.227.4.194?
/dan
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Apache2 and tomcat5.5
Posted by Len Popp <le...@gmail.com>.
So Tomcat is running on port 8084 but the Connector config you posted
earlier says it's on port 80... Something's wrong but I can't think
what. Sorry.
--
Len
On Feb 20, 2008 4:16 PM, elvberg <da...@elvberg.com> wrote:
> I see Tomcat's welcome page if I browse http://localhost:8084/ or
> http://192.168.0.135:8084
> /dan
> On Wed, 2008-02-20 at 16:12 -0500, Len Popp wrote:
> > Does Tomcat work locally on the server? i.e. on the server computer
> > itself, if you browse to http://localhost/ do you see Tomcat's welcome
> > page?
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Apache2 and tomcat5.5
Posted by elvberg <da...@elvberg.com>.
I see Tomcat's welcome page if I browse http://localhost:8084/ or
http://192.168.0.135:8084
/dan
On Wed, 2008-02-20 at 16:12 -0500, Len Popp wrote:
> Does Tomcat work locally on the server? i.e. on the server computer
> itself, if you browse to http://localhost/ do you see Tomcat's welcome
> page?
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Apache2 and tomcat5.5
Posted by Len Popp <le...@gmail.com>.
Does Tomcat work locally on the server? i.e. on the server computer
itself, if you browse to http://localhost/ do you see Tomcat's welcome
page?
--
Len
On Feb 20, 2008 3:57 PM, elvberg <da...@elvberg.com> wrote:
> I have changed in server.xml (as root) to
> "<Connector port="80" protocol="HTTP/1.1"
> connectionTimeout="20000"
> redirectPort="8443" />
> <!-- A "Connector" using the shared thread pool-->
> <!--
> <Connector executor="tomcatThreadPool"
> port="80" protocol="HTTP/1.1"
> connectionTimeout="20000"
> redirectPort="8443" />"
>
> I've stopped the httd service
>
> I've added to D-Link router Virtual Server List
> Name Private IP Protocol Schedule
> 87.227.4.194 192.168.0.135 TCP 80/80 always
> 87.227.4.194 192.168.0.135 TCP 8084/8084 always
>
> and the result of running http://87.227.4.194
> is
> "Unable to connect
> Firefox can't establish a connection to the server at 87.227.4.194.
> "
>
> On Wed, 2008-02-20 at 11:06 -0500, Len Popp wrote:
> > Yes, Tomcat is a regular web server as well as an application server.
> >
> > To use Tomcat as your web server,
> > 1. Don't run the Apache2 web server.
> >
> > 2. Configure Tomcat to listen on the correct HTTP port. In
> > conf/server.xml where it says
> > <Connector port="8080"
> > change it to
> > <Connector port="80"
> > (or whatever port Apache 2 was using - could be different depending on
> > how your gateway router is set up)
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Apache2 and tomcat5.5
Posted by elvberg <da...@elvberg.com>.
> 1. use some kind of redirection such as iptables and leave the tomcat
> mapping at 8080
How do I redirect? Shall I open the Apache2(httpd) service as well as
start the Tomcat server?
As it is now
-I see the httpd welcome page when I browse http://87.227.4.194 with
the
httpd service running and have this router setting enabled:
Name Private IP Protocol Schedule
87.227.4.194 192.168.0.135 TCP 80/80 always
or
-I see the tomcat welcome page when I browse http://87.227.4.194:8080
with the httpd service stopped and have this router setting enabled:
Name Private IP Protocol Schedule
87.227.4.194 192.168.0.135 TCP 8080/8080 always
My goal is for everybody to see the tomcat welcome page when browsing
http://87.227.4.194
87.227.4.194 is linked to a domain I own (elvberg.com). Try
www.elvberg.com:8080 and www.elvberg.com and you shall see...
I 'll keep the alternative
Name Private IP Protocol Schedule
87.227.4.194 192.168.0.135 TCP 8080/8080 always
for a while so you and others can try for yourselves (httpd is off and
tomcat is on)
/dan
On Wed, 2008-02-20 at 13:29 -0800, Alan Chaney wrote:
> If you are running on Linux you may have problems using a 'plain' tomcat
> installation pointing at port 80. This is a system port and reserved for
> privileged access. You must
>
> 1. use some kind of redirection such as iptables and leave the tomcat
> mapping at 8080
>
> OR
>
> 2 you must run tomcat as root THIS IS VERY BAD DON'T DO THIS
>
> OR
>
> 3. use something like jsvc and set the 'user' to tomcat after starting
> up as root. jsvc will start as root and bind to the port and then
> switch to the non-privileged tomcat user for normal operation.
>
>
> Regards
>
> Alan Chaney
>
>
>
> Hassan Schroeder wrote:
> > On Wed, Feb 20, 2008 at 12:57 PM, elvberg <da...@elvberg.com> wrote:
> >
> >> I've added to D-Link router Virtual Server List
> >> Name Private IP Protocol Schedule
> >> 87.227.4.194 192.168.0.135 TCP 80/80 always
> >> 87.227.4.194 192.168.0.135 TCP 8084/8084 always
> >
> > Why did you feel the need to change this, if you were able to connect
> > to the instance of httpd before?
> >
> > And what's the "8084" for?
> >
> > But as already suggested, make sure that Tomcat's actually running
> > and can be accessed locally; if not, check your startup logs.
> >
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
--
Dan Östberg
Berg Prästgården
840 40 SVENSTAVIK
Sweden
+46 730 48 36 39
Small Is Beautiful
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Apache2 and tomcat5.5
Posted by Alan Chaney <al...@compulsivecreative.com>.
If you are running on Linux you may have problems using a 'plain' tomcat
installation pointing at port 80. This is a system port and reserved for
privileged access. You must
1. use some kind of redirection such as iptables and leave the tomcat
mapping at 8080
OR
2 you must run tomcat as root THIS IS VERY BAD DON'T DO THIS
OR
3. use something like jsvc and set the 'user' to tomcat after starting
up as root. jsvc will start as root and bind to the port and then
switch to the non-privileged tomcat user for normal operation.
Regards
Alan Chaney
Hassan Schroeder wrote:
> On Wed, Feb 20, 2008 at 12:57 PM, elvberg <da...@elvberg.com> wrote:
>
>> I've added to D-Link router Virtual Server List
>> Name Private IP Protocol Schedule
>> 87.227.4.194 192.168.0.135 TCP 80/80 always
>> 87.227.4.194 192.168.0.135 TCP 8084/8084 always
>
> Why did you feel the need to change this, if you were able to connect
> to the instance of httpd before?
>
> And what's the "8084" for?
>
> But as already suggested, make sure that Tomcat's actually running
> and can be accessed locally; if not, check your startup logs.
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Apache2 and tomcat5.5
Posted by Hassan Schroeder <ha...@gmail.com>.
On Wed, Feb 20, 2008 at 1:27 PM, elvberg <da...@elvberg.com> wrote:
> The Tomcat server is not running as a service, it's running
> as an integrated part of the NetBeans IDE 6.0.1.
Personally, I'd just install Tomcat standalone outside the IDE and
make life a whole lot easier :-)
But in any case, if your server.xml file really has a Connector defined
for port 80, you should look in your startup log to see if it's running,
and if not, why not.
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Apache2 and tomcat5.5
Posted by elvberg <da...@elvberg.com>.
The Tomcat server is not running as a service, it's running
as an integrated part of the NetBeans IDE 6.0.1.
8084 is the port HTTP/1.1
I need tomcat as an application server (as well as a web server).
/dan
On Wed, 2008-02-20 at 13:19 -0800, Hassan Schroeder wrote:
> On Wed, Feb 20, 2008 at 12:57 PM, elvberg <da...@elvberg.com> wrote:
>
> > I've added to D-Link router Virtual Server List
> > Name Private IP Protocol Schedule
> > 87.227.4.194 192.168.0.135 TCP 80/80 always
> > 87.227.4.194 192.168.0.135 TCP 8084/8084 always
>
> Why did you feel the need to change this, if you were able to connect
> to the instance of httpd before?
>
> And what's the "8084" for?
>
> But as already suggested, make sure that Tomcat's actually running
> and can be accessed locally; if not, check your startup logs.
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Apache2 and tomcat5.5
Posted by Hassan Schroeder <ha...@gmail.com>.
On Wed, Feb 20, 2008 at 12:57 PM, elvberg <da...@elvberg.com> wrote:
> I've added to D-Link router Virtual Server List
> Name Private IP Protocol Schedule
> 87.227.4.194 192.168.0.135 TCP 80/80 always
> 87.227.4.194 192.168.0.135 TCP 8084/8084 always
Why did you feel the need to change this, if you were able to connect
to the instance of httpd before?
And what's the "8084" for?
But as already suggested, make sure that Tomcat's actually running
and can be accessed locally; if not, check your startup logs.
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Apache2 and tomcat5.5
Posted by elvberg <da...@elvberg.com>.
I have changed in server.xml (as root) to
"<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<!-- A "Connector" using the shared thread pool-->
<!--
<Connector executor="tomcatThreadPool"
port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />"
I've stopped the httd service
I've added to D-Link router Virtual Server List
Name Private IP Protocol Schedule
87.227.4.194 192.168.0.135 TCP 80/80 always
87.227.4.194 192.168.0.135 TCP 8084/8084 always
and the result of running http://87.227.4.194
is
"Unable to connect
Firefox can't establish a connection to the server at 87.227.4.194.
"
On Wed, 2008-02-20 at 11:06 -0500, Len Popp wrote:
> Yes, Tomcat is a regular web server as well as an application server.
>
> To use Tomcat as your web server,
> 1. Don't run the Apache2 web server.
>
> 2. Configure Tomcat to listen on the correct HTTP port. In
> conf/server.xml where it says
> <Connector port="8080"
> change it to
> <Connector port="80"
> (or whatever port Apache 2 was using - could be different depending on
> how your gateway router is set up)
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Apache2 and tomcat5.5
Posted by Len Popp <le...@gmail.com>.
Yes, Tomcat is a regular web server as well as an application server.
To use Tomcat as your web server,
1. Don't run the Apache2 web server.
2. Configure Tomcat to listen on the correct HTTP port. In
conf/server.xml where it says
<Connector port="8080"
change it to
<Connector port="80"
(or whatever port Apache 2 was using - could be different depending on
how your gateway router is set up)
--
Len
On Feb 20, 2008 10:52 AM, elvberg <da...@elvberg.com> wrote:
> I'm running FedoraCore8.x86_64 on a machine placed in a LAN with router
> address 195.168.0.135. The Internet static IP address is 87.227.4.194.
> So, by hitting http://87.227.4.194 you'll come to the Apache2 welcome
> page because there is nothing in /var/www/html.
> My question:
> Is my tomcat5.5 to be regarded as a COMBINED web server and application
> server?
> If yes, what shall I do in order to see the tomcat instead of the the
> Apache2 welcome page by hitting http://87.227.4.194?
> /dan
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org