Solved

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

Posted on 2004-08-31
2
5,581 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
ID: 11950393
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
ID: 11951248
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how can I do this in java I have done some code but stuck! 28 76
FileMaker 13 Port 80 Problem on server 2012 12 194
plusOut java challenge 40 174
JKS to store upstart data 2 98
Configure Web Service (server application) I. Configure security for Web Services methods First, we need to protect Session bean which implements the service: 1. Open EJB deployment descriptor (ejb-jar.xml) in the EJB project that contains you…
Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

770 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