无法发布到服务器。Jboss7.1 服务器中的 java.lang.NullPointerException

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/31377363/
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-11-02 18:30:19  来源:igfitidea点击:

Could not publish to the server. java.lang.NullPointerException in Jboss7.1 Server

javaspringjbossserver

提问by Piyush Mittal

enter image description herei am getting Could not publish to the server. java.lang.NullPointerException when i try to run my Jboss7.1 server on my machine.

在此处输入图片说明我得到无法发布到服务器。java.lang.NullPointerException 当我尝试在我的机器上运行我的 Jboss7.1 服务器时。

enter image description here

在此处输入图片说明

any idea about that??

有什么想法吗?

回答by Piyush Mittal

enter image description here

在此处输入图片说明

in server properties i just clicked on Switch Location and now its running fine .

在服务器属性中,我只是点击了切换位置,现在它运行良好。

回答by Witold Kaczurba

@Piyush Mittal - I installed another Eclipse (newer edition) with new server and pointed it to use the old workspace. When one of projects is open - it causes the same problem with new server in new location. It seems that the issue must have something to do with workspace/project settings. I got rid of the project and problem.

@Piyush Mittal - 我用新服务器安装了另一个 Eclipse(较新版本),并指出它使用旧工作区。当其中一个项目打开时 - 它会导致新位置的新服务器出现同样的问题。该问题似乎与工作区/项目设置有关。我摆脱了项目和问题。