Re: Fw: Still trying to get Tomcat 6 to work

2009-02-11 Thread michel

Chris,

I removed address and changed back  to (and will fix the security problem 
here)


Server port=8005 shutdown=SHUTDOWN

The only other problem I see is that JK has to look at different ports 
before it binds to anything but I assume that it just means it takes a bit 
longer to start but that's all. I am starting to understand how to log and 
undersand the log, much thanks! I am getting the Tomcat HTTP server working 
proprly and I am working on setting up a database and such ...




Feb 11, 2009 12:19:43 PM org.apache.catalina.core.AprLifecycleListener init

INFO: The APR based Apache Tomcat Native library which allows optimal 
performance in production environments was not found on the 
java.library.path: 
/home/qsys/jdk1.6.0_12/jre/lib/i386/client:/home/qsys/jdk1.6.0_12/jre/lib/i386:/home/qsys/jdk1.6.0_12/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib


Feb 11, 2009 12:19:44 PM org.apache.coyote.http11.Http11Protocol init

INFO: Initializing Coyote HTTP/1.1 on http-91.203.57.197-8080

Feb 11, 2009 12:19:44 PM org.apache.catalina.startup.Catalina load

INFO: Initialization processed in 2395 ms

Feb 11, 2009 12:19:44 PM org.apache.catalina.core.StandardService start

INFO: Starting service Catalina

Feb 11, 2009 12:19:44 PM org.apache.catalina.core.StandardEngine start

INFO: Starting Servlet Engine: Apache Tomcat/6.0.18

Feb 11, 2009 12:19:47 PM org.apache.coyote.http11.Http11Protocol start

INFO: Starting Coyote HTTP/1.1 on http-91.203.57.197-8080

Feb 11, 2009 12:19:47 PM org.apache.jk.common.ChannelSocket init

INFO: Port busy 8081 java.net.BindException: Address already in use

Feb 11, 2009 12:19:47 PM org.apache.jk.common.ChannelSocket init

INFO: Port busy 8082 java.net.BindException: Address already in use

Feb 11, 2009 12:19:47 PM org.apache.jk.common.ChannelSocket init

INFO: Port busy 8083 java.net.BindException: Address already in use

Feb 11, 2009 12:19:47 PM org.apache.jk.common.ChannelSocket init

INFO: JK: ajp13 listening on /0.0.0.0:8084

Feb 11, 2009 12:19:47 PM org.apache.jk.server.JkMain start

INFO: Jk running ID=3 time=0/42 config=null

Feb 11, 2009 12:19:47 PM org.apache.catalina.startup.Catalina start

INFO: Server startup in 3215 ms





- Original Message - 
From: Christopher Schultz ch...@christopherschultz.net

To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, February 10, 2009 10:18 PM
Subject: Re: Fw: Still trying to get Tomcat 6 to work



-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Michel,

On 2/10/2009 9:30 PM, michel wrote:

I get some messages in the catalina.out log but they don't seem to
indicate any problem. I probably could fine-tune a few things but I am
just happy to get it working.

Feb 11, 2009 2:19:03 AM
org.apache.tomcat.util.digester.SetPropertiesRule begin

WARNING: [SetPropertiesRule]{Server} Setting property 'address' to
'91.203.57.197' did not find a matching property.


Server doesn't support the address property. It always binds to
localhost.

Feb 11, 2009 2:19:04 AM org.apache.catalina.core.AprLifecycleListener 
init


INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path:


This isn't a big deal. You can disable the AprLifecycleListener if you
don't intend to use APR and you shouldn't get this warning message.


Feb 11, 2009 2:19:05 AM org.apache.coyote.http11.Http11Protocol init

INFO: Initializing Coyote HTTP/1.1 on http-91.203.57.197-8080

Feb 11, 2009 2:19:05 AM org.apache.catalina.startup.Catalina load


This indicates that your Connector started successfully and bound to
91.203.57.197:8080. Are you saying that netstat doesn't show this
anywhere? I always use -plan as my netstat parameters. This is what I 
get:


$ netstat -plan | grep 8.8.
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp0  0 0.0.0.0:83850.0.0.0:*
LISTEN 591/java
tcp0  0 127.0.0.1:8386  0.0.0.0:*
LISTEN 591/java
tcp0  0 0.0.0.0:84850.0.0.0:*
LISTEN 3571/java
tcp0  0 127.0.0.1:8486  0.0.0.0:*
LISTEN 3571/java
tcp0  0 0.0.0.0:85850.0.0.0:*
LISTEN 3529/java
tcp0  0 127.0.0.1:8586  0.0.0.0:*
LISTEN 3

(I have several TC servers running, so you're seeing matched pairs of
Connector and Shutdown port bindings, each pair under a different pid).


INFO: Starting Coyote HTTP/1.1 on http-91.203.57.197-8080
Feb 11, 2009 2:19:08 AM org.apache.jk.common.ChannelSocket init

INFO: Port busy 8081 java.net.BindException: Address already in use
Feb 11, 2009 2:19:08 AM org.apache.jk.common.ChannelSocket init

INFO: Port busy 8082 java.net.BindException: Address already in use
Feb 11, 2009 2:19:08 AM org.apache.jk.common.ChannelSocket init

Re: Fw: Still trying to get Tomcat 6 to work

2009-02-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Michel,

On 2/11/2009 7:35 AM, michel wrote:
 The only other problem I see is that JK has to look at different ports
 before it binds to anything but I assume that it just means it takes a
 bit longer to start but that's all.

No. JK doesn't look at any ports but the ones you tell it to look at.
There is no search for an available port feature: you specify a single
port and the JK connector binds to that one, unless there is a problem
(which in this case there is).

 INFO: Server startup in 3215 ms

If there are no messages after this, than you have a successful startup.
But, I still see bind errors in the log:

 Feb 11, 2009 12:19:47 PM org.apache.jk.common.ChannelSocket init
 INFO: Port busy 8081 java.net.BindException: Address already in use
 
 Feb 11, 2009 12:19:47 PM org.apache.jk.common.ChannelSocket init
 INFO: Port busy 8082 java.net.BindException: Address already in use
 
 Feb 11, 2009 12:19:47 PM org.apache.jk.common.ChannelSocket init
 INFO: Port busy 8083 java.net.BindException: Address already in use
 
 Feb 11, 2009 12:19:47 PM org.apache.jk.common.ChannelSocket init
 INFO: JK: ajp13 listening on /0.0.0.0:8084

You are trying to use ports 8081, 8082, 8083, and 8084 for jk
connectors. I suspect that is not your intent. You should check your
configuration. Post the entire server.xml if you have to.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmS11oACgkQ9CaO5/Lv0PBY8gCgiz34IXY338KT/BoDGnviPtvT
96cAnRBNU7WeOzySQBkTAFKlBVu2LiiY
=xFlM
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Fw: Still trying to get Tomcat 6 to work

2009-02-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Michel,

On 2/10/2009 7:45 AM, michel wrote:
 Much thanks to all and I got it working, but only on port 8090 so the
 URL has to include :8090. I am wondering if there isn't a start-up
 bug, because when I try some commands with all the servers stopped I
 get:
 
 telnet localhost 8080 - Unable to connect to remote host: Connection
 refused telnet 91.203.57.197 8080 - Unable to connect to remote host:
 Connection refused netstat -arn | grep 8080 - returns nothing
 
 So it seems that there is nothing using port 8080.
 
 If I start the Tomcat version that the hosting company provides I
 will get telnet 91.203.57.197 8080 - Connected to 91.203.57.197.
 
 I can also start apache HTTP on port 8080, but never the standard
 Tomcat 6: it only uses port 8090..

Sorry, I can't see the original messages (too old so they went out of my
inbox). Can you (re-)post your Connector configurations from server.xml?

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmR3swACgkQ9CaO5/Lv0PBlDQCfchroF3zkqCSWQmKVM1A35xxf
Mr0AoJpmRTBlKPkY49W6zygpi99sTTAF
=MS6Q
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Fw: Still trying to get Tomcat 6 to work

2009-02-10 Thread Caldarale, Charles R
 From: Christopher Schultz [mailto:ch...@christopherschultz.net]
 Subject: Re: Fw: Still trying to get Tomcat 6 to work

 Sorry, I can't see the original messages (too old so they
 went out of my inbox). Can you (re-)post your Connector
 configurations from server.xml?

The thread is in the archives:
http://marc.info/?t=12340994203r=1w=2

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Fw: Still trying to get Tomcat 6 to work

2009-02-10 Thread michel

Hi Chris,



Connector address=91.203.57.197 port=8080 protocol=HTTP/1.1 
connectionTimeout=2 redirectPort=8443 /


Server address=91.203.57.197 port=8005 shutdown=SHUTDOWN


- Original Message - 
From: Christopher Schultz ch...@christopherschultz.net

Sorry, I can't see the original messages (too old so they went out of my
inbox). Can you (re-)post your Connector configurations from server.xml?

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmR3swACgkQ9CaO5/Lv0PBlDQCfchroF3zkqCSWQmKVM1A35xxf
Mr0AoJpmRTBlKPkY49W6zygpi99sTTAF
=MS6Q
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Fw: Still trying to get Tomcat 6 to work

2009-02-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Michel,

On 2/10/2009 4:53 PM, michel wrote:
 Connector address=91.203.57.197 port=8080 protocol=HTTP/1.1
 connectionTimeout=2 redirectPort=8443 /

That looks fine to me. Does Tomcat startup cleanly? With an empty log
directory and Tomcat stopped, what is the full contents of catalina.out
after you start Tomcat?

 Server address=91.203.57.197 port=8005 shutdown=SHUTDOWN

Do you need to specifically bind to this IP address? If you bind to
91.203.57.197 then of course localhost:8080 isn't going to pick up the
phone. 'localhost' is 127.0.0.1 unless you've raped your hosts file. I
see that you tried 'telnet 91.203.57.197 8080' and that didn't work, either.

Could you also post the output of 'ifconfig'? (You didn't say which
flavor of *nix you were using, so substitute the appropriate command if
ifconfig isn't the right one).

- -chris

 
 
 - Original Message - From: Christopher Schultz
 ch...@christopherschultz.net
 Sorry, I can't see the original messages (too old so they went out of my
 inbox). Can you (re-)post your Connector configurations from
 server.xml?

 - -chris

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iEYEARECAAYFAkmR3swACgkQ9CaO5/Lv0PBlDQCfchroF3zkqCSWQmKVM1A35xxf
 Mr0AoJpmRTBlKPkY49W6zygpi99sTTAF
 =MS6Q
 -END PGP SIGNATURE-

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org

 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmSMwsACgkQ9CaO5/Lv0PB94QCgs+ml6d9LgIejRCnBgb+MWX3b
sPEAoIA8iKMcUsuyxVTWrxDQsbeBwtXY
=IEhx
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Fw: Still trying to get Tomcat 6 to work

2009-02-10 Thread michel

Hi Chris,


I get some messages in the catalina.out log but they don't seem to indicate 
any problem. I probably could fine-tune a few things but I am just happy to 
get it working.


Feb 11, 2009 2:19:03 AM org.apache.tomcat.util.digester.SetPropertiesRule 
begin


WARNING: [SetPropertiesRule]{Server} Setting property 'address' to 
'91.203.57.197' did not find a matching property.


Feb 11, 2009 2:19:04 AM org.apache.catalina.core.AprLifecycleListener init

INFO: The APR based Apache Tomcat Native library which allows optimal 
performance in production environments was not found on the 
java.library.path: 
/home/qsys/jdk1.6.0_12/jre/lib/i386/client:/home/qsys/jdk1.6.0_12/jre/lib/i386:/home/qsys/jdk1.6.0_12/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib


Feb 11, 2009 2:19:05 AM org.apache.coyote.http11.Http11Protocol init

INFO: Initializing Coyote HTTP/1.1 on http-91.203.57.197-8080

Feb 11, 2009 2:19:05 AM org.apache.catalina.startup.Catalina load

INFO: Initialization processed in 1623 ms

Feb 11, 2009 2:19:05 AM org.apache.catalina.core.StandardService start

INFO: Starting service Catalina

Feb 11, 2009 2:19:05 AM org.apache.catalina.core.StandardEngine start

INFO: Starting Servlet Engine: Apache Tomcat/6.0.18

Feb 11, 2009 2:19:08 AM org.apache.coyote.http11.Http11Protocol start

INFO: Starting Coyote HTTP/1.1 on http-91.203.57.197-8080

Feb 11, 2009 2:19:08 AM org.apache.jk.common.ChannelSocket init

INFO: Port busy 8081 java.net.BindException: Address already in use

Feb 11, 2009 2:19:08 AM org.apache.jk.common.ChannelSocket init

INFO: Port busy 8082 java.net.BindException: Address already in use

Feb 11, 2009 2:19:08 AM org.apache.jk.common.ChannelSocket init

INFO: Port busy 8083 java.net.BindException: Address already in use

Feb 11, 2009 2:19:08 AM org.apache.jk.common.ChannelSocket init

INFO: JK: ajp13 listening on /0.0.0.0:8084

Feb 11, 2009 2:19:08 AM org.apache.jk.server.JkMain start

INFO: Jk running ID=3 time=0/25 config=null

Feb 11, 2009 2:19:08 AM org.apache.catalina.startup.Catalina start

INFO: Server startup in 3925 ms

Feb 11, 2009 2:19:50 AM org.apache.coyote.http11.Http11Protocol pause

INFO: Pausing Coyote HTTP/1.1 on http-91.203.57.197-8080

Feb 11, 2009 2:19:51 AM org.apache.catalina.core.StandardService stop

INFO: Stopping service Catalina

Feb 11, 2009 2:19:51 AM org.apache.coyote.http11.Http11Protocol destroy

INFO: Stopping Coyote HTTP/1.1 on http-91.203.57.197-8080






- Original Message - 
From: Christopher Schultz ch...@christopherschultz.net

To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, February 10, 2009 9:08 PM
Subject: Re: Fw: Still trying to get Tomcat 6 to work



-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Michel,

On 2/10/2009 4:53 PM, michel wrote:

Connector address=91.203.57.197 port=8080 protocol=HTTP/1.1
connectionTimeout=2 redirectPort=8443 /


That looks fine to me. Does Tomcat startup cleanly? With an empty log
directory and Tomcat stopped, what is the full contents of catalina.out
after you start Tomcat?


Server address=91.203.57.197 port=8005 shutdown=SHUTDOWN


Do you need to specifically bind to this IP address? If you bind to
91.203.57.197 then of course localhost:8080 isn't going to pick up the
phone. 'localhost' is 127.0.0.1 unless you've raped your hosts file. I
see that you tried 'telnet 91.203.57.197 8080' and that didn't work, 
either.


Could you also post the output of 'ifconfig'? (You didn't say which
flavor of *nix you were using, so substitute the appropriate command if
ifconfig isn't the right one).

- -chris




- Original Message - From: Christopher Schultz
ch...@christopherschultz.net

Sorry, I can't see the original messages (too old so they went out of my
inbox). Can you (re-)post your Connector configurations from
server.xml?

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmR3swACgkQ9CaO5/Lv0PBlDQCfchroF3zkqCSWQmKVM1A35xxf
Mr0AoJpmRTBlKPkY49W6zygpi99sTTAF
=MS6Q
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmSMwsACgkQ9CaO5/Lv0PB94QCgs+ml6d9LgIejRCnBgb+MWX3b
sPEAoIA8iKMcUsuyxVTWrxDQsbeBwtXY
=IEhx
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Fw: Still trying to get Tomcat 6 to work

2009-02-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Michel,

On 2/10/2009 9:30 PM, michel wrote:
 I get some messages in the catalina.out log but they don't seem to
 indicate any problem. I probably could fine-tune a few things but I am
 just happy to get it working.
 
 Feb 11, 2009 2:19:03 AM
 org.apache.tomcat.util.digester.SetPropertiesRule begin
 
 WARNING: [SetPropertiesRule]{Server} Setting property 'address' to
 '91.203.57.197' did not find a matching property.

Server doesn't support the address property. It always binds to
localhost.

 Feb 11, 2009 2:19:04 AM org.apache.catalina.core.AprLifecycleListener init
 
 INFO: The APR based Apache Tomcat Native library which allows optimal
 performance in production environments was not found on the
 java.library.path:

This isn't a big deal. You can disable the AprLifecycleListener if you
don't intend to use APR and you shouldn't get this warning message.

 Feb 11, 2009 2:19:05 AM org.apache.coyote.http11.Http11Protocol init
 
 INFO: Initializing Coyote HTTP/1.1 on http-91.203.57.197-8080
 
 Feb 11, 2009 2:19:05 AM org.apache.catalina.startup.Catalina load

This indicates that your Connector started successfully and bound to
91.203.57.197:8080. Are you saying that netstat doesn't show this
anywhere? I always use -plan as my netstat parameters. This is what I get:

$ netstat -plan | grep 8.8.
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp0  0 0.0.0.0:83850.0.0.0:*
LISTEN 591/java
tcp0  0 127.0.0.1:8386  0.0.0.0:*
LISTEN 591/java
tcp0  0 0.0.0.0:84850.0.0.0:*
LISTEN 3571/java
tcp0  0 127.0.0.1:8486  0.0.0.0:*
LISTEN 3571/java
tcp0  0 0.0.0.0:85850.0.0.0:*
LISTEN 3529/java
tcp0  0 127.0.0.1:8586  0.0.0.0:*
LISTEN 3

(I have several TC servers running, so you're seeing matched pairs of
Connector and Shutdown port bindings, each pair under a different pid).

 INFO: Starting Coyote HTTP/1.1 on http-91.203.57.197-8080
 Feb 11, 2009 2:19:08 AM org.apache.jk.common.ChannelSocket init
 
 INFO: Port busy 8081 java.net.BindException: Address already in use
 Feb 11, 2009 2:19:08 AM org.apache.jk.common.ChannelSocket init
 
 INFO: Port busy 8082 java.net.BindException: Address already in use
 Feb 11, 2009 2:19:08 AM org.apache.jk.common.ChannelSocket init
 
 INFO: Port busy 8083 java.net.BindException: Address already in use
 Feb 11, 2009 2:19:08 AM org.apache.jk.common.ChannelSocket init
 
 INFO: JK: ajp13 listening on /0.0.0.0:8084

It looks like you have more Connector elements than you originally
claimed. Cal you post /all/ of your Connector elements from server.xml?

Are you trying to use the HTTP connector or AJP connector? Or both? It
looks like you have at least one HTTP connector and one AJP connector
configured. Ports 8080-8480 appear to be configured and having various
problems starting.

 Feb 11, 2009 2:19:50 AM org.apache.coyote.http11.Http11Protocol pause
 
 INFO: Pausing Coyote HTTP/1.1 on http-91.203.57.197-8080
 
 Feb 11, 2009 2:19:51 AM org.apache.catalina.core.StandardService stop
 
 INFO: Stopping service Catalina
 
 Feb 11, 2009 2:19:51 AM org.apache.coyote.http11.Http11Protocol destroy
 
 INFO: Stopping Coyote HTTP/1.1 on http-91.203.57.197-8080

Right: Tomcat is stopping immediately, probably because one or more
connectors failed to start properly. That's why you can't telnet to
anything: Tomcat ain't running.

Post the other Connector configurations (or just comment them out) and
we'll see where we can go from there.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmSQ4MACgkQ9CaO5/Lv0PBV2gCfbrE8u6joaZwo1x/kRmNiJPDo
6SIAnjw7b9IBDBRRKsWTKu3JgdTVpFHX
=eXAE
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org