EJB Delpoyment Problem

Unable to deploy EJB: ccmejb from ccmejb:
com.convergys.interactive.command.ejb.RemoteDispatcherStatelessBean
at weblogic.ejb20.ejbc.EJBCompiler.setupEJB(EJBCompiler.java:130)
at weblogic.ejb20.deployer.Deployer.runEJBC(Deployer.java:295)
at weblogic.ejb20.deployer.Deployer.compileEJB(Deployer.java:676)

Hi Piotr,
You will need to consult the documentation for your Java EE implementation. It is entirely
up to each implementation to decide how to assign the global JNDI name for a particular
Remote EJB. Most vendors have a vendor-specific file that allows the global JNDI name
to be assigned. Some vendors also have their own defaulting rule that applies in the
absence of an explicitly assigned name. All of this is outside the scope of the spec.
For a comparison, you can find information on the Java EE SDK's rules for assigning
global JNDI names in our EJB FAQ :
https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html

Similar Messages

  • EJB classpath problem when refering a DAO in library jar file

    Hi
    When I tried to deploy an EJB jar file in 10g which references the DAO for getting database[SQL Server2000] query results.Its not retriving data nor throwing any exceptions.Other DAO business methods which do not access database are working well.
    When I tried to import the DAO inside a JSP and calling the DAO data access method which is working fine. Even I have set the resource-ref [datasource JNDI Name] in ejb-jar.xml files for the EJB beans, but its not referencing. If you have any ideas, how to resolve this problem, please forward me your suggestion.
    Thanks in Advance
    Best Regards
    Venugopal Balu

    Hi
    When I tried to deploy an EJB jar file in 10g which references the DAO for getting database[SQL Server2000] query results.Its not retriving data nor throwing any exceptions.Other DAO business methods which do not access database are working well.
    When I tried to import the DAO inside a JSP and calling the DAO data access method which is working fine. Even I have set the resource-ref [datasource JNDI Name] in ejb-jar.xml files for the EJB beans, but its not referencing. If you have any ideas, how to resolve this problem, please forward me your suggestion.
    Thanks in Advance
    Best Regards
    Venugopal Balu

  • 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

  • EJB Tutorial problem

    Hi everybody,
    I try to do the tutorial for "Using EJBs in Web Dynpro".
    [Link to Tutorial|/docs/DOC-8061#20 [original link is broken]]
    But on page 14 I got problems.
    I have to implement the constructor that throws an exception called "CreateException". But this cannot be resolved from my NWDS. I tried it with organizing imports but nothing happened so I tried to import the class manually with the coding
    import javax.ejb.createexception;
    It failed again. I think the library for this is missing. Anybody did the tutorial and solved the problem?
    I am using NWDS 7.1 SP1 with SAP ehp 1.
    Thx for any help.

    Hi Gunter,
    thx for your answer but I didn't understand it. Where did you find the point "used DC"? Can you send me a screenshot?
    Link with E-Mail-Address
    [http://forums.sdn.sap.com/profile.jspa?userID=3821530]
    Thx a lot

  • Client Applet and EJB Server problem

    Hi,
    I developed a applet client that tries to connect to an EJB on the server side. The Applet runs okay in JDev3 but if I deploy it and test it outside the JDev tool I get an error. I tracked the problem to the following line of code:
    ic = new InitialContext(environment);
    Do I run into an applet security problem? If so what do i have to do to allow the applet to read/write to the local system?
    Thanks for any hints!
    Peter
    Error I get
    JAR cache enabled.
    Opening http://pete/gateway/clientmanagement.jar no proxy
    CacheHandler file name: C:\WINNT\Profiles\peter.000\Temporary Internet Files\Content.IE5\ALMN6PAZ\clientmanagement[1].jar
    Creating an initial context
    Opening http://pete/gateway/oracle/oas/container/nls/Version_en_US.class no proxy
    CacheHandler file name: null
    null

    Hi,
    I have still problems getting the client applet running. I tested it with the appletviewer and I modified the security.policy file. I allow the applet to almost everthing but i still get the following error:
    What do I do wrong? Do I really have to sign the jar file? Do I miss some stub classes?
    Thanks for any hints...
    Peter
    JAR cache disabled.
    Opening http://pete/Gateway/. no proxy
    Opening http://pete/Gateway/. no proxy
    Opening http://pete/Gateway/test/Client.class no proxy
    CacheHandler file name: C:\WINNT\Profiles\peter.000\Temporary Internet Files\Content.IE5\ALMN6PAZ\Client[1].class
    Opening http://pete/Gateway/test/Client$1.class no proxy
    CacheHandler file name: C:\WINNT\Profiles\peter.000\Temporary Internet Files\Content.IE5\ALMN6PAZ\Client$1[1].class
    Creating an initial context
    Looking for the EJB published as 'Gateway/GatewayProcessorRemote'
    Opening http://pete:80/_RMProxyURL_ no proxy
    Naming exception!
    [Root exception is org.omg.CORBA.NO_IMPLEMENT: minor code: 0 completed: No]javax.naming.ServiceUnavailableException
    at oracle.oas.jndi.oas.SecCosNamingContext.resolve(SecCosNamingContext.java:265)
    at oracle.oas.jndi.oas.BeanContext.lookup(BeanContext.java:328)
    at oracle.oas.jndi.oas.BeanInitialContext.resolve(BeanInitialContext.java:265)
    at oracle.oas.jndi.oas.BeanContext.lookup(BeanContext.java:328)
    at oracle.oas.jndi.oas.BeanInitialContext.lookup(BeanInitialContext.java:165)
    at oracle.oas.jndi.oas.WrapperContext.lookup(WrapperContext.java:78)
    at oracle.oas.jndi.oas.BeanContext.lookup(BeanContext.java:422)
    at javax.naming.InitialContext.lookup(InitialContext.java:288)
    at test.Client.initializeEJB(Client.java:104)
    at test.Client.startButton_actionPerformed(Client.java, Compiled Code)
    at test.Client$1.actionPerformed(Client.java:55)
    at java.awt.Button.processActionEvent(Button.java:308)
    at java.awt.Button.processEvent(Button.java:281)
    at java.awt.Component.dispatchEventImpl(Component.java, Compiled Code)
    at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java, Compiled Code)
    at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java, Compiled Code)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:92)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:83)
    null

  • EJB 3 Problem: "Collections having FK in secondary table"

    Hi,
    working with EJB 3 first time, i have to develop my entites by a DB scheme. It is very complex and now I have the problem using composite FK / PK in many tables, so that a refenrenced key has as the same time both properties: FK / PK.
    Example: +3 Tables: Mxx:={M_ID as PK},
    Lxx:={M_ID as PK / FK from Mxx},
    Zxx:={M_ID as PK/FK from Lxx}+
    I have built Mxx.java, Lxx.java with @EmbeddedId from LxxPK.java (works) and the problem table Zxx.java with @EmbeddedId from ZxxPK.java which includes a reference key and same time primary key from Lxx.
    How can I solve the problem of "having FK in secondary table"?
    THX for your help!

    I will specify my problem a little more:
    I have an Entity named zuordnung_module_lv_ma this references an Entity lehrveranstaltungen.
    In zuordnung_module_lv_ma :
    @OneToMany
    @JoinColumn(...)
    public Collection<lehrveranstaltungen> lv = new ArrayList...
    For more detailed information look at this:
    my only problem is the table zuordnung_module_lv_ma
    SQL:
    create table BLOECKE
    BLOCKID integer not null,
    WOCHENTAG integer,
    ZEIT_VON datetime,
    ZEIT_BIS datetime,
    LOGISCHGELOESCHT char not null,
    constraint PK_BLOECKE primary key (BLOCKID)
    create table CURRICULA
    CURRICULUMKUERZEL varchar not null,
    CURRICULUMBEZ varchar,
    CURRICULUMID integer not null,
    IDVERANTWORTLICHERSTUDIENDEKAN integer,
    LOGISCHEGELOESCHT char not null,
    constraint PK_CURRICULA primary key (CURRICULUMID)
    create table LEHRVERANSTALTUNGEN
    MODUL_ID integer not null,
    LV_ID integer not null,
    SWS double not null,
    ART_LV char not null,
    LOGISCHGELOESCHT char not null,
    MAXTEILNEHMER integer not null,
    constraint PK_LEHRVERANSTALTUNGEN primary key (MODUL_ID, LV_ID, ART_LV)
    create table MITARBEITER
    MA_ID integer not null,
    TITEL varchar,
    NACHNAME varchar not null,
    VORNAME varchar not null,
    AUFGELAUFENESWS integer,
    LETZTESFORSCHUNGSFREISEMESTER varchar,
    BEGINNANSTELLUNG date,
    ENDEANSTELLUNG date,
    MA_KUERZEL varchar not null,
    GEBURTSDATUM date,
    LOGISCHGELOESCHT char not null,
    MA_KATEGORIE_ID integer,
    constraint PK_MITARBEITER primary key (MA_ID)
    create table MITARBEITERKATEGORIE
    MA_KATEGORIE_ID integer not null,
    MA_KATEGORIE_BEZ varchar not null,
    constraint PK_MITARBEITERKATEGORIE primary key (MA_KATEGORIE_ID)
    create table MODULE
    MODUL_ID integer not null,
    MODULKUERZEL varchar not null,
    IDMODULVERANTWORLTICHER integer not null,
    IDSTVMODULVERANTWORTLICHER integer,
    CURRICULUMID integer,
    ID_MODULGRUPPE varchar,
    MODULNAME varchar,
    PFLICHTFACH binary,
    SEMESTER integer,
    CREDITPOINTS integer,
    LOGISCHGELOESCHT char not null,
    constraint PK_MODULE primary key (MODUL_ID)
    create table MODULGRUPPEN
    CURRICULUMID integer not null,
    ID_MODULGRUPPE varchar not null,
    MODULGRUPPENBEZ varchar,
    LOGISCHGELOESCHT char not null,
    constraint PK_MODULGRUPPEN primary key (CURRICULUMID, ID_MODULGRUPPE)
    create table ZUORDNUNG_MODUL_CURRICULUM
    MODUL_ID integer not null,
    CURRICULUMID integer not null,
    LOGISCHGELOESCHT char not null,
    constraint PK_ZUORDNUNG_MODUL_CURRICULUM primary key (MODUL_ID, CURRICULUMID)
    create table ZUORDNUNG_MODUL_LV_MA_SEMINAR_EXEMPLAR
    MODUL_ID integer not null,
    LV_ID integer not null,
    ART_LV char not null,
    SEMESTER varchar not null,
    MA_ID integer not null,
    WOCHE_G_U char not null,
    BLOCKID integer not null,
    EXEMPLAR varchar not null,
    LOGISCHGELOESCHT char not null,
    constraint PK_ZUORDNUNG_MODUL_LV_MA_SEMIN primary key (MODUL_ID, LV_ID, ART_LV, SEMESTER, MA_ID, WOCHE_G_U, BLOCKID, EXEMPLAR)
    alter table CURRICULA
    add constraint FK_CURRICUL_ZURODNUNG_MITARBEI foreign key (IDVERANTWORTLICHERSTUDIENDEKAN)
    references MITARBEITER (MA_ID)
    on update restrict
    on delete restrict;
    alter table LEHRVERANSTALTUNGEN
    add constraint FK_LEHRVERA_ZURODNUNG_MODULE foreign key (MODUL_ID)
    references MODULE (MODUL_ID)
    on update restrict
    on delete restrict;
    alter table MITARBEITER
    add constraint FK_MITARBEI_ZUORDNUNG_MITARBEI foreign key (MA_KATEGORIE_ID)
    references MITARBEITERKATEGORIE (MA_KATEGORIE_ID)
    on update restrict
    on delete restrict;
    alter table MODULE
    add constraint FK_MODULE_ZUORDNUNG_MITARBEI foreign key (IDMODULVERANTWORLTICHER)
    references MITARBEITER (MA_ID)
    on update restrict
    on delete restrict;
    alter table MODULE
    add constraint FK_MODULE_ZUORDNUNG_MODULGRU foreign key (CURRICULUMID, ID_MODULGRUPPE)
    references MODULGRUPPEN (CURRICULUMID, ID_MODULGRUPPE)
    on update restrict
    on delete restrict;
    alter table MODULGRUPPEN
    add constraint FK_MODULGRU_ZUORDUNG__CURRICUL foreign key (CURRICULUMID)
    references CURRICULA (CURRICULUMID)
    on update restrict
    on delete restrict;
    alter table ZUORDNUNG_MODUL_CURRICULUM
    add constraint FK_ZUORDNUN_ZUORDNUNG_CURRICUL foreign key (CURRICULUMID)
    references CURRICULA (CURRICULUMID)
    on update restrict
    on delete restrict;
    alter table ZUORDNUNG_MODUL_CURRICULUM
    add constraint FK_ZUORDNUN_ZUORDNUNG_MODULE foreign key (MODUL_ID)
    references MODULE (MODUL_ID)
    on update restrict
    on delete restrict;
    alter table ZUORDNUNG_MODUL_LV_MA_SEMINAR_EXEMPLAR
    add constraint FK_ZUORDNUN_ZUORDNUNG_BLOECKE foreign key (BLOCKID)
    references BLOECKE (BLOCKID)
    on update restrict
    on delete restrict;
    alter table ZUORDNUNG_MODUL_LV_MA_SEMINAR_EXEMPLAR
    add constraint FK_ZUORDNUN_ZURODNUNG_LEHRVERA foreign key (MODUL_ID, LV_ID, ART_LV)
    references LEHRVERANSTALTUNGEN (MODUL_ID, LV_ID, ART_LV)
    on update restrict
    on delete restrict;
    alter table ZUORDNUNG_MODUL_LV_MA_SEMINAR_EXEMPLAR
    add constraint FK_ZUORDNUN_ZURODNUNG_MITARBEI foreign key (MA_ID)
    references MITARBEITER (MA_ID)
    on update restrict
    on delete restrict;
    THX for prospective comments!

  • Just learning EJB - having problems compiling

    I'm trying to learn EJB by going through the Sun J2EE tutorial. When trying to compile the converter example I get the following error messages:
    E:\MostlyJava\j2eetutorial\examples>ant converter
    Buildfile: build.xml
    init:
    converter:
    [javac] Compiling 4 source files to E:\MostlyJava\j2eetutorial\examples\buil
    d\ejb\converter
    [javac] E:\MostlyJava\j2eetutorial\examples\src\ejb\converter\Converter.java
    :10: cannot resolve symbol
    [javac] symbol : class EJBObject
    [javac] location: package ejb
    [javac] import javax.ejb.EJBObject;
    [javac] ^
    [javac] E:\MostlyJava\j2eetutorial\examples\src\ejb\converter\Converter.java
    :14: cannot resolve symbol
    [javac] symbol : class EJBObject
    [javac] location: interface Converter
    [javac] public interface Converter extends EJBObject {
    [javac] ^
    [javac] E:\MostlyJava\j2eetutorial\examples\src\ejb\converter\ConverterBean.
    java:11: cannot resolve symbol
    [javac] symbol : class SessionBean
    [javac] location: package ejb
    [javac] import javax.ejb.SessionBean;
    [javac] ^
    [javac] E:\MostlyJava\j2eetutorial\examples\src\ejb\converter\ConverterBean.
    java:12: cannot resolve symbol
    [javac] symbol : class SessionContext
    [javac] location: package ejb
    [javac] import javax.ejb.SessionContext;
    [javac] ^
    [javac] E:\MostlyJava\j2eetutorial\examples\src\ejb\converter\ConverterBean.
    java:15: cannot resolve symbol
    [javac] symbol : class SessionBean
    [javac] location: class ConverterBean
    [javac] public class ConverterBean implements SessionBean {
    [javac] ^
    [javac] E:\MostlyJava\j2eetutorial\examples\src\ejb\converter\ConverterBean.
    java:37: cannot resolve symbol
    [javac] symbol : class SessionContext
    [javac] location: class ConverterBean
    [javac] public void setSessionContext(SessionContext sc) {}
    [javac] ^
    [javac] E:\MostlyJava\j2eetutorial\examples\src\ejb\converter\ConverterHome.
    java:12: cannot resolve symbol
    [javac] symbol : class CreateException
    [javac] location: package ejb
    [javac] import javax.ejb.CreateException;
    [javac] ^
    [javac] E:\MostlyJava\j2eetutorial\examples\src\ejb\converter\ConverterHome.
    java:13: cannot resolve symbol
    [javac] symbol : class EJBHome
    [javac] location: package ejb
    [javac] import javax.ejb.EJBHome;
    [javac] ^
    [javac] E:\MostlyJava\j2eetutorial\examples\src\ejb\converter\ConverterHome.
    java:15: cannot resolve symbol
    [javac] symbol : class EJBHome
    [javac] location: interface ConverterHome
    [javac] public interface ConverterHome extends EJBHome {
    [javac] ^
    [javac] E:\MostlyJava\j2eetutorial\examples\src\ejb\converter\ConverterHome.
    java:17: cannot resolve symbol
    [javac] symbol : class CreateException
    [javac] location: interface ConverterHome
    [javac] Converter create() throws RemoteException, CreateException;
    [javac] ^
    [javac] 10 errors
    BUILD FAILED
    E:\MostlyJava\j2eetutorial\examples\build.xml:89: Compile failed, messages shoul
    d have been provided.
    Total time: 2 seconds

    Thanks, for your reply the problem was with the classpath, even though it appears that the ant script points to it I had to set it in the environment.

  • EJB Programming Problem

    I have a project:
    create table contacts (id int(10) auto_increment,
    user varchar(100),
    contact_name(100),
    primary key (id))
    the session bean :
    ContactBookBean{
    public void addPersonalContact(java.lang.String username) {
    String contactname=username;
    try
    Context ctx= new InitialContext();
    Object objref=ctx.lookup("java:comp/env/ejb/contacts");
    LocalcontactsHome localcontactshome =(LocalcontactsHome)PortableRemoteObject.narrow(objref,LocalcontactsHome.class);
    localcontactshome.create(new Integer(0),username,contactname);
    }catch(Exception e){
    throw new EJBException(e);
    the cmp entity bean contactsBean{
    public java.lang.Integer ejbCreate(java.lang.Integer id, java.lang.String user, java.lang.String contactName) throws javax.ejb.CreateException {
    setId(id);
    setUser(user);
    setContactName(contactName);
    return null;
    the test client
    Context ctx = new InitialContext();
    ContactBookHome home=(ContactBookHome)PortableRemoteObject.narrow(ctx.lookup("ContactBook"),ContactBookHome.class);
    ContactBook test=home.create();
    test.addPersonalContact("[email protected]");
    I want insert a record into the database.The deployment is no problem.
    but when i run the client the IDE throws Exception:
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.RemoteException: nested exception is: javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean; nested exception is: javax.ejb.EJBException: nested exception is: java.sql.SQLException: Syntax error or access violation: You have an error in your SQL syntax near '"contacts" WHERE "id" = 0 ' at line 1;
    IDE:Sun forte for java
    Database:Mysql
    OS:Sun Solaris
    Appserver:RI in forte
    I do not know how to deal with the variable "id"
    that is :auto_increment pri_key(id) .
    Help is appreciated ,thanks.

    Your EJBCreate method is specifing an id, when your database is auto assigning the index. That is what is causing your SQLException. Either do not specify the id in the method signature, or turn off auto assignment in the database.
    tj...

  • JSP/EJB sample-problem

    Hi,
    I'm having difficulties to get the Oracle JSP sample to wrok.
    I deployed the JSP App and also the StackDemo app and changed the envrionment variables as requested .
    But each time I try to use the DemoStack bean by submitting a 'create stack' I get the message :
    "The requested access method is not allowed for that object"
    Can anybody help me with this problem?
    Michel.

    Alex,
    I use OAS 4.0.8.1.
    I also reloaded the application after deployment.
    I used a clinet snippet that is compiled in JDevelope 3.0 and I run it from there .
    It finds THE EJB , ic reated and deployed without giving any error messages. The problem rises the moment I try to use one of the functions of the remote interface of the EJB. In these functions I try to use functionality of viewObjects that are provided by a bussines component that I generated using JDeveloper 3.0.
    The wrb log file mentions a 'null pointer exeption'.
    I think that I do something wrong when initializing the application module that wraps the business component, but I can't see what is wrong.
    This is the code I use in my EJB :
    String theAM = "EDMpackage.EDMAppModule";
    ApplicationModule root = null;
    String sessionDefName = ApplicationModule.DEFAULT_DEF_FULL_NAME;
    Hashtable env = new Hashtable(2);
    env.put(Context.INITIAL_CONTEXT_FACTORY, JboContext.JBO_CONTEXT_FACTORY);
    env.put(JboContext.DEPLOY_PLATFORM, JboContext.PLATFORM_LOCAL);
    try
    Context ic = new InitialContext(env);
    ApplicationModuleHome home = (ApplicationModuleHome)ic.lookup(sessionDefName);
    root = home.create();
    catch(Exception e)
    e.printStackTrace();
    localAppMod = root.createApplicationModule( "EDMAppMod",theAM );
    This works fine , but when I try to get a ViewObject through the localAppMod, I get the error. So I think I am wrong somewhere here.
    Michel.

  • JDev EJB Tutorial problem

    JDev v.9.0.3.2(build 1145)
    Using the built-in help facility instructions on the EJB Tutorial, I am stuck on Part 5; Step 1.
    (Copied directly from tutorial)
    *****begin tutorial instructions*******
    Step 1: Adding a Create Method to the Entity Bean
    The first step is to add a new create() method on the Dept entity bean.
    To add a new create() method: In the Navigator, double-click Dept to open the EJB Module Editor.
    Expand the node for Dept and click the Methods node.
    In the Method Category list, choose Create methods.
    Click Add.
    In the Method Details dialog box, in the Parameters field, type the following:Long deptno, String dname, Long manager, Long location Click OK to close the dialog.
    Your new create() method appears in the list of methods. Click OK to close the EJB Module Editor.
    To add code to the Dept entity bean: In the Navigator, expand the node for the Dept bean and double-click DeptBean.java.
    In the Structure pane, double-click ejbCreate(long, String, long, long) to jump to that method in the code.
    Replace the stub method with the following code:
    public DeptPK ejbCreate(Long deptno, String dname, Long manager, Long location)
    this.setDepartment_id(deptno);
    this.setDepartment_name(dname);
    this.setManager_id(manager);
    this.setLocation_id(location);
    return new DeptPK(deptno);
    In the Navigator, right click DeptBean.java and choose Make DeptBean.java to make sure it compiles without errors.
    *****end of tutorial instrucions*********
    I cannot get the 'hrApp' EJB to compile.
    The compiler complaint:
    Error(18,10): class DeptPK not found in class hr.impl.DeptBean
    Error(24,16): class DeptPK not found in class hr.impl.DeptBean
    Any recommendations are appreciated.
    Thanks,
    Robert Stuart

    Mistake: misnamed the bean in problem statement.
    I meant to say the 'DeptBean' (not hrApp EJB) did not compile, using sample code from instructions.
    Surely someone can help.
    Robert

  • EJB-REF problem

    Hi for all
    I am having problems when I have that reference other EJB from an EJB. I put the reference in the file ejb-jar.xml but like I use the weblogic server a error is generated when I try to do the deploy my EJB where it asks to do the reference in the file weblogic-ejb-jar.xml, that is the configuration of the ejb in the server.
    If somebody knows as doing that reference for the weblogic, please, help me.
    Thanks

    <?xml version="1.0"?>
    <!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN' 'http://www.bea.com/servers/wls510/dtd/weblogic-ejb-jar.dtd'>
    <weblogic-ejb-jar>
    <weblogic-enterprise-bean>
    <ejb-name>CentroCustoBO</ejb-name>
    <caching-descriptor>
    <initial-beans-in-free-pool>1</initial-beans-in-free-pool>
    </caching-descriptor>
    <jndi-name>CentroCustoBO</jndi-name>
    </weblogic-enterprise-bean>
    <weblogic-enterprise-bean>
    <ejb-name>PedidoPagamentoBO</ejb-name>
    <caching-descriptor>
    <initial-beans-in-free-pool>1</initial-beans-in-free-pool>
    </caching-descriptor>
    <reference-descriptor>
    <ejb-reference-description>
    <ejb-ref-name>FornecedorBO</ejb-ref-name>
    <jndi-name>FornecedorBO</jndi-name>
    </ejb-reference-description>
    <ejb-reference-description>
    <ejb-ref-name>CentroCustoBO</ejb-ref-name>
    <jndi-name>CentroCustoBO</jndi-name>
    </ejb-reference-description>
    </reference-descriptor>
    <jndi-name>PedidoPagamentoBO</jndi-name>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>

  • EJB + CORBA problems

    Hi there,
    I've got some code (EJB) which connect
    me to OLAPService on my 9i Oracle server. I deployed it to Oracle AS which
    is istalled on another machine. Then I wrote client application which has to
    connect to OAS and invoke EJB method to connect to OLAPService.
    The connection to EJB was successfully established (of course through a
    CORBA). But when EJB was trying to connect to Oracle9i I got such error :
    javax.naming.NameNotFoundException:
    sess_iiop://<server_ip>:<port>:<sid>/etc/OLAPServer/OLAPServer not found
    I think it something wrong with my OAS enviroment. I have tried to do my best , but still nothing .... ( I am sure that everything else is OK, because I tried to make connection through
    JDBC to relational database and it worked fine).
    When I'm starting EJB's code as client application everything is OK. The
    connection to OLAPService is established every time. When I modyfied code
    for EJB (commenting code responsible for preparing InitailContextEnviroment
    and connecting to OLAPService) everything was OK. So :
    1) I can connect and invoke EJB's method deployed to OAS,
    2) I can connect to Oracle9i OLAPService and use OLAPAPI methods,
    3) I can't do it when I try to connect to OLAPService through the OAS (where
    is EJB)
    client_application (java) ===CORBA===> OAS ( EJB with OLAPAPI) ==CORBA==>
    OLAPService
    This is the EJB's method code ( when it is calling as client application it
    works!!!!):
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    import org.omg.CORBA.Object;
    import oracle.aurora.jndi.sess_iiop.ServiceCtx;
    import oracle.express.connection.Connection;
    import oracle.express.connection.ConnectionManager;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import java.util.*;
    public String Polaczenie()
    String serviceURL="sess_iiop://<server_ip>:<port>:<sid>";
    String objectName="/etc/OLAPServer/OLAPServer";
    Hashtable env=new Hashtable();
    env.put(Context.URL_PKG_PREFIXES,"oracle.aurora.jndi");
    env.put(Context.SECURITY_PRINCIPAL,<user>);
    env.put(Context.SECURITY_CREDENTIALS,<password>);
    env.put(Context.SECURITY_AUTHENTICATION,ServiceCtx.NON_SSL_LOGIN);
    try
    Context ic=new InitialContext(env);
    org.omg.CORBA.Object
    ServiceStub=(org.omg.CORBA.Object)(ic.lookup(serviceURL+objectName));
    Properties connParams = new Properties();
    connParams.put("UserID",<user>);
    connParams.put("Password",<password>);
    ConnectionManager cm=ConnectionManager.init();
    Connection conn=
    cm.connect((org.omg.CORBA.Object)ServiceStub,connParams);
    conn.close();
    catch(Exception e)
    return "\nError:" + e + "\n";
    return "\nIt works\n";
    This is client's code:
    public static void main(String[] args)
    try {
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY,
    "com.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.PROVIDER_URL, "ormi://sasza/SerwerEjb");
    env.put(Context.SECURITY_PRINCIPAL, "admin");
    env.put(Context.SECURITY_CREDENTIALS, "oracle");
    Context context = new
    com.evermind.server.rmi.RMIInitialContextFactory().getInitialContext(env);
    Object homeObject = context.lookup("<myEJBName>");
    SerwerEjbHome home = (SerwerEjbHome)
    PortableRemoteObject.narrow(homeObject, pakiet.SerwerEjbHome.class);
    SerwerEjb remote = home.create();
    System.out.println(remote.Polaczenie()); <------------------ there is
    error !!!!!!!!!!!!!!!!!! ------------------>
    catch(Exception e)
    System.err.println("Error: " + e + ":::" + e.getMessage());
    Any idea ??
    Thank you in advance.

    "Taesun, An" <[email protected]> writes:
    Thanks for your concern !Its my code - I should be concerned :)
    I have successfuly tested the sample program that you attached.
    and I have some more questions.Great!
    Q1) Can I use idl files generated by weblogic.ejbc on the other ORB like as
    orbix, etc..?Yes. But the problem is that Orbix is known to have problems with the
    codeset that we send out. For silversword we are doing a GIOP 1.2
    implementation a by-product of which will be that we have to do some
    form of codeset negotiation, so hopefully these issues will be sorted
    in the near future.
    And I know that the Client.cpp program you sent differs from original source
    code in the respects which is including TradeResultFactory and
    TradeResultImpl classes.
    Q2) If so, Do i have to implement the above classes for all of call by value
    parameters or return type ?You have to write some C++ code for any valuetypes that you use. This
    basically means any non-primitive object that is not a remote
    interface and implements serializable.
    I wanna know for the needed classes how to easily get generated or the other
    solutions.I attach the entity bean example I cooked up which shows you how you
    can use C++ macros to take away some of this pain. Note that you cannot make the finder method work with 6.0SP2. This will be fixed in 6.1
    [generic_idl_entity.zip]
    I got error message following as, when i used "-idlFactories" of
    weblogic.ejbc option to generate Factory definition.
    Usage: java weblogic.rmic [options] <classes>...
    option descriptions ,.,........
    option descriptions ,.,........
    ERROR: Error from ejbc: Unrecognized option or flag, -idlFactories
    ERROR: ejbc found errors
    make: *** [ejbc] Error 1Hmm, you are right. It looks like the option didn't get inverted in
    rmic. The attached class file should fix this.
    [IDLGeneratorOptions.class]
    andy

  • EJB deployment problems

    I'm trying to deploy my business component as an EJB to Oracle 8.1.7. Actually, it deploys with no errors. When I test the module by setting the middle tier type to Local, it works fine. But, when I set the middle tier type to EJB, I can't see any data when I try to show my business component view.
    So, I tried to deploy my applet and run it against the EJB, but I get an error in a Panic dialog box that says "Unknown service::session0". The details say
    "DAC-405: SessionInfo:Application module creation failed; className: MyBcModule
    Unknown service::session0
    At the same time, the message view shows the following:
    oracle.dacf.dataset.DataSourceOperationException: SessionInfo: Application module creation failed; className: MyBcModule
    void oracle.dacf.dataset.ProducerObject.open(boolean)
    void oracle.dacf.dataset.SessionInfo.publishSession()
    void EISGui2.EISGuiApplet2.init()
    void sun.applet.AppletPanel.run()
    void java.lang.Thread.run()
    The applet will run just fine when I set the session object to a local deployment type. I went through the trouble shooting stuff in the online help made sure my java_pool_size was set to at least 50MB, and that I have no unresolved java classes on the server. But, it still won't work. Are there any suggestions on what else I can try?

    Of course, now I have other problems. After successfully redeploying my new business component as an EJB, and testing the application module successfully as an EJB middle tier server type, I created a new project as described in the online help under "Testing a Business Components EJB Deployed to Oracle8i with a Code Client." I followed the online help's instructions dilligently. Does it work? Of couse not. I'm turning on debugoutput with -Djbo.debugoutput=console so I can get more information, but that information isn't helping me. Refering back to the online help's code, it's crashing on the "ApplicationModuleHome home = (ApplicationModuleHome)ic.lookup(DeployedMod)" line. Here's my exception stack:
    [00] Diagnostic Properties: Timing:false Functions:false Linecount:true Threshold:6
    [01] CommonMessageBundle (language base) being initialized
    [02] Stringmanager using default locale: 'null'
    [03] BC4JDeployPlatform: Ejb
    [04] Connected to Service:sess_iiop://fredws:2481:ORCL
    [05] Logging in...
    javax.naming.NamingException: Unknown reasons. Root exception is
    java.lang.ClassNotFoundException: EisBc.common.ejb.EisBcModuleHomeHelper
    void oracle.jbo.client.remote.ejb.aurora.AuroraEJBAmHomeImpl.initRemoteHome()
    void oracle.jbo.client.remote.ejb.aurora.AuroraEJBAmHomeImpl.<init>(oracle.jbo.JboContext, java.lang.String)
    oracle.jbo.common.JboHome oracle.jbo.client.remote.ejb.aurora.AuroraEJBInitialContext.createJboHome(java.lang.String)
    java.lang.Object oracle.jbo.common.JboInitialContext.lookup(java.lang.String)
    java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
    void tester.EisBcTester.main(java.lang.String[])
    Now, how can the EJB tester work, but my code can't find the helper class? I know my JNDI path is correct. I've checked to make sure that the EisBc.common.ejb.EisBcModuleHomeHelper class actually exists in the database and is valid. I've run java2perm.sql to grant permissions to my user. And, my java_pool_size is over 60MB.
    This is frustrating. Did I see a thread about someone wanting to go back to VB...

  • EJB deployment problem

    I am trying to deploy a simple EJB Wrapper of an application module onto OAS right now. I have followed the procedures listed in the JDeveloper online help, but after shooting down several other problems, I got the following error:
    JBO-25222: Unable to create application module.
    javax.ejb.CreateException: JBO-25222: Unable to create application module.
    According to the online help, I am supposed to create the application module and initialize the database connection in the EJB's ejbCreate() method. To accomplish that, I need to call create() in the ApplicationModuleHome retrieved by the lookup() call in the InitialContext. The create() method, however, is throwing exception saying that application modules cannot be created. Just wondering if I have done something incorrect, and if there are other alternatives for making connections to the database and creating application modules. Any help is deeply appreciated. Thanks.

    I came through the same problem when I wanted to directly access a BC4J from a servlet. It took me a week to find out why - What happens is that the BC4J class looks for the XML-files and class of its entities and it directly accesses it without a given path. What you would expect is that those files have to be in the same directory as the other classes. No - you have to put the class in a directory which the OAS accesses when no directory is given.
    How do you find out? Write a class which writes a file and look where the file is created. Then put your BC4J-package (including xmls) into that directory (in my case orant\bin and at myfriends oas' orant\ows\4.0\admin\cgi --- with the OAS 4.0.8.1 it seems not be deterministic - even the hotline has confirmed that).
    To be honest,i think it is a problem of the OAS not using the right path but this is it. Since then my servlet runs and I will soon try out what you are already doing.
    Can you do me a favour and send me your example-EJB to further work on that topic?
    ([email protected]).
    Regards,
    Stefan

  • EJB & ORB problems in 8i (8.1.5)

    Hi all,
    I'm having problems with the ORB in 8i (solaris 2.6). When
    trying to run deployejb or sess_sh the process runs for a couple
    minutes then crashes. I assume the ORB is not configured
    properly. Is there trouble shooting guide, or can someone post a
    list of steps to execute to ensure that 8i and the ORB are
    configured properly?
    I've spent the last two days reading the doc's, (both the EJB and
    Net8 Admin) and it seems I have everything set up.
    I've been having problems using netca and it isn't working great,
    and the netasst won't launch at all. Is anyone else having
    problems with either of these tools?
    Its a brand new install of solaris 2.6 and 8i..
    Any advice would be appreciated.
    Thanks in advance,
    Rob
    (Sorry this doesn't directly apply to the JDev group, but there
    doesn't seem to be an EJB group)
    null

    Rob,
    Here's a list from the Oracle JServer FAQ:
    Nothing works! Basic installation sanity tests
    Some people have hit unusual errors after installation and wasted
    large amounts of time chasing down what looks like problems with
    their code, only to find that their installation was
    somehow broken all along.
    If you are getting weird errors, (or this is a fresh
    installation!), please spend 5 minutes to try running the
    following 3 samples before doing anything else. You will need to
    expand
    $ORACLE_HOME/javavm/demo/demo.tar and then run:
    $ORACLE_HOME/javavm/demo/examples/jsp/helloworld
    $ORACLE_HOME/javavm/demo/examples/corba/basic/helloworld
    $ORACLE_HOME/javavm/demo/examples/ejb/basic/helloworld
    These 3 samples are configured to run for a typical install, and
    are supplied with READMEs, Makefiles and should just work. We
    verified that they work before we shipped the CDs,
    so if they fail, there is a problem with the installation
    somewhere.
    If these samples work, they verify that the JServer option is
    properly installed in your Oracle server instance, that basic
    TCPIP connectivity is configured properly, you do have a
    working JDK installed and that the basic Java Stored Procedure,
    CORBA, and EJB functionality is working within your JServer
    installation.
    More importantly, if these 3 samples fail to run, then you can be
    assured that your own code will not run until you fix the
    installation/cofiguration problems and get these 3 samples to
    work. This will save you hours of debugging code that is not to
    blame!
    Rob Truban (guest) wrote:
    : Hi all,
    : I'm having problems with the ORB in 8i (solaris 2.6). When
    : trying to run deployejb or sess_sh the process runs for a
    couple
    : minutes then crashes. I assume the ORB is not configured
    : properly. Is there trouble shooting guide, or can someone post
    a
    : list of steps to execute to ensure that 8i and the ORB are
    : configured properly?
    : I've spent the last two days reading the doc's, (both the EJB
    and
    : Net8 Admin) and it seems I have everything set up.
    : I've been having problems using netca and it isn't working
    great,
    : and the netasst won't launch at all. Is anyone else having
    : problems with either of these tools?
    : Its a brand new install of solaris 2.6 and 8i..
    : Any advice would be appreciated.
    : Thanks in advance,
    : Rob
    : (Sorry this doesn't directly apply to the JDev group, but there
    : doesn't seem to be an EJB group)
    null

Maybe you are looking for