URGENT : ejb client in Oracle 8

We developed a EJB client. This client should be called from an Oracle Database 8.1 (ejb compliant). But, each time we tried to load weblogic.jar, we have several errors into Oracle (ie : ORA-29534 NamingContext could not be resolved)
Do you have an idea why ? Someone already developed an ejb client into Oracle 8.1 ?

They are reccomended because the next step going from your simple single EJB
to anything interesting, like adding more EJB's adding web-apps, adding
web-services etc etc involves ears. If the setup and overhead for an EAR is
easy, then just start there.
But no if you just doing helloworld you of course dont have to ears.
cheers
mbg
"Christopher R. Gardner" <[email protected]> wrote in message
news:3fc0560e$[email protected]..
>
"Mark Griffith" <[email protected]> wrote:
You can still run ejbc from the command line its still there. And you
can
still run weblogic.Deployer. (I dont ever reccomend jaring up in dev,
it
just takes longer, do exploded its easier and faster).
But ear's are easy, see:So ears are recommended even if you're just doing EJBs (e.g., a simpleHello World)
and no web apps (none needed for the Hello World or a PC client)?
http://www.niffgurd.com/mark/work/blog/
Cheers
mbg
"Christopher R. Gardner" <[email protected]> wrote in message
news:3fbfd6c6$[email protected]..
My understanding is ejbc has been deprecated and replaced with appc.Moreover,
BEA is encourgaging developers to deploy ear files. All I want todo is
to use
ant to deploy a jar file with a single EJB in it. I'm not findingthe WL
documentation
very helpful. Hopefully, you'll have better luck than I.
"skmurali" <[email protected]> wrote:
Hi
In order deploy EJB application in Weblogic 8.1, is it necessary
to compile
the application in WebLogic.ejbc. I did not find such files in
WebLogic
8.1
In weblogic 7.0 versiion has such files.
The present procedure is as follows.
1. Create a jar file contains all class files.
2. Create a jar file contains class jar files, plus .xml files
3. Deploy into weblogic 8.1 server EJB Deployment utility.
==================
Please help me.
Murali

Similar Messages

  • Jdk 1.2 clients running ejb deployed on oracle 8.1.5

    Oracle claims that it is possible to run jdk 1.2 clients with ejb on oracle 8.1.5 in the faq : http://technet.oracle.com/products/oracle8i/htdocs/jserver_faq/815faq0012.html
    If you have JDK1.2 on the client side and:
    8.1.5 clients connecting to an 8.1.5 server: This does not work, because of conflicts with the ORB supplied in JDK1.2.
    8.1.5 clients connecting to an 8.1.6 server: This does not work, because of conflicts with the ORB supplied in JDK1.2.
    8.1.6 clients connecting to an 8.1.5 server: This works provided the "server" portion of the application is developed/loaded using the client side tools and jars that are supplied with 8.1.5.
    What do they meen with 8.1.6 clients? and how to make 8.1.6 clients?

    Oracle 8.1.6's JVM uses JDK 1.2. Oracle's 8.1.6 JDBC drivers support JDBC2 and JDK2. The 8.1.6 drivers are available for download from OTN under the Technologies section.
    If you develop a client (application, applet, servlet, JSP, etc.) using the Oracle 8.1.6 JDBC drivers, then this is considered an Oracle 8.1.6 client.
    Laura

  • Unable to get 'InitialContext' using Java Client in Oracle App 10.0.2.0

    Scenario & Problem Description: Unable to get 'Initial Context' using Simple Java Client in Oracle Application Server 10.0.2.0
    I'm having an issue while I try to initialize the Initial Context for an EJB lookup from a simple Java Client [local lookup], but the same code snippet works fine when I try from Servlet. I have enclosed the Exception Stack Trace and the Code Snippet for your reference.
    1. .NET Client ---> Servlet --> LookupUtility --> EJB --> DB - Issue
    2. .NET Client ---> Servlet --> EJB --> DB - Works
    Exception: java.lang.InstantiationException: Error communicating with server: Lookup error: javax.naming.AuthenticationException: Invalid username/password for Config (guest); nested exception is: nested exception is: Exception in InitialContext: javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException: Invalid username/password for Config (guest) at com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext(ApplicationClientInitialContextFactory.java:149)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
    at javax.naming.InitialContext.init(InitialContext.java:219)
    at javax.naming.InitialContext.<init>(InitialContext.java:195)
    at com.seagate.edcs.config.util.LookupUtility.getInitialContext(LookupUtility.java:123)
    at com.seagate.edcs.config.util.LookupUtility.getConfiguration (LookupUtility.java:69)
    at com.seagate.edcs.config.util.LookupUtility.main(LookupUtility.java:135)
    Code Snippet:
    * This method returns the Configuration for the properties set.
    public ArrayList getConfiguration ( ) throws Exception {
    ArrayList arrayList = null;
    try {
    Context context = getInitialContext();
    System.out.println("Context : " + context);
    Object home = context.lookup("java:comp/env/ejb/com.seagate.edcs.config.ejb.ConfigSessionEJBHome");
    System.out.println("Object home : " + home);
    ConfigSessionEJBHome configSessionEJBHome = (ConfigSessionEJBHome)PortableRemoteObject.narrow(home, ConfigSessionEJBHome.class);
    System.out.println("ConfigSessionEJBHome configSessionEJBHome : " + configSessionEJBHome);
    ConfigSessionEJB configSessionEJB =(ConfigSessionEJB)PortableRemoteObject.narrow(configSessionEJBHome.create(), ConfigSessionEJB.class);
    System.out.println("ConfigSessionEJB configSessionEJB : " + configSessionEJB);
    arrayList = configSessionEJB.getAllConfig();
    System.out.println("Context : " + context);
    } catch (Exception ex) {
    System.out.println("Exception Occured");
    throw ex;
    return arrayList;
    * Get an initial context from the JNDI tree.
    private Context getInitialContext() throws NamingException {
    try {
    Hashtable hashtable = new Hashtable();
    hashtable.put("java.naming.factory.initial", "com.evermind.server.ApplicationClientInitialContextFactory");
    hashtable.put("java.naming.provider.url", "ormi://seagate.mil-shivas-270.am.ad.seagate.com/home"); // if we won't specify the port, it considers the default port
    hashtable.put("java.naming.security.principal","ias_admin");
    hashtable.put("java.naming.security.credentials","ias123");
    return new InitialContext(hashtable);
    } catch (NamingException ne) {
    System.out.println("Exception in InitialContext.");
    throw ne;
    Note:
    1. The user "ias_admin" & password "ias123" are the credential provided for the 'Admin' while installing the Oracle App Server and using these credentials I'm able to bring the Admin Console. Also, added new user 'guest/guest' - assigned this user to the 'admin' group ...
    2. Since its a local lookup, there is no need to specify the credentials, but at runtime a dialog box pops up prompting to enter the 'userid/password' and when I enter the crendtials, I get the exception as stated. [In case of Servlet - EJB lookup, I'm not specifying any credentials]
    Are there are any configuration parameters which I need to provide in any of the .xml? Could you please let me know the fix for the same.
    Regards,
    Kafeel/-

    Please use the OS {forum:id=210}

  • Problem while running ejb application in Oracle Application Server

    I have created sample ejb application in jdeveloper with ejb 3.1 version,
    i also created jsp page which will invoke ejb client and display result,
    its running perfectly in embeded oc4j server, but while deploying application in
    Oracle application server its is giving below error message
    Javax naming exception: unable to find remote interface., i am confusing please give me sollution .

    Hi Mr.Frank,
    i have created remote interface by importing javax.ejb.Remote,
    my interface name is additionEjb
    and i defined a sample method and in my client i called like below
    additionEjb AdditionEjb = (additionEjb)context.lookup("additionEjb");
    In embeded oc4j server its running perfectly but after deploying to OAS below error throwing
    The exception is : javax.naming.NameNotFoundException: additionEjb not found
    Help me regrding this.

  • Connection problem while invoking remote method from client using oracle 8.1.6 server

    while using a connection object to make connection to oracle in all remote methods(in EJB)only the first remote method called from the EJB client is getting invoked and the connection stops.It gives me COMM_FAILURE while invoking the second method in oracle 8.1.6.Help me out in this aspect immediately please.

    r singh wrote:
    >
    I am getting "No Suitable Driver" exception from WebLogic 6.1 (sp1) at
    the start up of the server.
    My settings:
    - WLS 6.1 on a solaris 8 machine and Oracle 8.1.6 on a WIN2K machine.
    - I created the connection pool for oracle with the following
    parameters:
    connection name: OracleConnectionPool
    url: jdbc.oracle.thin:@myOracleServer:1521:myDBName
    driver class name: oracle.jdbc.driver.OracleDriver
    properties: user=scott
    password=tiger
    - I have also downloaded classes12.zip and nls_charset12.zip from
    Oracle.com
    and have placed under $WL_HOME/lib.
    - I have added $WL_HOME/lib/classes12.zip:$WL_HOME/lib/nls_charset12.zip
    in
    front of the $CLASSPATH in the startWeblogic.sh script. The echoed
    classpath
    from the startup script is:
    /opt/tools/bea/wlserver6.1/lib/classes12.zip:/opt/tools/bea/wlserver6.1/lib/nls_
    charset12.zip:/opt/tools/bea/wlserver6.1:/opt/tools/bea/wlserver6.1/lib/weblogic
    _sp.jar:/opt/tools/bea/wlserver6.1/lib/weblogic.jar
    - Still I get the error:
    <Jan 16, 2002 1:38:45 PM EST> <Error> <JDBC> <Cannot startup
    connection pool "Or
    acleConnectionPool" No suitable driver>
    Can somebody point me out if i am doing anything wrong here.
    Thanks.
    RamanandHi,
    Sure. Your URL should be "jdbc:oracle:thin:@myOracleServer:1521:myDBName"
    not "jdbc.oracle.thin:@myOracleServer:1521:myDBName"
    Joe

  • Error in running EJB Client on a remote machine

    I delploy my beans and can run the EJB Client locally. However when I try to run the Client on another machine, there are errors.
    Here is the errors
    Syntax error
    Out of environment space
    Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/enterprise/appclient/Main
    I have follow the step in the j2ee tutorial and set the env variables according. Here is the bat file I write
    set APPCPATH=CBSAppClient.jar
    set VMARGS=-Dj2eelogin.name=guest -Dj2eelogin.password=guest123 -Dorg.omg.CORBA.ORBInitialHost=192.168.0.2
    runclient -client CBSApp.ear -name CBSClient -textauth
    Do anyone facing the same problem with me?
    And how can I solve the problems?
    This is really URGENT, please help

    You are running on Windows 9x or Me, right? The darn OS has 300 or so bytes allocated for environment by default.
    Try setting the Initial environment to 4096 in the Properties|Memory tab for the batch file. That will get rid of "Out of environment space". The syntax error is another matter; Windows (except NT and derivatives) shells do not allow '=' in an environment variables value. You cannot overcome that. Some software (Sybase for instance) interprets # as = just because of that. Unfortunately, the JVM doesn't take such an approach.
    Better, grab copies of Unix utilities for Windows (www.gnu.org) including the wonderful shell 'bash' and write .sh scripts, which are inherently more powerful.

  • EJB Client JAR Creation - Workspace Studio (ALSB 3.0/WLS 10)

    hi
    I'm trying to create an EJB Client JAR for an 2.1 Session Bean EJB Created in a WLS 10 domain using BEA Workspace Studio (i.e. this is the Aqualogic Service Bus 3.0 Product install).
    I'm doing this in preparation for testing the ALSB EJB Transport which requires a client JAR.
    I simply can't get a useful JAR from the facility provided in the Workspace IDE. The Workspace help is pointing to an IBM generated page and I'm following the procedure there.
    I have configured the EJB for an EJB Client Project.
    If I export an EAR from the Application containing the EJB, the EAR only contains the EJB JAR (with a Manifest entry to a non-existent Client JAR).
    If I export the EJB Client Project to a JAR the JAR is simply empty i.e. contains some descriptor type artefacts but no classes.
    I have tried this quite a few times with the same outcome. Can anyone from BEA or the user community confirm whether or not this facility actually works!
    Thanks
    Jim Nicolson

    http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/ejbTransport/ejbtransport.html#wp1079062 . This is document for OSB 10xx and yours is a a version or two older than this (So it will be applicable).
    Can you please check if your EJB are complying to 2.1specification?
    However the latest version of service has support for both EJB 2.1 and EJB 3.0 specification
    http://download.oracle.com/docs/cd/E14571_01/doc.1111/e15866/ejb.htm#CCGIFFCI
    Thanks
    Manoj

  • How to hide password in EJB client

    I have created an EJB client and it's initial context code is as below.
    Hashtable env = new Hashtable();
    env.put( Context.INITIAL_CONTEXT_FACTORY, "oracle.j2ee.naming.ApplicationClientInitialContextFactory" );
    env.put( Context.SECURITY_PRINCIPAL, "scott" );
    env.put( Context.SECURITY_CREDENTIALS, "welcome1" );
    env.put(Context.PROVIDER_URL, "ormi://132.100.5.248:23791/ejbhr");
    The password is shown within the code. Please advise how I can hide this password, thanks.
    SK

    Hi Mike,
    Thanks for your information. From the documentation, password indirection applies to data-sources.xml, ra.xml, rmi.xml, jms.xml. My case is that the password is contained inside a Java program. Would you please provide me an example on how to apply password indirection for EJB client Java program? Much thanks.
    SK

  • Ejb Client

    I'm getting the following error in EJB CLient
    plz telle me some solutions ..
    NamingException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    Thanks in Adv
    Srini

    Please see the documentation
    Oracle Application Server Containers for J2EE Enterprise JavaBeans Developer's Guide 10g (9.0.4) Part Number B10324-01
    http://download-uk.oracle.com/docs/cd/B10464_04/web.904/b10324/primer.htm#1020065
    Example 2-6 A Servlet Acting as a Local Client
    Example 2-7 A Java Client as a Remote Client
    Hope that helps.

  • Urgent- forms4.5 with oracle 8i

    Hi,
    I want to migrate to oracle 8i on Sun Solaris 2.6. I currently have oracle 7.3.
    I am also running froms 4.5 as clients with oracle 7.3.
    I want to know does oracle 8i support form 4.5. ?
    Does Forms 4.5 can be connected to oracle 8i in any way?
    This is urgent . Please response.
    null

    Hi Prasad,
    You have to go to network directory where your forms are stored and in that there is one more subdirectory admin. there you will find file tnsnames.ora or if you don't find it there copy that file from samples directory present in admin folder.open that file using notepad. then example1.world will be there you just replace that with your connect string you want to specify.In host give the IP address of your server and Give the instance name of your 8i database where SID = your instance name.
    i am pasting one sample have a look and i hope this helps you.
    regards
    gaurav
    Connect_string.world =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (COMMUNITY = tcp.world)
    (PROTOCOL = TCP)
    (Host = IP Address)
    (Port = 1521)
    (CONNECT_DATA = (SID = instance name)
    )

  • Generate Ejb client Jar

    Hi,
    I m working with Jdeveloper 10G and oracle 9IAS 9.0.3.
    I ve deployed an Ejb module on 9IAS
    I m now wondering how generate the EJB client jar (Stubs and interfaces )to access my EJB module from anywhere.
    Any Idea?

    I found the answer.
    specify the client jar name in the jar settings and the workshop will generate the client jar for you.
    inlcude the client jar and the wlclient.jar in the remote client application.

  • [Jeveloper + EJB client - EJB on OAS] Problem connecting

    I having problems getting a simple client from within JDeveloper 3.0(Code snippet - OAS/EJB Client) talking to a simple EJB on OAS 4.0.8.
    I have deployed OK (red flag against status?) but when I run the client using port - 5512(ORB port)I get the message below
    Anybody any ideas?
    Creating an initial context
    Looking for the EJB published as 'MyOASApp/MyEJB'
    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 java.net.UnknownServiceException: no content-type]javax.naming.NamingException: Failure to access http://hfxcap4:5512/ows-bin/rmproxy.ior; listener inaccessible or configured wrongly
    at oracle.oas.jndi.oas.SiteResolver.getIOR(Compiled Code)
    at oracle.oas.jndi.oas.SiteResolver.resolveListenerURL(Compiled Code)
    at oracle.oas.jndi.oas.SiteResolver.resolveSiteContact(Compiled Code)
    at oracle.oas.jndi.oas.SiteResolver.resolveSiteContact(Compiled Code)
    at oracle.oas.jndi.oas.SiteResolver.resolveSiteObject(Compiled Code)
    at oracle.oas.jndi.oas.BeanInitialContext.resolve(Compiled Code)
    at oracle.oas.jndi.oas.BeanContext.lookup(Compiled Code)
    at oracle.oas.jndi.oas.BeanInitialContext.lookup(Compiled Code)
    at oracle.oas.jndi.oas.WrapperContext.lookup(Compiled Code)
    at oracle.oas.jndi.oas.BeanContext.lookup(Compiled Code)
    at javax.naming.InitialContext.lookup(Compiled Code)
    at package1.MyOASAppClient.main(Compiled Code)
    **************

    HI, I have the same problem that you had, maybe did you manage through ?? Thanks for all the help you could bring me.
    Nico
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by pFrooney:
    Back Again ...
    I have tried all ao the above
    now using this code below but it fails on the lookup with the error message below:
    ..created library with client stub, using 1.1.8, moved OASRuntime to top of included libraries
    Any suggestions
    String oasUrl = "oas://hfxcap4:80";
    String oasEJB = "MyOASApp/MyEJB" ;
    // Setup the environment
    Hashtable environment = new Hashtable();
    // Turn JNDI on to OAS
    environment.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "oracle.oas.naming.jndi.RemoteInitCtxFactory");
    // Lookup the URL
    conv_package.MyEJBHome homeInterface = null;
    try {
    System.out.println("Creating an initial context");
    // Get initial JNDI context
    Context site = (Context) ((new InitialContext(environment)).lookup(oasUrl));
    org.omg.CORBA.COMM_FAILURE:
    at oracle.oas.orb.CORBA.Request._invoke(Compiled Code)
    at oracle.oas.orb.CORBA.Delegate._invoke(Compiled Code)
    at org.omg.CORBA.portable.ObjectImpl._invoke(Compiled Code)
    at oracle.oas.orb.CORBA.Delegate.is_a(Compiled Code)
    at org.omg.CORBA.portable.ObjectImpl._is_a(Compiled Code)
    at oracle.oas.jndi.oas.BeanInitialContext.resolve(Compiled Code)
    at oracle.oas.jndi.oas.BeanContext.lookup(Compiled Code)
    at oracle.oas.jndi.oas.BeanInitialContext.lookup(Compiled Code)
    at oracle.oas.jndi.oas.WrapperContext.lookup(Compiled Code)
    at oracle.oas.jndi.oas.BeanContext.lookup(Compiled Code)
    at javax.naming.InitialContext.lookup(Compiled Code)
    at CClient_package.MyOASAppClient.main(Compiled Code)<HR></BLOCKQUOTE>
    null

  • Generating EJB Client jars

    Hi,
    i want to know wheather there is any way to generate client jars for any specified ejb's in oracle 10g. In weblogic using appc generates a client jar that contains all required classes for the ejb's including the Stub implementation classes.
    I need the client jar's in order to make it available to a war file which does a lookup of these beans.
    Any ant taks that oracle provides for this??

    You need to deploy the class files specific to your client as well as the generated stubs for the EJB.

  • JServer EJB Client

    I have deployed EJB object on JServer.
    My EJB client gives me a runtime problem while calling the EJB object on JServer.
    The runtime problem is :
    ava.lang.NoClassDefFoundError: oracle.aurora.rdbms.ClassResolver
    Please let me know which library contains this class.
    Thanks
    null

    that error occurs when your are running your EJB client with JDK 1.2.
    To access EJB deployed onto JSERVER in Oralce8i(815) you need run your EJB client with JDK 1.1.x
    raghu

  • Using JarSettings to generate EJB client jar, but supported classes missed

    Appreciated for any comments in advance.
    I am using @jarSetting to generate EJB client jar file from workshop 9.2. The remote method of EJB has one input parameter that is defined as an interface. The interface is included in client jar, but the implementation of this interface is not.
    Please advise how I can add the implementation of this interface to client jar?
    Best Regards,
    James

    Hi James,
    I believe the algorithm for creating the client jar is to simply inspect the EJB interfaces using reflection and to include all user defined classes and exceptions that are referenced by the interfaces. In your case, it sounds like a class is not being included because it is not directly referenced by one of the EJB interfaces.
    I think the client jar creation algorithm can be described as "best effort" and unfortunately, it does not always end up including all classes needed by the client. I would recommend you add the additional classes manually using the jar tool.
    - Matt

Maybe you are looking for

  • What is the use for CREATING VIEW WITH CHECK OPTION?

    Dear Legends, I have a doubt What is the use for creating view? A: First Data Integrity, Selecting Particular Columns.. What is the use for creating a view with check option? A: As per oracle manual I read that its a referential integrity check throu

  • My camera won't switch screens

    In the camera App, my camera seems to be stuck in selfie view and won't switch.  In instagram I can switch, but only the selfie view is focused.

  • Data Guard as a pass through?

    Scenario is . . . Host A is the Primary Host B is a Standby Host C is a Standby Now I know we can set up A->B and A->C Can we set up A->B->C ? Essentially using B as a pass through between A and C. Or you can see it as B being in a DMZ. Would B have

  • OT: Contract Question

    For purposes of defining Maintenance Vs. Design (or re-design) of a website, has anybody ever needed to clearly define the difference when writing a maintenance and/or development contract. If so, are you willing to share what the text was? TIA

  • Viewing "This PC" Devices and Drives when connected through a Terminal Services connection

    Greetings,  [long-time listener, first time caller] I am a service technician who remotely logs into customer servers using terminal services.  I am accessing systems around the globe.  I regularly need to move files from my local system to the custo