Kapil garg wrote:
I tried runnning on prompt using
java -Xdebug -Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8091 -jar ofbiz.jar
from the prompt. I am able to open ofbiz on 8080 but while connecting with
eclipse in Debug mode, it says
connection refused, socket closed. Any hint?
Try (simpler IMO) alternative
https://cwiki.apache.org/confluence/display/OFBIZ/Running+and+Debugging+OFBiz+in+Eclipse#RunningandDebuggingOFBizinEclipse-Debugging(orrunning)OFBizinEclipse
But well... this is explained in the preamble, that's why I did not
understand...
Jacques
Kapil Garg
From: [email protected]
To: [email protected]
Subject: Issues while connecting Ofbiz eclipse in Debug Mode
Date: Fri, 29 Oct 2010 23:54:22 +1000
Sorry I am trying to get my head around the documentation for connecting
Eclipse in Debug mode for Ofbiz.
Folliwing the instructions
https://cwiki.apache.org/confluence/display/OFBIZ/Running+and+Debugging+OFBiz+in+Eclipse
I added
java -Xdebug -Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8091 -jar ofbiz.jar
in the stortOfbix.bat and renamed it as StartDebugOfbiz.bat
My question is after adding port 8091 as a debug port, would my application
ecommerce say for example need to open on
locahost:8080/ecommerce or localhost:8090/ecommerce. After adding it is opening
on 8080. Is that correct?
I was able to get my application started on 8080 after adding the debug line in
startup script and runnning the new starup script.
I have added all the necessary configurations as listed in the link under
Run==>DEbug Configuration. After putting the right
values and
when I try to hit the run button with ecommerce application running on 8080, I
get VM connection refused errror dialog box in
Eclipse.
Am I doing something wrong here? Is there a specific version of eclipse that
needs to used? I am using 3.4.2 jee version.
Any help would be appreciated.
Kapil Garg