在jboss上部署struts应用

发布于 2024-08-12 13:07:29 字数 1439 浏览 6 评论 0原文

我正在学习一些 struts 教程,这是我正在使用的教程之一: http://www.vaannila.com/ struts/struts-example/struts-login-page-example-1.html

我下载了该页面底部的“source + lib”链接,我将示例2文件夹从zip复制到我的webapps文件夹下tomcat,一切都如广告所示。

但是,当我尝试获取相同的 Example2 文件夹并将其复制到我的 jboss 4.2.3 default\deploy 文件夹时,它不起作用。很抱歉提出这样的新手问题,但只是想知道是否有人有任何建议。

以下是控制台错误跟踪的开始部分:

9:37:57,968 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

--- Packages waiting for a deployer ---
org.jboss.deployment.DeploymentInfo@ae05c37c { url=file:/C:/jboss-4.2.3.GA/server/default/deploy/Example2/ApacheLicense.txt }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/C:/jboss-4.2.3.GA/server/default/deploy/Example2/ApacheLicense.txt
  altDD: null
  lastDeployed: 1258850277875
  lastModified: 1258850277875
  mbeans:

org.jboss.deployment.DeploymentInfo@2fc10fd3 { url=file:/C:/jboss-4.2.3.GA/server/default/deploy/Example2/WEB-INF/classes/com/vaannila/ApplicationResource.properties }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/C:/jboss-4.2.3.GA/server/default/deploy/Example2/WEB-INF/classes/com/vaannila/ApplicationResource.properties
  altDD: null
  lastDeployed: 1258850277875
  lastModified: 1258850277875
  mbeans:
.
.
.

那么也许我需要一些不同的配置来在 Jboss 中部署 struts 应用程序?

谢谢。

I'm working through some struts tutorials, and here's one of the ones I'm using:
http://www.vaannila.com/struts/struts-example/struts-login-page-example-1.html

I downloaded the "source + lib" link at the bottom of that page, I copied the Example2 folder from the zip to my webapps folder under tomcat, and everything works as advertised.

However, when I try to take this same Example2 folder and copy it to my jboss 4.2.3 default\deploy folder, it doesn't work. Sorry for such a newbie question, but just wondered if anyone had any advice.

Here's the beginning of the error trail from the console:

9:37:57,968 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

--- Packages waiting for a deployer ---
org.jboss.deployment.DeploymentInfo@ae05c37c { url=file:/C:/jboss-4.2.3.GA/server/default/deploy/Example2/ApacheLicense.txt }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/C:/jboss-4.2.3.GA/server/default/deploy/Example2/ApacheLicense.txt
  altDD: null
  lastDeployed: 1258850277875
  lastModified: 1258850277875
  mbeans:

org.jboss.deployment.DeploymentInfo@2fc10fd3 { url=file:/C:/jboss-4.2.3.GA/server/default/deploy/Example2/WEB-INF/classes/com/vaannila/ApplicationResource.properties }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/C:/jboss-4.2.3.GA/server/default/deploy/Example2/WEB-INF/classes/com/vaannila/ApplicationResource.properties
  altDD: null
  lastDeployed: 1258850277875
  lastModified: 1258850277875
  mbeans:
.
.
.

So maybe I need some different configuration for deploying a struts app in Jboss?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

木槿暧夏七纪年 2024-08-19 13:07:29

即使在进行“分解”部署时,您的应用程序也需要 .war 扩展名。将 Example2 目录重命名为 Example2.war (即,您最终将得到 C:/jboss-4.2.3.GA/server/default/deploy/示例2.war)。

Your application needs a .war extension, even when doing an "exploded" deployment. Rename the Example2 directory to Example2.war (i.e., you will end up with C:/jboss-4.2.3.GA/server/default/deploy/Example2.war).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文