aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Urgent Help Needed !!!! (EJBs) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Urgent Help Needed !!!! (EJBs)" Watch "Urgent Help Needed !!!! (EJBs)" New topic
Author

Urgent Help Needed !!!! (EJBs)

Muhammad Asif
Ranch Hand

Joined: Jul 13, 2001
Posts: 202
Hi All,
I am studying Richard-Manson's EJB Book. Developing the Container MAnaged bean in chapter 4, I have got stuck into a number of problems.
This one is probably the last one.
I am using J2EE Reference implementation and the database being used is Oracle.
When I try to deploy the EJB, and after passing all the steps of the Wizard and clicking the Finish, The deploy tool shows some activity and then gives this error.
There was a deployment error:
java.rmi.ServerException: Remote eXception occurred in server thread;nested exception is java.rmi.RemoteException:Error processing ejb jar, compilation failed
Please refer to:
<JAVA_HOME>/logs/<machine-name>/j2ee/j2ee/error.log
for more information please verify your application with verifier tool.
Now when I open the verifier tool, the first time i find there are no errors.
But when i open the referred file, I see that it contains the following exception.
Compilation Failed
at com.sun.ejb.GeneratorDriver.compileClasses(GeneratorDriver.java)
at com.sun.codegen.GeneratorDriver.Driver.predeploy

------
I guess i have thoroughly explained the problem, Now I want the help from you Ranchers.
Regards
Asif Abbasi


SCJP, SCBCD, SCWCD 1.4, IBM-OOAD, SCEA, TCP, TCSS, TCIS, ATCP
Muhammad Asif
Ranch Hand

Joined: Jul 13, 2001
Posts: 202
And whats more I have been searching the Net for this problem.
I have not yet found ne Answer!!!

I m looking forward for ur answers as there are a number of people in this forum who have done SCJA.
Plz Help!!!
Regards
Asif Abbasi
David Rocks
Ranch Hand

Joined: Apr 24, 2001
Posts: 162
Hi,
Probably completely wrong but try again with the persistant fields made public.
I had a problem deploying my first ever bean and although i cannot remember if the stack trace is the same changing the accessor rights solved the problem.
David
Muhammad Asif
Ranch Hand

Joined: Jul 13, 2001
Posts: 202
Hi,
Thanx for the Tip
But the persistent methods are already public.
Regards
Asif
David Rocks
Ranch Hand

Joined: Apr 24, 2001
Posts: 162
Asif,
is that attributes as well as methods?
David
Muhammad Asif
Ranch Hand

Joined: Jul 13, 2001
Posts: 202
Hi
I am studying the Richard-Manson's Book and in that we have no Attributes. Just public abstract accessor/mutator mehthods.
Regards
Asif
LAXMI VEMARAJU
Ranch Hand

Joined: Sep 08, 2001
Posts: 38
Could you be more clear about the question? BTW, once check the DD also based on your application server.
laxmi
HanMing Low
Ranch Hand

Joined: Oct 18, 2001
Posts: 196
Hi,
I've came across the problem recently too.
I think in order to resolve your deployement issue, there are a couple of things to take note that is different from what is stated in the book.
Firstly, in the bean class, the ejbCreate should throw a CreateException which is lacking in the first few chapters in the book.
Secondly, the SQL statement generate need some editing.
Make sure all the " are removed and the field name are corresponding to the field name in the database, not the code
e.g.
Code
String firstName;
Database
FIRST_NAME varchar(20)
Then your SQL should spell FIRST_NAME instead of the firstName automatically generated for you.
Lastly, under the security setting, Click on the Deployment Setting and select "Support Client Choice", otherwise, you'll have AccessException if I didn't remember wrongly.
These should be much to get it working correctly.
Hope this helps.

Han Ming
Muhammad Asif
Ranch Hand

Joined: Jul 13, 2001
Posts: 202
Hi All,
Han Ming
Muhammad Asif
Ranch Hand

Joined: Jul 13, 2001
Posts: 202
Hi All,
Han Ming was correct.
The problems that I had were
1) That the ejbCreate() method that i coded was not throwing a Create Exception.
2) The version of rt.jar that i had in my class path was that of JDK1.3 while I was working with JDK1.4.
The problem was innocuous in the sense that the Error that occurred asked me to check the error.log which literally had no information. Then i checked the System.err file and got the information about these errors.
Ne way,
Thanx All of U
I'll soon be back with more problems
Regards
Asif Abbasi
[ May 21, 2002: Message edited by: Asif Abbasi ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Urgent Help Needed !!!! (EJBs)