4

I have a Java application using Spring, Hibernate and JMX.

Now i wanna deploy it on JBoss. I exported it to a Jar file and copy to the deploy folder of JBoss. But when i start JBoss, that app isn't deployed.

The error I saw that JBoss can't find out library files of Spring and Hibernate.So guys how to deploy a file Jar on JBoss ?

Ishikawa Yoshi
  • 1,779
  • 8
  • 22
  • 43
PenguinSh
  • 129
  • 2
  • 4
  • 12
  • http://stackoverflow.com/questions/8289813/best-practice-for-loading-3rd-party-jars-in-jboss-as7-standalone-deployment – Ishikawa Yoshi Feb 04 '13 at 15:08
  • Not a duplication (of the quesiton linked at least), this one is about deploying jar containing the application, the other one is about packaging 3rd party jar. – Kazaag Feb 04 '13 at 17:34
  • Agree, not a duplicate. Voting to reopen. – pap Feb 05 '13 at 07:44

1 Answers1

2

Java enterprise applications are not deployed as jar files, but as .war files (for web application) or .ear files (for complete enterprise applications, including EJB).

You would probably be looking at packaging your app as a .war file. Even if it's not a "web application", it needs to be packaged as one to be deployed to a Java enterprise/web container like JBOSS.

I would suggest browsing the tutorial available from Oracle to learn more.

pap
  • 27,064
  • 6
  • 41
  • 46