Getting hostname/IP of the BEA server
Hello,
I need to know the IP of the BEA server the request is currently working on.
I have a cluster with 2 servers inside, each running in its HW.
The HW has IP and the BEA has different IP.
We need to send a request (using URLConnection) to another servlet in the same application which must be running on the same server.
We have used InetAddress.getLocalHost() is past, but now the HW's IP and BEA's IP are different and this causes problem.
Is there an easy way how to get the IP from Java?
We can put the IP into a property file, but this is not prefferd way, because we'd have different properties file on different servers.
Thanks advance for any advice.
Lubos
Oops. Missed the important part. It is a custom class which does something like this.
1. Gets the initial context.
2. Looks up for "weblogic.management.home.localhome" and assigns it to an weblogic.management.MBeanHome object.
3. Call getMBeansByType("ServerConfig") on the object mentioned in step 3 and assign the returned value to a Set object.
4. Iterate through the Set created in step 3 and assign it to weblogic.management.WebLogicMBean object.
5. Call getName() on the object in step 4 and check whether it is equal to
System.getProperty("weblogic.Name").
If the check returns true, call
getAttribute("ListenAddress") on the object created in step 4 and convert it to String object.
On similar lines, you can call getAttribute("ListenPort") on the object too.
If this works for you, please assign the reward points.
Cheers!
Dips
Similar Messages
-
When trying to activate my iPad 3, I consistently get a message that the activation server is unavailable, Please Try Again. Does anyone know how to help me?
It is not bricked... I think I finally found the way: http://www.imore.com/how-fix-activation-errors-iphone-after-installation-ios-7-b eta.
The above artical started to help.. but eventually I did the following:
1) put device into DFU mode
http://www.imore.com/tip-put-iphone-ipad-dfu-mode
2) when connecting ipad to itunes, itunes was aware of DFU mode. Just selected the update and itunes downloaded the correct new OS (iOS 7.0.2) and did it's thing.
Note: there was no need to download an older version of iOS. In fact, I was always rejected when attempting a downloaded ipsw. iTunes always said, "This device isn't eligible for the requested build".
Device Info: iPad 3 wifi. Software was iOS beta 7 (7 release 5 I think). -
Unable to get a connection to the WebLogic server
After reinstalling WLS and SP it still didn't work, however, after a 3rd
reinstall in
the DEFAULT directory of c:\weblogic, it finally worked! It would NOT work
from c:\tools\weblogic. Who knows, maybe i didn't update a magic variable
somewhere.
-b
"Bob Banks" <[email protected]> wrote in message
news:397e0db2$[email protected]..
Pablo, how did you fix your problem? Same thing happening here on Win2000,
WLS5.1 SP4.
Thx,
-Bob
"Pablo Corinkha" <[email protected]> wrote in message
news:[email protected]..
Trying to use the statelessSession EJB example. When attempting to run
the client, I get the following message:
Beginning statelessSession.Client...
We were unable to get a connection to the WebLogic server at
t3://localhost:7001
Please make sure that the server is running.
The WebLogic server is definitely running, though. I am able to access
it using port 7001 from a browser. What could be wrong? -
When emailing photos from iPhoto I get a message saying the email server did not recognise my username or password combination?
falKon wrote:
I found that by turning of the SSL option at the bottom of the Accounts panel did the trick.
I think you were trying to reply to the OP, next time press 'reply' in the post you are replying to.
If you are replying to me, what on earth are you talking about? -
i m using iphone 4s . when i try to set direction that time i get one error like the map server is not available . will you help me ?
how to help this problem..?Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
*Don't make any changes on the Safe mode start window.
*https://support.mozilla.com/kb/Safe+Mode -
I have seen other related posts on this site but really no answers, the users seem to be left hanging.
Anyway, I am trying to run the statelessSession example, with the WebLogic server running and listening
on port 7001 on the current machine (i.e. localhost).
Here is what I am seeing:
c:\weblogic\myserver\clientclasses>java examples.ejb.basic.statelessSession.Client
Beginning statelessSession.Client...
We were unable to get a connection to the WebLogic server at t3://localhost:7001
Please make sure that the server is running.
System Configuration:
Win2000, WebLogic 5.1, WL Sp2, Java 1.2.2, weblogic home==> c:\weblogic
I have attached the weblogic.log.
Regards,
JohnHello John,
When I first install "weblogic", I am successfully able to run the examples, but after some time which I completely forget how I make them run, I install it again and encounter the same problem as you.
After spending nearly a whole day on restarting computer, viewing ports etc. :) :(, I remember that I make weblogic run from the command line. First, in a console run setenv and startWebLogic tools which are located under weblogic directory and in an another console run setenv again(for possible errors, I want to be sure that it is correct again) and run your client as explained in the tutorials html pages.
As seen, in computer science, simple things, not hard things, always cause you to lose time :)))
Best regards
Banu
"John Pda" <[email protected]> wrote:
>
I have seen other related posts on this site but really no answers, the users seem to be left hanging.
Anyway, I am trying to run the statelessSession example, with the WebLogic server running and listening
on port 7001 on the current machine (i.e. localhost).
Here is what I am seeing:
c:\weblogic\myserver\clientclasses>java examples.ejb.basic.statelessSession.Client
Beginning statelessSession.Client...
We were unable to get a connection to the WebLogic server at t3://localhost:7001
Please make sure that the server is running.
System Configuration:
Win2000, WebLogic 5.1, WL Sp2, Java 1.2.2, weblogic home==> c:\weblogic
I have attached the weblogic.log.
Regards,
John -
How to get IP address of the Managed Server, in a cluster?
Hello,
I have created a cluster and have two managed servers in it. WLS version is 10.3 and paltform is Windows. Both the managed servers are on different machines. And I have Sun one web server (version 6) configured instead of the WLS in-built web server. I want to display, in my JSP, the IP/host name of the managed server to which the request is going to (forwarded by the Sun one server). How do I do that?
Any help would be greatly appreciated. Thanks in advace.
Thanks,
SanjayThere isint a way to get this which is weblogic specific.
you can try the following code to get it
import java.util.*;
import java.lang.*;
import java.net.*;
public class GetOwnIP
public static void main(String args[]) {
try{
InetAddress ownIP=InetAddress.getLocalHost();
System.out.println("IP of my system is := "+ownIP.getHostAddress());
System.out.println("hostname = " + ownIP.getHostName());
}catch (Exception e){
System.out.println("Exception caught ="+e.getMessage());
Hope this works -
Hi. I need help regarding facebook for blackberry. I cannot post any status update, i keep on receiving an error prompt "the facebook server has returned an unknown error and is not able to fulfill your request. (2001)". it has been like this for the past 3 days. I already did the hard reboot many times, re-send service book though i do'nt think it's needed, and tried uninstalling and reinstalling the facebook application too but still getting the same error everytime i try to post a status update. I can comment to messages on my wall and other profiles, the news feed is updating in time too, i can also log-in and out to facebook with no problem, as well as other applications on my phone like foursquare, BBm, ubersocial, BB protect, BB app world, etc, are all working perfectly fine. And now I don't know what seems to be the problem.
I've already contacted my network provider and told me that the error i'm getting is beyond their scope.
Is anybody having the same problem as mine?
Can someone in BB support team help me regarding this issue and tell me what should I do?
Thank you in advance.I got the same issue !! Since I've updated my Facebook app 2 or 3 week ago !
I can not update my status and check-in ! It gives me "the facebook server has returned an unknown error and is not able to fulfill your request. (2001) "
I can upload photo, put comment on people, like people status/picture. The news feed update perfectly !
I also tryied to uninstall reinstall the app, reboot etc etc ! I still can't update my status !!!! I've installed 3.0.0.17 this morning and the issue is still there...
I've remarked one thing... On my facebook under "privacy setting/the Apps, Games and Websites" I used to have a "blackberry app" installed. It's not there anymore and I didn't remove it.
I don't know how to reinstall it... -
HT2500 how do i get my mail from the pop server to my inbox
Can someone please help me ! I'm sure I did something by accident and don't know how to fix it. My problem is i don't see any emails in my inbox, however my account info says there is mail on the pop server. how do i get the mail from the pop server to my inbox?
thank you for helpingFirst try rebuilding your Inbox.
Select the Inbox.
Under Mailbox in the Menu bar select Rebuild (last option in list)
Note: If you delete a POP account in Mail, it will delete any messages in the Inbox. It does not delete your custom folders or your sent messages.
If the messages have been deleted and are no longer on the server, you can restore from Time Machine.
Let us know if this helps. -
sir
i was not get any mail at my permanent mail addres [email protected] and this mail id also same at apple so where the apple server for login and finish the process tell me is this way to apple to customer support and this is last mail for this other wise i will go through the public protest comision and i will make
statement for this type of fake process
reply soonYou are not addressing Apple here.
This is a user to user forum, this is spelled out in the terms of service you agreed to when you joined.
There is no Apple server for your email.
servers are set up, used and maintained by whatever email service you use-such as rediffmail.
Go threaten them. -
I can't get past "connecting to the update server" when I try to update.
I have received the "update now" notice on my computer for several weeks, but when I click the go ahead button, I get as far as "connecting to the update server" but it never progresses (even after 1/2 hour of waiting). What shall I do?
If you have problems with updating or with the permissions then easiest is to download the full version and trash the currently installed version to do a clean install of the new version.
Download a new copy of the Firefox program and save the DMG file to the desktop
* Firefox 5.0.x: http://www.mozilla.com/en-US/firefox/all.html
* Trash the current Firefox application to do a clean (re-)install
* Install the new version that you have downloaded
Your profile data is stored elsewhere in the Firefox Profile Folder, so you won't lose your bookmarks and other personal data.
* http://kb.mozillazine.org/Profile_folder_-_Firefox -
Getting error while starting the Weblogic server.
Please find the error while i m trying to boot the weblogic:
Dec 9, 2009 12:55:15 PM CST> <Notice> <Stdout> <000000> <Jolt Session Pool cannot provide a connection to the appsever. Thi
s appears to be because there is no available application server domain.>
<Dec 9, 2009 12:55:15 PM CST> <Notice> <Stdout> <000000> <JoltSessionPool: bea.jolt.SessionException: Cannot connect to any /
/tdas2066:11750.
Reason:NwHdlr: Cannot open socket>
<Dec 9, 2009 12:55:15 PM CST> <Notice> <Stdout> <000000> <Jolt Session Pool cannot provide a connection to the appsever. Thi
s appears to be because there is no available application server domain.>
<Dec 9, 2009 12:55:15 PM CST> <Notice> <Stdout> <000000> <JoltSessionPool: bea.jolt.SessionException: Cannot connect to any /
/tdas2066:11750.
Reason:NwHdlr: Cannot open socket>
<Dec 9, 2009 12:55:15 PM CST> <Notice> <Stdout> <000000> <Jolt Session Pool cannot provide a connection to the appsever. Thi
s appears to be because there is no available application server domain.>
<Dec 9, 2009 12:55:15 PM CST> <Notice> <Stdout> <000000> <JoltSessionPool: bea.jolt.SessionException: Cannot connect to any /
/tdas2066:11750.
Reason:NwHdlr: Cannot open socket>
<Dec 9, 2009 12:55:15 PM CST> <Notice> <Stdout> <000000> <Jolt Session Pool cannot provide a connection to the appsever. Thi
s appears to be because there is no available application server domain.>
<Dec 9, 2009 12:55:15 PM CST> <Notice> <Stdout> <000000> <JoltSessionPool: bea.jolt.SessionException: Cannot connect to any /
/tdas2066:11750.
Reason:NwHdlr: Cannot open socket>
<Dec 9, 2009 12:55:15 PM CST> <Notice> <Stdout> <000000> <Jolt Session Pool cannot provide a connection to the appsever. Thi
s appears to be because there is no available application server domain.>
<Dec 9, 2009 12:55:15 PM CST> <Notice> <Stdout> <000000> <JoltSessionPool: bea.jolt.SessionException: Cannot connect to any /
/tdas2066:11750.
Reason:NwHdlr: Cannot open socket>
<Dec 9, 2009 12:55:15 PM CST> <Notice> <Stdout> <000000> <Jolt Session Pool cannot provide a connection to the appsever. Thi
s appears to be because there is no available application server domain.>
<Dec 9, 2009 12:55:15 PM CST> <Notice> <Stdout> <000000> <JoltSessionPool: bea.jolt.SessionException: Cannot connect to any /
/tdas2066:11750.
Reason:NwHdlr: Cannot open socket>
<Dec 9, 2009 12:55:15 PM CST> <Notice> <Stdout> <000000> <Jolt Session Pool cannot provide a connection to the appsever. Thi
s appears to be because there is no available application server domain.>
<Dec 9, 2009 1:04:18 PM CST> <Notice> <Stdout> <000000> <SchedulerTransfer, authentication success>
Java home=/test1/2bl/bea/wl92/jdk150_12
Java command line=java -server -Xms256m -Xmx256m -XX:MaxPermSize=128m -Dtoplink.xml.platform=oracle.toplink.platform.xml.jaxp
.JAXPPlatform -Dweblogic.Chunksize=65536 -Djava.util.logging.config.file=/test1/2bl/psoft/fn89tst2/webserv/fn89tst2/applicati
ons/peoplesoft/logging.properties -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Dweblogic.Nam
e=PIA -Dps_vault=/test1/2bl/psoft/fn89tst2/webserv/fn89tst2/psvault -Djavax.net.ssl.trustStore=/test1/2bl/psoft/fn89tst2/webs
erv/fn89tst2/keystore/pskey -Dweblogic.ProductionModeEnabled=true -Djava.security.policy=/test1/2bl/bea/wl92/weblogic92/serve
r/lib/weblogic.policy -Dssl.debug=false -Dps_home=/test1/2bl/psoft/fn89tst2 weblogic.Server
Java options=-server -Xms256m -Xmx256m -XX:MaxPermSize=128m -Dtoplink.xml.platform=oracle.toplink.platform.xml.jaxp.JAXPPlatf
orm -Dweblogic.Chunksize=65536
<Dec 9, 2009 9:45:19 PM CST> <Notice> <WebLogicServer> <BEA-000395> <Following extensions directory contents added to the end
of the classpath:
/test1/2bl/bea/wl92/weblogic92/platform/lib/p13n/p13n-schemas.jar:/test1/2bl/bea/wl92/weblogic92/platform/lib/p13n/p13n_commo
n.jar:/test1/2bl/bea/wl92/weblogic92/platform/lib/p13n/p13n_system.jar:/test1/2bl/bea/wl92/weblogic92/platform/lib/wlp/netuix
common.jar:/test1/2bl/bea/wl92/weblogic92/platform/lib/wlp/netuixschemas.jar:/test1/2bl/bea/wl92/weblogic92/platform/lib/wl
p/netuix_system.jar:/test1/2bl/bea/wl92/weblogic92/platform/lib/wlp/wsrp-common.jar:/test1/2bl/psoft/fn89tst2/webserv/fn89tst
2/lib/endorsed/xalan.jar:/test1/2bl/psoft/fn89tst2/webserv/fn89tst2/lib/pluto-1.0.1.jar:/test1/2bl/psoft/fn89tst2/webserv/fn8
9tst2/lib/portlet-api-1.0.jar:/test1/2bl/psoft/fn89tst2/webserv/fn89tst2/lib/ps_patch.jar>
<Dec 9, 2009 9:45:20 PM CST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Server VM V
ersion 1.5.0_12-b04 from Sun Microsystems Inc.>
<Dec 9, 2009 9:45:23 PM CST> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:
There are 1 nested errors:
weblogic.management.ManagementException: Unable to obtain lock on /test1/2bl/psoft/fn89tst2/webserv/fn89tst2/servers/PIA/tmp/
PIA.lok. Server may already be running
at weblogic.management.internal.ServerLocks.getServerLock(ServerLocks.java:159)
at weblogic.management.internal.ServerLocks.getServerLock(ServerLocks.java:58)
at weblogic.management.internal.DomainDirectoryService.start(DomainDirectoryService.java:75)
at weblogic.t3.srvr.ServerServicesManager.startService(ServerServicesManager.java:374)
at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServicesManager.java:125)
at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:630)
at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:402)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
at weblogic.Server.main(Server.java:67)
>
<Dec 9, 2009 9:45:23 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
<Dec 9, 2009 9:45:23 PM CST> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself do
wn>
<Dec 9, 2009 9:45:23 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
Also I am able to login into App designer. and the server name and JSL is mentioned in the Configuration file.And this is the first time i am facing the problem
Edited by: user5838027 on Dec 9, 2009 9:01 PMMost of the time this error is coming from a wrong psservername parameter definition in configuration.properties of your Webserver. Be sure you can ping the servername or IP address defined, and the port is the Jolt port of the AppServer domain.
Please, show us what's the value. And also your PTools, Weblogic, Tuxedo version and OS used.
Nicolas. -
Cannot get Universe column in the sql server ?
Hi,
I able to get some of columns using below query , but I cannot get some of the columns from universe to SQL Server.
If I try through SSIS also the columns are missing which are unable to get using openquery.
If I add "Microsoft ODBC Data Source (ODBC)" for Universe U2 also then some of the columns are missing .
For Example : Unable to get "Description" Column.
How can I check what is the problem ? Please help me on this..
select * FROM OPENQUERY(ulive, 'select Description
FROM TABLENAME WHERE Z_ID=''020324.doc''')
Msg 7321, Level 16, State 2, Line 1
An error occurred while preparing the query for execution against OLE DB provider "MSDASQL" for linked server "ulive".
Thank you..What is Universe U2 server? Is it SQL Server or Oracle or perhaps MySQL?
select Description FROM ULIVE.DBNAME.DBO.TABLENAME WHERE Z_ID='020324.doc'
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
How do I delete mails on my Z10 without getting them deleted in the mail server
Hi Friends,
Earlier in OS7, before you delete a mail, you would get a caution message asking if the mail is supposed to be deleted on you handset only or both on handset and mailbox server. I do not see this option now in Z10 and when i Delete the mail on the phone, the same mail gets deleted in my mail server as well.
AM i missing something ??
Thank youif using Exchange Active sync, you see a portion of the message aka headers and only when replying or frwarding does it down load the whole message.
POP will have all of the messages on device and with IMAP only 30 days worth will be on it.
Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
BESAdmin's, please make a signature with your BES environment info.
SIM Free BlackBerry Unlocking FAQ
Follow me on Twitter @knottyrope
Want to thank me? Buy my KnottyRope App here
BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V -
Cannot open Firefox since I connected to wireless network. IE works ok
See "Firefox connection settings" in [[Server not found]]
You can find the connection settings in Tools > Options > Advanced : Network : Connection<br />
If you do not need to use a proxy to connect to internet then select No Proxy
Maybe you are looking for
-
After Effects CC version 12.0 is not updating to version 12.1
Hello: After Effects CC version 12.0 is not updating to version 12.1 on my iMac running Mac OS X 10.7.5. Adobe Creative Cloud desktop version 1.2.0.248 shows that After Effects CC is "Up to date" in the Apps tab; however, it is still version 12.0. I'
-
Oracle 9i database installation (xp pro) error.
I had unzipped the 3 disk files in one folder, upon installation the oracle installer asked me for disk2, neglecting the fact that the folder had all the 3 files unzipped, I again unzipped the disk2and disk3 in a different folder and the directed the
-
Prompt For Document Title as well as file name
Is there script or setting which requires the entry of document title as well as file name upon the saving a document? I understand that I can open document properties prior to saving, but I would prefer to enter the save command and be prompted to e
-
FPGA Reset during power loss? NI 9802 Module
We have recently started using the NI 9802 on a cRIO system. We are getting the error -65550 discussed here: http://digital.ni.com/public.nsf/allkb/BD118434E87B9732862575C8006FD7FB The article says that the error can be caused by the FPGA resetting w
-
Hi Experts, I have one doubt in ale/idocs that is , some idocs are accidently posted, how to solve this issue. at the same time how to avoid duplication of idocs. please send the answers. Thanks & Regards, N.Narasimha Rao.