Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Client program of ejb not getting excuted thru normal java class , app server used is weblogic5.1

Posted on 2001-07-19
9
Medium Priority
?
186 Views
Last Modified: 2013-11-24
0
Comment
Question by:paraggadhia
  • 3
  • 2
  • 2
  • +2
9 Comments
 
LVL 92

Expert Comment

by:objects
ID: 6297561
more info pls.
0
 

Expert Comment

by:LG_Goundalkar
ID: 6298030
Please Give Details
0
 

Author Comment

by:paraggadhia
ID: 6298266
What are the additional information required ?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Expert Comment

by:LG_Goundalkar
ID: 6298315
1. Is the EJB is properly Deployed ??
2. Details about the EJB u have developed.
3. How are u making the call to the call to the EJB which u have deployed in Weblogic.

Thanks
LGG
0
 

Author Comment

by:paraggadhia
ID: 6298367
1. The EJB is properly deployed and it works fine when I  call my client from jsp. The client for calling from jsp works fine and is a bit different from the client which I have written to excute ejb from jsp.

2. The EJB which I have developed is an enitity bean.

3. Following is the code for calling ejb.
import javax.ejb.*;
import java.rmi.*;
import javax.rmi.*;
import java.util.*;
import javax.naming.*;
import java.io.*;
import cfl.*;
import weblogic.rmi.*;

public class XMLClient implements Serializable
{
     public static void main(String[] args)
     {
       try
       {
      Properties p=new Properties();
       p.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
       p.put(Context.PROVIDER_URL,"t3://msukdws9:7001");
      InitialContext ic=new InitialContext(p);

       System.out.println("After InitialContext");

       Object ref=ic.lookup("jndiCFLXMLResponse");

      CFLXMLResponseHome mh=(CFLXMLResponseHome)PortableRemoteObject.narrow(home,CFLXMLResponseHome.class);        
       
       System.out.println("After Lookup");

       CFLXMLResponseHome mh=(CFLXMLResponseHome)PortableRemoteObject.narrow(ref,CFLXMLResponseHome.class);
       CFLXMLResponse m=mh.create("getPvt_String_xmlresp_respID()");

  }
       catch(Exception e)
       {
         System.out.println("Exception caught:"+e.toString());
      }

     }
}



0
 
LVL 92

Expert Comment

by:objects
ID: 6300469
How about what the error is?
0
 

Author Comment

by:paraggadhia
ID: 6301348
------------------------ERROR STARTS HERE -----------------

Exception caught:javax.naming.ConfigurationException [Root exception is weblogic.rmi.ServerException: A remote exception occurred while executing the method on the remote object
 - with nested exception:
[weblogic.rmi.MarshalException: error marshalling return
 - with nested exception:
[weblogic.rmi.server.ExportException: A description for cfl.CFLXMLResponseBeanHomeImpl was found but it could not be read due to: [Failed to find a stub for [class cfl.CFLXMLResponseBeanHomeImpl] implements at least one interface [interface cfl.CFLXMLResponseHome] which extends Remote.]
weblogic.rmi.StubNotFoundException: Failed to find a stub for [class cfl.CFLXMLResponseBeanHomeImpl] implements at least one interface [interface cfl.CFLXMLResponseHome] which extends Remote.
        at weblogic.rmi.extensions.BasicDescriptor.<init>(BasicDescriptor.java:25)
        at weblogic.rmi.extensions.BasicRuntimeDescriptor.<init>(BasicRuntimeDescriptor.java:34)
        at weblogic.rmi.internal.DescriptorManager.resolveClass(DescriptorManager.java:52)
        at weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.java:36)
        at weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.java:27)
        at weblogic.rmi.internal.OIDManager.getRequestDispatcher(OIDManager.java:193)
        at weblogic.rmi.internal.OIDManager.getReplacement(OIDManager.java:182)
        at weblogic.rmi.internal.OIDManager.replaceObject(OIDManager.java:84)
        at weblogic.common.internal.WLObjectOutputStreamBase.replaceObject(WLObjectOutputStreamBase.java:1158)
        at weblogic.common.internal.WLObjectOutputStreamBase.writeObject(WLObjectOutputStreamBase.java:998)
        at weblogic.common.internal.WLObjectOutputStreamBase.writeObjectWL(WLObjectOutputStreamBase.java:166)
        at weblogic.rmi.extensions.AbstractOutputStream2.writeObject(AbstractOutputStream2.java:82)
        at weblogic.jndi.toolkit.BasicWLContext_WLSkel.invoke(BasicWLContext_WLSkel.java:77)
        at weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerObjectAdapter.java, Compiled Code)
        at weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicRequestHandler.java:69)
        at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:15)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)


------------------------ERROR ENDS HERE -------------------
0
 
LVL 5

Expert Comment

by:vemul
ID: 7669634
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
- To be PAQ'ed and points refunded
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

vemul
Cleanup Volunteer
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 7714639
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
In this post we will learn different types of Android Layout and some basics of an Android App.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

971 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