Port configuration of a server application on linux

Hello,
I am developing a server application. I am using Eclipse as the development environment. I am working on Linux Fedora 1.5. And as servlet container I am using Apache-Tomcat 5.5.
When I run my project on the server with default values it works fine. Here is the address I am using:
http://localhost:8080/ProjectName/ServletName
However, I want my project to work on port 80.
First of all, in order to make this modification do I need to have root rights?
I configured project settings on Eclipse so that the application later will listen to requests on port 80. But somehow it didn't work. I am wondering if I am missing sth or not. Can someone share his/her experience with me pls..?
Thanks & Regards

Hi!
Thank a lot for the answer. I solved the problem. Eclipse said that the port 80 is already in use, so I concantrated on this. However, i tried to run the tomcat server as root (in linux) and it worked at this time. The problem was usage right. nothing was running on port 80 actually, but I couldn't understand why Eclipse said so.
And the command 'lsof -i :80'. I don't know this command. I tried to run it but I got a command not found error. I tried both as normal user and root. Did you write a letter wrong in this command..? Or am I doing sth wrong here? Why didn't it work out? Since I am not that good in linux, I would like to learn this command. Sth very important I guess..
Thanks & Regards

Similar Messages

  • Port number of a server application.

    I have a server running on an IP address but i am unable to find
    out on which port is this running.
    How can I know the port on which the server is running?
    If I ping to the server,I get the IP address only.

    Check the configuration file?
    Check the code?
    Do a netstat on the machine?
    Port scan?

  • Choosing a port for Client/Server applications

    Just going through the Sun tutorials and trying to establish a connection. In the KnockKnockClient example program they have initiated a new Socket with a server name and port number as follows:
    kkSocket = new Socket("taranis", 4444);I've changed the taranis to "127.0.0.1" and port number to something random that is unused (37838) but I still get an IOException.
    Are there any particular ports I can use on my local machine to get the programs up and running?

    spencer.bowman wrote:
    Just going through the Sun tutorials and trying to establish a connection. In the KnockKnockClient example program they have initiated a new Socket with a server name and port number as follows:
    kkSocket = new Socket("taranis", 4444);I've changed the taranis to "127.0.0.1" and port number to something random that is unused (37838) but I still get an IOException.
    Are there any particular ports I can use on my local machine to get the programs up and running?The port you specify in the client is not a random port. It's the port of the listening server application (server socket).

  • Basic configuration question on Server port configuration

    Hi,
    I'm a newbie in Cisco configuration. Using the Cisco 7604 load balancer, wanted to acheive two things firstly single ip for the applications and the failover of my servers.
    Configuration description
    I have an Application client connected to the vserver configuration (LAVSERV) on Cisco 7604 Load Balancer and two servers (JBoss) S1 and S2 configured to the real ip as configured in the serverFarm. All the three systems (Load Balancer,S1 and S2) are in the same LAN.
    IOS configuration details
    ip slb serverfarm LA
    nat server
    predictor leastconns
    real 10.2.11.11
    weight 255
    inservice
    real 10.2.11.211
    weight 255
    inservice
    ip slb vserver LAVSERV
    virtual 10.2.11.141 255.255.255.0 tcp 1813
    serverfarm LA
    no advertise
    idle 65535
    inservice
    When I try connect to my servers through the client application I get connection exception. Basically I'm telling my client application to connect to webservice url http://10.2.11.141:1813. Due to the configuration on Load Balancer for servers, Load balancer should route my request to either of the Servers S1 or S2.
    I have a doubt here, have not mentioned the port anywhere on which my JBoss (S1 or S2) is running.Is beacuse of this I'm getting connection exception, if yes, kindly let me know how to configure the port along with the real server IP.
    Thanks in advance
    Sanjeev.

    Hi,
         I have moved my client to the system in other LAN, current client ip is 10.232.66.67.
    and my current configs in 7604 are follows
    Router#show ip slb serverfarm
    server farm      predictor           nat   reals   bind id  interface(s)
    LA             LEASTCONNS          S     2       0       
    Router#show ip slb vserver
    slb vserver      prot  virtual                  state         conns    interface
    (s)
    LAVSERV        TCP   10.232.11.239/32:8080    OPERATIONAL   0       
    Router#show ip slb real
    real                  farm name        weight  state          conns
    10.232.11.11          LA               255     OPERATIONAL    0
    10.232.11.211         LA               255     OPERATIONAL    0
    Now on both the real servers I see the request is coming but still the request doesn't reach my application (JBoss).
    $ netstat -plan | grep :80
    tcp        0      0 10.232.11.11:8080           10.232.66.67:6307           SYN_RECV    -                 
    $ netstat -plan | grep :80
    tcp        0      0 10.232.11.211:8080           10.232.66.67:6307          SYN_RECV    -                 
    During the client application invocation I see the following changes in the detail ouput of 7604. From the wireshark logs (attached pic) I could see the request (SYN) goes to the servers but servers are not responding. My server application doesn't respond because it has not got the request. 7604 invokes 11.11 it doesn't respond to SYN request so it invokes 11.211.
    LAVSERV, state = OPERATIONAL, v_index = 7, interface(s) =
      virtual = 10.232.11.239/32:8080, TCP, service = NONE, advertise = TRUE
      server farm = LAMP, delay = 10, idle = 65535
      sticky:
      sticky: group id = 0
      synguard counter = 0, synguard period = 0
      conns = 1, total conns = 30, syns = 94,  syn drops = 0
      standby group = None
    Router#show ip slb serverfarm name LAMP de
    LA, predictor = LEASTCONNS, nat =SERVER, interface(s) =
      virtuals inservice: 1, reals = 2, bind id = 0
      Real servers:
        10.232.11.11, weight = 255, OPERATIONAL, conns = 1
        10.232.11.211, weight = 255, OPERATIONAL, conns = 0
      Total connections = 1
    Router#show ip slb serverfarm name LAMP de
    LA, predictor = LEASTCONNS, nat =SERVER, interface(s) =
      virtuals inservice: 1, reals = 2, bind id = 0
      Real servers:
        10.232.11.11, weight = 255, OPERATIONAL, conns = 0
        10.232.11.211, weight = 255, OPERATIONAL, conns = 1
      Total connections = 1
    If my client application talk to the real servers directly my server application gets invoked and client get the reply.
    But same is not happening through the 7604.
    Only change I do on my client config file is just uncomment the 7604 vip or the real ip for my client to connect:
    #for real server
    #webservice.url: http://10.232.11.11:8080
    #for 7604
    webservice.url: http://10.232.11.239:8080
    I feel the packets which are reaching my real server through 7604 are not proper so my server application doesn't get invoked.
    Sanjeev

  • Configuration Iplanet web server 6.1 to SunOne Application Server 7

    Hi,
    Does anybody know how to configure url forwarding from web server to application server?
    I'm trying with url forwarding, but it doesn't work with post method.
    I found articules talking about this problem, but not resolution, well, I found a note about "web connector plugin" but I don�t know how to see if, it was installed and , if it isn't, how to install and configure.
    Web Server version is 6.1 and Application Server is 7
    Thanks in advance
    Thanks

    Thanks,
    I modified magnus.conf and obj.conf. I was followed instructions but when I try to access, I get an error 500.
    My web server is listening on port 82 and my appserver is listening on port 4849.
    web server: http://sunesma3:82
    app server: http://sunesma3:4849/otic
    I send magnus.conf and obj.conf
    MAGNUS.CONF
    # The NetsiteRoot, ServerName, and ServerID directives are DEPRECATED.
    # They will not be supported in future releases of the Web Server.
    NetsiteRoot /disco10/iplanet61
    ServerName ObsMAP
    ServerID https-ObsMAP
    RqThrottle 128
    DNS off
    Security off
    PidLog /disco10/iplanet61/https-ObsMAP/logs/pid
    User root
    StackSize 131072
    TempDir /tmp/https-ObsMAP-b676d73f
    Init fn=flex-init access="$accesslog" format.access="%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%] \"%Req->reqpb.clf-request%
    \" %Req->srvhdrs.clf-status% %Req->srvhdrs.content-length%"
    Init fn="load-modules" shlib="/disco10/iplanet61/bin/https/lib/libj2eeplugin.so" shlib_flags="(global|now)"
    Init fn="load-modules" shlib="/disco10/iplanet61/plugins/passthrough/bin/libpassthrough.so" funcs="init-passthrough,auth-passthrough
    ,check-passthrough,service-passthrough" NativeThread="no"
    Init fn="init-passthrough"
    OBJ.CONF
    # You can edit this file, but comments and formatting changes
    # might be lost when the admin server makes changes.
    <Object name="passthrough">
    ObjectType fn="force-type" type="magnus-internal/passthrough"
    PathCheck fn="deny-existence" path "*/WEB-INF/*"
    Service type="magnus-internal/passthrough" fn="service-passthrough" servers="http://sunesma3:4849"
    </Object>
    <Object name="default">
    AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
    NameTrans fn="ntrans-j2ee" name="j2ee"
    NameTrans fn="pfx2dir" from="/mc-icons" dir="/disco10/iplanet61/ns-icons" name="es-internal"
    NameTrans fn=assign-name" from="/*" name=passthrough"
    NameTrans fn="document-root" root="$docroot"
    PathCheck fn="unix-uri-clean"
    PathCheck fn="check-acl" acl="default"
    PathCheck fn="find-pathinfo"
    PathCheck fn="find-index" index-names="index.jsp,index.html,home.html,index.jsp"
    ObjectType fn="type-by-extension"
    ObjectType fn="force-type" type="text/plain"
    Service method="(GET|HEAD)" type="magnus-internal/imagemap" fn="imagemap"
    Service method="(GET|HEAD)" type="magnus-internal/directory" fn="index-common"
    Service method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file"
    Service method="TRACE" fn="service-trace"
    Error fn="error-j2ee"
    AddLog fn="flex-log" name="access"
    </Object>
    <Object name="j2ee">
    ObjectType fn="force-type" type="text/html"
    Service fn="service-j2ee" method="*"
    </Object>
    <Object name="cgi">
    ObjectType fn="force-type" type="magnus-internal/cgi"
    Service fn="send-cgi" user="$user" group="$group" chroot="$chroot" dir="$dir" nice="$nice"
    </Object>
    <Object name="es-internal">
    PathCheck fn="check-acl" acl="es-internal"
    </Object>
    <Object name="send-compressed">
    PathCheck fn="find-compressed"
    </Object>
    <Object name="compress-on-demand">
    Output fn="insert-filter" filter="http-compression"
    </Object>

  • Weblogic Admin server port configuration

    Hi All,
    I want to configure the Admin server port from 7001 to 80. Since I cant access Admin console, can we change this using the config files.If so, which file I need to
    modify.
    Environment: Oracle Enterprise Linux
    Pl. provide me some inputs.
    THanks
    Raj

    Hi Raj
    1. By default when you create a Weblogic Domain and choose all the defaults, it uses default port as 7001. There will NOT be any entry for this in config.xml file. Look for the file named config.xml file under yourDomain/config/ folder. You will not find any word like "7001" most of the times.
    The entries related to this section are something like this in addition to extra tags between <server>...</server> for example:
    <server>
    <name>yourAdminServerName</name>
    <listen-address/>
    </server>
    2. Take a back up of config.xml file. Make sure Server is not running. If someting goes wrong, use this backup config.xml file to restart the server.
    3. Carefully edit config.xml file, the contents inside the above tag <server>...</server> by adding a new attribute as shown below by name <listen-port>
    <server>
    <name>DefaultServer</name>
    <listen-port>80</listen-port>
    <listen-address></listen-address>
    <tunneling-enabled>true</tunneling-enabled>
    </server>
    All you do is add this one line: <listen-port>80</listen-port> within the <server>...</server> tags.
    Restart the server. Access the weblogic console like this now http://localhost:80/console or http://localhost/console (port 80 is default and we do not need to type it manually).
    Thanks
    Ravi Jegga
    NOTE: You can change the port from Admin Console also, siince you mentioned you do not have access to console, you can manually edit config.xml file.

  • FPN configured for message server port

    Hello,
    I would like to configure my Consumer Portal to connect to my Producer on port :8101 (the default message server port of the Producer).  However, each time I try with this conifguration FPN breaks and nothing works - can't browse the PCD or see remote roles via Identity Management (when I switch the config back to point to port :50000 in the Producer object on the Consumer it works fine again).  I'm not using a SAP web dispatcher between the two portals but Producer portal is indeed listening on port :8101 since I can hit it directly.  Is this a limitation of FPN?
    My http trace shows an ABORT message when trying to connect with the :8101 configuration.
    The 8101 port is necessary to be configured in order to leverage our clustered load balanced environment which has the 8101 message server port listening and redirecting to a cluster of servers.
    Patrick

    When using Remote Delta Links one can configure the SAP Message Server's RMI-P4 port (3901 by default) for RMI-P4 communication.
    For the HTTP load balancing you cannot configure it to point to the HTTP port of SAP Message Server (8101 by default) only the application server's HTTP port on the Central Instance (e.g. 50000) can be used.
    But don't bother yourselves with this, because SAP recommends using SAP Webdispatcher for HTTP load balancing in FPN scenario, so don't use SAP Message Server directly for HTTP load balancing in the FPN connection setup!

  • Vhost configuration for Adobe Media Server running under linux.

    Please help me with Vhost configuration for Adobe Media Server running under linux.
    I was running a media sharing website for which I wanted to use Adobe Media Server.
    To use, AMS, I disabled the already installed Apache server and installed AMS along with the built in Apache server. I could successfully install AMS and could login to AMS Admin Console through my IP number.
    My existing website, www.mydomain.com is having its contents located at:
    /home/mydomain/public_html
    (Directory created under the old version of Apache not bundled with AMS)
    Users will be uploading their videos, which will get transcoded and will be delivered to the website visitors in the existing scenario.
    To use this website with AMS, this is what I did:
    I created a folder for my domain, www.mydomain.com as below
    /opt/adobe/ams/conf/_defaultRoot_/www.mydomain.com
    Copied Application.xml and Vhost.xml from /opt/adobe/ams/conf/_defaultRoot_/   and pasted them in /opt/adobe/ams/conf/_defaultRoot_/www.mydomain.com
    In the Application.xml file there are 2 entries:
    <Alias name="mydomain.com"></Alias>
    <AppsDir>${/home/mydomain/public_html}</AppsDir>
    Please help me with further steps to be completed:
    Do I need to create a separate VirtualHost entry in the Apache installed with AMS?
    If yes, can I specify already existing document root for my website (/home/mydomain/public_html) or do I need to create a separate folder under webroot/Apache ?
    If yes to point 2 above, then do I need to copy all the existing contents from /home/mydomain/public_html to the newly created folder ?
    I hope, I can serve all my static contents like html pages and php and media like video/audio. In that case do I need create alias to my Media/Alias folder or AMS will automatically start streaming when a video/audio is requested ?
    What other steps do i need to complete?
    Any help in this regard would be highly appreciated.
    Thanks and Regards

    Dear sir or madam,
    Here is Letswin Technology, which specializes in global servers, web hosting, VPS, VPNj. If anything I can do for you, pls contact us!
    Have a nice day!

  • Problem while configuring webutil on oracle application server 10g(9.0.4)

    hi,
    I have configured webutil with oracle application server 10g(9.0.4).JInitiator 1.3.1.17 is installed.
    I did everything according to webutil manual.Then i developed a form using developer suit 10g (9.0.4).
    and successfully compiled and attached webutil library.then i subclass
    webutil object group from webutil.olb into my form,that is also
    subclassed successfully.Form has also been compiled and saved
    successfully.
    also configured my formsweb.cfg,forms90.conf,default.env according to webutil documentation.
    {color:#993366}Now when i run this form from client, it does not show form in the
    browser and shows a message on the client browser console as follows{color}.
    {color:#0000ff}*Applet oracle.forms.webutil.common.RegisterWebUtil*
    {color} {color:#993366}After this message,It does nothing and if i refresh browser,it shows following message in the browser' Console.{color}
    {color:#0000ff}*Applet oracle.forms.engine.Main notinited.*{color}
    Note:In the browser ,loading java applet is also visible.
    how should i resolve this problem?
    any suggestion?
    Its urgent.
    Regards,
    abbasyazdani

    Refer this metalink note,
    566628.1 How To Install Webutil on 10g Oracle AS
    [email protected]

  • How to configure single web server instance to multiple application servers..

    Hi all,
    we are running single instance of IWS6.0 SP2 on solaris, we want to comfigure this single instance to multiple application servers(JRun). Can any one advise me whether it is possible to do.
    Thanks
    Raj

    Hi Raj,
    "how to configure single web server instance to multiple application servers.."
    It's not possible for setting up multiple applicataion servers for Single iWS instance.
    Thanks,
    Dakshin.

  • Anybody installed Sun Application Server 7 in linux 8 or linux 9

    hi all
    i am not able to install Sun one Application Server 7 in linux 8.
    i am able to install Sun one Application Server 7 in linux 9 but while starting using command like this
    /asadmin start-appserv
    Instance domain1:admin-server already started
    Could not start the instance: domain1:server1
    server failed to start: abnormal subprocess termination
    Could not start one or more instances in the domain : domain1
    Could not start one or more domains
    if anybody installed sun one applicaton server7 in linux 9 ,pls help me .
    And also do not know linux 9 support sun one applicaton server7 or not .
    replay me

    Which Linux distro? Red hat?

  • Help trying to locate local server applications directory in configuration manager

    I am going through the configuration of lifecycle and I have no idea where the locaql server applications directory is.  Can anyone provide some hints.

    I don't know if this will help or not, but with an executable jar file, the classpath is handled differently. All classes are expected to be contained in the jar and external classpath info is ignored. This may also be true in your case if the files are being accessed in that manner. You could try it out quickly by moving the policy and conf files into the jar and dropping the path info.
    If that works, you can decide whether or not you want it packaged that way.
    If it doesn't work, try unpacking the jar file and running it that way, instead of the executable jar. Again, if that works, you can decide how you want to package your app based on that information.

  • HELP!!: Two server application instances could work in the same port?

    Hi everybody!!!
    i have two server application instances over the same JVM and both of them need to get requests from the same port, how can i get this??
    I`m not interested on using RMI, and i wouldn`t like to use sockets, because i have already using XML-RPC, so if you can tell me how can i get this without using sockets nor RMI, please help me...
    I don�t if there any way using threads??
    thanks a lot,
    JCPARRAM

    Two sockets can't be bound to the same port on the same machine at the same time. This means that one application can't have two sockets listening on the same port and that two applications can't each have a socket listening on the same port (no matter what language they are written in, and, if they are in Java, no matter whether they are on the same JVM or not).
    Your only solution is to make one of the server applications listen on a different port.

  • How to configure webutil in oracle application server 10g (9.0.4)?

    hi,
    i want to configure webutil for oracle application server 10g(9.0.4).
    how should i start?
    i have read the webutil mannual.it is bit tricky.
    i want step by step configuration.
    Any sort of help is appriciateable.
    Regards,
    abbasyazdani

    hi,
    In webutil directory structure,there r four folders,
    {color:#0000ff}doc
    java
    server
    webutil{color}
    and there are three files.
    {color:#0000ff}webutil.pll,webutil.old and create_webutil_db
    {color}
    In webutil mannual,it is written that we should extract this folder to forms90.
    But in forms90, there are {color:#0000ff}server and java folders.
    {color:#000000}should i replace forms90's sever and java folder with webutil's server and java folder?
    what should i do for this ?
    regards
    abbasyazdani
    {color}{color}

  • How to configure Sun Java System Application Server Enterprise Edition 8.1

    hi all,
    How to configure Sun Java System Application Server Enterprise Edition 8.1 to my IDE..( jstudio)
    I have installed jes for my windows system.. so that i have removed platform version of Application Server..
    I try to add the Enterprise application Server (Sun Java System Application Server Enterprise Edition 8.1) to JStudio IDE..
    but i couldn't;

    Configuring your IDE to integrate with Sun App Server is something you probably will have to ask in some sort of JStudio forum. Other than for Netbeans, Eclipse, or possibly IntelliJ IDEA, you might not have much luck answering an IDE question here. I could be wrong though. Maybe somebody will have an answer for you and set me straight.

Maybe you are looking for

  • Why can't iCal send out invitees??

    Well, nothing has changed, and nothing has been fixed, so here's a restatement of my problem. I get lost is all the tech talk. However, put simply, here's my simple problem that Apple never figured out either! Bottom line - as soon as iCloud is intro

  • ORA-19571: archived-log recid 118360 stamp not found in control file - help

    Hi Every backup I do I am getting an error like below at the bottom :, every backup I do, it's complaaining about DIFFERENT archive log. ORA-19571: archived-log recid 118360 stamp 705446770 not found in control file. I have set keep control file info

  • DTEXEC does not fail when SSIS package fails

    I need to run my SSIS 2012 packages through the catalog with DTEXEC. This works very well, except that if my SSIS package fails, DTEXEC does not fail. I need DTEXEC to fail, so my scheduler knows that there is an error. I use the following command: d

  • Business Process Flows

    Dear Gurus, This is Keerthi and am working for utility client in the UK.  We are designing and developing SAP ISU as their business application.  They have a requirement of developing business process flows (step by step procedure flow chart) for var

  • Deep-linking SEO problem

    It used to be that you could create multiple entry points to a single SWF using a sitemap. For instance, you could define url such as http://www.example.com/store?product=100 and have that url return HTML content with the description of the product f