CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Ejb

  1. #1
    Join Date
    Jan 2003
    Location
    kerala
    Posts
    4

    Unhappy Ejb

    I HAVE INSTALLED J2SE1.4.0_03 VERSION AND J2EE LATEST VERSION AVAILABLE IN WWW.JAVA.SUN.COM.
    NOW I TRIED TO CREATE AN EJB STATELESS BEAN.I CREATED AN INTERFACE CALLED "CALCULATOR.JAVA" AND A HOME INTERFACE CALLED "CALCULATORHOME.JAVA" AND A BEAN PROGRAM "CALCULATOREJB.JAVA"AND A CLIENT PROGRAM "CALCULATORCLIENT.JAVA".I SET THE FOLLOWING PATH .PLEASE CHECK IT.
    path=%path%;%;c:\j2sdk1.4.0_03\bin;c:\j2sdkee1.4\bin;
    set classpath=%classpath%;.;c:\j2sdk1.4.0_03\lib;c:\j2sdkee1.4\lib\j2ee.jar
    NOW I COULD SUCCESSFULLY COMPILE THE TWO INTERFACES AND BEAN PROGRAM. THEN I DEPLOYED IT TO MAKE AN EJB CONTROL. WHEN I TRIED TO COMPILE THE CLIENT PROGRAM I AM GETTING AN ERROR "CANNOT FIND PORTABLE REMOTE OBJECT","CANNOT FIND CONTEXT ","CANNOT FIND INITIAL CONTEXT".BUT THEN ALL THESE FILES ARE THERE IN C:\J2SDK1.4.0_03\SRC\JAVAX\NAMING FOLDER AND C:\J2SDK1.4.0_03\SRC\JAVAX\RMI FOLDER RESPECTIVELY.BUT I AM NOT ABLE TO COMPILE THE PROGRAM.I COULD MAKE OUT THAT THERE IS SOME PROBLEM IN THE CLASS PATH. BUT I AM NOT ABLE TO MAKE OUT THE REAL PROBLEM.PLEASE HELP ME OUT. I AM EXPECTING A DETAILED ANSWER FROM YOU. PLEASE SPECIFY CLEARLY THAT IS THERE ANY WRONG IN THE PATH. IF SO WHAT SHOULD I GIVE TO COMPILE THE CLIENT PROGRAM. IF CLIENT PROGRAM IS COMPILED SUCCESSFULLY THEN WHAT IS THE WAY TO EXECUTE THIS EJB PROGRAM.

  2. #2
    dlorde is offline Elite Member Power Poster
    Join Date
    Aug 1999
    Location
    UK
    Posts
    10,163
    I AM EXPECTING A DETAILED ANSWER FROM YOU.
    You can expect what you like, but shouting like that probably means you'll be lucky to get anything at all (hint: in online discussions, using UPPER CASE is equivalent to shouting, and is considered rude - as, indeed, is saying you are "expecting a detailed answer").

    I suggest you download Sun's J2EE Tutorial examples, and get them working before going back to your own program.

    If you still have problems compiling or running your program, post your questions here, providing details of your environment (what operating system, what server software, what database and drivers, etc.), and the full and exact error message text you get.

    An expert is one who knows more and more about less and less...
    Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.

  3. #3
    Join Date
    Jan 2003
    Location
    kerala
    Posts
    4

    ejb

    Hi Friend,
    Sorry i am new to discussion forum.I was unaware of the fact that using uppercase is considered as rude.I used to get a vague idea of any questions posed in other sites so far.So i specified that i need a detailed explanation.Sorry for the inconvenience caused to you.

    The operating system i use is windows 2000 and the server is j2ee 1.4 version.

    I can successfully compile two interfaces and the bean program.But when i try to compile client program i am getting some messages which i am attaching here with.One more thing i have to specify is when i tried to deploy the ejb component i got some errors. i am attaching those errors also.What is the actual use of deploying the tools. Before deploying , .ear file is created know. So can't we use that file for executing client program.
    I am trying to learn ejb by myself so if i am wrong please correct me.
    I am attching herewith the programs i have done in ejb.

    The Ejb.zip contains the error message which i got while deploying and the error message which i got while compiling the client program.and the four program files.I hope the information which i have provided is sufficient.
    Once again sorry for the mistake i have committed.

    Please help me out to solve this problem.
    Regards,
    Prema.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured