This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Tomcat 5.0 and AS400 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 5.0 and AS400" Watch "Tomcat 5.0 and AS400" New topic
Author

Tomcat 5.0 and AS400

jay lopes
Greenhorn

Joined: Jul 17, 2008
Posts: 7
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?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61457
    
  67

Welcome to the Ranch, jay.

Have you tried checking the ports yet? Tomcat runs on port 8080 by default, but that can be overridden in server.xml. It's frequently changed to port 80, which other servers like the Apache Web Server also wants to use.

Port contention is one of the most probable causes of Tomcat start-up failures so it's one of the first things to check.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
jay lopes
Greenhorn

Joined: Jul 17, 2008
Posts: 7
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat 5.0 and AS400