HOW TO FIND Web Server  ...?

when i try to find web server (tomcat ) on my computer with the program below ... iam getting the output like this ....
Web server of sitehttp://localhost:8080is null
note : my tomcat is running at http://localhost:8080
can anyone help me out .....
import java.io.*;
import java.net.*;
public class findServer
public static void main(String a[])
try
URL u=new URL(a[0]);
System.out.println("Web server of site"+a[0]+"is-"+u.openConnection().getHeaderField ("Server"));
catch(Exception e)
System.out.println(e);
thanx

The tomcat won't send the "Server" field; it will send you
the "Servlet-Engine" field instead. This should work:
private static final String getWebServerInfo(String url)
  try
    URL u = new URL(url);
    String server = u.openConnection().getHeaderField("Server");
    if(server == null) server = u.openConnection().getHeaderField("Servlet-Engine");
    return server == null ? "Unknown (got null)" : server;
  catch(Throwable t) { return "Unknown (got exception: " + t.toString() +")"; }
}

Similar Messages

  • How to find out server name in reports9i

    hi all
    how to find out server name in reports9i
    i need the report server name to call a report
    thanks
    Edited by: vikas singhal on Nov 5, 2008 1:02 AM

    You do not need to do anything, if your Report server is on the same machine as the Forms server (which is usually the case) you simply use the url as
    /reports/rwservlet?report=myreport' and the server will automatically use the default report server.
    then you simply use
    web.show_document('/reports/rwservlet?userid=scott/tiger@orcl&report=myreport&desformat=htmlcss&desname=test.html'Tony
    Try it now
    Edited by: Tony Garabedian on Nov 5, 2008 2:00 PM

  • How to find sql server backup was taken under compression mode

    Hello,
    How to find SQL server backup was taken under compression mode ? I have disabled the Compress Mode backup setting but I want to make sure the backup is taken without compression.
    Is there a script for that?
    Thanks
    JK

    I have disabled the Compress Mode backup
    That is only a default setting, in backup command you can always overwrite it to a different value.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • How to change web server from inbuilt Tomcat to IIS in already configured Cold Fusion 10

    how to change web server from inbuilt Tomcat to IIS in already configured Cold Fusion 10

    You just need to run the Web Server Configuration Tool to connect ColdFusion to IIS.  It can be found in the ColdFusion program group off of the Start menu.  Be sure to run it "As Administrator".
    -Carl V.

  • Cockpit- How to find B1i Server Address

    Hi,
    I am trying to enable Dashboard. It is asking for B1i Server address. I have tried "http://127.0.0.1:8080/B1iXcellerator/exec/ipo/vP.001sap0004.in_HCSX/com.sap.b1i.vplatform.runtime/INB_HT_CALL_SYNC_XPT/INB_HT_CALL_SYNC_XPT.ipo/proc" but it gave me an error message that it is unable to connect. Does anybody know how to find B1i server address?
    Thanks.
    Abdul...

    Abdul,
    Instead of using 127.0.0.1 ... try using either the actual B1i Servers IP address or the name of the machine.  You can also review the B1iC troubleshooting guide here ...
    [Guide Deleted 31 OCT 2011 - Contained Out of Date Information]
    Eddy
    Edited by: Jason Lax on Oct 31, 2011 10:48 AM

  • How to find the server connected from multiple switched netwtwork

    I have one server connected to distrubted switch or acces switch  in network .
    They were 45 switches in netwrok and need help how to find that server  connected switch  from  Core switch ?
    How many  mehtodes and process we can use to find that connected physical switch ?
    Thanks in advance !!!

    It's a bit of a tedious process. but if you ping the IP address of the server from the core switch and then check the ARP entry to get its MAC address, you can then trace the address tables in the switches to find the switch that the server is physically connected to. Once you have the MAC address, you'll have to check the address table in each switch in the path between the core and the server to find it.

  • How to find the server hosting office communication ?

    Hello
    How to find the server hosting office communication ?
    Thanks,
    Dom
    System Center Operations Manager 2007 / System Center Configuration Manager 2007 R2 / Forefront Client Security / Forefront Identity Manager

    Hello,
    I have:
    DG URL Internal;https://OCS.ad.xxxxxx.xxxx.xxx/GroupExpansion/Int/service.asmx;--;
    DG URL External;;--;
    Quality Metrics URI;;--;
    URL Internal From Server;https://OCS.ad.xxxxxx.xxxx.xxx/Abs/Int/Handler;--;
    URL External From Server;;--;
    Voice mail URI;sip:[email protected];opaque=app:voicemail;--;
    MRAS Server;;Not Configured;
    GAL Status;https://OCS.ad.xxxxxx.xxxx.xxx/Abs/Int/Handler;--;
    Controlled Phones;TRUE;--;
    PC to PC AV Encryption;AV Encryption Enforced;--;
    Focus Factory;sip:[email protected];gruu;opaque=app:conf:focusfactory;--;
    Telephony Mode;Telephony Mode Disabled;--;
    Line;;--;
    Line Configured From;Auto Line Configuration;--;
    Location Profile;;--;
    Local Log Folder;C:\Users\me\tracing;;
    MAPI Information;MAPI Status OK;MAPI Status OK;
    Inside User Status;TRUE;;
    Auto Update Download Started;--;--;
    Auto Update Download Completed;--;--;
    Last Auto Update Request;--;--;
    Pairing State;Communicator cannot connect to your desk phone because the USB cable is not plugged in. Make sure that you connect the cable.;Enabled;
    I see my email on the sip line but no server... what do I miss?
    Is it by the URL?
    Thanks,
    Dom

  • How to access web server with SSH client

    I need to access my web server via SSH. I do not have clue how to go about. I have transmit for ftp but looks like I cannot use SSH with Tranmit.
    I guess I need to know:
    - What ssh client to I need to get?
    - If not detailed instruction provided How do I go about? I know I need the port # and my ip address and I have both of those but not sure what else I am to do.
    TIA for the help!

    Open up Terminal. It's in the Utilities folder.ssh -p <port#> <ipaddress> or, if you need to log on with a different user namessh -p <port#> <username>@<ipaddress>

  • How to find a server is SSO configured or not

    Hi,
    Recently our server is configured as SSO login.Is there any posbility to find this property whether my server is single signon log in through sql query.And how to find the SSO login url of the server.Is there any profile option to find out these two values.

    You might have better luck on the EBS forum
    General EBS Discussion
    Your DBA or SA should have this information and be able to give it to you. Someone had to configure the servers, etc. to enable SSO.

  • How to find web interface from portal

    hello friends ,
    how to find which web interface is used in portal.Say I have a copy job or delete function which i execute from portal .I want to find the web interface of this copy or delete function so that I can track global planning sequence and planning level where i need to do some amnedment.
    Might be simple for you ppl who worked already on this.
    best regards,
    Ananth.

    1)you can find web interface by  "description " from portal.
    2).from that find the web interface technical name
    3). from transaction code  BPS_WB , you can find functions and planning area used behind it ..

  • How to find SMTP server name on AIX 5.3 ?

    Hi All/Guru
    how can i find SMTP Server name on my aix server which i need to configure E-mail notification for database alerts.
    Thanks in advance.
    Tina

    Check in the file /etc/sendmail.cf

  • How to find web address for SAP GUI for HTML enabled transaction ?

    HI All ,
    I have a transaction and in SE93 , the SAP GUI for HTML checkbox is marked for this transaction .
    I believe we can access this transaction via web .
    How to find URL for this web address ?
    Please advise .
    Regards,
    Ambar Patil .

    can be done through SICF

  • How to edit Webi Server's setting of "stopped 5 times in 60 minutes"

    It is knows that Webi Server will be considered failed while it has stopped 5 times in 60 minutes.
    Could we edit it's setting so that Webi Server could be considered failed while stopped at 6(7,8,...) times at Linux Environment or Windows?

    Yes, If you have rights to "CMC"(Central Management Console) then you can edit all servers properties.
    Thank You!

  • How to find which server is missing a Patch

    So I have a SharePoint 2010 Farm with 10 Servers.  I have been put in charge of making sure all the servers are patched and updated.  I love how SharePoint 2010 has the page:
    http://Server:880/_admin/PatchStatus.aspx.
    However, looking at this page each server has about 100 patches.  Scrolling through this list is difficult to see if one of the servers is missing a patch or has patches that other servers do not.
    Now researching this almost all the answers point to using SCOM.  However, I do not have access to SCOM and our company is cheap and does not want to get it.
    Is there a way to export the information on the PatchStatus.aspx page in Central Admin to and excel spreadsheet?
    Or does anyone see a script that can be used to find the information I need?
    Thank you for any help you can give.
    [email protected]

    Unfortunately I can not.  We are on a closed network for our Sharepoint servers. 
    But its great to hear that I can write a script to read the PatchStatus.aspx page!
    Do you have any reference materials I can read to accomplish this goal.   So far I have not been able to find which commands will read the information.
    [email protected]
    I put together a small article here http://superwidgets.wordpress.com/2014/08/10/getting-information-from-web-pages-via-powershell2/
    to help explain how you can go about extracting information from any web page via Powershell. Hope that helps..
    Sam Boutros, Senior Consultant, Software Logic, KOP, PA
    http://superwidgets.wordpress.com
    (Please take a moment to Vote as Helpful and/or Mark as Answer, where applicable)

  • How to find weblogic Server memory for particular user

    In a weblogic server how can i get the information for each user approximately
    it occupying "x" size of memory...is there any command..so that based on number
    of users i can increse my memory and harddisk space.

    Hi,
    Following sql will help you find the responsibilities associated with the users in oracle applications.
    SELECT frt.RESPONSIBILITY_NAME, furg.end_date
    FROM
    fnd_user_resp_groups furg,
    FND_RESPONSIBILITY fr,
    fnd_responsibility_tl frt,
    fnd_user fu
    WHERE fu.user_name = ‘&&username’
    AND fu.user_id = furg.user_id
    AND furg.responsibility_id = fr.RESPONSIBILITY_ID
    AND frt.responsibility_id = fr.RESPONSIBILITY_ID
    ORDER BY 1
    Cheers...

Maybe you are looking for

  • How to integrate a checkbox in a BAPI visual composer?

    Hi experts!! my problem is taht in Visual Composer i have to create a checkbox, but the only option is a boolean type and when i want to  work in a BAPI i cannot it because the types in ABAP are char's any idea?? thanks in advance regards!!

  • Apex 3.1 2 and popup lov

    I had Popup Key LOV (Displays description, returns key value) in older version of application (Apex 3.0) and it was working fine. Now, when I imported aplication in new version it is not working. In textbox where it is showing selected value is OK, b

  • Inventory Age Structure Analysis

    Hi, I am using PowerPivot of Excel 2013 and trying to accomplish an inventory age structure analysis. I have got a snapshot table "stock_table" with daily updates for products on stock and a custom date table. The columns of the stock table are as fo

  • AQ Adapter correlation

    Hi, Is there any parameter that gets automatically set at the BPEL process instance level when the process is activated by a AQ partnerlink (such as conversation ID , Instance ID) ? Is it possible to declaratively indicate one of the parameters to be

  • How can I define payload authorizations in Runtime Workbench?

    Hi there, I am trying to define JAVA-authorizations in our PI-landscape. My recent problem is that I am trying to give our developers the opportunity to read message payloads in the Runtime Workbench. So far I have only been able to do this with admi