aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Could not connect to localhost Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Could not connect to localhost" Watch "Could not connect to localhost" New topic
Author

Could not connect to localhost

Agasthya Iyer
Greenhorn

Joined: Sep 22, 2005
Posts: 17
Dear Folks,

When I try to start the deploytool, I get a message in the command prompt "Could not connect to localhost". Becuase of that in the deploytool screen I could not see the Servers listed. I was able to verify the bean and when I wanted to deploy I get the message "Please connect to a server before deploying AdviceApp". The OS I am using is Windows 2000. I am using j2sdkee1.3.1 and j2sdk1.4.2_06.

Any help would be greatly appreciated.

Thanks and Regards,
Agasthya


SCJP, SCWCD1.4, SCBCD1.3
Agasthya Iyer
Greenhorn

Joined: Sep 22, 2005
Posts: 17
Sorry. My bad. Please ignore my previous email. I realized that my RI server was shut down for some reason. Now when I try to run the AdviceClient I get the following error:


C:\scbcd\projects\advice>java -cp %CLASSPATH%;c:\scbcd\projects\advice\AdviceApp
Client.jar AdviceClient
java.rmi.RemoteException: CORBA BAD_OPERATION 0 No; nested exception is:
org.omg.CORBA.BAD_OPERATION: minor code: 0 completed: No
org.omg.CORBA.BAD_OPERATION: minor code: 0 completed: No
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Unknown Source)
at com.sun.corba.ee.internal.iiop.messages.ReplyMessage_1_2.getSystemExc
eption(ReplyMessage_1_2.java:93)
at com.sun.corba.ee.internal.iiop.ClientResponseImpl.getSystemException(
ClientResponseImpl.java:108)
at com.sun.corba.ee.internal.POA.GenericPOAClientSC.invoke(GenericPOACli
entSC.java:132)
at org.omg.CORBA.portable.ObjectImpl._invoke(Unknown Source)
at headfirst._Advice_Stub.getAdvice(Unknown Source)
at AdviceClient.go(AdviceClient.java:26)
at AdviceClient.main(AdviceClient.java:11)

Any help would be appreciated.

Thanks,
Agasthya Iyer
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
This should get you started


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
Veena Pointi
Ranch Hand

Joined: Jun 20, 2002
Posts: 442
I think this is related with methodName having same name Advice as interface.Try changing method Name .The above link explains in detail.


SCJP1.4
"Continuous effort - not strength or intelligence - is the key to unlocking our potential."
*Winston Churchill
Darya Akbari
Ranch Hand

Joined: Aug 21, 2004
Posts: 1855
Hi,

try to simply restart RI first, at least it worked for me

Regards,
Darya


SCJP, SCJD, SCWCD, SCBCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Could not connect to localhost