This week's book giveaways are in the Jython/Python and Object-Oriented programming forums.
We're giving away four copies each of Machine Learning for Business: Using Amazon SageMaker and Jupyter and Object Design Style Guide and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

My First EJB

 
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.
 
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.
 
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
 
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?
 
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"
 
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
 
what if we put solar panels on top of the semi truck trailer? That could power this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!