• Post Reply Bookmark Topic Watch Topic
  • New Topic

My First EJB

 
Anjili Akash
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to write my first ejb.But the compiler(jdk1.3) cant compile it.
Error is cant find javax.ejb.*;
plz help i m totaly new and have no other help.
 
Nagendra Prasad
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What IDE are u using? U need j2ee.jar in the path!
 
Anjili Akash
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using jbuilder5. But from where i can find j2ee.jar?
Is there any resource from which i can start learning ejb creation,compilation,deployment and execution?
plz help.
 
Amit KumarS
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
it seems u have not downloaded j2ee.. u can download it from here.. u can get tutorials and other realtyed things also..
Thanks
Amit
 
Bish Ach
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Try this link http://www.tusc.com.au/tutorial/html/index.html
 
Anjili Akash
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx Amit,
I have seen this link but the problem is that I want to use websphere application server and either jbuilder5 or visual age for java as a development environment.
I have installed wesphere 3.5 and jbuilder5. but cant compile my ejb.
 
Anjili Akash
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx Amit,
I have seen this link but the problem is that I want to use websphere application server and either jbuilder5 or visual age for java as a development environment.
I have installed wesphere 3.5 and jbuilder5. but cant compile my ejb.
plz rmember its my first ejb and i m trying to do it myself at home.
 
Bish Ach
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi u need not download the j2ee.jar. I think it will be there in the server itself...search any lib direcetoty...
 
Anjili Akash
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh my Lord!
I think i am getting mad to do it at any cost.
Ach i have searched the file but could not find any.
What to do?
 
Bora ´┐Żelebi
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, this problem can be solved with changing the context "build.xml".
Add your code following:
<property name="classpath" value="C:\jboss\jboss-4.0.0DR2\server\all\lib\jboss-j2ee.jar"/>
Change <javac> statement like this;
<target name="build" >
<javac classpath="${classpath}" srcdir="${src}" destdir="${classdir}" debug="true" includes="**/*.java" />
</target>
 
Bish Ach
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok go to http://java.sun.com/downloads/
select the j2ee version(1.4 etc. which u want ) register.. then select a platform and then D/L the file "j2eesdk-1_4-beta2-windows-eval-app.zip"
Once u unzip it and install u get a directory structure like C:\j2sdkee1.3.1\lib (in my system) in the lib dir u will get ur "j2ee.jar"
 
sabuj paul
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
u dont need to download anything like j2ee.jar....If u hv any app server like weblogic , all necessary files will be there in respective directory. In ur case only think u need to do is set the class path while compiling the ejb.U can do it by making any batch file in windows or .sh file in unix and declare the classpaths including ejbs and run tht sh file. U will able to compile , as well as deploy the ejb also ...
njoy
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!