Hi,

We have powerful Solaris server which hosts 2 sets of Apache 2.0.48 -> JBoss
3.07 with Tomcat 4.1.18
using mod_jk2 2.0.2, running a bunch of web applications.
They are configured to run independently (2 server names, 2 virtual servers,
different ports, etc.)
Used to run without a single glitch for about 1/2 year.

We had a power failure, so the server crashed.
After that we rebooted it, it automatically started Apache, we manually
started JBoss.
One set was totally restored (no problems whatsoever), but another one has a
problem:
- if you try to run any of the applications, getting error 404
("File doesn't exist: /apache/htdocs/myapp" in the log);
- if you try to go to the main page: http://myserver1.com , you are getting
index.jsp (Tomcat's main page
with the cat);
- but if you try to use port 8080 (http://myserver1.com:8080 ), getting main
page and all the apps just fine.
Even tried to kill the second instance of java process for JBoss/Tomcat -
same exact picture on server1
(ghost tomcat? - no catalina or tomcat proccesses running)
Actually, is Tomcat a java process ?(seem to have tomcat.exe in bin
directoty)

I interpreted it as a failure of something in the Apache-Tomcat-JBoss
bridge.
So I tried to do the following:
- reboot server - same problem;
- reinstalled Apache, copied all config files and modules (imcl. ) from old
instance of Apache to a new one - same;
- after that restarted JBoss - same.
- reinstalled JBoss, restarted it and Apache - the same.

Nobody touched any config files.

I forgot to mention that if I shutdown the second instance of JBoss/Tomcat,
on the second instance of Apache http://myserver2.com I am getting error 
"Internal Server Error" (that is a normal behavior, right ?),
but on the first instance of Apache http://myserver1.com I still get the
same Tomcat admin page with the cat (index.jsp)
although no java processes are running.
If I go to any application on either server, getting error 404 "Resource not
available"

Can you explain how can I get that Tomcat's webapps/admin/index.jsp page when 
JBoss/Tomcat is down,
is that mod_jk2 doing somehow ?

Maybe something with inability to resolve localhost
(somewhere in config - we had that problem before) ?

Could you please suggest what might be wrong and how to fix it ?



1) I am not sure why (don't think anything was modified),
but something has changed: when you do: http://myserver1.com,
it no longer shows the admin page of Tomcat,
but shows page with something "Seeing this instead of the website you 
expected?..." (Apache Test page).

2) We replaced all "localhost" with the IP address of that virtual server
(it has 2 network cards, 2 IP addresses, etc.) - same result

3) We copied the working version of JBoss and modified its configuration
(mostly port numbers) to be as it was on that instance originally - same result.

4) I have tried to change a line in workers2.properties
from localhost to server1:
[uri:server1/*]
and it gave an interesting effect - now if I do http://server1/,
getting Tomcat admin page (index.jsp with the cat),
but for http://server1/myapp I am getting error 404 "requested resource not 
available". In any case, there is nothing showing in error_log,
but in access_log:
GET /myapp HTTP/1.1" 404 698

We had problem on that server resolving localhost (maybe because we have 2 
instances of apache & jboss there, 2 servernames, etc.),
so I changed localhost->server1 in all 3 config files:
workers2.properties, 
and on JBoss - in server.xml and tomcat41-service.xml, 
still the same exact behavior.

5) It might be worth mentioning that when I restart apache,
see in error_log:
error mod_jk child init 1 -2
error jk2_init() can't find child 5194 in scoreboard
What does that mean ?


Please help!

Thank you in advance,
Oleg.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915332#3915332

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915332


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to