简体   繁体   English

如何在JBoss上部署JAR文件?

[英]How to deploy JAR file on JBoss?

I have a Java application using Spring , Hibernate and JMX . 我有一个使用SpringHibernateJMX的Java应用程序。

Now i wanna deploy it on JBoss. 现在我想在JBoss上部署它。 I exported it to a Jar file and copy to the deploy folder of JBoss. 我将其导出到Jar文件中,然后复制到JBoss的deploy文件夹中。 But when i start JBoss, that app isn't deployed. 但是当我启动JBoss时,尚未部署该应用程序。

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 ? 我看到的错误是JBoss找不到Spring和Hibernate的库文件。那么伙计们如何在JBoss上部署文件Jar?

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). Java企业应用程序未部署为jar文件,而是部署为.war文件(对于Web应用程序)或.ear文件(对于完整的企业应用程序,包括EJB)。

You would probably be looking at packaging your app as a .war file. 您可能正在考虑将应用程序打包为.war文件。 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. 即使它不是“ Web应用程序”,也需要将其打包为一个程序,以部署到Java企业/ Web容器(如JBOSS)。

I would suggest browsing the tutorial available from Oracle to learn more. 我建议浏览Oracle提供的教程以了解更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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