Karen,

On 9/12/2018 9:43 PM, Karen Goh wrote:
  Hi Igal, I think you are spot-on my problem. Tks.  Thanks to Burghard also 
for suggesting re-importing the project.

I just since corrected the directory address inside my run configuration as 
follows ;

-Dcatalina.base="C:\Program Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4" 
-Dcatalina.home="C:\Program Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4" 
-Dwtp.deploy="C:\Program Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4\webapps" 
-Djava.endorsed.dirs="C:\Program Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4\endorsed"

-agentlib:jdwp=transport=dt_socket,address=8006, server=y,suspend=n

Now, I am not sure what this address is referring to and I just can't find the 
explanation on the internet.
Cos what happened is that Tomcat is giving me errors all my ports are being 
used and so I have altered it as follows :

Tomcat admin port 8006
HTTP/1.1   8082
AJP/1.3 8010

Please let me know if address should be changed to 8006

Cos now I got this latest error :(


ERROR: transport error 202: connect failed: Connection refused
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized 
[debugInit.c:750]

And I can't do make Tomcat switch to Debug mode even though I have followed 
what you guys have taught me the last time.

No.  "8006" is not a valid address, it's just the port.  If you want to use port 8006 on 
localhost then you need to use "localhost:8006".  The -agentlib value therefore should be 
like so:

    -agentlib:jdwp=transport=dt_socket,address=localhost:8006,server=y,suspend=n

But you might be better off using the environment variable

    JPDA_ADDRESS=localhost:8006

Since your other values are set to defaults.

HTH,

Igal



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to