www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Budar-Danoff <Jonathan.Budar-Dan...@compaq.com>
Subject mod_jserv/5270: unable to use servlets on non-default port
Date Mon, 08 Nov 1999 18:25:31 GMT

>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
>Originator:     Jonathan.Budar-Danoff@compaq.com
>Release:        1.3.9 + 1.1b1
(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
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.
Compile using the DEC C compiler on an AlphaServer running Digital Unix 4.0f.
Change definition from:<p>

static const char null_b[2] = "\xff\xff";<p>


static const char null_b[2] = { 0xff, 0xff };
[In order for any reply to be added to the PR database, you need]
[to include <apbugs@Apache.Org> 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!     ]

View raw message