Re: Problems with EJB using OAS

From: Jason Pell <Jason.Pell_at_deakinsoft.com.au>
Date: 2000/05/10
Message-ID: <39191166.C072A6EC_at_deakinsoft.com.au>


Hi,

I know that you sent this email a long time ago, but I am having similar problems now
with jDeveloper 3.0/OAS 4.0.8 and EJB. I solved the initial Naming problem by restarting
the OAS Site itself, do not know whether this was overkill (maybe could have just restarted
the particular Listener), but I was happy to have gotten this far.

I then came upon another set of problems:

"C:\Program Files\Oracle\JDeveloper 3.0\java\bin\javaw.exe" -mx50m -classpath "U:\classesdev;C:\Program Files\Oracle\JDeveloper 3.0\lib\jdev-rt.zip;C:\Program

Files\Oracle\JDeveloper 3.0\jdbc\lib\oracle8.1.5\classes111.zip;C:\Program
Files\Oracle\JDeveloper 3.0\lib\connectionmanager.zip;C:\Program
Files\Oracle\JDeveloper 3.0\lib\javax_ejb.zip;C:\Program Files\Oracle\JDeveloper
3.0\lib\ejbapi.jar;C:\Program Files\Oracle\JDeveloper 3.0\lib\oasoorb.jar;C:\Program Files\Oracle\JDeveloper 3.0\java\lib\classes.zip" package1.MyOASAppClient
AppAccelerator(tm) 1.1.8 for Java (JDK 1.1), x86 version. Copyright (c) 1997-1998 Borland International. All Rights Reserved. Copyright (c) 1997-1999 Oracle Corporation. All Rights Reserved. Creating an initial context
Looking for the EJB published as 'MyOASApp23/MyEJB'
java.lang.NoClassDefFoundError: package1.MyEJBHomeHelper
at oracle.oas.container.corba.RemoteObject.narrow(Compiled Code)
at oracle.oas.container.corba.RemoteObject.narrow(Compiled Code)
at javax.rmi.PortableRemoteObject.narrow(Compiled Code) at package1.MyOASAppClient.main(Compiled Code)

I then added the MyOASApp23Cl.jar to the Project as a Library and the error changed slightly:

"C:\Program Files\Oracle\JDeveloper 3.0\java\bin\javaw.exe" -mx50m -classpath "U:\classesdev;C:\Program Files\Oracle\JDeveloper 3.0\lib\jdev-rt.zip;C:\Program

Files\Oracle\JDeveloper 3.0\jdbc\lib\oracle8.1.5\classes111.zip;C:\Program
Files\Oracle\JDeveloper 3.0\lib\connectionmanager.zip;C:\Program
Files\Oracle\JDeveloper 3.0\lib\javax_ejb.zip;C:\Program Files\Oracle\JDeveloper
3.0\lib\ejbapi.jar;C:\Program Files\Oracle\JDeveloper 3.0\lib\oasoorb.jar;U:\classesdev\MyOASApp23Cl.jar;C:\Program Files\Oracle\JDeveloper 3.0\java\lib\classes.zip" package1.MyOASAppClient AppAccelerator(tm) 1.1.8 for Java (JDK 1.1), x86 version. Copyright (c) 1997-1998 Borland International. All Rights Reserved. Copyright (c) 1997-1999 Oracle Corporation. All Rights Reserved. Creating an initial context
Looking for the EJB published as 'MyOASApp23/MyEJB'
java.lang.ClassCastException: package1.MyEJBHome
at oracle.oas.container.corba.RemoteObject.narrow(Compiled Code)
at oracle.oas.container.corba.RemoteObject.narrow(Compiled Code)
at javax.rmi.PortableRemoteObject.narrow(Compiled Code) at package1.MyOASAppClient.main(Compiled Code)

I am stuck with this last error and cannot seem to solve it. Any help would be greatly appreciated.

Cheers
Jason

Faheem wrote:

> We are facing a problem regarding OAS. We have created a simple EJB
> application in JDeveloper 3.0. Our OAS is running on a machine 'PC175'.
> After creating Workspace and Project for this application, we compiled and
> hosted it on OAS from the JDeveloper IDE successfuly. After this, we have
> created a simple client for this application, but when we execute the
> client, an error occurs.
>
> An early response will be highly appriciated,
> Faheem
>
> The Error messages appeare are following:
>
> "C:\Program Files\Oracle\JDeveloper
> 3.0\java1.2\jre\bin\javaw.exe" -mx50m -classpath
> "D:\Naeem\Work\PrivaSeek\Practice\EJBs\FirstBean\classes\DemoClient;C:\Progr
> am Files\Oracle\JDeveloper 3.0\lib\jdev-rt.zip;C:\Program
> Files\Oracle\JDeveloper 3.0\jdbc\lib\oracle8.1.5\classes111.zip;C:\Program
> Files\Oracle\JDeveloper 3.0\lib\connectionmanager.zip;C:\Program
> Files\Oracle\JDeveloper 3.0\lib\ejbapi.jar;C:\Program
> Files\Oracle\JDeveloper
> 3.0\lib\oasoorb.jar;D:\Naeem\Work\PrivaSeek\Practice\EJBs\FirstBean\FirstBea
> nCl.jar;C:\Program Files\Oracle\JDeveloper 3.0\java1.2\jre\lib\rt.jar"
> DemoClient
> Creating an initial context
> Looking for the EJB published as 'FirstBean/Demo'
> Naming exception occurred!
> Cause: This may be an unknown URL, or some classes required by the EJB are
> missing from your classpath, or your OAS host is short of resources
> Suggestion: Check the components of the URL, and make sure your project
> includes a library containing the EJB .jar files generated by the deployment
> utility.
> [Root exception is org.omg.CORBA.NO_IMPLEMENT: minor code: 0 completed:
> No]javax.naming.ServiceUnavailableException
> java.lang.Object
> oracle.oas.jndi.oas.SecCosNamingContext.resolve(javax.naming.Name,
> java.util.Hashtable)
> java.lang.Object oracle.oas.jndi.oas.BeanContext.lookup(javax.naming.Name,
> java.util.Hashtable)
> java.lang.Object
> oracle.oas.jndi.oas.BeanInitialContext.resolve(javax.naming.Name,
> java.util.Hashtable)
> java.lang.Object oracle.oas.jndi.oas.BeanContext.lookup(javax.naming.Name,
> java.util.Hashtable)
> java.lang.Object
> oracle.oas.jndi.oas.BeanInitialContext.lookup(javax.naming.Name,
> java.util.Hashtable)
> java.lang.Object
> oracle.oas.jndi.oas.WrapperContext.lookup(javax.naming.Name)
> java.lang.Object oracle.oas.jndi.oas.BeanContext.lookup(java.lang.String)
> java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
> void DemoClient.main(java.lang.String[])
> .
Received on Wed May 10 2000 - 00:00:00 CEST

Original text of this message