2018-07-16 15:56 GMT+03:00 Désilets, Alain <alain.desil...@nrc-cnrc.gc.ca>:
>>    lurodrig@:tomcat-9-0-5-installation$ lsof -i:8000
>>    COMMAND   PID     USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
>>    java    13522 lurodrig    4u  IPv4 450991      0t0  TCP localhost:8000
>>    (LISTEN)
>
> Gives me this
>
>         java    2323 desilets    5u  IPv4 0xad510ad86ad41671      0t0  TCP 
> *:irdmi (LISTEN)
>
> which seems to indicate that Tomcat is NOT listening on locahost, but on 
> something called *:irdmi. Not sure that this matters, because from what I can 
> read on the net, *:irdmi corresponds to port 8000.
>

Note that the above lsof output for port 8000 says "IPv4",but the one
below for port 8080 says "IPv6".

>>    lurodrig@:tomcat-9-0-5-installation$ lsof -i:8080
>>    COMMAND   PID     USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
>>    java    13522 lurodrig   51u  IPv6 450993      0t0  TCP *:http-alt 
>> (LISTEN)
>
> Gives me this:
>
>         java    2323 desilets   61u  IPv6 0xad510ad8630f7d61      0t0  TCP 
> *:http-alt (LISTEN)
>
> Again, I believe *:http-alt is just an alias for  8080, so it doesn't seem to 
> matter.
>
> Note that if I start with 'catalina.sh start' (i.e. no jpda), I get *:http-al 
> for 'lsof -8080'  and nothing for 'lsof -8000'.
>
>>    Hope it helps,
>
> So far, no. But I appreciate the effort. Any other ideas?
>
>>    ps: a HTTP request against the debug port will print this message in the
>>    catalina.out Debugger failed to attach: handshake failed - received >GET /
>>    HTTP/1.1< - expected >JDWP-Handshake<
>
>  Yep, I get that message when running with jpda

You have that message = You have started in debug mode = You tried
connecting with a wrong client.

I have impression that you have successfully started Tomcat in debug mode.
The problem is that you cannot connect to it.

Have you tried to connect with a proper debug client (IDE)?

You may try using explicit IPv4 address, http://127.0.0.1:8000/

I wonder whether address=8000 can be used to specify IP address as well as port.


Also
>  /Library/Tomcat

What version is that? Is it ours?

> I have a file /Library/Tomcat/bin/setenv

You tried many ways. I wonder which one wins.
All those environment variables are used to build the command line for
Java. I wonder whether java sees several copies of those options.

For example, if you start with suspend=y then Java will start, but it
will stop (like being on a breakpoint) at Tomcat startup sequence.

Have you looked into Tomcat log files? Look for output from
VersionLoggerListener.
http://tomcat.apache.org/tomcat-9.0-doc/config/listeners.html#Version_Logging_Lifecycle_Listener_-_org.apache.catalina.startup.VersionLoggerListener


Best regards,
Konstantin Kolinko

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

Reply via email to