0 Replies Latest reply on Jan 12, 2004 1:07 AM by leeharris

    Socket access to a servlet in JBoss3.2.3/Coyote

    leeharris Newbie

      I am migrating a web application from Jboss 2.4.4/Tomcat4.0.1 to JBoss-3.2.3. The app is working fine, but it's having trouble communicating with an 'external' C++ app. The external app provides a special service to the web app, and to do so needs to provide the web app with an ip address and port through which it will receive requests. In the old version, I could programmatically send something like the following to the web application's port 80 (which I reconfigured from 8080 in ..\jbossweb-tomcat41.sar\META-INF\jboss-service.xml):

      GET /theService?parm1=x&parmy=y

      My web.xml file contains something like:

      In the JBoss-3.2.3 version, the servlet seems never to get called, as if the pattern isn't recognized. If, however, I paste something like the following into a browser address, it does trigger the servlet:


      The server appears to accept the programmatic request - after about 10 seconds a 'read' operation from the external program completes with a 0 status.

      Looking at the stack trace when I use the browser to submit the request, I notice that the request is going through a security layer of some kind, so I'm wondering if there's a security aspect to this, where the request received from the browser is okay, but the request from the external program is not.

      In any case, any ideas, suggestions, etc. would be really appreciated. Everything is running on the same Windows XP box at the moment.