无法从IntelliJ调试JBOSS项目运行 [英] Unable to run as debug JBOSS project from IntelliJ

查看:3277
本文介绍了无法从IntelliJ调试JBOSS项目运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以运行JBOSS项目而不进行调试。
但是,当我尝试以调试模式运行项目时,我在事件日志中收到以下消息:

I am able to run a JBOSS project without debugging. However, when I try to run the project in debug mode I get the following message in the event log:

5:02:17 PM All files are up-to-date
5:02:21 PM All files are up-to-date
5:02:21 PM Error running ProjectConfiguration
           Invalid arguments : Already listening
           [timeout, port, localAddress]

我已经杀死了所有的java .exe在我的机器上进程。任何想法?

I have killed all the java.exe processes on my machine. Any ideas?

我完全设置了一个新项目。我现在得到以下内容:

I setup a fresh project completely. I am now getting the following:

6:06:56 PM Error running JBOSS Local: Unable to open debugger port (127.0.0.1:9157): java.net.SocketException "socket closed"
6:06:56 PM Application Server was not connected before run configuration stop, reason:
           Unable to ping server at localhost:8080

AND this:

ERROR: transport error 202: failed to attach to shared memory connection: The system cannot find the file specified
ERROR: JDWP Transport dt_shmem failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690]
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
Disconnected from server


推荐答案

也许你可以尝试使用此uncom启动JBoss进行远程调试在bin / standalone.conf.bat中提到:

Perhaps you could try remote debugging by starting JBoss with this uncommented in bin/standalone.conf.bat:

-Xrunjdwp:transport=dt_socket,address=8888,server=y,suspend=n

然后在IntelliJ中,针对localhost启动远程调试会话:8888。

Then in IntelliJ, start a remote debug session against localhost:8888.

这篇关于无法从IntelliJ调试JBOSS项目运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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