| 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: 546
|
|
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
|
 |
 |
|
|
subject: Problem deploying a simple EJB3 application
|
|
|