>Number: 5270 >Category: mod_jserv >Synopsis: unable to use servlets on non-default port >Confidential: no >Severity: serious >Priority: medium >Responsible: jserv >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Mon Nov 8 10:30:01 PST 1999 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.3.9 + 1.1b1 >Environment: (1) DEC AlphaServer 1000, Digital Unix 4.0f, JDK 1.2.1, JSDK 2.0 (2) Sun SPARCstation 10, Solaris 2.6, JDK 1.2.2, JSDK 2.0 >Description: I was unable to use servlets on any port other than the default 8007 while testing code on my Solaris workstation. Everything else worked, so I just shrugged it off.<p>
However, when I moved the code over to the production system and tried to build it, the DEC C compiler whinged about the definition of the static const char null_b[2] in the ajpv12_sendnbytes() function in jserv_ajpv12.c, saying that the string value was too long by 5 bytes.<p> Bonus: running servlets on a non-default port now works. >How-To-Repeat: Compile using the DEC C compiler on an AlphaServer running Digital Unix 4.0f. >Fix: Change definition from:<p> static const char null_b[2] = "\xff\xff";<p> to:<p> static const char null_b[2] = { 0xff, 0xff }; >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include <[EMAIL PROTECTED]> in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]