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

Similar Messages

  • 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 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.

  • OAS 4.0.7 orb problem

    ORB don't want to start:
    Starting ORB process...
    Waiting for ORB to be ready..
    and
    ORB is not responding ...
    null

    Hi
    I Did have the same problem like mishadm
    I did install without giving a domain descriptor
    this lead to an error you can find in the os.log in your Install Directory
    you can remove the bracketed none in the os.log
    and run this part where the error occured manually
    afterwards your orb and the rest are coming up
    in my opinion this behaviour is a error in
    the Installer and should be corrected for future releases.
    null

  • 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...

  • Ejb compilation problems

    Hi all,
    When I try to deploy my application in deploytool I get the following pop-up message:
    java.rmi.SeverException: RemoteException occurred in server thread; nested exception is: java.rmi.RemoteException: Error processing ejb jar: Compilation failed.
    I have used the verifier tool, and don't get any fails, just two security warnings.
    I checked the logs and found the following exception:
    Compilation failed.
         at com.sun.ejb.codegen.GeneratorDriver.compileClasses(GeneratorDriver.java:232)
         at com.sun.ejb.codegen.GeneratorDriver.preDeploy(GeneratorDriver.java:603)
         at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployEjbs(JarInstallerImpl.java:707)
         at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployApplication(JarInstallerImpl.java:221)
         at org.omg.stub.com.sun.enterprise.tools.deployment.backend._JarInstallerImpl_Tie._invoke(Unknown Source)
         at com.sun.corba.ee.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:355)
         at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:255)
         at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:84)
         at com.sun.corba.ee.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:99)
    Does anyone have any ideas?
    Thanks in advance,
    Paul.

    If you still need an answer maybe this will be helpful:
    http://forum.java.sun.com/thread.jsp?forum=13&thread=223566
    I can't say for sure though, because you didn't put the output of the j2ee server in your posting.
    greetings,
    Markus "marksman" Hammori

  • 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>

  • JDev 3.0/Oracle8i EJB deployment problems

    When trying to deploy a simple EJB generated with the JDev 3
    wizards, I get the following errors:
    *** Executing deployment profile E:\Program
    Files\Oracle\JDeveloper 3.0\myprojects\queueRemote.prf ***
    *** Generating archive file E:\Program Files\Oracle\JDeveloper
    3.0\myprojects\queueRemoteSource.jar ***
    Compiling the project...done
    Validating the profile...done
    Initializing deployment...done
    Scanning project files...done
    Generating classpath dependencies...done
    Generating archive entries table...done
    *** Archive generation completed ***
    *** Deploying the EJB to JServer ***
    EJB deployment argument list:
    "E:\Program Files\Oracle\JDeveloper 3.0\java\bin\javaw"
    "-DPATH=E:\Program Files\Oracle\JDeveloper 3.0\bin;E:\Program
    Files\Oracle\JDeveloper 3.0\java\bin"
    -classpath
    "E:\Program Files\Oracle\JDeveloper 3.0
    \java\lib\classes.zip;E:\Program Files\Oracle\JDeveloper 3.0
    \lib\jdeveloper.zip;E:\Program Files\Oracle\JDeveloper 3.0
    \myclasses;E:\Program Files\Oracle\JDeveloper 3.0\lib\jdev-
    rt.zip;E:\Program Files\Oracle\JDeveloper 3.0
    \jdbc\lib\oracle8.1.5\classes111.zip;E:\Program
    Files\Oracle\JDeveloper 3.0\lib\connectionmanager.zip;E:\Program
    Files\Oracle\JDeveloper 3.0\lib\javax_ejb.zip;E:\Program
    Files\Oracle\JDeveloper 3.0
    \aurora\lib\aurora_client.jar;E:\Program Files\Oracle\JDeveloper
    3.0\aurora\lib\vbjorb.jar;E:\Program Files\Oracle\JDeveloper 3.0
    \aurora\lib\vbjapp.jar;E:\Program Files\Oracle\JDeveloper 3.0
    \aurora\lib\vbjtools.jar;E:\Program Files\Oracle\JDeveloper 3.0
    \aurora\lib\vbj30ssl.jar;E:\Program Files\Oracle\JDeveloper 3.0
    \java1.2\jre\lib\rt.jar;E:\Program Files\Oracle\JDeveloper 3.0
    \aurora\lib\aurora_client.jar;E:\Program Files\Oracle\JDeveloper
    3.0\aurora\lib\vbjorb.jar;E:\Program Files\Oracle\JDeveloper 3.0
    \aurora\lib\vbjapp.jar;E:\Program Files\Oracle\JDeveloper 3.0
    \aurora\lib\vbjtools.jar;E:\Program Files\Oracle\JDeveloper 3.0
    \aurora\lib\vbj30ssl.jar;E:\Program Files\Oracle\JDeveloper 3.0
    \jdbc\lib\oracle8.1.5\classes111.zip"
    oracle.aurora.ejb.deployment.GenerateEjb
    -u
    sys
    -p
    sys
    -s
    sess_iiop://localhost:2481:ORCL
    -republish
    -keep
    -temp
    TEMP
    -descriptor
    "E:\Program Files\Oracle\JDeveloper 3.0
    \myprojects\queueRemote.dd"
    -generated
    "E:\Program Files\Oracle\JDeveloper 3.0
    \myprojects\queueRemoteGenerated.jar"
    "E:\Program Files\Oracle\JDeveloper 3.0
    \myprojects\queueRemoteSource.jar"
    org.omg.CORBA.INTERNAL[completed=MAYBE]
    at
    com.visigenic.vbroker.orb.GiopConnectionFactoryImpl.destroy
    (GiopConnectionFactoryImpl.java:209)
    at com.visigenic.vbroker.orb.GiopConnectionImpl.close
    (GiopConnectionImpl.java:544)
    at com.visigenic.vbroker.orb.GiopStubDelegate.invoke
    (GiopStubDelegate.java:609)
    at com.visigenic.vbroker.orb.GiopStubDelegate.invoke
    (GiopStubDelegate.java:466)
    at org.omg.CORBA.portable.ObjectImpl._invoke
    (ObjectImpl.java:141)
    at oracle.aurora.AuroraServices._st_LoginServer.O3Logon_B
    (_st_LoginServer.java:194)
    at oracle.aurora.client.Login.authenticate
    (Login.java:143)
    at oracle.aurora.jndi.sess_iiop.SessionCtx.login
    (SessionCtx.java:574)
    at oracle.aurora.jndi.sess_iiop.SessionCtx.login
    (SessionCtx.java:568)
    at oracle.aurora.jndi.sess_iiop.ServiceCtx.login
    (ServiceCtx.java:299)
    at
    oracle.aurora.server.tools.sess_iiop.ToolImpl.initializeSession
    (ToolImpl.java:101)
    at
    oracle.aurora.server.tools.sess_iiop.ToolImpl.parseStdArgs
    (ToolImpl.java:213)
    at oracle.aurora.server.tools.sess_iiop.ToolImpl.invoke
    (ToolImpl.java:121)
    at oracle.aurora.ejb.deployment.GenerateEjb.main
    (GenerateEjb.java:509)
    *** Errors occurred while deploying the EJB to JServer ***
    *** Deployment completed ***
    Any suggestions as to what is happening would be greatly
    appreciated.
    Sean
    null

    Assuming that you have done the 'right' tinkg and changed the
    password for the user SYS, then you are running into a JServer
    bug. When the password file on the server and the user SYS
    password in the rdbms get out of synch, this bug crops up (the
    instance will be killed, immediately and with prejudice). The
    solution is to:
    -shut down the rdbms
    -disable the password file in the INIT.ORA by setting the
    parameter to EXCLUSIVE. Sorry the exact parameter change escapes
    me at the moment, I have posted it earlier in this forum so you
    can probably find it there if you don't already know it.
    -restart the rdbms and change the sys password (again)
    -you can then re-enable the password file if you need.
    That's it. You will now be able to connect as SYS either via the
    deployejb utility or session shell w/o bringing down the
    database.
    null

Maybe you are looking for