简体   繁体   English

无法在Jboss上创建我的Web应用程序的WAR

[英]Unable to create the WAR of my web application on Jboss

I am trying to deploy my web application with Jboss AS 6.x. 我正在尝试使用Jboss AS 6.x部署Web应用程序。

The problem I am facing is when I try to export the WAR file by right clicking on the project from left menu and export, there is no such option as to export the project as WAR. 我面临的问题是,当我尝试通过右键单击左侧菜单中的项目并导出来导出WAR文件时,没有将项目导出为WAR的选项。

I have installed JBoss Application Tools successfully. 我已经成功安装了JBoss应用程序工具。 Integrated JBoss server successfully. 成功集成JBoss服务器。

Where am I missing? 我在哪里想念? Am I missing some necessary tools? 我是否缺少一些必要的工具?

This option is available only if your project is Dynamic Web Project. 仅当您的项目是Dynamic Web Project时,此选项才可用。 The Java project, which is decorated with J letter on folder icon doesn't have the capability to export as WAR archive. 文件夹图标上带有J字母修饰的Java项目无法导出为WAR存档。 But to deploy a web project you might try the approach "Run as..." . 但是,要部署Web项目,您可以尝试使用"Run as..." And choose the server configured before to run a web project. 并选择运行Web项目之前配置的服务器。

You can't convert a Java project to a Dynamic Web Project automatically with JBoss Application Tools. 您无法使用JBoss Application Tools自动将Java项目转换为Dynamic Web Project。 But if you have MyEclipse IDE then it's easy done just by adding a web capabilities. 但是,如果您具有MyEclipse IDE,则只需添加Web功能即可轻松完成。 So, choose "New..." project wizard and "Dynamic Web Project" then follow the wizard pages. 因此,选择“新建...”项目向导和“动态Web项目”,然后按照向导页面进行操作。

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

相关问题 如何使用maven部署到JBOSS为Web服务创建War文件? - How to create war file for web service using maven to deploy to JBOSS? 如何在不使用Eclipse的情况下从终端为我的Java Web应用程序项目创建War文件 - How to create a war file for my java web application project from terminal without using eclipse JBoss:在application.war / WEB-INF / lib中部署JAR - JBoss: deployment of JAR's in application.war/WEB-INF/lib 如何在Jboss 7.1中配置jndi引用名称workmanger和timer在部署war web应用程序时 - How to configure jndi reference name workmanger and timer in Jboss 7.1 When deploying war web application 使用jboss部署Java Web应用程序时如何从war文件中删除jar文件 - How to remove jar files from war file when deploying a java web application with jboss 无法在JBOSS服务器上部署基于Maven的Java Web应用程序 - Unable to deploy maven based java web application on JBOSS server 如何在Netbeans中构建我的Web应用程序后运行.war文件 - How to run a .war File after building my Web Application in Netbeans 使用与JBOSS兼容的ANT创建WAR - Create WAR using ANT compatible with JBOSS 在Eclipse中创建War文件以在JBoss上运行 - Create War Files in Eclipse to run on JBoss Web应用程序中的Jboss Drools - Jboss Drools in a Web Application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM