在jboss上部署struts应用 [英] deploy struts app on jboss

查看:180
本文介绍了在jboss上部署struts应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

我下载了该页面底部的"source + lib"链接,将Example2文件夹从zip复制到了tomcat下的webapps文件夹,一切正常.

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.

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

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:
.
.
.

所以也许我需要一些不同的配置才能在Jboss中部署struts应用程序?

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

谢谢.

推荐答案

即使进行爆炸式"部署,您的应用程序也需要.war扩展名.将Example2目录重命名为Example2.war(即,您将以C:/jboss-4.2.3.GA/server/default/deploy/Example2.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).

这篇关于在jboss上部署struts应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆