Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Differences in Home interface between J2EE 1.3 and 1.4  RSS feed

 
Peter Braun
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have started to learn from K&B's Head First EJB book which discusses EJBs in J2EE 1.3 context. I started to make a very basic stateless session bean example. I thought it won't be a problem if I'm using J2EE 1.4 with Sun AS 8.1.
But I got an error message in the deploytool that says Home interface class could not be loaded. In my Home interface there is only one create() method which throws CreateException and RemoteException and retuns my Component interface type.

I thought I could be because of differences between J2EE 1.3 and 1.4. Something's missing or whatever.

Do you have any ideas what's the problem? Or can you please tell me where can I find info about differences of 1.3 and 1.4?

Thanks in advance,
Peter
 
Valentin Tanase
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Peter,

This looks mostly like a classpath issue. I'm not familiar with Sun AS 8.1, but most of these tools need to be able to reach the j2ee library. Your container vendor should provide you such library. Weblogic for example provides the weblogic.jar library that can be used for compiling/running all j2ee classes. Please check sun's documentation.
Regards.
 
Jorge Baroudi
Greenhorn
Posts: 10
jQuery Ruby Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi peter, if you're refering to the validation you make with the deploytool i got the same error, altought i just keep going and deploy it anyway, finally check my Advice client app and got it running, i believe its because you don't include in the client.jar the ejb classes, but that's the whole idea i think.

Anyway, try and deploy it and check if the error appears at execution time.

Oh! and in advance i give you two more tips for the AdviceGuy example:

1) Go to wickedlysmart.com and check the errata of the book, for example there is this mehotd of getAdvice from the Advice component that should be named diferent say getTheMessage.

2) My other tip is that if you're getting a CORBA exception, someting related to a host not found, check if you're connected to your local network, if you need to test your ejbs without the local network connection then you could change the target server in the domain\config\sun-acc.xml file to localhost in order to stop getting the error.

So, that is all i remember, i just lov'd the book, still getting a lot of problems, but i'm a newbie anyway, on my way to solve all those little problems

Regards.
[ November 12, 2005: Message edited by: Jorge Baroudi ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!