When I tried to run Weblogic in debug mode from Intellij using JDK 1.5.0_09, I got a cryptic error like this:
JDWP unable to get necessary JVMTI capabilities
The cause of this is that IntelliJ is appending its own environment variables to the environment variables from the JVM, which is causing duplication of the variable -Xrunjdwp:transport=dt_socket . This duplication causes the error message above. The environment variables in IntelliJ can't seem to be edited (although you can tell it not to pass any variables, this caused me other problems when trying to debug remotely).
What I did to solve this was edit the file C:\bea\user_projects\domains\projectName\bin\startWebLogic.
set JAVA_VM=
This will allow IntelliJ to control what environment variables are used, and will remove the double up.
0 comments:
Post a Comment