1 Reply Latest reply on Feb 12, 2011 6:10 AM by Victor Usamah

    Urgent!!!! Need help with JBoss.

    dennis labajo Newbie

      Hello. I'm using IIS for legacy MS applications and would like to integrate Jboss for a new Java application. I've read a lot of documentations and guides from different sites but have not been successful. Any help would be appreciated.

      Here's what I've done so far:

      As a first step and to prove IIS-JBoss integation is possible, I attempted to integrate IIS and Tomcat 4.1.12 using the guide from http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/. I was very successfull doing this. I can access a deployed web application both from the IIS port 80 and tomcat's 8080 port. I turned on the debug parameter in my system's registry for the isapi redirector and confirmed that IIS does redirect requests into tomcat. Here's the last few lines of the debug log:

      [Sun Dec 08 22:19:50 2002] [jk_uri_worker_map.c (368)]: Attempting to map URI '/greeting/index.jsp'
      [Sun Dec 08 22:19:50 2002] [jk_uri_worker_map.c (391)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 -> /greeting/
      [Sun Dec 08 22:19:50 2002] [jk_isapi_plugin.c (617)]: HttpFilterProc [/greeting/index.jsp] is a servlet url - should redirect to ajp13
      [Sun Dec 08 21:52:51 2002] [jk_isapi_plugin.c (639)]: HttpFilterProc check if [/greeting/index.jsp] is points to the web-inf directory
      [Sun Dec 08 21:52:51 2002] [jk_isapi_plugin.c (679)]: HttpExtensionProc started
      [Sun Dec 08 21:52:51 2002] [jk_worker.c (123)]: Into wc_get_worker_for_name ajp13
      [Sun Dec 08 21:52:51 2002] [jk_worker.c (127)]: wc_get_worker_for_name, done found a worker
      [Sun Dec 08 21:52:51 2002] [jk_isapi_plugin.c (701)]: HttpExtensionProc got a worker for name ajp13
      [Sun Dec 08 21:52:51 2002] [jk_ajp13_worker.c (865)]: Into jk_worker_t::get_endpoint
      [Sun Dec 08 21:52:51 2002] [jk_ajp13_worker.c (775)]: Into jk_endpoint_t::service
      [Sun Dec 08 21:52:51 2002] [jk_ajp13.c (403)]: Into ajp13_marshal_into_msgb
      [Sun Dec 08 21:52:51 2002] [jk_ajp13.c (537)]: ajp13_marshal_into_msgb - Done
      [Sun Dec 08 21:52:51 2002] [jk_ajp13_worker.c (206)]: sending to ajp13 #310
      [Sun Dec 08 21:52:51 2002] [jk_ajp13_worker.c (645)]: send_request 2: request body to send 0 - request body to resend 0
      [Sun Dec 08 21:52:51 2002] [jk_ajp13_worker.c (258)]: received from ajp13 #54
      [Sun Dec 08 21:52:51 2002] [jk_ajp13.c (584)]: ajp13_unmarshal_response: status = 200
      [Sun Dec 08 21:52:51 2002] [jk_ajp13.c (591)]: ajp13_unmarshal_response: Number of headers is = 1
      [Sun Dec 08 21:52:51 2002] [jk_ajp13.c (634)]: ajp13_unmarshal_response: Header[0] [Content-Type] = [text/html;charset=ISO-8859-1]
      [Sun Dec 08 21:52:51 2002] [jk_isapi_plugin.c (344)]: Into jk_ws_service_t::start_response
      [Sun Dec 08 21:52:51 2002] [jk_ajp13_worker.c (258)]: received from ajp13 #390
      [Sun Dec 08 21:52:51 2002] [jk_isapi_plugin.c (478)]: Into jk_ws_service_t::write
      [Sun Dec 08 21:52:51 2002] [jk_ajp13_worker.c (258)]: received from ajp13 #2
      [Sun Dec 08 21:52:51 2002] [jk_isapi_plugin.c (713)]: HttpExtensionProc service() returned OK
      [Sun Dec 08 21:52:51 2002] [jk_ajp13_worker.c (549)]: Into jk_endpoint_t::done
      [Sun Dec 08 22:06:36 2002] [jk_uri_worker_map.c (177)]: Into jk_uri_worker_map_t::uri_worker_map_free
      [Sun Dec 08 22:06:36 2002] [jk_uri_worker_map.c (332)]: Into jk_uri_worker_map_t::uri_worker_map_close
      [Sun Dec 08 22:06:36 2002] [jk_worker.c (109)]: Into wc_close
      [Sun Dec 08 22:06:36 2002] [jk_worker.c (111)]: wc_close, done

      After confirming that the redirection works, it was time for me to try integrate IIS with JBOSS.

      I downloaded and installed JBOSS 3.0.4 with Tomcat 4.1.12 and was able to access jmx-console from my browser. I hot-deployed the web-client example from http://sammaher.com/jboss/ and confirmed that jboss installation is running fine.

      I went through the isapi_redirect step-by-step guide again and made necessary adjustments to suit my jboss installation. I stopped the first tomcat service i installed earlier and I was very careful to make sure that the new isapi_redirect configuration talks with the tomcat from jboss. I changed my registry and IIS settings and also edited uriworkermap.properties for the web application redirect. As a last step, i added the following configuration in the tomcat41-service.xml file so it can receive redirect requests.



      After rebooting my machine, I started jboss and I see the new Connector port starting (which is good!). I test the web-client again from port 8080 (http://localhost:8080/web-client). It still works. But when I try to access it using port 80 (via IIS), I get a 404 error (page not found). The isapi_redirect debug log shows the following message:

      [Sun Dec 08 23:25:02 2002] [jk_uri_worker_map.c (368)]: Attempting to map URI '/web-client/index.jsp'
      [Sun Dec 08 23:25:02 2002] [jk_uri_worker_map.c (391)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 -> /web-client/
      [Sun Dec 08 23:25:02 2002] [jk_isapi_plugin.c (617)]: HttpFilterProc [/web-client/index.jsp] is a servlet url - should redirect to ajp13
      [Sun Dec 08 23:25:02 2002] [jk_isapi_plugin.c (639)]: HttpFilterProc check if [/web-client/index.jsp] is points to the web-inf directory
      [Sun Dec 08 23:25:02 2002] [jk_uri_worker_map.c (177)]: Into jk_uri_worker_map_t::uri_worker_map_free
      [Sun Dec 08 23:25:02 2002] [jk_uri_worker_map.c (332)]: Into jk_uri_worker_map_t::uri_worker_map_close
      [Sun Dec 08 23:25:02 2002] [jk_worker.c (109)]: Into wc_close
      [Sun Dec 08 23:25:02 2002] [jk_worker.c (111)]: wc_close, done


      Analyzing this log and comparing it with the first one at the top, IIS does a good job of redirecting. However, JBoss (or Tomcat with JBoss) does not seem to recognize or receive the request.

      Has anybody ever been successful integrating IIS with JBoss? Is there more settings other than the tomcat41-service.xml? Any help would be appreciated.

      If I cant get this to work, I'm thinking of using JONAS. Has anybody here evaluated/used Jonas? Any recommendations?

      Thanks.

      dnz