Determining Message Server Host and Port information
Hi,
I am working on the NWDS creating a Java WD application and I was told which Netweaver system I should work on but I was not told the Message Server Host information neither the Port information. I ran transaction SM51 (right click->details)in the Netweaver system but the information it is not working. Even though I can telnet this server port if I go to the J2EE Engine window within the NWDS I do not see the green light. I just see "N/A". I also tried to deploy my application but I keep getting this message: "Cannot determine sdm host (is empty). Please configure your engine/sdm correctly".
Please advice,
Diego.
Hi Diego,
in order to see Message Server Host information and Port information go to SAP J2EE Engine start page: e.g. http://system-name:57100/index.html (use administrator pws).
Then click on System Information, here on the top you can read the Message Server Host and Port.
Hope this help you.
Bye,
Vito
Similar Messages
-
How to determine the Message Server ipaddress and Port Num
Hi All,
I installed SAPR/3 4.7EE on windows with Local Installtion on windows and the SystemNumber is 00.
I am developing one SAP Load Balancing System Object in the Netweaver Portals,at the time of creating it is asking the values of Message Server IP addess and the Port number.
Can i give the same ipaddress of SAP R/3 server as Message Server Ip or its different? If it is different, How can we determine the Message Server IP addess and the Port number?
Regds
PhanikumarHi Pahani,
Message server ip is nothing but your server IP if it is stand alone and port is 3600.
if you want to check the info got to tcode SMMS>GOTO tab select PARAMETERS>display.it will show the info.
cheers
Shyam. -
Access "Host" and port information
Hi,
Is there a way to access host name and port number (http://<servername>:<port>) programmatically.
Regards,
NaveenHi Naveen,
The portal sets a cookie on the user's desktop that includes a number that corresponds to the physical portal server that you're connected to and the portal server node. The name of this cookie is saplb_*. One way to examine the value of this cookie is to log into the portal and then type the following command in your address line:
javascript:alert(document.cookie);
This will cause a box to pop up containing a list of your cookies. The value of your saplb_* cookie will look something like this:
saplb_*=(J2EE1233000)1233050;
The number that you want is after the end parenthesis. In other words, you want 1233050. Now, navigate to:
Java Developer -> Portal Archive Deployer & Remover
Look in the 'Cluster Administration' area. This section contains Server ID, Server Name, Server Type, and Server IP. Look for your 1233050 number in the Server ID area, and then find that line's corresponding IP Address. You then do an NSLookup with that IP Address and there you will have your hostname.
From what I understand, all of the data in that Cluster Administration page is static. In other words, it will not change. I have made a jsp to grab that cookie's value and then translate that into the hostname. I've hardcoded the data from the Cluster Administration page into my jsp. Also, this data did not change after we upgraded from EP6 to EP7.
I hope this helps!
-StephenS -
Server Host and Port for HTTP Client Too
Hi All,
I'm using the HTTP Client tool to connect to XI. How can i find out the ServerHost, ServerPort and Client values.
Thanks,
SandeepHi Michal, Thanks for the response,
But when i use these values and connect. I get the Response - Resource not found . See the HTML below
Result:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Error Report</title>
<style>
td {font-family : Arial, Tahoma, Helvetica, sans-serif; font-size : 14px;}
A:link
A:visited
A:active
</style>
</head>
<body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" rightmargin="0">
<table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75">
<tr bgcolor="#FFFFFF">
<td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="4" color="#666666"><b> 404   Not Found</b></font></td>
</tr>
<tr bgcolor="#3F73A3">
<td height="23" width="84"><img width=1 height=1 border=0 alt=""></td>
<td height="23"><img width=1 height=1 border=0 alt=""></td>
<td align="right" height="23"><font face="Arial, Verdana, Helvetica" size="2" color="#FFFFFF"><b>SAP J2EE Engine/6.45 </b></font></td>
</tr>
<tr bgcolor="#9DCDFD">
<td height="4" colspan="3"><img width=1 height=1 border=0 alt=""></td>
</tr>
</table>
<br><br><br><br><br><br>
<p><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><b> The requested resource does not exist.</b></font></p>
<p><font face="Arial, Verdana, Helvetica" size="2" color="#000000"><table><tr><td valign="top"><b> Details:</b></td><td valign="top"><PRE>Go to <A HREF="/" target="_parent">main page</A> of this application!</PRE></font></td></tr></table></font></p>
</body>
</html>
The interface, service all are correct. Do you think something else is wrong?
Thanks,
Sandeep -
How to read the J2EE server hostname and port programmatically
Is there any API to read the J2EE server host and port programmatically? I am looking for the hostname where the components are deployed so that I can append the wsdl path to the server and create an URL.
Hi Larry,
there is a standard J2EE Servlet API for your case.
In a servlet or jsp file you can get the host and prot from the request object.
For example in a JSP file :
request.getScheme();
request.getServerName()
request.getServerPort()
You can check the whole API here :
http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/ServletRequest.html#getServerName()
Bets Regards
Bojidar -
How to determine server host and server port
Dear Experts.
How to determine server host and server port where Webdynpro application is working.
If the url is following
http://sapr3dm:50500/webdynpro/dispatcher/local/ForecastingPowerProject2/NewObjectConnection?SAPtestId=6
How to receive sapr3dm and 50500Hi,
May be of use
WDProtocolAdapter.getProtocolAdapter().getRequestObject().getServerName();
WDProtocolAdapter.getProtocolAdapter().getRequestObject().getServerPort();
Regards
Ayyapparaj -
Smtp and pop3 host and port name of gmail server?????
can any body give me smtp and pop3 host and port name of gmail server?????to send a mail......
Just do a new initial context and lookup the datasource, in case you need other info like host name and port you can use MBEans like:
InitialContext ctx = null;
// fetch managed server name by accessing the
// RuntimeServerMBean using the
// MBeanServer interface
ctx = new InitialContext();
MBeanServer server = (MBeanServer) ctx
.lookup("java:comp/env/jmx/runtime");
ObjectName service = new ObjectName(
"com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean");
managedServerName = (String) server.getAttribute(service,
"ServerName"); -
Change/Configure Host and Port for the Web Service Proxy with Server
Hi,
Is there a way to configure Host and Port in generated proxy for Web service depending upon server. (ADF 11g)
Scenario:
We are consuming Credit Card web service from a service provider and have different Host and Port details for development, QA and Prod.
So we created proxy classes using wsdl for development and things work fine, but when deploying code to QA or Prod we need to change the Host
and Port details.
Is their a way we could user variable's for Host and Port which looks to some configuration file to evaluate their values
based on server.
I am a bit new to this web service .. will appreciate if someone could provide an example.
Thanks.Are you using Web Service Proxy or Web Service Data Control?
If you are using Web Service Proxy. Right click on your Proxy --> Properties --> Port Endpoints. Here you can change the IP & Port details for each port.
Venkat -
Hi,
BAM server is running on 7004 in our local system.
We need o connect to BAM server from OSB service.
We tried to use the BAM adapter in the pipeline in 12c, We received Failed to establish a connection to localhost at port 7004.Please verify the Bam server host and JNDI port.
Please let us know the resolution to this issue.
Also please provide some links/steps to connect from OSB service to BAM server in 12c.
Thanks,In BAM 12c, you can send data via JMS by configuring an EMS in BAM using the "self-described" payload. Make sure the date formats match correctly. You can configure an error queue which will show you any data parsing problems.
For example,
<msgRoot dataObjectName="Student" operationType="insert" keys="RequestId">
<RequestId>R1000</RequestId>
<StudentId>S12345</StudentId>
<RequestType>Admission</RequestType>
<RequestStatus>Open</RequestStatus>
<RequestMessage>Please Admin</RequestMessage>
<RequestCode>3</RequestCode>
<SubmitTime>2015-03-17 18:23:07</SubmitTime>
<ApprovalTime>2015-02-18 18:23:07</ApprovalTime>
</msgRoot> -
NW2004s Connect to Message Server Host Failed - BW to Portals connection
Hi,
I am trying to connect a SAP BW NW2004s Patch 8 system to a NW2004s Portal. All of the checks in RSPOR_SETUP are successful.
However when I try to launch a query from Bex Query it fails with the following message.
"Connect to message server host failedConnect_PM TYPE=B MSHOST=SAPMSCR6 GROUP=webshop1_biw R3NAME=CR6 MSSERV=01 PCS=1"
The message server entry in the System Landscape object for the BW Server is "SAPMSCR6". Is this right?
I have searched for information about this and can't find anything. I am sure it is something basic. As anyone else resolved this issue or do they have an idea what might be causing the problem?
Any suggestions gratefully received.
DaveGuys look at the below SAP note. it will help
SAP Note Number: 764881 Inf. Broad.Connect to message server host failed - sapms -
I am trying to install SLM as DISTRIBUTED SYSTEM. I have installed CENTRAL SERVICES INSTANCE on host 1 and DB instance on host 2.
and trying to install CENTRAL SERVICE on host 3.
CENTRAL SERVICES INSTANCE and DB instance install successfully.
I am getting this error message when installing CENTRAL SERVICE.
here is my sapinst_dev.log
=======================
Connect to message server (host/3900) failed: NIEHOST_UNKNOWN.
======================================================
here is my dev
=========================================================
trc file: "dev_ms", trc level: 1, release: "700"
[Thr 16384] Tue Feb 26 20:51:13 2008
[Thr 16384] MsSSetTrcLog: trc logging active, max size = 20971520 bytes
systemid 387 (Intel x86 with Linux)
relno 7000
patchlevel 0
patchno 110
intno 20050900
make: multithreaded, Unicode, optimized
pid 5846
[Thr 16384] ***LOG Q01=> MsSInit, MSStart (Msg Server 1 5846) [msxxserv_mt. 1824]
[Thr 16384] SigISetDefaultAction : default handling for signal 17
[Thr 16384] load acl file = /usr/sap/KGB/SYS/global/ms_acl_info
[Thr 16384] MsGetOwnIpAddr: my host addresses are :
[Thr 16384] 1 : [1XX.10.10.222] host1.mycompanyname.com (HOSTNAME)
[Thr 16384] 2 : [1XX.0.0.1] localhost.localdomain (LOCALHOST)
[Thr 16384] MsHttpInit: full qualified hostname = host1.mycompanyname.com
[Thr 16384] HTTP logging is switch off
[Thr 16384] set HTTP state to LISTEN
[Thr 16384] MsHttpOwnDomain: own domain[1] = host1.mycompanyname.com
[Thr 16384] ms/icf_info_server : deleted
[Thr 16384] *** I listen to internal port 3900 (3900) ***
[Thr 16384] *** HTTP port 8100 state LISTEN ***
[Thr 16384] CUSTOMER KEY: >T0444609119<
=========================================================
I have changed the hostname in all the file (1) hostname ,(2)/etc/sysconfig/network file . i even checked my hostname and it shows hostname as "HOST1" so i am confused even though hostname is "HOST1" but in dev_ms the IP ADRESS is resolving to "host1.mycompanyname.com"
3. Also when i am trying to run "startsap" or "stopsap" from host1 where central service instance is installed. It gives me "command not found" although i see all the exe file in /usr/sap/SID/SYS/exe/run. why my command not running.
. I have added the sapmsSID 3900/tcp entries in both HOST1 and HOST3 services file.Only that
When I grep on Error from the file I get
more sapinst_dev.log |grep error
Error number 8 error type SPECIFIC_CODE
Error number 211 error type SPECIFIC_CODE
pci_error_tolerance_time 1440 Default Immed
Registering Profile directory /usr/sap/MBA/SYS/profile for beeing one of the sources of additional files to be collected in case of errors
hth72231:mbaadm 25> more sapinst_dev.log | grep error |more
Error number 8 error type SPECIFIC_CODE
Error number 211 error type SPECIFIC_CODE
pci_error_tolerance_time 1440 Default Immed
Registering Profile directory /usr/sap/MBA/SYS/profile for beeing one of the sources of additional files to be collected in case of errors
Standard input: END
other
TRACE[E] 2014-06-25 10:08:17.327 [syuxcuser.cpp:2762]
CSyUserImpl_setOsInfos(iastring sName, iastring sID, tSyUserInfo& msUserNewinfo)
lib=syslib module=syslib
FSL-05014 Command '/usr/sbin/usermod' with parameters '-G "adm,bin,daemon,lp,mail,other,root,sys,users,sapinst" root' failed with return code 8: Login root
is currently in use
But that is not the issue -
Connect to message server host failed Connect_PM TYPE=B MSHOST=hmsnsw00
When i deploy "TutWD_FlightBooking" Sample WebDynpro application I get following error.
I have following setup.
NetWeaver developer Studio (NWDS) Version: 2.0.9
J2EE server running on the same machine where i have NWDS Version: SAP J2EE Engine/7.00 PatchLevel 105053.42
SLD Version: 7.0009.20060621180635.0000
Build: 20060622 2041, Depot: //sdt/com.sap.lcr/645_SP_REL, Changelist: 345651
ABAP R/3 system is on remote system (accessing clients R/3 system) on the network.
com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=hmsnsw00 GROUP=PUBLIC R3NAME=DEV MSSERV=sapmsDEV PCS=1 ERROR timeout while pending for route completion TIME Tue Mar 13 12:04:14 2007 RELEASE 700 COMPONENT NI (network interface) VERSION 38 RC -12 DETAIL NiErrSet COUNTER 1
at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:457)
at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:989)
at com.sap.mw.jco.JCO$Client.connect(JCO.java:3193)
at com.sap.dictionary.runtime.mdi.DataProvider.<init>(DataProvider.java:90)
at com.sap.dictionary.runtime.mdi.DataProvider.<init>(DataProvider.java:122)
... 62 more
I get same error message when i test the JCo Metadata connection, Model data connection works fine.
The message server value under WebDynpro content admin is created with right values as i checked with Basis person.
My service file in C:/windows/system32/drivers/etc has entries for both J2EE stack entry and ABAP stack (on remote server) entry with port numbers.
When i ping the ABAP (remote server) from my machine command prompt I get response.
I am running out of options. I really appreciate your inputs.
RameshHi, I think this might have todo with the fact that your Java stack wants to connect with a server from the same logon group called "PUBLIC".
Please make sure you added the same logon group "PUBLIC" to the ABAP Server. Try transaction SMLG.
Also as posted above the SLD needs this info aswell.
After using the transaction SMLG, log in and out 5 times in a row to your ABAP stack using SAP GUI. This might actually force an update to the SLD.
Greetings,
Robbert
Message was edited by:
Robbert van Waveren -
How to get server hostname and port from web form
Hi All,
I need to find out server hostname and port number
from 9i form.
That is if the form was called via:
http://myserver.com:1234/f90servlet?form=test,
i would like to call some
GET_XXX_PROPERTY(SERVER_HOSTNAME) that would return
myserver.com
and
GET_XXX_PROPERTY(SERVER_PORT) that would return
1234
or alternatively
GET_XXX_PROPERTY(SERVER_URL) that would return
complete URL, so that i can parse it myself.
Does anything like this exist? If not,would be
possible to get that information from any Java
function via java importer?
BR,
Robert
BR,
RobertRobert,
I'd add the code as a Java Bean in Forms and get this information from the Forms request URL.
Add the following bean to a Canvas and make it a size of 1x1 pixel so taht it appears hidden
import java.applet.Applet;
import java.net.URL;
import oracle.forms.handler.IHandler;
import oracle.forms.properties.ID;
import oracle.forms.ui.VBean;
public class FrmRequestInfo extends VBean
public static final ID pGetPort = ID.registerProperty("GET_PORT");
public static final ID pGetHost = ID.registerProperty("GET_HOST");
public static final ID pGetProtocol = ID.registerProperty("GET_PROTOCOL");
private String _host;
private String _port;
private String _protocol;
private URL FormsURL;
Applet m_applet;
/*Forms settings*/
IHandler m_handler;
public FrmRequestInfo()
public final void init (IHandler handler)
super.init(handler);
m_handler = handler;
// get the forms applet handler
m_applet = m_handler.getApplet();
// initialize cookie domain to the same domain that runs Forms
// Services
FormsURL = m_applet.getDocumentBase();
_host = FormsURL.getHost();
_port = new Integer(FormsURL.getPort()).toString();
_protocol = FormsURL.getProtocol();
public Object getProperty(ID p0)
if (p0 == pGetHost)
return _host;
else if (p0 == pGetPort)
return _port;
else if (p0 == pGetProtocol)
return _protocol;
else
return super.getProperty(p0);
To get the port number you call
VarcharVariable_Port := get_custom_property('beanblock.beanname',1,'GET_PORT');
for the hostname
VarcharVariable_Host:= get_custom_property('beanblock.beanname',1,'GET_HOST');
Frank
Ps.: just wrote the bean on the fly, without testing - but I am positive that it works as similar functionality works for me in other beans. -
Hi
WHere can I get the Host and Port no of the PI Server
Thanks
PRHi,
In addition to above, Just FYI that in PI 7.1 the Http and J2ee port are same..
The discussion about same can be found [here|Re: Architecture of PI 7.1] and [here|Re: ABAP & Java ports in PI 7.1?]
and to check all the info @ single place:
Login to XI ABAP stack -> Run tcode SXMB_IFR -> Choose Option Administration -> Properties Administration ->All properties
Sachin
Edited by: Sachin Dhingra on Apr 2, 2009 10:01 AM -
Error establishing socket to host and port: EPM11:1433
Hi Planning Experts,
I am trying to configure EPM 11.1.2.1 (Planning)
RDBMS: SQL server 2005 (Express Edition)
OS: 2008 R2 x64
i am getting error after providing RDBMS credentials "error establishing socket to host and port: EPM11:1433 Reson: connection refused: connect"
Please help....
Regards
KumarYou may need to enable tcp/ip
SQL Server Express listens on local named pipes and shared memory. With a default installation, you cannot remotely connect to SQL Server Express. You will need to enable TCP/IP and check if the firewall is enabled.
To enable TCP/IP:
From the Start menu, choose All Programs, point to Microsoft SQL Server 2005, point to Configuration Tools, and then click SQL Server Configuration Manager.
Optionally, you can open Computer Manager by right-clicking My Computer and choosing Manage. In Computer Management, expand Services and Applications, expand SQL Server Configuration Manager.
Expand SQL Server 2005 Network Configuration, and then click Protocols for InstanceName.
In the list of protocols, right-click the protocol you want to enable, and then click Enable.
The icon for the protocol will change to show that the protocol is enabled.
Cheers
John
http://john-goodwin.blogspot.com/
Maybe you are looking for
-
After download newest itune software i am unable to sync the music i loaded from my personel cds from itune to apple tv however it loads music purchsed from itunes. Apple tells me i will have to reload approx 45 cds even thou this music shows up on t
-
IPhone gives an error 2005 ?
when i try to restore my iphone 3GS to iOS 5, it gives an error 2005 in itunes, i even can`t turn on the phone, it is in DFU mode and when i exit DFU, it goes to recovery mode ! i tried many articles given on google website, but none of it worked My
-
Hi , we got the following error from SOA server <Oct 1, 2013 11:46:12 PM EET> <Warning> <JTA> <BEA-110486> <Transaction BEA1-4D0912FE2D411AD3416B cannot complete commit processing because resource [FNViewDS_soadomain] is unavailable. The transaction
-
MSI P6N SLI V2 does not boot up from cd/dvd and few other problems
HI I just bought a computer P6N SLI V2 + E6750. It has following problem. It does not boot from cd. I have Sata HD. CD/DVD is installed to IDE as a master. I have done settings in bios so that First boot is cd/dvd and second is sata HD. Anyhow it sti
-
Will people with iphone's still receive a notification if i have deleted my facebook account?
If a person deactivates his/her Facebook account, will people receive a birthday notification(at notification center) if they have also an iphone?