eclipse JBoss AS 5.1 部署失败(org.jboss.deployers.spi.DeploymentException)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/27817201/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 22:19:01  来源:igfitidea点击:

Deployment failed at JBoss AS 5.1 (org.jboss.deployers.spi.DeploymentException)

javaeclipsedeploymentjboss

提问by Filipe Manuel

This is the second time this error occurs. I'm not sure what should be because every time I do a dozen procedures over and over again (Clean, Add/Remove project, Build, etc...) and always in the same way, out of nowhere. Sometimes solve, but I know not what I do. This time not resolved and is the third day that I continue with this error preventing my work. Do not edit settings, just run and debug the project and this error happens.

这是第二次出现此错误。我不确定应该是什么,因为每次我一遍又一遍地执行十几个程序(清理、添加/删除项目、构建等)并且总是以相同的方式,无处不在。有时解决,但我不知道我在做什么。这次没有解决,这是我继续出现此错误阻止我工作的第三天。不要编辑设置,只需运行和调试项目,就会发生此错误。

So, come through advanced ask that the information can is causing this error to that (I hope not) happen again, I go directly to the focus error.

所以,通过高级询问信息是否会导致此错误(我希望不会)再次发生,我直接转到焦点错误。

DEPLOYMENTS IN ERROR:

  Deployment "vfsfile:/C:/jboss-5.1.0.GA/server/1_instancia/deploy/xyz-web.war/" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: URL file:/C:/jboss-5.1.0.GA/server/1_instancia/deploy/xyz-web.war/ deployment failed

Thanks in advance.

提前致谢。

采纳答案by Filipe Manuel

After several attempts I found a "sequence" that eliminates this error. I say in quotes because there shouldn't be a sequence, but this way I could make the deploy the .warfile not be corrupted. Come on, after the system displays the error message: remove the project of the server, Project -> clean-> click on the server -> Add and remove-> add the project and finally, in the project added to server right click in the mouse and select Full Publish

经过多次尝试,我找到了一个消除此错误的“序列”。我用引号说,因为不应该有序列,但这样我可以使部署.war文件不会被损坏。来吧,系统显示错误信息后:删除服务器的项目,Project -> clean->点击服务器-> Add and remove->添加项目最后,在添加到服务器的项目中鼠标右键选择Full Publish

After all this time, I realized that this error is because the .warfile on the server is in error or inconsistency, either by changing the branch (versioning code) or by some change that was not well established in server, only the local file. The best you have to do is remove the server project, clean it, and build again (if not automatically build). After that, clean the server, worth checking if the application .warwas actually deleted from the deployment folder, if not, you need to delete manually. Done all the cleaning in the application and server, add the application to the server, publish it altogether and try to reconnect the server.

经过这么长时间,我意识到这个错误是因为.war服务器上的文件出错或不一致,要么是通过更改分支(版本控制代码),要么是服务器中没有很好地建立的一些更改,只有本地文件。您必须做的最好的事情是删除服务器项目,清理它,然后重新构建(如果不是自动构建)。之后,清理服务器,值得检查应用程序.war是否真的从部署文件夹中删除,如果没有,则需要手动删除。完成应用程序和服务器中的所有清理,将应用程序添加到服务器,完全发布并尝试重新连接服务器。

回答by Raphael

Kindly follow the below steps:

请按照以下步骤操作:

Step 1: Stop the server and remove all the .temp files from deploy

步骤 1:停止服务器并从部署中删除所有 .temp 文件

Step 2: Remove data,log,work,tmp folder from your directory(jboss\server\default)

第 2 步:从您的目录(jboss\server\default)中删除 data、log、work、tmp 文件夹

Step 3: Remove your current working war folder "xyz.war" from the deploy folder and redeploy

第 3 步:从部署文件夹中删除当前工作的 war 文件夹“xyz.war”并重新部署

Then start the server.This worked for me.

然后启动服务器。这对我有用。

回答by Abhijit Patra

Stop the running Server Clean the project(Project->Clean->Clean Project Select Below->[Select Project]->Ok) & Clean the server(If you already configure the server just right clickand click Clean) Start the server and access the Url.

停止正在运行的服务器清理项目(项目->清理->清理项目选择下面->[选择项目]->确定)&清理服务器(如果你已经配置了服务器,只需右键单击并单击清理)启动服务器并访问网址。