wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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
Author

Problem deploying a simple EJB3 application

hashmukh punamia
Greenhorn

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 JNDI.properties


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
TestEJB.jar

Thanks & Regards,
Hashmukh
Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 547

hi,
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: http://aspose.com/file-tools
 
subject: Problem deploying a simple EJB3 application
 
Similar Threads
ejb3 application client can't find session bean. Error: Exception in thread "main" java.lang.Asserti
@EJB injection from different jar
exception while runing EJB3.0 basic application
Getting Remote Datasource object to client using Weblogic Context Factory from remote Machine
Help EJB3