tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: Is there a port limitation on
Date Wed, 17 Nov 2004 22:49:56 GMT

Hi,
It's safe to stick to port above 1024 (below are useful, but restricted
to root for security) and below 32767 (the int size limit on some OSs).

Yoav Shapira http://www.yoavshapira.com
 

>-----Original Message-----
>From: Troy Simpson [mailto:troy_simpson@ncsu.edu]
>Sent: Wednesday, November 17, 2004 5:47 PM
>To: Tomcat Users List
>Subject: Is there a port limitation on
>
>
>Sun Solaris 8
>Tomcat 5.0.19
>Apache 2.0.52
>jk2
>
>Is there a limitation on what ports the AJP/1.3 connector can use?
>When I use the default or port 7999, Apache2 and Tomcat5 work together.
>But when I set the port to 45009,  I get the following error:
>
>==========================================
>The servlet container is temporary unavailable or being upgraded
>Internal Server Error
>The server encountered an internal error or misconfiguration and was
>unable to complete your request.
>
>Please contact the server administrator, systems_helpdesk@ncsu.edu and
>inform them of the time the error occurred, and anything you might have
>done that may have caused the error.
>
>More information about this error may be available in the server error
log.
>
>Additionally, a 500 Internal Server Error error was encountered while
>trying to use an ErrorDocument to handle the request.
>-----------------------------------------------------------------------
----
>-----
>Apache/2.0.52 (Unix) mod_jk2/2.0.2 Server at insight.lib.ncsu.edu Port
80
>===========================================
>
>I'm going to test some other ports.
>
>Here is what my config files look like:
>server.xml
>======================================
><Server port="48005" shutdown="SHUTDOWN" debug="0">
>
>  <GlobalNamingResources>
>    <!-- Used by Manager webapp -->
>    <Resource name="UserDatabase" auth="Container"
>      type="org.apache.catalina.UserDatabase"
>      description="User database that can be updated and saved">
>    </Resource>
>    <ResourceParams name="UserDatabase">
>      <parameter>
>        <name>factory</name>
>
<value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
>      </parameter>
>      <parameter>
>        <name>pathname</name>
>        <value>conf/tomcat-users.xml</value>
>      </parameter>
>    </ResourceParams>
>  </GlobalNamingResources>
>
>  <Service name="Catalina">
>    <!-- HTTP CoyoteConnector -->
>    <Connector address="152.1.79.90" port="8081" />
>
>    <!-- This is here for compatibility only, not required -->
>    <Connector address="127.0.0.1" port="45009" protocol="AJP/1.3" />
>
>    <Engine name="Catalina" defaultHost="localhost">
>      <Logger className="org.apache.catalina.logger.FileLogger" />
>
>      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
>             resourceName="UserDatabase" />
>
>      <Host name="localhost" appBase="webapps" />
>    </Engine>
>  </Service>
></Server>
>=====================================
>=====================================
>jk2.properties:
>===============================
>request.registerRequests=false
>=====================================
>====================================
>workers2.properties file:
>=====================================
># workers2.properties
>
># Shared memory handling. Needs to be set.
>[shm]
>info=Scoreboard. Required for reconfiguration and status with
>multiprocess servers
>file=/global/lunadg/d01/app/apache2/2.0.52/logs/shm.file
>size=1048576
>debug=0
>disabled=0
>version=0
>
># TCP socket
>[channel.socket:localhost:45009]
>info=Ajp13 forwarding over socket
>tomcatId=localhost:45009
>debug=0
>
># Announce a "status" worker
>[status:status]
>info=Status worker. Displays runtime information.
>
>[uri:/jkstatus/*]
>group=status:status
>
># Uri mapping
>[uri:/MediaManager/*]
>info=Map to Luna Insight Media Manager.
>
># Uri mapping
>[uri:/BrowserInsight/*]
>info=Map to Luna Insight BrowserInsight.
>=============================
>
>Thanks,
>Troy
>
>--
>Troy Simpson
>  Applications Analyst/Programmer, OCPDBA, MCSE, SCSA
>North Carolina State University Libraries
>Campus Box 7111 | Raleigh | North Carolina
>ph.919.515.3855 | fax.919.513.3330
>E-mail: Troy_Simpson@ncsu.edu
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message