Message: The following issue has been closed.
--------------------------------------------------------------------- View the issue: http://issues.apache.org/jira/browse/CACTUS-14 Here is an overview of the issue: --------------------------------------------------------------------- Key: CACTUS-14 Summary: WebRequest.setURL doesn't parse port correctly Type: Bug Status: Closed Priority: Major Resolution: DUPLICATE Project: Cactus Components: Framework Fix Fors: 1.3 Versions: 1.1 Assignee: Vincent Massol Reporter: Rick Wood Created: Fri, 2 Nov 2001 1:14 PM Updated: Sat, 17 Apr 2004 9:21 AM Environment: Operating System: Windows NT/2K Platform: PC Description: We're using Cactus 1.2, Servlets 2.2 (jakarta-cactus-22-1.2), downloaded 10/31/01. We're also using Weblogic 5.1. Weblogic is listening on port 7001. The testURL attribute to the Ant runservertests task is http://localhost:7001/test/. Ant is connecting just fine. We connect to the /test context rather than /, because otherwise the application will go to a lot of work (database access, etc.) when it is only being pinged by runservertest. Once on the server side, we want to connect to the application at http://localhost:7001/. To do this, we call theRequest.setURL("localhost:7001", "", "", "", ""); in a beginConnect() method (which precedes a testConnect() method(). The problem we were seeing was that in testConnect(), the simulated URL was showing up as http://localhost::7001. In other words, 2 colons between host and port. We edited org/apache/cactus/ServletURL.java, and in method getHost(), changed host = host.substring(0, pos + 1); to host = host.substring(0, pos); This seemed to fix the problem. Now, I am new to Cactus, and may be missing something. However this should be easy to replicate (or not ...), using one of the unit tests (TestServletTestCase4.java?). Thanks, Rick Wood --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
