Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem deploying a simple EJB3 application

 
hashmukh punamia
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
type this command and tell us what it says :
jar -tf TestEJB.jar

Also, how do you package your application ?
 
Dinuka Arsakularatne
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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'
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic