PenguinSh
PenguinSh

Reputation: 119

How to deploy JAR file on JBoss?

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 ?

Upvotes: 4

Views: 15870

Answers (1)

pap
pap

Reputation: 27614

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.

Upvotes: 2

Related Questions