The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Problem deploying a simple EJB3 application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Problem deploying a simple EJB3 application " Watch "Problem deploying a simple EJB3 application " New topic

Problem deploying a simple EJB3 application

hashmukh punamia

Joined: Aug 14, 2007
Posts: 22
Hi Ranchers,

I am deploying a simple EJB3 application in JBoss

This is my Client Code

This is my interface

This is my EJB3 Bean

This is my

I compiled the above classes using JDK 1.5 and deployed the jar file in C:\jboss-4.2.2.GA\server\default\deploy

I am not able to run the Jar file.
It throws the following error

Failed to load Main-Class manifest attribute from

Thanks & Regards,
Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 549

type this command and tell us what it says :
jar -tf TestEJB.jar

Also, how do you package your application ?

SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCBCD 5
Visit my blog
Dinuka Arsakularatne
Ranch Hand

Joined: Aug 12, 2006
Posts: 198
I think first you have to name your interface @Remote. and also just creating a new object of the initial context is not enough i believe. You need to put the jboss properties file in the classpath as well. and also you should append your bean insider context.lookup as 'PerformCalculation/remote'

if who i am is what i have, and what i have is lost, then who am i?<br /> <br />SCJP 5.0<br />SCWCD 1.4<br />SCBCD preparing
I agree. Here's the link:
subject: Problem deploying a simple EJB3 application
It's not a secret anymore!