Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 188
  • Last Modified:

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

0
paraggadhia
Asked:
paraggadhia
  • 3
  • 2
  • 2
  • +2
1 Solution
 
objectsCommented:
more info pls.
0
 
LG_GoundalkarCommented:
Please Give Details
0
 
paraggadhiaAuthor Commented:
What are the additional information required ?
0
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.

 
LG_GoundalkarCommented:
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
 
paraggadhiaAuthor Commented:
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
 
objectsCommented:
How about what the error is?
0
 
paraggadhiaAuthor Commented:
------------------------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
 
vemulCommented:
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
 
SpideyModCommented:
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

  • 3
  • 2
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now