简体   繁体   中英

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 ?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM