-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Chirag,
On 5/13/13 1:03 PM, Chirag Dewan wrote: >> If the context was removed, but the Connector was still there, >> should you not get a 404 Not Found, rather than a timeout ? > > > If I am calling the removeConnector, shouldn't it cleanup the > context and the free the port? In theory, yes, but ... How long are you waiting? Can you give us the specifics of your connector configuration? I wonder if the connector is remaining open for something like a keepalive timeout (I don't know if it *should* stay open for a keepalive timeout, but it seems plausible). > I mean is my context blocking the connector even after I removed > it? i should get a 404. Yes. But you aren't getting a 404: you are getting a request timeout which seems a bit odd. Perhaps the connector is partially shut-down, but not completely. How about that stack trace? > Sorry I forget to mention,it worked fine with Tomcat 6 Embedded > version. I am trying to upgrade it to Tomcat 7.0.30 and I am > following the same process as in Tomcat 6. Tomcat 7 is different than Tomcat 6... did you read the embedded documentation to see if anything changed? In general, connector states should be the same, but changing major versions is likely to require you to change your embedded code somewhat. Tomcat's unit tests (available in the source distribution of Tomcat) extensively use embedded techniques and are a good source of information for how to properly use Tomcat in an embedded way. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJRkVPqAAoJEBzwKT+lPKRY8UEQALqicEQax+K9xYGb3XdzvOgE a5emxV6fHog9ZSUqHVDnxtSIaxOQ3uUjHiwmc2gtTAnn5NiTN3IES+3YkHLnI6Vl La0fdpNOshuqhz37DAAY9/nPI4fgWOwAMBuAHCrl53BerbHTGaKHUwF0e42/otIa jWxQlVTXD2V06WyuoF9CJupKbcENGrTS7dsDegqmRzbbrGjLHc1Ot/l+AK8uEdjw cjWcI9Od9BkLKMkD+C0aHfT8s5fdUWr3f62K13T8uBrmNbghvK1NKsntpA84VqSy EUuNUcIbJglgLGz+XOc2UlTKZs01y2tRIwoPZQiv3ap15lf1El5KuB3b+NMzj4UT al9fK2sITcQW/6AAdoafChpttW65OvM6kwl3nTZBhOimkW/hw8Qrf7rFh1uUvpY7 Q7rhiCYiyEtVaBPKxPkY4D3272F4OHviZev1ltYyfHHHgFs1+DricOmEhVDF/hd2 6W6FRaxNpdSbS4U2bW9JziISb+5hKH+GyJkSJRJGHagQOXwfNRm89PhKA2mfE3XP Ihtv7eIRBiw6jCWvCYbeXFW5Fvx75AtU1xMlFs2c5HLsryV1h4PCZRtvf/LXYs5G Nl/osLQius4IpHkEdc88CVByYtRlEB8PereQZe/zKXSZt61ahYGQjDf4rDhAt1qa y2eqzNhJ97OrYMz+KPW/ =feVR -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org