将Hudson War部署到jboss 6中时出错 [英] Error while deploying hudson war into jboss 6

查看:104
本文介绍了将Hudson War部署到jboss 6中时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是哈德森的新手.我想将Hudson与JBoss6结合使用.我将hudson.war放到JBoss6的deploy文件夹中,但是当我启动服务器时,它显示下面再现的错误.我该怎么做才能正确部署?

I'm new to Hudson. I'd like to use Hudson with JBoss6. I put hudson.war into the deploy folder of JBoss6, but when I start the server it shows the error reproduced below. What should I do for the proper deployment?

原因:java.io.FileNotFoundException:D:\ jboss-6.0.0.20100429-M3 \ server \ default \ deploy \ hudson.war(该进程无法访问该文件,因为该文件正在被另一个进程使用) 在java.io.FileInputStream.open(本机方法)[:1.6.0_13] 在java.io.FileInputStream.(FileInputStream.java:106)[:1.6.0_13] 在org.jboss.vfs.spi.RootFileSystem.openInputStream(RootFileSystem.java:55)[jboss-vfs.jar:3.0.0.CR5] 在org.jboss.vfs.VirtualFile.openStream(VirtualFile.java:236)上[jboss-vfs.jar:3.0.0.CR5] 在org.jboss.vfs.VFS.mountZip(VFS.java:459)[jboss-vfs.jar:3.0.0.CR5] 在org.jboss.vfs.util.automount.Automounter $ RegistryEntry.mount(Automounter.java:237)[jboss-vfs.jar:3.0.0.CR5] 在org.jboss.vfs.util.automount.Automounter $ RegistryEntry.access $ 000(Automounter.java:208)[jboss-vfs.jar:3.0.0.CR5] 在org.jboss.vfs.util.automount.Automounter.mount(Automounter.java:117)[jboss-vfs.jar:3.0.0.CR5] 在org.jboss.vfs.util.automount.Automounter.mount(Automounter.java:77)上[jboss-vfs.jar:3.0.0.CR5] 在org.jboss.deployers.vfs.plugins.structure.AbstractVFSArchiveStructureDeployer.performMount(AbstractVFSArchiveStructureDeployer.java:145)[:2.2.0.Alpha4] 在org.jboss.deployers.vfs.plugins.structure.AbstractVFSArchiveStructureDeployer.mountArchive(AbstractVFSArchiveStructureDeployer.java:128)[:2.2.0.Alpha4]

Caused by: java.io.FileNotFoundException: D:\jboss-6.0.0.20100429-M3\server\default\deploy\hudson.war (The process cannot access the file because it is being used by another process) at java.io.FileInputStream.open(Native Method) [:1.6.0_13] at java.io.FileInputStream.(FileInputStream.java:106) [:1.6.0_13] at org.jboss.vfs.spi.RootFileSystem.openInputStream(RootFileSystem.java:55) [jboss-vfs.jar:3.0.0.CR5] at org.jboss.vfs.VirtualFile.openStream(VirtualFile.java:236) [jboss-vfs.jar:3.0.0.CR5] at org.jboss.vfs.VFS.mountZip(VFS.java:459) [jboss-vfs.jar:3.0.0.CR5] at org.jboss.vfs.util.automount.Automounter$RegistryEntry.mount(Automounter.java:237) [jboss-vfs.jar:3.0.0.CR5] at org.jboss.vfs.util.automount.Automounter$RegistryEntry.access$000(Automounter.java:208) [jboss-vfs.jar:3.0.0.CR5] at org.jboss.vfs.util.automount.Automounter.mount(Automounter.java:117) [jboss-vfs.jar:3.0.0.CR5] at org.jboss.vfs.util.automount.Automounter.mount(Automounter.java:77) [jboss-vfs.jar:3.0.0.CR5] at org.jboss.deployers.vfs.plugins.structure.AbstractVFSArchiveStructureDeployer.performMount(AbstractVFSArchiveStructureDeployer.java:145) [:2.2.0.Alpha4] at org.jboss.deployers.vfs.plugins.structure.AbstractVFSArchiveStructureDeployer.mountArchive(AbstractVFSArchiveStructureDeployer.java:128) [:2.2.0.Alpha4]

推荐答案

我从来没有使用过JBoss,但是问题显然是其他一些应用程序正在保存您的hudson.war.看来您正在Windows上运行JBoss,所以这就是我要做的:

I've never used JBoss, but the problem is clearly that some other application is holding your hudson.war . It looks like you are running JBoss on Windows, so this is what I'd do:

下载并运行流程浏览器->查找->查找句柄或DLL ->在句柄或DLL子字符串框中输入hudson.war->按下 Search .它可能会显示使用该文件的除JBoss以外的其他应用程序(或者它可能是您未正确终止的JBoss应用程序的另一个实例).看看它是什么以及是否可以关闭它.

Download and run Process Explorer -> Find -> Find Handle or DLL -> enter hudson.war into Handle or DLL substring box -> push Search . It will probably show some app other than JBoss using the file (or it can be another instance of JBoss app that you did not kill properly). See what it is and whether you can close it.

(如果您单击该行,它将实际上导航到主窗口中的该应用程序,您可以通过右键单击它并选择适当的菜单项将其杀死).

(If you click on that line it will actually navigate to that app in the main window, you can kill it by right-clicking on it and choosing the appropriate menu item).

这篇关于将Hudson War部署到jboss 6中时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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