Click to See Complete Forum and Search --> : Ejb


uthranambi
January 26th, 2003, 02:07 AM
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.

dlorde
January 26th, 2003, 03:32 PM
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 (http://java.sun.com/j2ee/tutorial/1_3-fcs/) 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...

uthranambi
January 26th, 2003, 11:23 PM
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.