Solved

Unable to connect to the server at:t3://localhost:7001

Posted on 2004-08-31
2
5,288 Views
Last Modified: 2013-12-10
i deployed a session bean at the server, and try to run a client side, and i get
the following error. i try this example both at the wls 6.0 & wls 8.1
this is the following error:


** Unable to connect to the server at:t3://localhost:7001
javax.naming.CommunicationException.  Root exception is java.net.ConnectExceptio
n: No server found at T3://localhost:7001
        at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:155)


<2004-9-1 &#19979;&#21320;12&#26102;51&#20998;36&#31186;> <Info> <ConnectionManager> <Bootstrap unable to get
a routed: 'Protocol: 't3'' connection to: '0S:127.0.0.1:[7001,-1,-1,-1,-1,-1,-1]
' on port: '7001'
java.rmi.ConnectException: No available router to destination

** Unable to connect to the server at:t3://localhost:7001
javax.naming.CommunicationException.  Root exception is java.net.ConnectExceptio
n: No server found at T3://localhost:7001
        at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:155)
        at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:207)
        at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLIni
tialContextFactoryDelegate.java:235)


** Unable to connect to the server at:t3://localhost:7001
javax.naming.CommunicationException.  Root exception is java.net.ConnectExceptio
n: No server found at T3://localhost:7001
        at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:155)
        at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:207)
        at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLIni
tialContextFactoryDelegate.java:235)

0
Comment
Question by:she1
2 Comments
 
LVL 4

Accepted Solution

by:
illusionz70 earned 50 total points
Comment Utility
replace localhost with the ip address of the machine where weblogic has been installed and try again...
also try
http://localhost:7001
0
 

Author Comment

by:she1
Comment Utility
my client like the following: thanks, it use the default initial context.

package com.learnweblogic.examples.ch8.helloworld;

import com.learnweblogic.examples.BaseClient;

import javax.naming.Context;
import javax.naming.NamingException;
import javax.rmi.PortableRemoteObject;

public final class HelloWorldClient extends BaseClient {

  private Context ctx;

  HelloWorldClient(String [] argv)
    throws NamingException
  {
    super(argv);

    ctx = getInitialContext();

  }

  public void runClient()
    throws Exception
  {
   
    HelloWorldHome home = null;

    try {
      Object h = ctx.lookup("HelloWorldEJB");

      home = (HelloWorldHome)
        PortableRemoteObject.narrow(h, HelloWorldHome.class);
    } catch (NamingException ne) {
      System.err.println("Unable to lookup the HelloWorld EJB.");
      System.err.println("Please make sure that the bean has been deployed"+
        ", and the client's classpath has been set correctly.");

      throw ne;
    }

    try {
      HelloWorld hw = home.create();

      System.out.println("Say Hello to EJB.");

      String ejbSays = hw.helloWorld();

      System.out.println("The EJB said: "+ejbSays);
    } catch (Exception e) {
      System.err.println("Received an unexpected exception " + e
        + " while using the HelloWorldEJB.");

      throw e;
    }
  }

  public static void main(String[] argv)
    throws Exception
  {
    HelloWorldClient hwc = new HelloWorldClient(argv);

    hwc.runClient();

  }
}

0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

-Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now