在jboss上部署struts应用
我正在学习一些 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
即使在进行“分解”部署时,您的应用程序也需要
.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 theExample2
directory toExample2.war
(i.e., you will end up withC:/jboss-4.2.3.GA/server/default/deploy/Example2.war
).