tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Baty <batym...@yahoo.com>
Subject Re: Only see html/code
Date Mon, 21 Jan 2008 16:50:18 GMT
Here's my mod_jk list:

on Jan 21 16:46:14 2008] [6389:21952] [debug] do_shm_open::jk_shm.c (295): Truncated shared
memory to 28800
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] do_shm_open::jk_shm.c (327): Initialized shared
memory size=28800 free=28672 addr=0x2b362997a000
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] do_shm_open_lock::jk_shm.c (234): Opened shared
memory lock /var/log/apache2/jk-runtime-status.lock
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] init_jk::mod_jk.c (2355): Initialized shm:/var/log/apache2/jk-runtime-status
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] uri_worker_map_open::jk_uri_worker_map.c (361):
rule map size is 0
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] build_worker_map::jk_worker.c (236): creating
worker yougarage
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] wc_create_worker::jk_worker.c (141): about
to create instance yougarage of ajp13
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] wc_create_worker::jk_worker.c (154): about
to validate and init yougarage
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] ajp_validate::jk_ajp_common.c (1842): worker
yougarage contact is 'yougarage.tv:8009'
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] ajp_init::jk_ajp_common.c (1965): setting
endpoint options:
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] ajp_init::jk_ajp_common.c (1968): keepalive:
       0
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] ajp_init::jk_ajp_common.c (1972): timeout:
         -1
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] ajp_init::jk_ajp_common.c (1976): buffer size:
     0
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] ajp_init::jk_ajp_common.c (1980): pool timeout:
    0
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] ajp_init::jk_ajp_common.c (1984): connect
timeout:  0
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] ajp_init::jk_ajp_common.c (1988): reply timeout:
   0
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] ajp_init::jk_ajp_common.c (1992): prepost
timeout:  0
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] ajp_init::jk_ajp_common.c (1996): recovery
options: 0
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] ajp_init::jk_ajp_common.c (2000): retries:
         2
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] ajp_create_endpoint_cache::jk_ajp_common.c
(1879): setting connection pool size to 1 with min 0
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] build_worker_map::jk_worker.c (236): creating
worker cwrecyclers
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] wc_create_worker::jk_worker.c (141): about
to create instance cwrecyclers of ajp13
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] wc_create_worker::jk_worker.c (154): about
to validate and init cwrecyclers
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] ajp_validate::jk_ajp_common.c (1842): worker
cwrecyclers contact is 'cwrecyclers.hopto.org:8009'
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] ajp_init::jk_ajp_common.c (1965): setting
endpoint options:
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] ajp_init::jk_ajp_common.c (1968): keepalive:
       0
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] ajp_init::jk_ajp_common.c (1972): timeout:
         -1
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] ajp_init::jk_ajp_common.c (1976): buffer size:
     0
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] ajp_init::jk_ajp_common.c (1980): pool timeout:
    0
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] ajp_init::jk_ajp_common.c (1984): connect
timeout:  0
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] ajp_init::jk_ajp_common.c (1988): reply timeout:
   0
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] ajp_init::jk_ajp_common.c (1992): prepost
timeout:  0
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] ajp_init::jk_ajp_common.c (1996): recovery
options: 0
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] ajp_init::jk_ajp_common.c (2000): retries:
         2
[Mon Jan 21 16:46:14 2008] [6389:21952] [debug] ajp_create_endpoint_cache::jk_ajp_common.c
(1879): setting connection pool size to 1 with min 0
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] do_shm_open::jk_shm.c (295): Truncated shared
memory to 28800
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] do_shm_open::jk_shm.c (327): Initialized shared
memory size=28800 free=28672 addr=0x2b3624b70000
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] do_shm_open_lock::jk_shm.c (234): Opened shared
memory lock /var/log/apache2/jk-runtime-status.lock
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] init_jk::mod_jk.c (2355): Initialized shm:/var/log/apache2/jk-runtime-status
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] uri_worker_map_open::jk_uri_worker_map.c (361):
rule map size is 0
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] build_worker_map::jk_worker.c (236): creating
worker yougarage
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] wc_create_worker::jk_worker.c (141): about
to create instance yougarage of ajp13
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] wc_create_worker::jk_worker.c (154): about
to validate and init yougarage
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] ajp_validate::jk_ajp_common.c (1842): worker
yougarage contact is 'yougarage.tv:8009'
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] ajp_init::jk_ajp_common.c (1965): setting
endpoint options:
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] ajp_init::jk_ajp_common.c (1968): keepalive:
       0
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] ajp_init::jk_ajp_common.c (1972): timeout:
         -1
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] ajp_init::jk_ajp_common.c (1976): buffer size:
     0
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] ajp_init::jk_ajp_common.c (1980): pool timeout:
    0
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] ajp_init::jk_ajp_common.c (1984): connect
timeout:  0
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] ajp_init::jk_ajp_common.c (1988): reply timeout:
   0
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] ajp_init::jk_ajp_common.c (1992): prepost
timeout:  0
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] ajp_init::jk_ajp_common.c (1996): recovery
options: 0
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] ajp_init::jk_ajp_common.c (2000): retries:
         2
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] ajp_create_endpoint_cache::jk_ajp_common.c
(1879): setting connection pool size to 1 with min 0
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] build_worker_map::jk_worker.c (236): creating
worker cwrecyclers
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] wc_create_worker::jk_worker.c (141): about
to create instance cwrecyclers of ajp13
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] wc_create_worker::jk_worker.c (154): about
to validate and init cwrecyclers
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] ajp_validate::jk_ajp_common.c (1842): worker
cwrecyclers contact is 'cwrecyclers.hopto.org:8009'
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] ajp_init::jk_ajp_common.c (1965): setting
endpoint options:
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] ajp_init::jk_ajp_common.c (1968): keepalive:
       0
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] ajp_init::jk_ajp_common.c (1972): timeout:
         -1
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] ajp_init::jk_ajp_common.c (1976): buffer size:
     0
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] ajp_init::jk_ajp_common.c (1980): pool timeout:
    0
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] ajp_init::jk_ajp_common.c (1984): connect
timeout:  0
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] ajp_init::jk_ajp_common.c (1988): reply timeout:
   0
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] ajp_init::jk_ajp_common.c (1992): prepost
timeout:  0
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] ajp_init::jk_ajp_common.c (1996): recovery
options: 0
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] ajp_init::jk_ajp_common.c (2000): retries:
         2
[Mon Jan 21 16:46:14 2008] [6390:21952] [debug] ajp_create_endpoint_cache::jk_ajp_common.c
(1879): setting connection pool size to 1 with min 0
[Mon Jan 21 16:46:14 2008] [6395:21952] [debug] do_shm_open::jk_shm.c (252): Shared memory
is already open
[Mon Jan 21 16:46:14 2008] [6395:21952] [debug] jk_child_init::mod_jk.c (2311): Attached shm:/var/log/apache2/jk-runtime-status
[Mon Jan 21 16:46:14 2008] [6395:21952] [debug] jk_child_init::mod_jk.c (2321): Initialized
mod_jk/1.2.18
[Mon Jan 21 16:46:14 2008] [6396:21952] [debug] do_shm_open::jk_shm.c (252): Shared memory
is already open
[Mon Jan 21 16:46:14 2008] [6396:21952] [debug] jk_child_init::mod_jk.c (2311): Attached shm:/var/log/apache2/jk-runtime-status
[Mon Jan 21 16:46:14 2008] [6396:21952] [debug] jk_child_init::mod_jk.c (2321): Initialized
mod_jk/1.2.18
[Mon Jan 21 16:46:14 2008] [6397:21952] [debug] do_shm_open::jk_shm.c (252): Shared memory
is already open
[Mon Jan 21 16:46:14 2008] [6397:21952] [debug] jk_child_init::mod_jk.c (2311): Attached shm:/var/log/apache2/jk-runtime-status
[Mon Jan 21 16:46:14 2008] [6397:21952] [debug] jk_child_init::mod_jk.c (2321): Initialized
mod_jk/1.2.18
[Mon Jan 21 16:46:14 2008] [6398:21952] [debug] do_shm_open::jk_shm.c (252): Shared memory
is already open
[Mon Jan 21 16:46:14 2008] [6398:21952] [debug] jk_child_init::mod_jk.c (2311): Attached shm:/var/log/apache2/jk-runtime-status
[Mon Jan 21 16:46:14 2008] [6398:21952] [debug] jk_child_init::mod_jk.c (2321): Initialized
mod_jk/1.2.18
[Mon Jan 21 16:46:14 2008] [6399:21952] [debug] do_shm_open::jk_shm.c (252): Shared memory
is already open
[Mon Jan 21 16:46:14 2008] [6399:21952] [debug] jk_child_init::mod_jk.c (2311): Attached shm:/var/log/apache2/jk-runtime-status
[Mon Jan 21 16:46:14 2008] [6399:21952] [debug] jk_child_init::mod_jk.c (2321): Initialized
mod_jk/1.2.18
[Mon Jan 21 16:46:17 2008] [6395:21952] [debug] map_uri_to_worker::jk_uri_worker_map.c (508):
Attempting to map URI '/' from 1 maps
[Mon Jan 21 16:46:17 2008] [6395:21952] [debug] map_uri_to_worker::jk_uri_worker_map.c (520):
Attempting to map context URI '/cwrecyclers/*'
[Mon Jan 21 16:46:17 2008] [6395:21952] [debug] map_uri_to_worker::jk_uri_worker_map.c (508):
Attempting to map URI '/' from 1 maps
[Mon Jan 21 16:46:17 2008] [6395:21952] [debug] map_uri_to_worker::jk_uri_worker_map.c (520):
Attempting to map context URI '/cwrecyclers/*'
[Mon Jan 21 16:46:17 2008] [6395:21952] [debug] map_uri_to_worker::jk_uri_worker_map.c (508):
Attempting to map URI '/index.jsp' from 1 maps
[Mon Jan 21 16:46:17 2008] [6395:21952] [debug] map_uri_to_worker::jk_uri_worker_map.c (520):
Attempting to map context URI '/cwrecyclers/*'
[Mon Jan 21 16:46:17 2008] [6395:21952] [debug] map_uri_to_worker::jk_uri_worker_map.c (508):
Attempting to map URI '/index.jsp' from 1 maps
[Mon Jan 21 16:46:17 2008] [6395:21952] [debug] map_uri_to_worker::jk_uri_worker_map.c (520):
Attempting to map context URI '/cwrecyclers/*'
[Mon Jan 21 16:46:18 2008] [6400:21952] [debug] do_shm_open::jk_shm.c (252): Shared memory
is already open
[Mon Jan 21 16:46:18 2008] [6400:21952] [debug] jk_child_init::mod_jk.c (2311): Attached shm:/var/log/apache2/jk-runtime-status
[Mon Jan 21 16:46:18 2008] [6400:21952] [debug] jk_child_init::mod_jk.c (2321): Initialized
mod_jk/1.2.18
Thanks.
Chris
----- Original Message ----
From: Rainer Jung <rainer.jung@kippdata.de>
To: Tomcat Users List <users@tomcat.apache.org>
Sent: Monday, January 21, 2008 10:42:28 AM
Subject: Re: Only see html/code


If you think that your requests do net get forwarded to Tomcat, set 
JkLogLevel to debug and do a single request, that should go to Tomcat.

Post the contents of the jk log then.

Regards,

Rainer

Chris Baty wrote:
> Thanks for the ideas, still no luck.  This didn't work.  It acts like
 Apache and Tomcat aren't  connecting at all.  I copied index.jsp to
 index.html and everything worked except the  JSP code.  I changed
  /usr/share/tomcat5.5-webapps/ROOT/cwrecyclers/WEB-INF/web.xml to:
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> 
> 
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
>     version="2.4">
> 
>   <display-name>Welcome to CWrecyclers</display-name>
>   <description>
>       Welcome to CWrecyclers
>   </description>
> 
> <!-- JSPC servlet mappings start -->
> 
>     <servlet>
>         <servlet-name>Home Page</servlet-name>
>         <servlet-class>index.jsp</servlet-class>
>     </servlet>
> 
>     <servlet-mapping>
>         <servlet-name>Home Page</servlet-name>
>         <url-pattern>/index.jsp</url-pattern>
>     </servlet-mapping>
>     
>     <welcome-file-list>
>         <welcome-file>
>         index.jsp
>     </welcome-file>
>     </welcome-file-list>
>      
> </web-app>
> No luck yet with the JSP.   I'm trying to get
 http://cwrecyclers.hopto.org/ up and  running.  
> 
> ----- Original Message ----
> From: Rainer Jung <rainer.jung@kippdata.de>
> To: Tomcat Users List <users@tomcat.apache.org>
> Sent: Sunday, January 20, 2008 10:06:13 AM
> Subject: Re: Only see html/code
> 
> 
> Hi Chris,
> 
> Chris Baty schrieb:
>> Hi Guys, I'm running  Tomcat 5.5 and Apache 2, with Tomcat connector
>> (Kind of a newbie).  I got my Tomcat working fine at
>> /usr/share/tomcat5.5-webapps/ROOT/cwrecyclers.  When I point the
>> browser (locally) at localhost:8180/cwrecyclers/ I see exactly what
 I
>> expect.  But when I look remotely also I see is the html.  I've
>> looked at all my config files and they all look fine.  Could someone
>> point me in the right direction? Thanks Chris
> 
> What the exact URL, you are testing with?
> Is it a JSP? Is it an index.jsp, i.e. do you ask for a directory,
 which
>  
> includes an index.jsp?
> 
>> Apache:
>> <VirtualHost  67.207.133.158:80>
>>         ServerAdmin spazz@yougarage.tv
>>         ServerName  cwrecyclers.hopto.org
>>     
>>         # Indexes + Directory Root.
> If I do this all I get is a directory listing, web style.
> 
> Don't do this. It will not work reliably. Instead include index.jsp
 in 
> the list of welcome files on your webapp web.xml.
> 
>>         DirectoryIndex index.jsp
> This gives  me FILE NOT FOUND
> #Don't do this. Since you forward all cwrecyclers requests to Tomcat,
 
> Apache httpd does not need to know about the webapp directory.
>>         DocumentRoot /usr/share/tomcat5.5-webapps/ROOT/cwrecyclers/
>> #        DocumentRoot /var/www/cwrecyclers/
>>
> 
> The first Mount is already included in the second one.
>>     JkMount /cwrecyclers/*.jsp cwrecyclers
>>     JkMount /cwrecyclers/* cwrecyclers
>>
>>
> If you don't tel httpd about the webapp with DocumentRoot, you can 
> remove this as well.
> 
>>     # Globally deny access to the WEB-INF directory
>>      <LocationMatch ".*WEB-INF.*">
>>         deny from all
>>      </LocationMatch>
>>
>>
>>         # Logfiles
>>         ErrorLog  /var/log/apache2/cwrecyclers.hopto.org.error.log
>>         CustomLog /var/log/apache2/cwrecyclers.hopto.org.access.log
>  combined
>> </VirtualHost>
>>
> 
> 
>> workers.properties
>  > # Tomcat and Java configuration
>  > #
> Remove the next two, they are useless.
>> workers.tomcat_home=/usr/share/tomcat5.5 
>> workers.java_home=/usr/lib/jvm/java-1.5.0-sun ps=/
> 
>> worker.list=yougarage
>>
>> # Definition for local worker using AJP 1.3
>> # 
>> worker.yougarage.type=ajp13
>> worker.yougarage.host=yougarage.tv 
>> worker.yougarage.port=8009
> 
> Remove cachesize, the default for Apache httpd are better:
>> worker.yougarage.cachesize=20
>>
>> worker.list=cwrecyclers
>>
>> # Definition for local worker using AJP 1.3
>> # 
>> worker.cwrecyclers.type=ajp13 
>> worker.cwrecyclers.host=cwrecyclers.hopto.org 
>> worker.cwrecyclers.port=8009
> 
> DONE
> Remove cachesize, the default for Apache httpd are better:
>> worker.cwrecyclers.cachesize=20

---------------------------------------------------------------------
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







      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message