在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
).