Just a matter of Host Name ???

I am using stored procedure in MySQL 5
It is working good with when local host
String url = "jdbc:mysql://localhost:3306/" + aDtabase;
     Class.forName("com.mysql.jdbc.Driver");
     DriverManager.getConnection(url, anUser, aPWD);
But not working with IP add
String url = "jdbc:mysql://IP ADD:3306/" + aDtabase;
     Class.forName("com.mysql.jdbc.Driver");
     DriverManager.getConnection(url, anUser, aPWD);

Sure the version on your machine is the same one at "IP ADD"? Maybe your local development environment is later than the prod version.
You don't say what "working good" (sic) and failing look like.
%

Similar Messages

  • OracleVM Manager template 2.2.0 trying change the host name

    Hi,
    I have installed the OracleVM Manager 2.2.0 template
    into an OraclVM Server 2.2.1.
    Reading the OracleVM Manager 2.2.0 install
    instructions "Readme_for_Media_Pack_B59146-01.txt" and doing
    the installation in the interview area, I am asked
    to provide the fully qualified domain name as the
    name of the OracleVM Manager.
    Therefore, I provided something like this.
    ovmmanager.mydomain.mytopdomain
    Later, when I was in the OracleMV Manager,
    I noticed the following.
    Correct information was written in my /etc/hosts file.
    192.168.1.160 ovmmanager.mydomain.mytopdomain ovmmanager
    The case seems however, that unusual information
    was written to the /etc/sysconfig/network file.
    HOSTNAME=ovmmanager.mydomain.mytopdomain
    When I type "uname -a", the results are shown.
    ovmmanager.mydomain.mytopdomain
    I say, "unusual", because most people prefer a single
    name "ovmmanger" to be the host name.
    I have tried to permanently change the host name of the computer by
    changing the contents of the /etc/sysconfig/network file to the following.
    HOSTNAME=ovmmanager
    Next, at the command line I would type the following.
    hostname ovmmanger
    When I type "uname -a", the results are shown.
    ovmmanager
    However, every time I do an 'xm shutdown' to the
    OracleVM Manger (the ovmmanger), and then later do an
    'xm create vm.cfg' to start the ovmmanger,
    when I type a "uname -a", the results are shown.
    ovmmanager.mydomain.mytopdomain
    When I look at the contents of the /etc/sysconfig/network file
    the contents are back to the original contents.
    HOSTNAME=ovmmanager.mydomain.mytopdomain
    instead of my preferred contents
    HOSTNAME=ovmmanager
    My first question is the following.
    By design, does the OracleVM Manager 2.2.0 template
    supposed to have a host name to be a
    fully qualified domain name?
    ovmmanger.mydomain.mytopdomain.
    My second question is the following.
    If the situation is satisfactory to have just
    ovmmanger
    as my host name, then how do I prevent the host name renaming
    process to reoccur every time I do an 'xm create vm.cfg' to start
    the OracleMV Manager?
    Thank you
    AIM

    First Question: No, it does not have to be a full qualified hostname. As long as the hostname is resolved in your network short qualified is fine.
    Second Question: You don't have to do anything. In OVM Template design the configuration tool is just called the first time your template is started. All succeeding startups will not go through the configuration again. (There is however an option to reenable/reset the VM that the configuration is called again).
    Regards
    Sebastian

  • /etc/hosts Private Host Name Fully Qualified Domain Name does it matter?

    During installation of 11gR1 on Windows 2003 the examples in the installation guide show adding the Private IP and host name to /etc/hosts
    However they only add the short name, racnode1, not Fully qualified Domain Name (FQDN), racnode1.mycompany.com
    e.g.
    10.0.0.1 racnode1
    10.0.0.2 racnode2
    Later when installing the Clusterware it then expects to see the FQDN, racnode1.mycompany.com, of course you can modify this and remove the domain name and continue. OR go back and add the FQDN in /etc/hosts
    e.g.
    10.0.0.1 racnode1 racnode1.mycompany.com
    10.0.0.2 racnode2 racnode2.mycompany.com
    What is the best practice? Currently my company is just dropping the FQDN from the name during the install, my instinct is instead to add the FQDN to the /etc/host in the first place.
    Does anyone have a recommendation or experience with either situation?
    Will (using/ or not using) the FQDN cause me issues in the future?

    If it's a problem, the assistent will tell you :-)
    I don't think it's a problem.
    Please mind that the first entry will be the name of the ip address, if it's not in DNS and a utility tries to get the name. (that's the reason 127.0.0.1 resolves to localhost.localdomain, it's the first entry in /etc/hosts)

  • Question about Domain and Host name fields.

    Hello! Just a quick question, I currently have the Mail Server up and running although I'm a little unsure about what exactly needs to be entered into the users email application.
    I've tested POP and IMAP using the information that I entered into the "Domain Name" field, and into the "Host name" field, and everything worked great.
    Example:
    Incoming Mail Server: mail.example.com
    Outgoing Mail Server: smtp.example.com
    Although while setting up another site and including the normal mail setup via DNS I've also noticed that I can send and receive email by using other sites that belong to me, as long as they are pointing towards our server.
    Example:
    Incoming Mail Server: mail.mynewsite.com
    Outgoing Mail Server: smtp.mynewsite.com
    So, I guess my question is whether its bad to use other websites in the incoming and outgoing mail server fields, or should I stick to the incoming and outgoing sites that I have listed in the Mail Server's 'Domain Name' and 'Host Name' fields?
    I hope that made sense, thanks again for your help.
    Paul
    PowerMac G5, Xserve G5, and PowerBook G4 Mac OS X (10.4.8)

    Does it matter if our users type mail.example.com
    into the incoming mail server, or are they allowed to
    use their own domain name "mail.mydomain.com" as long
    as the DNS is setup correctly?
    There is no intrinsic 'meaning' to hostnames entered into the mail client. These are merely converted to IP addresses, using available dns, and then the mail client communicates with the IP address, using whatever port number is applicable for the service required (e.g., port 25 for smtp, port 110 for pop). So you could use the hostname woohooo.mydomain.com for the smtp or pop server, as long as it resolves to the correct IP.
    This enables laptop users to have the one smtp/pop hostname, with lan dns resolving it to the local private IP and ext dns resolving same hostname to wan IP.
    There is also no need to have two separate hostnames for pop and smtp. These are typically used by ISPs because they have separate servers doing each job - one doing pop, one doing smtp. If one server does both (and there is no likelihood of splitting the services later) then just the one hostname for pop and smtp is fine.
    -david

  • Local host name  message pops up on start up

    I've started getting message  on start up saying "local host name is already in use, do  you want to change"
    this just began happening.
    what does this mean and how can i fix it from poping up?
    thanks

    Hey R%%^Y,
    Thanks for the question. It sounds like another computer on your network may have a similar local hostname. You can change your hostname in System Preferences > Sharing:
    OS X Mavericks: Find your computer’s name and address
    http://support.apple.com/kb/PH13790
    Local hostname: Your computer’s local hostname, or local network name, is displayed on your local network so others on the network can connect to your Mac.
    Your computer’s local network name is displayed beneath the computer’s name at the top of Sharing preferences.
    The local network name is your computer’s name with “.local” added, and any spaces are replaced with hyphens (-). For example, if your computer’s name is My Computer, your local network name is “My-Computer.local.” Local network names are not case sensitive, so “my-computer.local” is the same as “My-Computer.local.”
    Thanks,
    Matt M.

  • Domain name/"primary DNS" name/mail host name/mail server name/mx name

    Hi,
    I have registered my domain name (N.com) with an external dns server and created an MX record (mail.N.com) for it as well. My server sits behind a router and internet traffic is port(80)-forwarded to my server's fixed internal ip address (I can access my webpages from the internet just fine). When I initially setup the server I was asked to give it a "primary DNS name." I naturally assumed that N.com was supposed to be entered here, but that just caused all kinds of problems (though I still do not understand why). So I reinstalled and currently have server.N.com as the primary DNS name of the server (although it shows up in Server Admin and Workgroup Manager as server.local--why is that?)
    I have had no luck getting any email from the internet with the default settings in mail services (domain name of N.com and host name of server.N.com). Having no luck with the defaults, I assumed that maybe I needed to change the host name to "mail.N.com" so that it matched the MX record. I also changed the user preferences in Workgroup Manager to receive mail from mail.N.com--but still no luck. Could someone tell me what I am doing wrong and how come none of the Mail Service literature mentions anything about what a mail "host name" is supposed to be? Is it supposed to be the same as the "Mail Server" name that Workgroup Manager asks each user for? and is it the same as the MX record name?
    I am just needing some help to connect all these variously named, but undefined, dots.
    Also, how come I can access webmail from the internet using www.N.com/webmail but can't do it from any computers within my physical network (I have to use IPaddress/webmail or server.local/webmail)?
    Also, should my user email addresses be [email protected] or [email protected] (which is the current default)?
    Thanks in advance and good luck!
    John

    I had been told by a friend that ... regular email coming in from the internet would go through port 80
    Unfortunately you were misinformed.
    My MX record needs the extra subname (such as "mail") in front of the domain name, right?
    Not at all. A MX record for 'N.com' is entirely valid (expected, in fact).
    An MX record tells remote mail servers where to send mail for any domain/subdomain. If you think about it, let's say you worked for Apple and you wanted people to be able to send email to [email protected], well then you need an MX record for 'apple.com'.
    You can see if you dig MX apple.com that they actually have 9 MX records, but the point still stands.
    Now, you might also have MX records for subdomains so that you can have [email protected], [email protected], [email protected], etc. Each of these subdomains would need a separate MX record.
    So, in general, for any set of email addresses @[anything.]domain.com you have a MX record telling remote mail servers where to send that mail.
    Of course the MX record name is mail.N.com, but I think you are implying that the in the Mail settings of Server Admin where it asks for domain name all I need to put there is the N.com, right?
    What I mean is that you need to set the domain name to whatever domain name you expect to receive mail at.
    If you want users to have email addresses in the form of [email protected], then you enter 'N.com'.
    If you want users to have email addresses in the form of [email protected] then you enter 'mail.N.com'.
    If you want both forms, enter one in the main domain and add the other(s) in the Advanced -> Hosting -> Local Host Aliases section.
    Is there anything in the Mail settings that needs to have the full MX record name (mail.N.com)?
    Yes. Either the 'domain name' or the 'Local Host Aliases' needs to contain the same thing as your MX record. That's because the MX record tells remote servers to send mail to this machine, but the machine won't accept the mail unless it is configured to do so.
    What is the "host name" supposed to be?
    This should be the name that remote servers see when this machine tries to send outgoing mail.
    Ideally this should match the reverse DNS of your IP address, that way when it connects to a remote server it says "Hi, I'm $hostname" and the remote server can lookup the machine's IP address and see the same result. This will reduce the problem of remote servers thinking you're sending them spam.
    If you only have a single IP address then this probably needs to be something like 'N.com'. If you don't have control over your reverse DNS then you're going to run into a problem.
    Also in the user accounts (in Workgroup Manager) what should the "mail server name" be? Is it the host name or the domain name?
    Off hand, I don't know.
    Also, why are all the default user email addresses [email protected] (the name I gave the server at setup)? Why doesn't the user accounts create [email protected] as the default address?
    Presumably because the mail server says it is 'server.N.com' and therefore any accounts on that machine would be [email protected]. Changing the domain name (as above) should fix that.

  • Multiple machines with the same host name

    Has anyone tried it? Is it supported? We have this policy around here that all db servers are called db2 with different domain names. When I tested it, one host registered with GC properly although without domain name (ie db2 only), but agents on the remaining db2 hosts keep dying and never show up in GC. I'm gonna play with it some more, just wanted to ask if anyone has heard of such problem ...
    Thanks,
    Julius

    Actually, if you see the emd.properties file in the $AGENT_HOME/sysman/config directory, you should be able to specify fully qualified host name (e.g. db2.domainname) in the agent url.
    If the agent has secure communication setup with OMS, then you will have to re-secure the agent after changing agent url in emd.properties.
    Hope this helps.

  • What's the reason for this message, "A server with the specified host name could not be found" ? I'm using iPhone 4s, 16gB, iOS 7.0.4

    I get a pop-up message saying "A server with the specified host name could not be found", whenever I try to access any streaming websites/apps or even WhatApp over Wi-Fi and I cannot access the specific THING for that moment, and I've tried switching Wi-Fi On and Off both in my Phone and also in the Router. I got an internet connection and a Wi-Fi router just before two days, and it's happening since. I got the internet speed around 80kbps and i can easily stream YouTube videos except sometimes, I receive that annoying message. I can't even browse the internet in Safari, which says "No Internet Connection"(Even though the Wi-Fi is connected), and I can access it after somewhile (say 10 minutes, it'll be perfectly alright). I use iPhone 4s. And everything about the internet connection is totally fine in my Computer, but not in my iPhone, as I've explained the issues, above. If there are any technical settings that I should change/modify, either on my computer(Windows 7 OS) or in my iPhone(iOS 7.0.4), PLEASE let me know
    I hope I've provided enough information for the reader to understand my point. (I apologize for my verbal mistakes, if there are )
    THANKS

    Hello Paneesh,
    Thank you for the details of the issue you are experiencing with Wi-Fi on your iPhone 4s.  I recommend the following steps:
    Be sure you're in range of your Wi-Fi router (access point).
    Tap Settings > Wi-Fi and turn Wi-Fi off and on. If your W-Fi setting is dimmed, follow these steps.
    Confirm that your Wi-Fi router and cable or DSL modem are connected to power, turned on, and connected to the Internet. If not, refer to your network administrator or Internet service provider (ISP) for assistance.
    Restart your iOS device.
    Tap Settings > Wi-Fi and locate the Wi-Fi network to which you're connected.
    Tap and Forget this Network.
    Try to connect to your desired Wi-Fi network.
    Note: You may need to enter your Wi-Fi password again if your network requires one.
    Turn your Wi-Fi router off and on2. If your ISP also provides cable or phone service, check with them before attempting this step to avoid interruption of service.
    Update your device to the latest version of software.
    Update your Wi-Fi router to the latest firmware2. For AirPort Base Stations, install updates using the AirPort Utility.
    If the issue is still unresolved Wi-Fi disconnects or signal strength is less than expected
    Move closer to the Wi-Fi router (access point).
    Check for sources of potential interference.
    Remove any case, stand, or other accessories from your iOS device and see if signal strength improves.
    Reset network settings by tapping Settings > General > Reset > Reset Network Settings. Note: This will reset all network settings including
    previously connected Wi-Fi networks and passwords
    recently used Bluetooth accessories
    VPN and APN settings
    You can find the full article here:
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/ts1398
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Host name changed on server after router reboot?

    I recently installed a new router and when I started my Mac Pro the server (10.7.5) Serverwould not respond and I received an error message stating the host name has changed on my server. I can not recall what I did nut I got the server working. I had to reboot teh router again and have received the following email:
    From: [email protected] (System Administrator)
    Subject: Network change notification for discussion.pharmweb.net
    Date: 26 January 2013 12:48:52 GMT
    To: [email protected]
    The host name of discussion.pharmweb.net has changed to discussion.lan. Some services may not work correctly until they have been updated to use the new configuration.
    I can not get the server to respond to web requests and am not sure what to change, Sharing is showing my local hostname as discussion.local
    Help...

    Are you sure it wasn't just the server's LAN IP that changed?
    Is it set to Manual ?
    If your server is behing a router with a NAT address, then a change in the public IP shouldn't have caused that error.  I bet your LAN IP changed and now you don't have port mapping correct. pherhaps the public IP changed also, but my money is on the LAN address.
    If its the LAN address, there is no point waiting for the ISP.
    Set it back to the address it used before and make sure the router provides NAT with port mapping to that address.
    Thats all in your control, not the ISP.

  • Entry for host name is missing or empty (Secure Store key: admin/host/).

    Hi All,
    I am in the process of installing EP7 on SLES9 and MaxDB 7.6 on a clustered HA environment where the SCS, DB and JC components are installed under and referenced by their virtual hostname (eg. sapinst SAPINST_USE_HOSTNAME <virt name>).
    The SCS instance is installed, the Database Instance is installed and I'm currently in the process of Installing the JC and Deploying the EP packages. 
    During the installation, SDM is put into standalone mode and sapinst tries to deploy the package EPBC06_0.SCA where it fails and the sdm_server.err shows :
    "com.sap.sdm.serverext.servertype.inqmy.TargetEngineConfigurationException: Cannot retrieve Engine logon data from Secure Store: Entry for host name is missing or empty (Secure Store key: admin/host/).        at com.sap.sdm.serverext.servertype.inqmy.InQMyTargetSystemConfigurator.getLoginDataFromSecStoreInQMyTargetSystemConfigurator.java:286)        at com.sap.sdm.serverext.servertype.inqmy.InQMyTargetSystemConfigurator.getEngineLoginDataInQMyTargetSystemConfigurator.java:197)        at com.sap.sdm.serverext.servertype.inqmy.EngineStateServiceImpl.determineCurrentEngineStateEngineStateServiceImpl.java:53)        at com.sap.sdm.app.proc.deployment.states.State.determineJ2EEEngineState(State.java:97)        at com.sap.sdm.app.proc.deployment.states.StateBeforeFirstDeployment.getJ2EEEngineStateChangeDescriptionStateBeforeFirstDeployment.java:75)        at com.sap.sdm.app.view.proc.deployment.mapper.StateMapper.map(StateMapper.java:56)        at com.sap.sdm.app.view.proc.deployment.mapper.FlowMapper.map(FlowMapper.java:28)        at com.sap.sdm.app.view.session.AppViewUpdater.updateAppView(AppViewUpdater.java:22)        at com.sap.sdm.app.view.session.AppViewUpdater.sessionStateChanged(AppViewUpdater.java:18)        at com.sap.sdm.app.proc.deployment.impl.SessionStateObserversImpl.notifySessionStateChangedSessionStateObserversImpl.java:46)        at com.sap.sdm.app.proc.deployment.states.InstContext.processEventServerSide(InstContext.java:85)        at com.sap.sdm.app.proc.deployment.states.InstContext.processEvent(InstContext.java:59)        at com.sap.sdm.app.view.controllers.DeployEventProcessor.processEvent(DeployEventProcessor.java:11)        at com.sap.sdm.client_server.deployserver.DeployCmdProcessor.processEvent(DeployCmdProcessor.java:264)        at com.sap.sdm.client_server.deployserver.DeployCmdProcessor.process(DeployCmdProcessor.java:108)        at com.sap.sdm.gui.server.GuiAdminRoleCmdProcessor.processGuiAdminRoleCmdProcessor.java:72)        at com.sap.sdm.is.cs.session.server.SessionCmdProcessor.process(SessionCmdProcessor.java:67)        at com.sap.sdm.is.cs.cmd.server.CmdServer.execCommandCmdServer.java:76)        at com.sap.sdm.client_server.launch.ServerLauncher$ConnectionHandlerImpl.handle(ServerLauncher.java:286)        at com.sap.sdm.is.cs.ncserver.NetCommServer.serveNetCommServer.java:43)        at com.sap.sdm.is.cs.ncwrapper.impl.ServiceWrapper.serveServiceWrapper.java:39)        at com.sap.bc.cts.tp.net.Worker.run(Worker.java:50)       at java.lang.Thread.run(Thread.java:816)"
    The same problem occurs if I try to deploy this package or any other package using SDM in standalone or integrated mode. 
    configtool -> Secure Store -> admin/host/<SID> is the virtual hostname of the JC instance.
    I've tried the following to no avail:
    - Changed configtool -> Secure Store -> admin/host/<SID> to be the physical hostname of the box.
    - Changed configtool -> Server -> Dispatcher -> Service -> P4 -> bindhost (from 0.0.0.0 to JC virt IP).
    - Changed the <Host> entry in sdmrepository.sdc from <phys hostname> to <jc virt hostname>.
    The SAPLOCALHOST, SAPGLOBALHOST all seem to be set correctly in the SAP profiles.
    Has anyone had this issue?  If so, what do I need to check/change?  Any ideas?
    Notice the message does not reference the <SID> in "admin/host", could this be related to the issue?  If so, what can cause this?
    TIA
    Anthony

    Hi All,
    Just an update, I was able to get around my problems by patching the 2004s media from sp6 to sp8, uninstalling my scs, and database and re-installing from the patched media.

  • After specifying the external host name under outlook anywhere, users pop up for password

    Dear All,
    I have installed and configured exchange 2013 as a fresh installation on server 2012 and it worked fine till i changed
    specifying the external host name under outlook anywhere(in exchange ECP -> Server -> server -> W12R2-Email2013).
    My internal domain is starnavigator.lk and we have several accepted domains listed. but all the staff checked web mail through
    mail.leoburnett.lk internally and externally. even now web mail is working fine.
    After i added external host name as mail.leoburnett.lk
    all the internal PCs start to pop up for user name and password and its not  connecting. 
    even if I reversed back the settings, still prompt for user name and password. also auto discover cant locate the settings. if i configure the settings manually, i t works for first time and after restarting outlook, again prompt for name and password.Any
    any advice or solution please??
    Thx,
    Dulana

    Run this tool and post the result (only errors)
    https://testconnectivity.microsoft.com/
    After configuring outlook manually, run Test E-Mail Autoconfiguration and Connection Status and post the result.
    Editing just an URL for OA shouldn't cause any issue.
    Did you restarted IIS Service?
    Cheers,
    Gulab Prasad
    Technology Consultant
    Blog:
    http://www.exchangeranger.com    Twitter:
      LinkedIn:
       Check out CodeTwo’s tools for Exchange admins
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

  • How to change host name and domain name in installed Cisco Meeting Place Express 2.0?

    Hi
    I have  Cisco Meeting Place Express 2.0 installed on server. Meting Place uses Linux (Red Hat) as base operation system. Please tell me how I can change host name and domain name for Meeting Place Express application to integrate it into corporate domain infrastructure.
    Thanks in advance!!!
    Sincerely yours
    Sergey Bondarenko

    Hi
    Thanks for your attention for my humble problem.
    I have performed Meeting Place Express configuration through the “net” command.
    But now unfortunately I can't connect to meeting place through web browser. I just get blank page.
    Though I can reach the server with help of ssh. I think my DNS works properly because I can resolve the ip address of  cumpxvoice .uclab.com and cumpxweb. uclab.com with help of dig command.
    Have you any idea?
    A lot of thanks in advance!!
    Sincerely yours Sergey Bondarenko
    Here I have printed the net configuration output of Cisco meeting Place Express:
    [root@cumpxvoice root]# net
    This is the MeetingPlace Express network configuration utility.
    Up to the point where you save changes, it is safe to hit ^C to get
    out at any time, in which case nothing will have changed.
    1) List current configuration
    2) Configure Ethernet port 1
    3) Configure Ethernet port 2
    4) Configure service bindings
    5) Set host names
    6) Set domain name
    7) Configure DNS service
    8) Configure NTP service
    9) Configure routing
    10) Done
    Select: 1
    Primary/audio host name: cumpxvoice
    HTTP host name:          cumpxvoice
    RTMP host name:          cumpxweb
    Domain name:             uclab.com
    Service bindings:
    Audio:                   port 1 (eth0)
    Web browsing (HTTP):     port 1 (eth0)
    Web conferencing (RTMP): port 2 (eth1)
    Port 1 (device eth0):
    IP Address:      10.62.60.116
    Network mask:    255.255.255.0
    Default gateway: 10.62.60.1
    Link setting:    autoneg on
    Port 2 (device eth1):
    IP Address:      10.62.60.117
    Network mask:    255.255.255.0
    Default gateway: 10.62.60.1
    Link setting:    autoneg on
    Static routes:
    Destination      Gateway          Network mask     Port
    0.0.0.0          10.62.60.1       0.0.0.0          1
    DNS Servers:
    10.62.60.115
    10.0.1.4

  • Can you refer to the original host name when using a challenge redirect?

    I have an authentication scheme that uses a challenge redirect to cause authentication to happen using https instead of http. However, this seems to break some of our monitoring scripts because now the credential challenge is coming from a different host name. Is it possible to refer to the original host name with some type of variable in the challenge redirect parameter? Below is an example:
    1. User accesses secured URL at http://appstenv2.company.com/testurl
    2. This webserver is hosting several aliases (appstenv2.company.com, appstenv4.company.com, appstenv6.company.com) and has a main name of appsdev.company.com - but is a single apache webserver where there is an application server plugin installed which will route to the desired application server environment based on the original hostname. So if a user accesses it with a name of appstenv2.company.com/testurl they will be routed to the "test 2" environment application server. If they access it as appstenv6.company.com, they would be routed to the "test 6" environment application server.
    3. This webserver listens on both http and https.
    4. The current challenge redirect can only redirect to a specific URL so it is set to "https://appsdev.company.com" which works fine interactively but the recorded monitoring scripts suddenly see a new hostname doing the prompting for credentials even though it is the same webserver - just a different alias.
    5. If possible, I would want to do the redirect in a relative fashion rather than absolute by using the original hostname from the URL being accessed. So, if the user was accessing http://appstenv2.company.com/testurl, I would like to redirect to https://appstenv2.company.com for the basic authentication. but with the same authentication scheme, if the user accesses http://appstenv6.company.com/testurl, I would want the challenge redirect to go to https://appstenv6.company.com. I'm hoping it's possible to use some system variable like SERVER_NAME to do this.
    Challenge Redirect: https://$SERVER_NAME
    Does anyone know if that is available in OAM 10.1.4.3 or some other way to accomplish the same thing with a single authentication scheme?

    No, there are not multiple policies - the host names for all aliases on that single webserver are together in a single host identifier. And I realize I can only have a single challenge redirect, I just want to use a variable to redirect to the host name that was accessed as opposed to a static name.

  • Email host name for mailbean

    Hi, I have a problem about finding my own email host name when I am trying to send an email within JSP. I have tried many names such as: "mail.gmail.com"," yahoo.com", and the one included in the code blow. I think I have a misunderstanding about this host name, could anyone explain for me please? Thanks a lot.
    Blow is my code
    * Mail.java
    * Created on 2006&#24180;8&#26376;14&#26085;, &#19979;&#21320;2:59
    package myclass;
    import java.io.*;
    import java.util.*;
    import javax.mail.*;
    import javax.mail.event.*;
    import javax.mail.internet.*;
    * @author weiming514
    public final class MailBean extends Object implements Serializable{
    private String to = null;
    private String from = null;
    private String subject = null;
    private String message = null;
    public static Properties props = null;
    public static Session session = null;
    static{
    /** Setting Properties for STMP host **/
    props = System.getProperties();
    props.put("mail.smtp.host", "hostname");
    session = Session.getDefaultInstance(props, null);
         /* Setter Methods */
         public void setTo(String to) {
              this.to = to;
         public void setFrom(String from) {
              this.from = from;
         public void setSubject(String subject) {
              this.subject = subject;
         public void setMessage(String message) {
              this.message = message;
    /* Sends Email */
    public void sendMail() throws Exception{
    if(!this.everythingIsSet())
    throw new Exception("Could not send email.");
    try{
    MimeMessage message = new MimeMessage(session);
    message.setRecipient(Message.RecipientType.TO, new InternetAddress(this.to));
    message.setFrom(new InternetAddress(this.from));
    message.setSubject(this.subject);
    message.setText(this.message);
    Transport.send(message);
    catch(MessagingException e){
    throw new Exception(e.getMessage());
    /* Checks whether all propertises have been set or not */
         private boolean everythingIsSet() {
              if((this.to == null) || (this.from == null) ||
              (this.subject == null) || (this.message == null))
                   return false;
              if((this.to.indexOf("@") == -1) ||
                   (this.to.indexOf(".") == -1))
                   return false;
              if((this.from.indexOf("@") == -1) ||
                   (this.from.indexOf(".") == -1))
                   return false;
              return true;
    Error:
    unknown smtp host: hostname

    and the one included in the code blow.You have written "hostname" in the code below. Since "hostname" is certainly NOT a valid SMTP host name,
    that's why you get the error: unknown smtp host: hostname.
    What did you expect? You must provide a valid SMTP host name, NOT "hostname". You see the difference right?
    Try with your ISP (Internet Service Provider) SMTP host name.
    It should be something like: stmp.somename.com.
    That's the one you must set in your email client (Outlook, Thunderbird, Eudora, Lotus Notes, whatever) to send your emails.
    Next time please paste your code between &#91;code&#93; tags with the help of the code button just above the edit message area.
    Regards

  • Login problem with E-Recruiting URL, where check host name?

    Hi,
    I've set up a standard Recruiter user and assigned him the standard Recruiter security profile. When I run RCF_GENERATE_URLS, I get this URL:
    http://iwdfvm2160.wdf.sap.corp:51080/sap/bc/bsp/sap/hrrcf_start_int?sap-client=200&sap-language=EN&rcfSpId=0003
    But I get an "internal error" when I login with my User. Our server's host name is iwdfvm2160.gcsap.com, but the program isn't resolving this. This is probably the cause of the error, but how can I get it to pick up our host name?
    We are on E-Recruiting version 6, and it's running on the same box as HCM.
    Thanks, Vlad

    Hello Vlad,
    usually the links generated from the report are correct. Only very rare problem might be in the network structure of your company that the internal dns servers can't resolve the server name or the sap servers are in a not reachable network segmant as you never worked with http access to the servers for other applicatiohns.
    But if you log on the first time with your user and have not been working with the application yet, the more probable reason for this error is the missing candidate for e-recruiting. Without a candidate you won't be able to work with the application.
    Check transaction SLG1. There should be an error "No candidate for User <your username>" or sth. similar.
    If so run report RCF_CREATE_USER to get a candidate. Then you should be able to log on.
    If you already have a candidate and cannot login check SLG1 and SM21 for error messages. If there are any but you don't feel able to solve the logged problem. Just post the message here. I think someone will be able to help.
    Best Regards
    Roman Weise

Maybe you are looking for

  • Multiple purchase orders with items in one IDOC

    Hello Team Now i got a the below requirement. please check and suggest me accordingly. 1. In my souce system (ie legacy system) i have  a table which is having PO related header and item data. now i need to post that data into SAP by using IDOC. so n

  • How to load another page in a frame?

    Hi! I have a frame with a page where is a button. I need to load another page in the frame when I click the button. How can I make it on the ADF? I work on JDeveloper 10.1.3.4.

  • Ignore Last node

    Hi Group, In the Message Mapping I have created one node only for File name and in Reciever side Communication channel I have given in the file name schems as %var1%.txt .But in the Content conversion how to handle this,as I dont want to write the Fi

  • How to make a pageitem  global to all other pages in an application

    Hi all, i would like to set parameters for print set, especially the url to the server of my print server.Currently i do it for every page that need to to connect to the print server everytime. I am storing this information in the admin page, but wan

  • How do I get LYMIGO_BADIUXX to transport ????

    As part of an implementation of MB_MIGO_BADI, I have tgo transport the function group YMIGO_BADI. The "main program" for this function group has the lines: *   System-defined Include-files.                                 *   INCLUDE LYMIGO_BADITOP.