my problem with empty ejbsrc is ok with version 2.1.0 of Eclipse.
But now my problem is when I launch JBoss, like I explain in my previous post.
If you have problems compiling jsp pages the problem is likely that you have not correctly set the JAVA_HOME environment variable.
Chapter 5 On BMP has been published.
Next to come, Chapter 6 on CMP.
How can I say to JBoss what JAVA_HOME to use ? But only when I launch JBoss from the Lomboz plug-in.
If I do a %JBOSS_DIST%/bin/run, it works fine !
JAVA_HOME has to be on PATH
should come /usr/java/j2sdk1.4.1_02/bin:/usr/local/bin.
This is on linux box.
export JAVA_HOME= /usr/java/j2sdk1.4.1_02
I hope this will get you going.
And make sure tools.jar on classpath as well.
My variables are ok. If I run JBoss on command line, no problem.
The problem occurs only if I run JBoss from the Lomboz plug-in in Eclipse...
Just for everyone, as the response to this tutorial is huge.
Chapter 5 on BMP has been published.
This is the step by step tutorial for developing J2EE applications, using JBOSS, Eclipse and Lomboz. Cover J2EE patterns, like Session Facade, Front Controller and others.
Glen McCallum is currently reviewing rest of the chapters on CMP, MDB and Web Components, which will be released asap.
And thanks to all of you for yr feeback.
Thanks for the great tutorial. The Chapter 1 tutorial 'My Bank' works fine, but I am experiencing a problem in Ch 3 tutorial. When I right click MyStoreMgr and click for generate EJB classes, I get the following error in line
dao = (au.com.tusc.session.StoreAccessDAO) new au.com.tusc.dao.StoreAccessDAOImpl();
of class StoreAccessSession :
" StoreAcessDAOImpl cannot be resolved is not a type"
also StoreAccessDAO is not generated though it is declared in tag at StoreAccesBean.
I am using eclipse.2.1.0. Please help.
I can see StoreAcessDAOImpl.java in ejbsrc but package au.com.tusc.dao package is missing in ejbsrc.
If StoreAccessDAO is not generated under ejbsrc then under yr ejb module which is MyStoreMgr, you haven't specified tag in ejbGenerate.xml to generate DAO intrerface.
Check that, thats the only think i can think of.
Its specifed in chapter3 and chapter1 as well, how to do that.
I specified the following tag:
Obviously you won't see the au.com.tusc.dao package as you have to create it under src.
Check this step
Create DAO Interface :
It asks you to create StoreAccessDAOImpl class under 'src' not under 'ejbsrc' and then implement the methods generated in StoreAccessDAO.
Please have a look at the tutorial.
I have created the StoreAcessDAOImpl class in the package au.com.tusc.dao inside MyStore/src folder. But it is not able to find this class file when compiling the ejbsrc source files. As the mention of this class file is only in the tag of impl-class in StoreAcessBean, I was wondering whether I have missed out something.
Thanks in advance
Sorry for the trouble, I found out the error.
Earlier I was cutting and pasting the tutorial from the browser the tag: @ejb.dao. It must have been inadverntly putting some character before impl-class attribute.
Finally I decided to type it out. And it worked.....
Thanks for your prompt help.
I just encountered a small typho
Code snippet from 'StoreAccessBean'.
Code snippet from 'StoreAccessSession'.