We experienced this problem attempting to access an EJB across server
instances without clustering. The answer from BEA is to manually copy
the stubs today and the problem is fixed in version 5.  We are attempting
to verify the fix using v5b2 but have thus far not completed our test.

Chris Humphrey wrote:

I have seen this also, never did get an answer on it though.  For some reason weblogic wont download the stubs if you are connected to a cluster.

Yair Enden wrote:

 

Hi,
  Using WebLogic clusters I had the following problem while allocating EJB home:
I used the following code:

static String oneServerUrl  = "t3://194.90.45.81:7001";
static String clusterUrl = "t3://194.90.45.84,194.90.45.81:7001";
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.TengahInitialContextFactory");
//p.put(Context.PROVIDER_URL, oneServerUrl );
p.put(Context.PROVIDER_URL, clusterUrl);
Context ctx = new InitialContext(p);
StatelessSumHome home = (StatelessSumHome) ctx.lookup("Test.StatelessSumHome");

The code works fine for        oneServerUrl ' , but if I use the 'clusterUrl'  I receive the following exception:

        "java.lang.ClassNotFoundException: Test.StatelessSumBeanHomeImpl_ServiceStub"

 It should be noted that the missing stub was one of the automatic generated classes. I expected to
receive this class through the net.
The "Test.StatelessSumBeanHomeImpl_ServiceStub" appears within the jar file located by the server.

Any ideas ?
------------------------------------------
  Yair Enden
  3 Sapir St.
  46852  Herzliya

  Tel:
    09- 960 4935

------------------------------------------
  Yair Enden
  3 Sapir St.
  46852  Herzliya

  Tel:
    09- 960 4935
 

Reply via email to