Solved

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

Posted on 2001-07-19
9
164 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
groupSum6 challenge 6 86
firstswap challenge 20 77
Way to decrease size of apk file 9 65
maven module vs maven project 3 21
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

806 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