jay lopes

Greenhorn
+ Follow
since Jul 17, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by jay lopes

We currently run 3 tomcat web applications. One is a main webpage, which would be www.xxxx.com, one is www.xxx.com/123 and the other is www.xxx.com/abc. 123 and abc are running from 1 instance, and www.xxx.com is running on another instance.

My uriworkermap.properties file:
/|/*=worker1
!/123|/*=worker1
!/abc|/*=worker1
/123|/*=worker2
/abc|/*=worker3

Workers.properties file:

workers.worker1.tomcat_home=C:\Tomcat
workers.worker2.tomcat_home=C:\Tomcat5.5
workers.worker3.tomcat_home=C:\Tomcat5.5
workers.java_home=C:\Program Files\Java\jdk1.6.0_07
worker.list=worker1,worker2, worker3
worker.worker1.host=10.30.10.128
worker.worker1.port=8009
worker.worker1.type=ajp13
worker.worker2.host=10.30.10.128
worker.worker2.port=8014
worker.worker2.type=ajp13
worker.worker3.host=10.30.10.128
worker.worker3.port=8014
worker.worker3.type=ajp13

abc and 123 work fine, but www.xxxx.com doesn't work. I know that the problem is that it's not pulling up anything that's in subdirectories of the root folder. I'm sure it has to do with the uriworkermap.properties file, but I'm not sure how to fix it. Any suggestions?
10 years ago
Here is what I'm trying to do... From the outside, the IP goes to a WEB server that has IIS and tomcat connector on it, then the tomcat connector sends it back to the APP server that has the actual Tomcat running. On the tomcat we have 2 seperate instances of tomcat running. By seperate instances I mean 2 different tomcat 5.5 directories that have been renames. We did it this way because one of the instances we will have to restart once, or twice per month for updates, the other pretty much stays as is. One instance is our corporate website to the outside, the other instance is a web portal with a sign-in. The corporate instance runs out of the ROOT directory, the web portal runs out of a directory names PPA.

Here is my uriworker.properties file
/ppa|/*=worker1
/*=worker2
!/ppa|/*=worker2

workers.properties
workers.tomcat_home=C:\PPA
workers.tomcat_home=C:\worker2 (I have one of these two commented out depending what conf. folder it is in on the APP server)
works.java_home=c:\program files\java\jdk1.6.0_07
worker.list=worker1,worker2
worker.worker1.host=ip address
worker.worker1.port=8040
worker.worker1.type=ajp13
worker.worker2.host=ip address
worker.worker2.port=8009
worker.worker2.type=ajp13

I can get these to work one at a time fine, when I put them together I can only get the corparte site which is in ROOT to come up fine, the other one I get a:

Page cannot be found HTTP error 404.

Anyone have any suggestions?

11 years ago
thank you for your help
12 years ago
How would I code it?
12 years ago
How do I set the default page? If I want http://192.168.1.1/here to point to tomcat/webapps/here/jsp/MainPage.jsp.

Yes I am really new to this, basically the only person in my company that knew how to do this left, and now our test side of the app won't start so I've had this dropped in my lap.

Thanks in advance
12 years ago
I am going through and reading. We have set it to port 8180, as we have many websites running and this is only a test site.

I can post more of the tracert..

00000027:077600 ap_headers_fixup()

00000027:077600 ap_invoke_handler()

00000027:077608 HTTP_CORE: core_insert_filter()

00000027:077624 ap_invoke_handler(): call handler jakarta-servlet

00000027:077624 Collection services: r_IUO->handlers_called is set

00000027:077640 mod_jk: jk_handler()

00000027:077648 mod_jk: jk_worker.wc_get_worker_for_name() worker2

00000027:086536 mod_jk: jk_worker.wc_get_worker_for_name() done found a worker

00000027:086544 ap_get_remote_host()

00000027:086552 ap_get_remote_host(): No Name received

00000027:086560 ap_get_server_port()

00000027:086560 ap_get_server_name()

00000027:086568 ap_get_server_name(): server name = 172.20.12.50

00000027:086888 ap_get_server_name()

00000027:086896 ap_get_server_name(): server name = 172.20.12.50

00000027:086920 mod_jk: jk_ajp13_worker.get_endpoint() Into

00000027:086936 mod_jk: jk_ajp13_worker.service() Into

00000027:086952 mod_jk: jk_ajp13.ajp13_marshal_into_msgb() Into

00000027:087024 mod_jk: jk_ajp13.ajp13_marshal_into_msgb() -> method: GET

00000027:087032 mod_jk: jk_ajp13.ajp13_marshal_into_msgb() -> protocol: HTTP/1.1

00000027:087040 mod_jk: jk_ajp13.ajp13_marshal_into_msgb() -> req_uri: /pai/

00000027:087048 mod_jk: jk_ajp13.ajp13_marshal_into_msgb() -> remote_addr: 10.30.13.66

00000027:087048 mod_jk: jk_ajp13.ajp13_marshal_into_msgb() -> remote_host:

00000027:087056 mod_jk: jk_ajp13.ajp13_marshal_into_msgb() -> server_name: 172.20.12.50

00000027:087064 mod_jk: jk_ajp13.ajp13_marshal_into_msgb() -> server_port: 8180

00000027:087072 mod_jk: jk_ajp13.ajp13_marshal_into_msgb() -> is_ssl: 0

00000027:087072 mod_jk: jk_ajp13.ajp13_marshal_into_msgb() -> num_headers: 7

00000027:087096 mod_jk: jk_ajp13.ajp13_marshal_into_msgb() -> accept = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg

00000027:087120 mod_jk: jk_ajp13.ajp13_marshal_into_msgb() -> accept-language = en-us

00000027:087144 mod_jk: jk_ajp13.ajp13_marshal_into_msgb() -> ua-cpu = x86

00000027:087160 mod_jk: jk_ajp13.ajp13_marshal_into_msgb() -> accept-encoding = gzip, deflate

00000027:087184 mod_jk: jk_ajp13.ajp13_marshal_into_msgb() -> user-agent = Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5

00000027:087200 mod_jk: jk_ajp13.ajp13_marshal_into_msgb() -> host = 172.20.12.50:8180

00000027:087216 mod_jk: jk_ajp13.ajp13_marshal_into_msgb() -> connection = Keep-Alive

00000027:087232 mod_jk: jk_ajp13.ajp13_marshal_into_msgb() Done

00000027:087232 mod_jk: jk_connect.jk_open_socket() Into

00000027:087264 mod_jk: jk_connect.jk_open_socket() try to connect socket = 25

00000027:087360 mod_jk: jk_connect.jk_open_socket() after connect ret = -1

00000027:088248 mod_jk: jk_connect.jk_open_socket() failed errno = 3425

TRCTCPAPP Output

00000027:088336 mod_jk: jk_ajp13_worker.connect_to_tomcat() failed errno = 3425

00000027:088384 mod_jk: jk_ajp13_worker.service() Error connecting to the Tomcat process.

00000027:088392 mod_jk: jk_ajp13_worker.done() Into

00000027:088400 mod_jk: jk_handler() exit with HTTP_INTERNAL_SERVER_ERROR

00000027:088408 default_cache_local_handler() No cached files, DECLINE.

00000027:088424 imap_handler()

00000027:088432 mod_rewrite: handler_redirect() entered.

00000027:096528 cgi_handler()

00000027:096536 action_handler()

00000027:096544 default_handler()

00000027:096552 ap_discard_request_body()

00000027:096560 xlate_in_filter() - ignoreInvalidEscapes = 0

00000027:096568 net_time_filter()

00000027:096584 ap_unescape_url(): URL = GET /pai/ HTTP/1.1

00000027:096592 ap_log_rerror400()

00000027:096616 getMessageFromSpecifiedCatalog(): message catalog is /QIBM/PRODDATA/HTTPA/MRI2924/SERVER/QZSRHTTP.CAT

00000027:096624 getMessageFromSpecifiedCatalog(): message ID = 17, catalog CCSID = 37, job CCSID = 37
12 years ago
Having problems with Tomcat5.0 and AS400, in a tracert, this is what I get:
00000027:087264 mod_jk: jk_connect.jk_open_socket() try to connect socket = 25

00000027:087360 mod_jk: jk_connect.jk_open_socket() after connect ret = -1

00000027:088248 mod_jk: jk_connect.jk_open_socket() failed errno = 3425

TRCTCPAPP Output

00000027:088336 mod_jk: jk_ajp13_worker.connect_to_tomcat() failed errno = 3425

00000027:088384 mod_jk: jk_ajp13_worker.service() Error connecting to the Tomcat process.

00000027:088392 mod_jk: jk_ajp13_worker.done() Into

00000027:088400 mod_jk: jk_handler() exit with HTTP_INTERNAL_SERVER_ERROR


Anyone have any ideas?
12 years ago