File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Unable to compile EJB 2.0 classes ??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Unable to compile EJB 2.0 classes ???" Watch "Unable to compile EJB 2.0 classes ???" New topic
Author

Unable to compile EJB 2.0 classes ???

Siva Ram
Ranch Hand

Joined: Apr 04, 2002
Posts: 66
Hi,
I have written a bean class() in EJB 1.1 spec. which gives the compile time error.
" EJBLocalObject " - is missing
I have written a bean class() in EJB 2.0 spec. which also gives the compile time error.
" bean class should not be abstract ".
I am compiling these classes in VAJ 4.0.
For the above two cases, what is the modification I have to do in my VAJ 4.o ??
TIA,
N.Ravisankar


Thanks and Regards,<br />Siva Ram .NR
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3879
Basically, you CANNOT, repeat CANNOT use VAJ to develop for EITHER the EJB 1.1 or the EJB 2.0 specifications. The only level of the spec that works with VAJ is EJB 1.0.
To develop for EJB 1.1, you need to get the successor product to VAJ, WebSphere Studio Application Developer, version 4.0. To develop EJB 2.0, you need version 5.0 of WebSphere Studio Application developer (slated to go out in a public beta in September, for full release in 4Q).
Kyle
[ August 11, 2002: Message edited by: Kyle Brown ]

Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Sethu V
Greenhorn

Joined: Aug 06, 2002
Posts: 10
Hi Siva
I dont exactly know abt VAJ4..butfrom the errors u r getting it seems u might have declared the implementation class as abstract check it out
parag Chatterjee
Greenhorn

Joined: Aug 02, 2002
Posts: 28
VAJ4.0 supports EJB1.1.
So, you can use the api for ejb1.1 in ejb development.
Please note that the concept of local interface only comes in ejb2.0 which will not work with vaj4.0

Originally posted by Siva Ram:
Hi,
I have written a bean class() in EJB 1.1 spec. which gives the compile time error.
" EJBLocalObject " - is missing
I have written a bean class() in EJB 2.0 spec. which also gives the compile time error.
" bean class should not be abstract ".
I am compiling these classes in VAJ 4.0.
For the above two cases, what is the modification I have to do in my VAJ 4.o ??
TIA,
N.Ravisankar
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to compile EJB 2.0 classes ???
 
Similar Threads
Part 1 using EJB 2.0
Error during deployment in EAServer 4.1
Websphere Application Developer
AdviceApp from HeadFirstEJB
What next with VAJ