Re: Newbie help...Mac OS/X+Tomcat+Apache

2007-03-05 Thread Rainer Jung
Hi Jeff,

errno 61 on Mac OS X is connection refused:

61 ECONNREFUSED Connection refused.  No connection could be made because
the target machine actively refused it.

It looks a little strange, that you configured to connect to localhost,
but the log shows 10.0.1.202. Either the config you showed us is not the
one actually used, or your hostname setup is pretty strange.

Check if you can connect to 10.0.1.202 port 8009 via telnet, or if you
get a connection refused too. If so, you need to determine, if you want
to use 10.0.1.202 or localhost, and then why nothing is listening on
8009 there. You can find out about listen sockets via

netstat -an

Regards,

Rainer

Jeff Weinberger schrieb:
 Hi:
 
 I am hoping someone can help me identify what I'm sure is a very simple
 oversight on my part...but I cannot get Apache+Tomcat working...
 
 Configuration: Mac OS/X 10.4.8 (PPC client), Apache 1.3.33, mod_jk
 1.2.21, Tomcat 6.0.10
 
 I can run Tomcat standalone, (i.e. start and browse to localhost:8080
 with no modifications...), but when I try to access via a browser
 through apache it fails (503 -service unavailable).
 
 I see lots of these in my jk logs:
 
 
 [Sun Mar 04 20:42:58 2007] [5950:] [debug]
 jk_open_socket::jk_connect.c (433): trying to connect socket 10 to
 10.0.1.202:8009
 [Sun Mar 04 20:42:58 2007] [5950:] [info] 
 jk_open_socket::jk_connect.c (451): connect to 10.0.1.202:8009 failed
 (errno=61)
 [Sun Mar 04 20:42:58 2007] [5950:] [info] 
 ajp_connect_to_endpoint::jk_ajp_common.c (876): Failed opening socket to
 (10.0.1.202:8009) (errno=61)
 
 and when I try to connect via apache I see lots of these:
 
 
 [Sun Mar 04 20:17:19 2007] [5494:] [info] 
 ajp_send_request::jk_ajp_common.c (1273): (worker1) error connecting to
 the backend server (errno=61)
 [Sun Mar 04 20:17:19 2007] [5494:] [info] 
 ajp_service::jk_ajp_common.c (1930): (worker1) sending request to tomcat
 failed,  recoverable operation attempt=2
 [Sun Mar 04 20:17:19 2007] [5494:] [error]
 ajp_service::jk_ajp_common.c (1942): (worker1) Connecting to tomcat
 failed. Tomcat is probably not started or is listening on the wrong port
 
 I am certain that the port is open, and as far as I can tell, Tomcat is
 listening.
 
 Configuration files and sections are below.
 
 I don't know where to look next...or what to look for...and any help or
 advice or direction is very much appreciated!!!
 
 Thanks!!
 
 here's a snippet of my httpd.conf:
 
 LoadModule jk_module  libexec/httpd/mod_jk.so
 AddModule mod_jk.c
 JkWorkersFile /etc/httpd/workers.properties
 JkShmFile /var/log/httpd/mod_jk.shm
 JkLogFile /var/log/httpd/mod_jk.log
 JkLogLevel debug
 JkMount /examples/* worker1
 
 Here's my workers.properties:
 
 workers.tomcat_home=/path/to/tomcat
 worker.list=worker1
 worker.worker1.type=ajp13
 worker.worker1.host=localhost
 worker.worker1.port=8009
 
 
 And here's my server.xml:
 
 
 Server port=8005 shutdown=SHUTDOWN
   Listener className=org.apache.catalina.core.AprLifecycleListener
 SSLEngine=on /
   Listener className=org.apache.catalina.core.JasperListener /
   Listener
 className=org.apache.catalina.mbeans.ServerLifecycleListener /
   Listener
 className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /
  Listener className=org.apache.jk.config.ApacheConfig
 modJk=/usr/libexec/httpd/mod_jk.so
 workersConfig=/etc/httpd/workers.properties
 jkLog=/var/log/httpd/mod_jk.log jkDebug=debug /
   GlobalNamingResources
 Resource name=UserDatabase auth=Container
   type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory
   pathname=path/to/tomcat-users.xml /
   /GlobalNamingResources
 Service name=Catalina
  Connector port=8080 protocol=HTTP/1.1
maxThreads=150 connectionTimeout=2
redirectPort=8443 /
 Connector port=8443 protocol=HTTP/1.1 SSLEnabled=true
maxThreads=150 scheme=https secure=true
clientAuth=false sslProtocol=TLS /
 Connector port=8009 protocol=AJP/1.3 redirectPort=8443 /
 Engine name=Catalina defaultHost=localhost
   Realm className=org.apache.catalina.realm.UserDatabaseRealm
  resourceName=UserDatabase/
   Host name=localhost  appBase=webapps
 unpackWARs=true autoDeploy=true
 xmlValidation=false xmlNamespaceAware=false
 Listener className=org.apache.jk.config.ApacheConfig append=true
 jkWorker=worker1 /
  /Host
 /Engine
   /Service
 /Server

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Newbie help...Mac OS/X+Tomcat+Apache

2007-03-05 Thread Jeff Weinberger

Rainer:

Thank you very much for your help!

Sorry about the IP address confusion - I chose badly in including log  
entries. I tried this with localhost (127.0.0.1) and I also tried it  
to be accessed from elsewhere on the network (the local IP of the  
tomcat machine is 10.0.1.202), and sent the former configs and the  
latter log entries. The log errors were the same in both cases.


I looked at netstat as you suggested, and it appears that there is  
something listening on port 8080 and 8005 as there should be, but as  
you noted (and I began to suspect) there is nothing listening on 8009  
as far as I can tell, but there should be.


I have:

Connector port=8009 protocol=AJP/1.3 redirectPort=8443 /

in the serivce... section of my server.xml so I think tomcat should  
be listening on 8009.


So I think you've nailed the real question/issue here which is:

Why is Tomcat not listening on 8009? have I missed something in my  
configuration? Or is there something else I need to look at?


Any help is appreciated!

Thanks,

--Jeff




Hi Jeff,

errno 61 on Mac OS X is connection refused:

61 ECONNREFUSED Connection refused.  No connection could be made  
because

the target machine actively refused it.

It looks a little strange, that you configured to connect to  
localhost,
but the log shows 10.0.1.202. Either the config you showed us is  
not the

one actually used, or your hostname setup is pretty strange.

Check if you can connect to 10.0.1.202 port 8009 via telnet, or if you
get a connection refused too. If so, you need to determine, if you  
want

to use 10.0.1.202 or localhost, and then why nothing is listening on
8009 there. You can find out about listen sockets via

netstat -an

Regards,

Rainer

Jeff Weinberger schrieb:


Hi:

I am hoping someone can help me identify what I'm sure is a very  
simple

oversight on my part...but I cannot get Apache+Tomcat working...

Configuration: Mac OS/X 10.4.8 (PPC client), Apache 1.3.33, mod_jk
1.2.21, Tomcat 6.0.10

I can run Tomcat standalone, (i.e. start and browse to localhost:8080
with no modifications...), but when I try to access via a browser
through apache it fails (503 -service unavailable).

I see lots of these in my jk logs:


[Sun Mar 04 20:42:58 2007] [5950:] [debug]
jk_open_socket::jk_connect.c (433): trying to connect socket 10 to
10.0.1.202:8009
[Sun Mar 04 20:42:58 2007] [5950:] [info]
jk_open_socket::jk_connect.c (451): connect to 10.0.1.202:8009 failed
(errno=61)
[Sun Mar 04 20:42:58 2007] [5950:] [info]
ajp_connect_to_endpoint::jk_ajp_common.c (876): Failed opening  
socket to

(10.0.1.202:8009) (errno=61)

and when I try to connect via apache I see lots of these:


[Sun Mar 04 20:17:19 2007] [5494:] [info]
ajp_send_request::jk_ajp_common.c (1273): (worker1) error  
connecting to

the backend server (errno=61)
[Sun Mar 04 20:17:19 2007] [5494:] [info]
ajp_service::jk_ajp_common.c (1930): (worker1) sending request to  
tomcat

failed,  recoverable operation attempt=2
[Sun Mar 04 20:17:19 2007] [5494:] [error]
ajp_service::jk_ajp_common.c (1942): (worker1) Connecting to tomcat
failed. Tomcat is probably not started or is listening on the  
wrong port


I am certain that the port is open, and as far as I can tell,  
Tomcat is

listening.

Configuration files and sections are below.

I don't know where to look next...or what to look for...and any  
help or

advice or direction is very much appreciated!!!

Thanks!!

here's a snippet of my httpd.conf:

LoadModule jk_module  libexec/httpd/mod_jk.so
AddModule mod_jk.c
JkWorkersFile /etc/httpd/workers.properties
JkShmFile /var/log/httpd/mod_jk.shm
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel debug
JkMount /examples/* worker1

Here's my workers.properties:

workers.tomcat_home=/path/to/tomcat
worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009


And here's my server.xml:


Server port=8005 shutdown=SHUTDOWN
  Listener className=org.apache.catalina.core.AprLifecycleListener
SSLEngine=on /
  Listener className=org.apache.catalina.core.JasperListener /
  Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener /
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListene 
r /

 Listener className=org.apache.jk.config.ApacheConfig
modJk=/usr/libexec/httpd/mod_jk.so
workersConfig=/etc/httpd/workers.properties
jkLog=/var/log/httpd/mod_jk.log jkDebug=debug /
  GlobalNamingResources
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
  description=User database that can be updated and  
saved
   
factory=org.apache.catalina.users.MemoryUserDatabaseFactory

  pathname=path/to/tomcat-users.xml /
  /GlobalNamingResources
Service name=Catalina
 Connector port=8080 protocol=HTTP/1.1
   maxThreads=150 connectionTimeout=2
   redirectPort=8443 /
Connector port=8443 protocol=HTTP/1.1 

Re: Newbie help...Mac OS/X+Tomcat+Apache

2007-03-05 Thread Ron Wheeler
If you go to localhost:8080 and click on Status you shuld be taken to 
a page that shows in some detail what Tomcat thinks that it is doing.
You should see a section ajp-8009 which will tell you if Tomcat is 
listening on 8009 for AJP transactions and if it say anyone try to 
communicate over that port.


Ron

Jeff Weinberger wrote:

Rainer:

Thank you very much for your help!

Sorry about the IP address confusion - I chose badly in including log 
entries. I tried this with localhost (127.0.0.1) and I also tried it 
to be accessed from elsewhere on the network (the local IP of the 
tomcat machine is 10.0.1.202), and sent the former configs and the 
latter log entries. The log errors were the same in both cases.


I looked at netstat as you suggested, and it appears that there is 
something listening on port 8080 and 8005 as there should be, but as 
you noted (and I began to suspect) there is nothing listening on 8009 
as far as I can tell, but there should be.


I have:

Connector port=8009 protocol=AJP/1.3 redirectPort=8443 /

in the serivce... section of my server.xml so I think tomcat should 
be listening on 8009.


So I think you've nailed the real question/issue here which is:

Why is Tomcat not listening on 8009? have I missed something in my 
configuration? Or is there something else I need to look at?


Any help is appreciated!

Thanks,

--Jeff




Hi Jeff,

errno 61 on Mac OS X is connection refused:

61 ECONNREFUSED Connection refused.  No connection could be made because
the target machine actively refused it.

It looks a little strange, that you configured to connect to localhost,
but the log shows 10.0.1.202. Either the config you showed us is not the
one actually used, or your hostname setup is pretty strange.

Check if you can connect to 10.0.1.202 port 8009 via telnet, or if you
get a connection refused too. If so, you need to determine, if you want
to use 10.0.1.202 or localhost, and then why nothing is listening on
8009 there. You can find out about listen sockets via

netstat -an

Regards,

Rainer

Jeff Weinberger schrieb:


Hi:

I am hoping someone can help me identify what I'm sure is a very simple
oversight on my part...but I cannot get Apache+Tomcat working...

Configuration: Mac OS/X 10.4.8 (PPC client), Apache 1.3.33, mod_jk
1.2.21, Tomcat 6.0.10

I can run Tomcat standalone, (i.e. start and browse to localhost:8080
with no modifications...), but when I try to access via a browser
through apache it fails (503 -service unavailable).

I see lots of these in my jk logs:


[Sun Mar 04 20:42:58 2007] [5950:] [debug]
jk_open_socket::jk_connect.c (433): trying to connect socket 10 to
10.0.1.202:8009
[Sun Mar 04 20:42:58 2007] [5950:] [info]
jk_open_socket::jk_connect.c (451): connect to 10.0.1.202:8009 failed
(errno=61)
[Sun Mar 04 20:42:58 2007] [5950:] [info]
ajp_connect_to_endpoint::jk_ajp_common.c (876): Failed opening 
socket to

(10.0.1.202:8009) (errno=61)

and when I try to connect via apache I see lots of these:


[Sun Mar 04 20:17:19 2007] [5494:] [info]
ajp_send_request::jk_ajp_common.c (1273): (worker1) error connecting to
the backend server (errno=61)
[Sun Mar 04 20:17:19 2007] [5494:] [info]
ajp_service::jk_ajp_common.c (1930): (worker1) sending request to 
tomcat

failed,  recoverable operation attempt=2
[Sun Mar 04 20:17:19 2007] [5494:] [error]
ajp_service::jk_ajp_common.c (1942): (worker1) Connecting to tomcat
failed. Tomcat is probably not started or is listening on the wrong 
port


I am certain that the port is open, and as far as I can tell, Tomcat is
listening.

Configuration files and sections are below.

I don't know where to look next...or what to look for...and any help or
advice or direction is very much appreciated!!!

Thanks!!

here's a snippet of my httpd.conf:

LoadModule jk_module  libexec/httpd/mod_jk.so
AddModule mod_jk.c
JkWorkersFile /etc/httpd/workers.properties
JkShmFile /var/log/httpd/mod_jk.shm
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel debug
JkMount /examples/* worker1

Here's my workers.properties:

workers.tomcat_home=/path/to/tomcat
worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009


And here's my server.xml:


Server port=8005 shutdown=SHUTDOWN
  Listener className=org.apache.catalina.core.AprLifecycleListener
SSLEngine=on /
  Listener className=org.apache.catalina.core.JasperListener /
  Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener /
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener 
/

 Listener className=org.apache.jk.config.ApacheConfig
modJk=/usr/libexec/httpd/mod_jk.so
workersConfig=/etc/httpd/workers.properties
jkLog=/var/log/httpd/mod_jk.log jkDebug=debug /
  GlobalNamingResources
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
  description=User database that can be updated and saved
  

Re: Newbie help...Mac OS/X+Tomcat+Apache

2007-03-05 Thread Rainer Jung

hi Jeff,

any tomcat log messges during startup?

Regards,

Rainer

Jeff Weinberger wrote:

Rainer:

Thank you very much for your help!

Sorry about the IP address confusion - I chose badly in including log 
entries. I tried this with localhost (127.0.0.1) and I also tried it to 
be accessed from elsewhere on the network (the local IP of the tomcat 
machine is 10.0.1.202), and sent the former configs and the latter log 
entries. The log errors were the same in both cases.


I looked at netstat as you suggested, and it appears that there is 
something listening on port 8080 and 8005 as there should be, but as you 
noted (and I began to suspect) there is nothing listening on 8009 as far 
as I can tell, but there should be.


I have:

Connector port=8009 protocol=AJP/1.3 redirectPort=8443 /

in the serivce... section of my server.xml so I think tomcat should be 
listening on 8009.


So I think you've nailed the real question/issue here which is:

Why is Tomcat not listening on 8009? have I missed something in my 
configuration? Or is there something else I need to look at?


Any help is appreciated!

Thanks,

--Jeff




Hi Jeff,

errno 61 on Mac OS X is connection refused:

61 ECONNREFUSED Connection refused.  No connection could be made because
the target machine actively refused it.

It looks a little strange, that you configured to connect to localhost,
but the log shows 10.0.1.202. Either the config you showed us is not the
one actually used, or your hostname setup is pretty strange.

Check if you can connect to 10.0.1.202 port 8009 via telnet, or if you
get a connection refused too. If so, you need to determine, if you want
to use 10.0.1.202 or localhost, and then why nothing is listening on
8009 there. You can find out about listen sockets via

netstat -an

Regards,

Rainer

Jeff Weinberger schrieb:


Hi:

I am hoping someone can help me identify what I'm sure is a very simple
oversight on my part...but I cannot get Apache+Tomcat working...

Configuration: Mac OS/X 10.4.8 (PPC client), Apache 1.3.33, mod_jk
1.2.21, Tomcat 6.0.10

I can run Tomcat standalone, (i.e. start and browse to localhost:8080
with no modifications...), but when I try to access via a browser
through apache it fails (503 -service unavailable).

I see lots of these in my jk logs:


[Sun Mar 04 20:42:58 2007] [5950:] [debug]
jk_open_socket::jk_connect.c (433): trying to connect socket 10 to
10.0.1.202:8009
[Sun Mar 04 20:42:58 2007] [5950:] [info]
jk_open_socket::jk_connect.c (451): connect to 10.0.1.202:8009 failed
(errno=61)
[Sun Mar 04 20:42:58 2007] [5950:] [info]
ajp_connect_to_endpoint::jk_ajp_common.c (876): Failed opening socket to
(10.0.1.202:8009) (errno=61)

and when I try to connect via apache I see lots of these:


[Sun Mar 04 20:17:19 2007] [5494:] [info]
ajp_send_request::jk_ajp_common.c (1273): (worker1) error connecting to
the backend server (errno=61)
[Sun Mar 04 20:17:19 2007] [5494:] [info]
ajp_service::jk_ajp_common.c (1930): (worker1) sending request to tomcat
failed,  recoverable operation attempt=2
[Sun Mar 04 20:17:19 2007] [5494:] [error]
ajp_service::jk_ajp_common.c (1942): (worker1) Connecting to tomcat
failed. Tomcat is probably not started or is listening on the wrong port

I am certain that the port is open, and as far as I can tell, Tomcat is
listening.

Configuration files and sections are below.

I don't know where to look next...or what to look for...and any help or
advice or direction is very much appreciated!!!

Thanks!!

here's a snippet of my httpd.conf:

LoadModule jk_module  libexec/httpd/mod_jk.so
AddModule mod_jk.c
JkWorkersFile /etc/httpd/workers.properties
JkShmFile /var/log/httpd/mod_jk.shm
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel debug
JkMount /examples/* worker1

Here's my workers.properties:

workers.tomcat_home=/path/to/tomcat
worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009


And here's my server.xml:


Server port=8005 shutdown=SHUTDOWN
  Listener className=org.apache.catalina.core.AprLifecycleListener
SSLEngine=on /
  Listener className=org.apache.catalina.core.JasperListener /
  Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener /
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener 
/

 Listener className=org.apache.jk.config.ApacheConfig
modJk=/usr/libexec/httpd/mod_jk.so
workersConfig=/etc/httpd/workers.properties
jkLog=/var/log/httpd/mod_jk.log jkDebug=debug /
  GlobalNamingResources
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
  description=User database that can be updated and saved
  
factory=org.apache.catalina.users.MemoryUserDatabaseFactory

  pathname=path/to/tomcat-users.xml /
  /GlobalNamingResources
Service name=Catalina
 Connector port=8080 protocol=HTTP/1.1
   maxThreads=150 connectionTimeout=2
   redirectPort=8443 

Re: Newbie help...Mac OS/X+Tomcat+Apache

2007-03-05 Thread Jeff Weinberger

Ron and Ranier:

Thank you so much for getting me pointed in the right direction. It  
seems like there is a real problem behind this, but I don't know  
tomcat well enough to determine what it is.


It appears to be looking for /var/root/.keystore - and fails to find  
it. The file, of course does not exist. I've checked other users'  
home directory as well, and the file does not exist there either.


I wonder if this could just be a bad tomcat installation (I used the  
mac installer from the tomcat site...which is really just a tarball)?  
Or if there's something I have to do that I don't know about.


In specific answer to your questions:

 - Logs: Yes, there are lots of errors on start up (see just below  
this text)


- status page: (localhost:8080 - click on status) yields a HTTP 500  
with error messages (just below the log messages here).


The obvious conclusion is that the ajp/13 listener is failing...but I  
don't know why. Can you help point me to any clues here?


Thank you so much for your help!!!

--Jeff

-Log on launch---

Mar 5, 2007 12:25:47 PM org.apache.catalina.core.AprLifecycleListener  
init
INFO: The Apache Tomcat Native library which allows optimal  
performance in production environments was not found on the  
java.library.path: .:/Library/Java/Extensions:/System/Library/Java/ 
Extensions:/usr/lib/java

Mar 5, 2007 12:25:47 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Mar 5, 2007 12:25:49 PM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.io.FileNotFoundException: /var/root/.keystore (No such file or  
directory)

at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.init(FileInputStream.java:106)
	at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore 
(JSSESocketFactory.java:316)
	at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore 
(JSSESocketFactory.java:259)
	at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers 
(JSSESocketFactory.java:410)
	at org.apache.tomcat.util.net.jsse.JSSESocketFactory.init 
(JSSESocketFactory.java:378)
	at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket 
(JSSESocketFactory.java:125)

at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:494)
	at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java: 
175)
	at org.apache.catalina.connector.Connector.initialize(Connector.java: 
1059)
	at org.apache.catalina.core.StandardService.initialize 
(StandardService.java:578)
	at org.apache.catalina.core.StandardServer.initialize 
(StandardServer.java:792)

at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
Mar 5, 2007 12:25:49 PM org.apache.catalina.startup.Catalina load
SEVERE: Catalina.start
LifecycleException:  Protocol handler initialization failed:  
java.io.FileNotFoundException: /var/root/.keystore (No such file or  
directory)
	at org.apache.catalina.connector.Connector.initialize(Connector.java: 
1061)
	at org.apache.catalina.core.StandardService.initialize 
(StandardService.java:578)
	at org.apache.catalina.core.StandardServer.initialize 
(StandardServer.java:792)

at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
Mar 5, 2007 12:25:49 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 7270 ms
Mar 5, 2007 12:25:49 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 5, 2007 12:25:49 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.10
Mar 5, 2007 12:25:54 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Mar 5, 2007 12:25:54 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Mar 5, 2007 12:26:00 PM 

Re: Newbie help...Mac OS/X+Tomcat+Apache

2007-03-05 Thread Rainer Jung
Get yourself a default config (server.xml) from a download. Try to get 
that running first (which should be easy).


Then try to port the changes from your actual config to the default 
config, not changing to much in one step and trying to understand from 
the docs, what the changes mean.


Apply your changes concerning ssl as the last ones. Setting up those 
correctly might need most docs text to be read.


Regards,

Rainer

Jeff Weinberger wrote:

Ron and Ranier:

Thank you so much for getting me pointed in the right direction. It 
seems like there is a real problem behind this, but I don't know tomcat 
well enough to determine what it is.


It appears to be looking for /var/root/.keystore - and fails to find it. 
The file, of course does not exist. I've checked other users' home 
directory as well, and the file does not exist there either.


I wonder if this could just be a bad tomcat installation (I used the mac 
installer from the tomcat site...which is really just a tarball)? Or if 
there's something I have to do that I don't know about.


In specific answer to your questions:

 - Logs: Yes, there are lots of errors on start up (see just below this 
text)


- status page: (localhost:8080 - click on status) yields a HTTP 500 with 
error messages (just below the log messages here).


The obvious conclusion is that the ajp/13 listener is failing...but I 
don't know why. Can you help point me to any clues here?


Thank you so much for your help!!!

--Jeff

-Log on launch---

Mar 5, 2007 12:25:47 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The Apache Tomcat Native library which allows optimal performance 
in production environments was not found on the java.library.path: 
.:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java

Mar 5, 2007 12:25:47 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Mar 5, 2007 12:25:49 PM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.io.FileNotFoundException: /var/root/.keystore (No such file or 
directory)

at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.init(FileInputStream.java:106)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:316) 

at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:259) 

at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:410) 

at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.init(JSSESocketFactory.java:378) 

at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:125) 


at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:494)
at 
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:175)
at 
org.apache.catalina.connector.Connector.initialize(Connector.java:1059)
at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:578) 

at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792)

at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 


at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
Mar 5, 2007 12:25:49 PM org.apache.catalina.startup.Catalina load
SEVERE: Catalina.start
LifecycleException:  Protocol handler initialization failed: 
java.io.FileNotFoundException: /var/root/.keystore (No such file or 
directory)
at 
org.apache.catalina.connector.Connector.initialize(Connector.java:1061)
at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:578) 

at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792)

at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 


at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
Mar 5, 2007 12:25:49 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 7270 ms
Mar 5, 2007 12:25:49 PM org.apache.catalina.core.StandardService start
INFO: 

Re: Newbie help...Mac OS/X+Tomcat+Apache

2007-03-05 Thread Jeff Weinberger

Ron and Ranier:

Thank you again!!

it seems you got me pointed in the right direction. The simple  
obvious thing I was overlooking turned up in the Tomcat 4.0  
documentation. I was asking Tomcat to open an SSL connection, but not  
providing server keys.


I took out the sections of my server.xml asking for the SSL (port  
8443) connector and the redirectPort properties in the other  
connectors, and everything is working perfectly!


Since I will be running Tomcat behind an Apache http server, I don't  
need Tomcat to handle SSL connections - Apache will do that. I will  
(once I'm done testing) shut off the port 8080 direct access to  
Tomcat and only allow port 8009 access.


My two (currently) remaining questions:

1) Do I need a host... definition in my server.xml and a new worker  
definition for every host the server is called as?


I'm asking because I have a number of virtual domains hosted on my  
one Apache instance...


2) If I want only certain domains to have access to Tomcat, i think  
the way to do that (generally) is to use the JkMount directive in  
Apache's VirtualHost... container for only those hosts I want to  
have access, and then to define a worker per host in the  
workers.properties file.  is that correct? Does the worker definition  
have to have a worker.workername.host property of the virtual domain?  
or localhost?


And can anyone point me to any resources that show how to allow  
workers access to only certain either servlets or directories (which  
contain .jsp pages or servlets) and not outside of the specified  
directory?


Thank you for your help!!

--Jeff


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]