-
15. Re: Tutorial on J2EE using JBOSS, Eclipse and Lomboz.
olof Jul 31, 2003 12:34 AM (in response to vashistvishal)Hi,
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. -
16. Re: Tutorial on J2EE using JBOSS, Eclipse and Lomboz.
darranl Aug 1, 2003 8:00 AM (in response to vashistvishal)If you have problems compiling jsp pages the problem is likely that you have not correctly set the JAVA_HOME environment variable.
-
17. Re: Tutorial on J2EE using JBOSS, Eclipse and Lomboz.
vashistvishal Aug 3, 2003 10:56 PM (in response to vashistvishal)Chapter 5 On BMP has been published.
Next to come, Chapter 6 on CMP.
Cheers.... -
18. Re: Tutorial on J2EE using JBOSS, Eclipse and Lomboz.
olof Aug 4, 2003 12:19 AM (in response to vashistvishal)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 !
Thanks -
19. Re: Tutorial on J2EE using JBOSS, Eclipse and Lomboz.
vashistvishal Aug 4, 2003 2:22 AM (in response to vashistvishal)JAVA_HOME has to be on PATH
echo $PATH
should come /usr/java/j2sdk1.4.1_02/bin:/usr/local/bin.
This is on linux box.
And
export PATH=$JAVA_HOME/bin
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. -
20. Re: Tutorial on J2EE using JBOSS, Eclipse and Lomboz.
olof Aug 4, 2003 3:36 AM (in response to vashistvishal)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... -
21. Re: Tutorial on J2EE using JBOSS, Eclipse and Lomboz.
vashistvishal Aug 4, 2003 8:27 AM (in response to vashistvishal)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. -
22. Re: Tutorial on J2EE using JBOSS, Eclipse and Lomboz.
bumeshrai Aug 5, 2003 4:37 AM (in response to vashistvishal)Dear Vishal,
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. -
23. Re: Tutorial on J2EE using JBOSS, Eclipse and Lomboz.
bumeshrai Aug 5, 2003 4:48 AM (in response to vashistvishal)Sorry,
I can see StoreAcessDAOImpl.java in ejbsrc but package au.com.tusc.dao package is missing in ejbsrc. -
24. Re: Tutorial on J2EE using JBOSS, Eclipse and Lomboz.
vashistvishal Aug 5, 2003 5:07 AM (in response to vashistvishal)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.
Cheers.... -
25. Re: Tutorial on J2EE using JBOSS, Eclipse and Lomboz.
bumeshrai Aug 5, 2003 5:34 AM (in response to vashistvishal)I specified the following tag:
-
26. Re: Tutorial on J2EE using JBOSS, Eclipse and Lomboz.
vashistvishal Aug 5, 2003 5:53 AM (in response to vashistvishal)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. -
27. Re: Tutorial on J2EE using JBOSS, Eclipse and Lomboz.
bumeshrai Aug 5, 2003 6:26 AM (in response to vashistvishal)Dear Vishal,
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 -
28. Re: Tutorial on J2EE using JBOSS, Eclipse and Lomboz.
bumeshrai Aug 5, 2003 10:36 PM (in response to vashistvishal)Dear Vishal,
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. -
29. Re: Tutorial on J2EE using JBOSS, Eclipse and Lomboz.
bumeshrai Aug 5, 2003 10:50 PM (in response to vashistvishal)I just encountered a small typho
Code snippet from 'StoreAccessBean'.
should be
Code snippet from 'StoreAccessSession'.