ClassCastException while casting EJBObject to remote Interface

Hi,
Can someone explain me why the following code doesn't work?
MyHome home = context.lookup(...)
MyEJBObject remote = (MyEJBObject)home.create();
EJBObject ejbobj = (EJBObject)remote;
remote = (MyEJBObject)ejbobj;
I get a ClassCastException on the latest statement...
WLS version is WebLogic7.1sp2
TIA,
massimo

Hi,
Can someone explain me why the following code doesn't work?
MyHome home = context.lookup(...)
MyEJBObject remote = (MyEJBObject)home.create();
EJBObject ejbobj = (EJBObject)remote;
remote = (MyEJBObject)ejbobj;
I get a ClassCastException on the latest statement...
WLS version is WebLogic7.1sp2
TIA,
massimo

Similar Messages

  • A problem while getting a EJB remote interface from SJSAS 9.0

    I hava deployed a session bean in SJSAS 9.0
    I wrote some codes to get the remote interface as follow:
    Context ctx = null;
    Hashtable env = new Hashtable();
    env.put ("java.naming.factory.initial","com.sun.jndi.cosnaming.CNCtxFactory");
    env.put("java.naming.provider.url","iiop://127.0.0.1:3700");
    try {
    ctx = new InitialContext(env);
    } catch (NamingException ex) {
    ex.printStackTrace();
    try {
    Object cs =ctx.lookup(ejb.MySessionBean);
    } catch (NamingException ex) {
    ex.printStackTrace();
    A exception occured during the lookup operation.
    javax.naming.NameNotFoundException [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]
    at com.sun.jndi.cosnaming.ExceptionMapper.mapException(ExceptionMapper.java:44)
    at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:453)
    at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:492)
    at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:470)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at demo.Main.run(Main.java:46)
    at demo.Main.main(Main.java:62)
    Caused by: org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
    at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.java:72)
    at org.omg.CosNaming._NamingContextExtStub.resolve(_NamingContextExtStub.java:406)
    at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:440)
    ... 5 more
    Anyone can solve this problem for me???
    Thanks a lot

    We don't recommend explicitly instantiating the CosNaming provider within a stand-alone java client when accessing beans within the Java EE SDK. We have a simpler approach that involves just instantiating the no-arg InitialContext. Details are in our EJB FAQ :
    https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Using EJBObject as remote interface

    Hello all,
    I'm trying to make an ejb session available for web services. I see that we must create an interface similar to the EJBObject, but that simply extends Remote, to get the web service. So I tried to use the EJBObject (which extends Remote) directly in the wscompile to get the wsdl. Unfortunalety I get the following error message that I don't understand:
    error: type cannot implement remote: javax.ejb.EJBHome
    Can someone explain the problem ? And btw, I don't have any problem when I create a copy of my EJBHome and simply extends Remote instead of EJBHome. So why to I have to duplicate the same code in 2 separate classes ?
    Thanks for the help
    This works:
    public interface OperatorGroupCommands extends Remote {
    public void modify(OperatorGroup operatorGroup) throws RemoteException;
    This doesn't work:
    public interface OperatorGroupCommands extends javax.ejb.EJBObject {
    public void modify(OperatorGroup operatorGroup) throws RemoteException;

    I am having the same problem.
    I am try to use web service security in the sun j2ee 1.4 application server. I noticed that web services built from servlets work just fine, but web services built from ejbs do not work so well.
    I tried to deploy an ejb and the security stuff appears in the deploytool when I extend EJBObject. When I extend java.rmi.Remote, the stuff does not show up.
    Did you ever solve this problem?

  • Class cast exception while casting FTPConnectionFactory object

    Hi
    I have SOA Suite Advanced installation - 10.1.3.4 MLR#5.
    I have developed a BPEL which polls an FTP site using a JCA FTPConnectionFactory registered in JNDI - eis/Ftp/My_Ftp.
    If file is present, then BPEL doesnt fetchs it... instead calls a java program through WSIF binding.
    In java program i am retrieving the JNDI object - eis/Ftp/My_Ftp.. casting it to oracle.tip.adapter.ftp.FTPConnectionFactory and get the FTP host and credentials.
    Now using those details i mannually create an FTP Connection and retieve the file.
    This program worked for sure... but recently when i tried the same i got the ClassCastException while casting java.lang.Object got from JNDI to oracle.tip.adapter.ftp.FTPConnectionFactory. I havnt changed any thing on server since... could not understand why this issue has cropped now.
    After lot of research the issue seems due to different Classloaders. JNDI object was loaded by ClassLoaderA and in my java program it is being loaded by ClassLoaderB.
    And these two classloaders dont share classes with each other.
    This is the code:
    InitialContext ctx = new InitialContext();
    Object jndiFTPObj = ctx.lookup("eis/Ftp/My_Ftp");
    System.out.println("Got Object from JNDI is: "+jndiFTPObj+" ClassLoader - "+jndiFTPObj.getClass().getClassLoader());
    // it prints -- Got Object from JNDI is: oracle.tip.adapter.ftp.FTPConnectionFactory@1aa3bbc ClassLoader - FtpAdapter:0.0.0
    FTPConnectionFactory ftpConF = (oracle.tip.adapter.ftp.FTPConnectionFactory)jndiFTPObj;
    // here i get error -- java.lang.ClassCastException: oracle.tip.adapter.ftp.FTPConnectionFactory
    Thinking of RMI/IIOP i even tried:
    FTPConnectionFactory ftpConF = (FTPConnectionFactory)PortableRemoteObject.narrow(ctx.lookup("eis/Ftp/My_Ftp"), FTPConnectionFactory.class);
    it didnt solve the error.
    I tried loading the class using the same loader as:
    Class.forName("oracle.tip.adapter.ftp.FTPConnectionFactory",true,jndiFTPObj.getClass().getClassLoader());
    even that didnt solve the error.
    If any body has some idea... pls help
    Thanks
    Inder

    Issue was due to ClassLoaders... tried to use the same classloader... but couldnt.
    Eventually solved it by using Java Reflection.
    Thx

  • ClassCastException - While type casting Home object after EJB JNDI Lookup

    Sun One Application Server throws a ClassCastException when I try to type cast Home object to it's respective interface type.
    Here is the code ---
    ==============================================
    Object obj = PortableRemoteObject.narrow( context.lookup( jndiName ), homeClass);
    System.out.println("Remote Object - obj : "+obj);
    if (obj != null) {
       System.out.println("obj.getClass().getName() : "+obj.getClass().getName());
       System.out.println("obj.getClass().getSuperclass() : "+obj.getClass().getSuperclass());
       Class[] interfaces = obj.getClass().getInterfaces();
       if (interfaces != null) {
          for (int count = 0; count < interfaces.length; count++) {
             System.out.println("interfaces[ " + count + " ].getName() : " + interfaces[ count ].getName());
    }==============================================
    The class name is dislpayed as the Stub class name.
    While displaying the interfaces, the Home Interface name is displayed.
    But later when I try to type cast it into Home Interface type, it throws a ClassCastException.
    Can somebody please check this?

    Please post the stack trace. Also, take a look at our EJB FAQ to make sure you're doing the
    recommended lookup :
    https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html

  • ClassCastException at Remote object although remote interface is implemented

    Hi,
    I want to access a remote object via T3 (on WebLogic 10) but I am
    getting a ClassCastException in the client. The exception is thrown if
    the generic "Remote" object is casted into a concrete remote interface.
    The following works ok (client side, get remote object via JNDI):
    Hashtable hashTable = new Hashtable();
    hashTable.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    hashTable.put(Context.PROVIDER_URL, "t3://localhost:7001);
    ic = new InitialContext(hashTable);
    Remote r = (Remote) ic.lookup("...jndi bind name...");
    But this cast fails:
    IMyRemoteIntf i = (IMintRemoteIntf) r;
    The ClassCastException has the classname of the class which implements
    the remote interface - the lookup should be ok therefore. With
    r.getClass().getInterfaces() I have verified that the remote object
    actually implements the appropriate interface. I suppose it is a class
    loader issue then and added some debug output.
    Class loader parent chain of IMyRemoteIntf:
    weblogic.utils.classloaders.ChangeAwareClassLoader@1715ee2
    -> weblogic.utils.classloaders.GenericClassLoader@123ade0
    -> weblogic.utils.classloaders.FilteringClassLoader@1312cf9
    -> weblogic.utils.classloaders.GenericClassLoader@159ea8e
    -> java.net.URLClassLoader@82d37
    -> sun.misc.Launcher$AppClassLoader@e39a3e
    -> sun.misc.Launcher$ExtClassLoader@a39137
    Class loader parent chain of IMyRemoteIntf as reported by r.getInterfaces():
    sun.misc.Launcher$AppClassLoader@e39a3e
    -> sun.misc.Launcher$ExtClassLoader@a39137
    IMyRemoteIntf is in a jar file in WEB-INF/lib of my web application. I
    tried prefer-web-inf-classes = true in weblogic.xml as well as
    prefer-application-packages in weblogic-application.xml (with the
    respective package of the interface).
    Any ideas? I don't know what more I can try. I can access the same
    server with this t3 URL just fine from outside of the WebLogic server.
    Regards
    Werner

    I meant an issue about multi-connections. Although the socket is shared by all of the connections, each connection in RMI might correspond to a separated thread, I guess. Since the socket is shared by all rmi clients, the RMI channel would be a blocking connection. I am not sure if the RMI in JDK1.4 or above also use the nonblocking new I/O technique. Thanks.

  • Creating Remote Interface using workshop

    I created a session EJB using weblogic workshop 8.1 sp3. It autogenerated the remote interface that extends EJBObject, and is uneditable. I want my remote interface to extend com.bea.p13n.property.EntityPropertyManager. How can I create my own remote interface while creating a session bean using workshop? Appreciate your help.

    Hi,
    I am in the same boat. Did you find any solution to it?.
    Thank You.

  • EJB3 Stateful:ClassCastException when casting the object returned in lookup

    Hi,
    I'm developing a web application that make use of EJB3 stateless and stateful beans. The application server is the Websphere Application Server 6.1.0.15 with the EJB3 Feature Pack installed and the web server is the IBM HTTP Server running in another machine.
    The problem I'm facing is that for every stateful bean after the lookup, it throws a ClassCastExcption when casting the object returned. See part of the log below.
    [7/13/08 3:15:48:869 CDT] 0000001c SystemErr R java.lang.ClassCastException: cannot cast class com.spcs.dsa.ejb.authenticationmanager._AuthenticationManager_Stub to class com.spcs.dsa.ejb.authenticationmanager._AuthenticationManager_Stub
    at com.ibm.rmi.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:396)
    at com.spcs.dsa.ejb.client.DsaEjbClient.getAuthenticationRemote(DsaEjbClient.java:37)
    at com.spcs.dsa.action.NewCardAction.execute(NewCardAction.java:85)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    Please notice in the log above that the cast was done for the correct class.
    Here is the java code:
    AuthenticationManager auth =
    (AuthenticationManager) javax.rmi.PortableRemoteObject.narrow(
    context.lookup("com.spcs.dsa.ejb.authenticationmanager.AuthenticationManager"),
    AuthenticationManagerStub.class);
    This problem doesn't happen for statless beans. If you simply change the class to be stateless, this problem stop to happen.
    If you run this code in a stand alone program, this problem doesn't happen. It only happen when running in the web server.
    Does anybody know what should be done to solve this problem ??
    Thanks,
    Marcos.

    I'm not familiar with any specifics of IBM's implementation but from an EJB 3 spec perspective there is no need to use PortableRemoteObject.narrow() if you're retrieving an EJB 3.0 Remote Business interface, regardless of the component type( stateful vs. stateless). In addition, the "_Stub" class should never have to be part of your client programming model. That should be hidden within the vendor's implementation, if present at all.
    If AuthenticationManager is the Remote 3.0 Business Interface
    @Remote
    public interface AuthenticationManager {
    your client lookup should be :
    AuthenticationManager am = (AuthenticationManager) context.lookup("...");

  • ClassCastException while creating sendstream

    Hi,
    I'm trying to establish an unicast rtp session and play an url to the remote client.
    DataSource[] sources = new DataSource[urls.length];
              for(int i = 0; i < urls.length; i++) {
                   sources[i] = Manager.createDataSource(urls);
              DataSource mergedDataSource = Manager.createMergingDataSource(sources);
              SendStream sendStream = m_rtpManager.createSendStream(mergedDataSource, 1);
              sendStream.start();
    I throws ClassCastException while creating the sendstream object.
    java.lang.ClassCastException
         at com.sun.media.rtp.RTPSessionMgr.createSendStream(RTPSessionMgr.java:1098)
         at com.sun.media.rtp.RTPSessionMgr.createSendStream(RTPSessionMgr.java:1262)
         at com.untd.apps.ms.rtp.session.RtpSession.play(RtpSession.java:85)
         at com.untd.apps.ms.action.HandleAnncCommand.execute(HandleAnncCommand.java:44)
    I decompiled the RtpSessionMgr class and here are the few lines of the createSendStream method
    /** RtpSessionMgr class **/
    public SendStream createSendStream(int ssrc, javax.media.protocol.DataSource ds, int streamindex)
    throws UnsupportedFormatException, IOException, SSRCInUseException
    SSRCInfo i = cache.lookup(ssrc);
    if(i != null)
    throw new SSRCInUseException("SSRC supplied is already in use");
    int newSSRC = ssrc;
    if(cache.rtcp_bw_fraction == 0.0D)
    throw new IOException("Initialized with zero RTP/RTCP outgoing bandwidth. Cannot create a sending stream ");
    PushBufferStream streams[] = ((PushBufferDataSource)ds).getStreams();
    PushBufferStream sendstream = streams[streamindex];
    The datsource that I use is PullDataSource (In the api, it is mentioned that we can pass both push and pullDatasources to this method).
    By default the Datasource for http protocol is an instance of PullDataSource. But in the createSendStream method, the dataSource is casted to PushDataSource. I guess this is why it throws ClassCastException.
    Could someone please help me resolve this error.
    Thanks,
    Ganesh.

    Never mind. Resolved the issue myself.
    By setting the audio formats using processor, I resolved the issue. The datasource from processor.getDataOutput() is a PushDataSource.

  • ClassCastException while getting EJBRemote

    Hi,
    I am getting a ClassCastException while trying to get the EJBRemote (SessionRemote) of a stateless session bean in oc4j 10.1.2
    Object lookupObject = CEJBContext.getHome(loc_s_lookupName);
    Class lookupClass = lookupObject.getClass();
    lookupObject = PortableRemoteObject.narrow(lookupObject, lookupClass);
    Method method = lookupClass.getMethod("create", null);
    SessionRemote remote = (SessionRemote)method.invoke(lookupObject, null);
    Any help will be appreciated.

    The application is packaged into a EAR with a web module and the ejb module.
    This error is coming while either casting the home or the remote ejb.
    I am getting the system log related to the error
    08/06/23 17:26:31 RequestHandler:1CCC01
    08/06/23 17:26:31 RequestHandler:1RoutingProcessFacade
    08/06/23 17:26:32 Error exporting object RoutingProcessFacade EJBHometo POA: Error initializing POAs : Unable to create POA
    08/06/23 17:26:32 RequestHandler:1
    08/06/23 17:26:32 RequestHandler:2
    08/06/23 17:26:32 RequestHandler:3
    08/06/23 17:26:32 lookupObject:RoutingProcessFacade EJBHome
    08/06/23 17:26:32 RequestHandler:4
    08/06/23 17:26:32 Error exporting object RoutingProcessFacade stateless sessionto POA: Error initializing POAs : Unable to create POA
    08/06/23 17:26:32 __Proxy1
    The stack trace is also attached
    08/06/23 17:26:32 java.lang.ClassCastException
    08/06/23 17:26:32      at com.ejb.util.RequestHandler.executeRequest(RequestHandler.java:45)
    08/06/23 17:26:32      at com.ccc.action.HoldThread.run(HoldThread.java:43)
    08/06/23 17:26:32      at java.lang.Thread.run(Thread.java:534)
    08/06/23 17:26:32 java.lang.NullPointerException
    08/06/23 17:26:32      at com.ccc.action.HoldThread.run(HoldThread.java:50)
    08/06/23 17:26:32      at java.lang.Thread.run(Thread.java:534)
    Can please anyone help. This is urgent.
    Regards
    Gautam

  • How to specify a base class for Remote Interface in Workshop 9.2? -- URGENT

    Hi,
    I am trying to create a UUP EJB in WebLogic 9.2 workshop. I am using @FileGeneration to create my home & remote interfaces. And the generated remote interface is extending javax.ejb.EJBObject;I want my remote interface to extend com.bea.p13n.property.EntityPropertyManager which in turn implements javax.ejb.EJBObject. Can someone tell how i can do it in Workshop?.
    I came across Predefined Variable: remote.baseClass and as per docume
    ntation..."If specified, the value of this variable will be used as the base class for all generated remote classes. Where i should specify it?. @FileGeneration does nt have any option for it. Any help is grtly appreciated.
    Following are my code snippets:
    IMPL Class
    @FileGeneration(remoteClass = Constants.Bool.TRUE,remoteHome = Constants.Bool.TRUE, localClass = Constants.Bool.FALSE, localHome = Constants.Bool.FALSE,remoteClassName = "MyEntityPropertyManager",remoteHomeName = "MyEntityPropertyManagerHome")
    public class MyEntityPropertyManagerImpl extends GenericSessionBean implements
              SessionBean {
    //code
    }

    This question was posted to both the bea.workshop.developer.general and weblogic.developer.interest.workshop (I had replied to the later on 10/19); after seeing an identical question today on this list want to include a reference to that reply here:
    http://forums.bea.com/bea/message.jspa?messageID=600044925&tstart=0
    -Rob

  • Error while processing message to remote system

    Hi,
    I am trying to load the data from flat file to R/3. I am using the file adapter to pick the file and RFC adapter to transfer into R/3. I am getting the success status in the sxmb_moni and adapter framework(green for both the adapters). But when i check the status in the RWB message monitoring, I am getting the error.
    I am using the message interface defined in the software component for R/3 system which has a different namespace. When i am trying to upload data, i am getting the error as namespace missing in RWB. The detailed error in RWB is as follows:
    Exception caught by adapter framework: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: could not get functionname from XML requst: com.sap.aii.af.rfc.RfcAdapterException: failed to read funtionname from XML document: missing namespace declara
    Delivery of the message to the application using connection AFW failed, due to: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: could not get functionname from XML requst: com.sap.aii.af.rfc.RfcAdapterException: failed to read funtionname from XML document: missing namespace declara.
    The previous thread relating this is:
    Process Integration (PI) & SOA Middleware
    Requesting for a solution.
    Regards,
    Raghavendra

    Hi,
    >>><i>So i tried creating a RFC(using sm59)in the R/3,
    When i try to import the RFC i have created, I am not able to see the one i have created.</i>
    In your R/3 system, go to se38, enter your RFC name. Go to attributes tab, and click on the radio button named "remote enabled"
    This will enable your RFC to be called by an application outside the R/3 system.
    >>><i>Can you please let me know as to what is it that it is connecting to the R/3(destination) and why am i not able to find my RFC.</i>
    You are tyring to log on to your R/3 system, from xi, in order to import the RFC that you have created. Hence you are asked for user id and password.
    You are not able to find your RFC since it has not been remotely enabled or has not been activated.
    Regards,
    Smitha.

  • File to RFC - error while processing message to remote system:com.sap.aii.

    Hi
    i m working on File to RFC scenario. the records are getting displayed in sender CC and receiver CC. But in receiver CC i m also getting the following error:
    Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: JCO.Exception while calling ZRFC in remote system (RfcClient[CC_RIS_STC_PIMASTER_RECEIVER]):com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE:      Screen output without connection to user.    
    Error in processing caused by: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: JCO.Exception while calling ZRFC in remote system (RfcClient[CC_RIS_STC_PIMASTER_RECEIVER]):com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE:      Screen output without connection to user.   
    It was working fine few hours earlier but showing this error now. i was giving a SUBMIT program , but stopped that now.
    But still facing the same problem. and in SXMB_MONI its showing recorded for Outbound processing.
    could anyone help.

    Hi
    I am Facing  Following Error When I am trying to call SAP Screen through JCO.jar
    com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Screen output without connection to user
    Please Guide Whethere it is possible to call SAP screen Through JCO.jar  ot NOT
    Please HELP if it is possible to Call SAP screen through JCO.jar with step and Code
    Thanks
    Vivek

  • Remote Interface problem using Sun ONE App & web server

    HI,
    1) I am using an S'less SB. I have local & remote interfaces. I am using the sun one appserver7 & the sun ones's htttp server. By default it doesnt pick up the remote interfaces is it ? How do i make my remote interfaces work ? what are the changes required in config/xml ?
    2) However i changed my client code (i.e my action class which is called by the struts action servlet ) to access the localhome rather than the remote home, but then i get java.lang.classcastexception.
    pls help !
    sanjay

    Hi parsuram,
    Thanks for the tip. After looking at the sample source code, I did finally figure out the solution - so I'll post it in case anyone else happens to be working with websphere studio has the same issue deploying on sun one.
    To access local interface ejb, you must have the following
    1. ejb-local-ref tag in the ejb-jar.xml like so underneath the <session> or <entity> tag of the bean which you plan to access the local ejb with.
    <ejb-local-ref>
    <ejb-ref-name>TestL</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <local-home>memory.simple.TestLLocalHome</local-home>
    <local>memory.tool.simple.TestLLocal</local>
    <ejb-link>TestL</ejb-link>
    </ejb-local-ref>
    2. similar ejb-ref tag in sun-ejb-jar.xml
    <ejb-ref>
    <ejb-ref-name>TestL</ejb-ref-name>
    <jndi-name>localejbs/module_memory.betaEJB/TestL68640023372300293</jndi-name>
    </ejb-ref>
    note: sun generates the <jndi-name> and overwrites whatever you put in that tag no matter what you put in there.
    3. here is the code to access
    Context initial = new InitialContext();
    TestLLocalHome tlHome=(TestLLocalHome) Initial.lookup
    ("TestL");
    //the string must match <ejb-ref-name> underneath <ejb-local-ref>
    4. note that the jndi name for the local interface bean becomes irrelevant. only the <ejb-ref-name> in the ejb-jar and sun-ejb-jar matter. furthermore, both <ejb-ref-name> must be the same or you won't be able to deploy.
    5. This is completely my fault for not checking the "proper" way to access local interfaces. in websphere, they let you get away without the ejb-ref tags and just use the string "local:/TestL"!
    -matt

  • EJB deployment problem --New remote interface class files are not loaded

    Hi, I face a problem while deploying an ear file in oc4j. I basically get some problems like the method in the remote interface is not implemented in the EJB class. But the implementation is actually available in the EJB class.
    We get this problem when we actually change the signature of the EJB remote methods. The new methods are not referenced by oc4j. Only the old version of remote interface is referenced by oc4j. But the latest version of EJB class is taken. I am using 9.0.3 version of the oc4j. Could you pls help me regarding this problem ?
    Regards
    Solomon

    I have found the solution :-)
    You must add to the ejbCreate() method of the bean class throws javax.ejb.CreateException

Maybe you are looking for

  • Is there a way to use SPD workflow to enhance the alert function in a SharePoint list?

    I have a request to achieve this: the Alert function in a list only allows a user to get alert when anything changes or created, but there is no way to specify notification before a certain field date.  For Example,   users want to be able to choose

  • Sports Mix? Voice over?

    Quick, perhaps dumb question: I purchased a sports mix from iTunes and the music is great. I'm told that there is supposed to be motivational stuff on the mix(vs. the standard prompts from the nano) but nothing is there but my music? Also, the first

  • Clarification on SQL Server to Oracle 8i Migration

    I have seen several posts on this, but would like to clarify the following issues: 1. Does Migration Workbench come on the CD with Oracle 8i? 2. Does Migration Workbench support migrating to 8i? (The version I have seen, 1.0.4, goes from 6.5 to 8.0.5

  • Self Password management in SAP 4.7

    Hi Techies, Is there any way to enable self password management in SAP 4.7 (ABAP)? My requirement is user have to Unlock/Reset his own SAP ID and get confirmation to his own mail address mapped in SAP. This is just to avoid the routine activity of He

  • Arabic language pack on nokia 5800

    hi i bought a nokia 5800 from hong kong with preinstalled chinese and english language, but my bro recently purchased a nokia 5530 from the same place, and it also has the same language packs preinstalled. however, the 5530 can view the arabic font (