How to start stop embedding Tomcat correctly?

2011-07-01 Thread Rehtron
Dear all, I use org.apache.catalina.startup.Tomcat to do unit test, but the instance of which cannot be started or stopped correctly. I start and stop embedding tomcat for each test case, but first test can be passed, the second one will be failed by 503 Service, unavailable, the

Re: How to start stop embedding Tomcat correctly?

2011-07-01 Thread Mark Thomas
On 01/07/2011 10:07, Rehtron wrote: Dear all, I use org.apache.catalina.startup.Tomcat to do unit test, but the instance of which cannot be started or stopped correctly. I start and stop embedding tomcat for each test case, but first test can be passed, the second one will be failed by

RE: Tomcat is not able to connect to IPV4 (Tomcat Version : 7.0.14)

2011-07-01 Thread Rohan Kadam
Hi All, Is some more information required for this? Thanks. -Original Message- From: Rohan Kadam Sent: Thursday, June 30, 2011 7:26 PM To: Tomcat Users List Subject: RE: Tomcat is not able to connect to IPV4 (Tomcat Version : 7.0.14) Hi, I am using JAVA 1.6 update 23 version.

Re: How to start stop embedding Tomcat correctly?

2011-07-01 Thread Rehtron
Yes, I use same port for all test, but I think the port should be release after tomcat stopped. thanks. 2011/7/1 Mark Thomas ma...@apache.org On 01/07/2011 10:07, Rehtron wrote: Dear all, I use org.apache.catalina.startup.Tomcat to do unit test, but the instance of which cannot be

Re: Tomcat is not able to connect to IPV4 (Tomcat Version : 7.0.14)

2011-07-01 Thread André Warnier
Well, answering Christopher's questions would be a good start. Then also maybe paste the content of your Connector tag in your next message. Rohan Kadam wrote: Hi All, Is some more information required for this? Thanks. -Original Message- From: Rohan Kadam Sent: Thursday, June 30,

Re: How to start stop embedding Tomcat correctly?

2011-07-01 Thread Mark Thomas
On 01/07/2011 10:29, Rehtron wrote: Yes, I use same port for all test, but I think the port should be release after tomcat stopped. What OS are you using? Mark thanks. 2011/7/1 Mark Thomas ma...@apache.org On 01/07/2011 10:07, Rehtron wrote: Dear all, I use

RE: Tomcat is not able to connect to IPV4 (Tomcat Version : 7.0.14)

2011-07-01 Thread Rohan Kadam
Please find my connector tag below, I have modified it to listen 7070 - Connector port=7070 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2

Re: Tomcat 7 Embedded: Manager

2011-07-01 Thread Dark Before Dawn
Hi again, this is realy driving me nuts for weeks :) I am developing a Java SE application using *Tomcat* 7 in embedded mode. I am attempting to use the *tomcat* manager application (ManagerServlet) and Ant tasks to perform operations on the running *tomcat* instance. Tasks such as list,

Re: How to start stop embedding Tomcat correctly?

2011-07-01 Thread Rehtron
Windows XP, did you mean I should use different port for every test? Thanks. 2011/7/1 Mark Thomas ma...@apache.org On 01/07/2011 10:29, Rehtron wrote: Yes, I use same port for all test, but I think the port should be release after tomcat stopped. What OS are you using? Mark

Re: How to start stop embedding Tomcat correctly?

2011-07-01 Thread Mark Thomas
On 01/07/2011 10:56, Rehtron wrote: Windows XP, did you mean I should use different port for every test? I have seen all OSes hold on to ports after Tomcat has shutdown. Windows isn't as bad as Linux but it does happen sometimes. Yes, you need to use a new port for each test. Again, take a look

Re: How to start stop embedding Tomcat correctly?

2011-07-01 Thread Rehtron
OK, thank you very much for your help! 2011/7/1 Mark Thomas ma...@apache.org On 01/07/2011 10:56, Rehtron wrote: Windows XP, did you mean I should use different port for every test? I have seen all OSes hold on to ports after Tomcat has shutdown. Windows isn't as bad as Linux but it does

Re: webapps and TCP/UDP listening sockets

2011-07-01 Thread Pid
On 01/07/2011 04:45, Tim Judd wrote: Hi Christopher, all 'machine' was meant to indicate one of two choices, the computer that is running the tomcat server, or the computer who is the client in a client-server relationship. So you meant the client or the server. I don't know the

Re: Tomcat 7 Embedded: Manager

2011-07-01 Thread Pid
On 01/07/2011 10:40, Dark Before Dawn wrote: this is realy driving me nuts for weeks so *does* the arbit*rary* use of *bold* for me. p signature.asc Description: OpenPGP digital signature

Re: Tomcat 7 Embedded: Manager

2011-07-01 Thread Pid
On 01/07/2011 10:40, Dark Before Dawn wrote: Hi again, this is realy driving me nuts for weeks :) FAIL - Encountered exception javax.management.InstanceNotFoundException: Tomcat:type=Deployer,host=localhost 1. Connect to your running instance with JConsole*. 2. Examine the MBeans published

Re: Tomcat is not able to connect to IPV4 (Tomcat Version : 7.0.14)

2011-07-01 Thread Pid
On 30/06/2011 21:57, Christopher Schultz wrote: Rohan, On 6/30/2011 8:01 AM, Rohan Kadam wrote: We had recently upgraded tomcat from 5.5.30 to 7.0.14. We were earlier facing problem that tomcat was not able to connect using Static IP address. The fix that we found was adding address =

Re: Tomcat 7 Embedded: Manager

2011-07-01 Thread Dark Before Dawn
sorry for that :) diddn't want to annoy Cheers Darky Am 01.07.2011 12:41, schrieb Pid: On 01/07/2011 10:40, Dark Before Dawn wrote: this is realy driving me nuts for weeks so *does* the arbit*rary* use of *bold* for me. p

RE: Tomcat is not able to connect to IPV4 (Tomcat Version : 7.0.14)

2011-07-01 Thread Rohan Kadam
I have tries to set this java option in catalane .bat, but no success -Djava.net.preferIPv4Stack=true I am using tomcat as a service, so configures the same in Java properties as well. But it is not working. Please suggest. -Original Message- From: Pid [mailto:p...@pidster.com] Sent:

Re: Tomcat is not able to connect to IPV4 (Tomcat Version : 7.0.14)

2011-07-01 Thread Pid
On 01/07/2011 12:07, Rohan Kadam wrote: I have tries to set this java option in catalane .bat, but no success -Djava.net.preferIPv4Stack=true I am using tomcat as a service, so configures the same in Java properties as well. But it is not working. How are you setting it, exactly? p

RE: Tomcat is not able to connect to IPV4 (Tomcat Version : 7.0.14)

2011-07-01 Thread Rohan Kadam
Sorry Folks...I forgot to mention, I have also restarted the service after the changes were done. -Original Message- From: Rohan Kadam Sent: Friday, July 01, 2011 5:26 PM To: Tomcat Users List Subject: RE: Tomcat is not able to connect to IPV4 (Tomcat Version : 7.0.14) We have created

RE: Tomcat is not able to connect to IPV4 (Tomcat Version : 7.0.14)

2011-07-01 Thread Rohan Kadam
We have created a service named say ABCTomcat Then we navigated to bin directory of tomcat, typed the following command - tomcat7w.exe //ES//ABCTomcat After that Iwent to Java Tab, and added the below line in Java Option Section. Please let me know if I am missing something. -Original

Access to manager webapp (JAAS exception)

2011-07-01 Thread Chema
Hi: I've just installed ( unzipped ) Tomcat 7.0.14 and I'm trying to access to manager web application. So, http://127.0.0.1:8080/manager/html and popup a browser logging form. My conf/tomcat-users.xml is tomcat-users role rolename=manager-gui/ user username=tomcat password=tomcat

Re: Access to manager webapp (JAAS exception)

2011-07-01 Thread Mark Thomas
On 01/07/2011 15:22, Chema wrote: Hi: I've just installed ( unzipped ) Tomcat 7.0.14 and I'm trying to access to manager web application. What else did you change? Mark So, http://127.0.0.1:8080/manager/html and popup a browser logging form. My conf/tomcat-users.xml is

Re: webapps and TCP/UDP listening sockets

2011-07-01 Thread Tim Judd
Hi Pid, all I'm disappointed the responses I've gotten seemingly to be scolding messages. I am reading up on documentation, I am reading the APIs, I am reading everything I can. Think of Citrix (in Windows environments) - code is executed on the server and displayed on your desktop; X11

Re: webapps and TCP/UDP listening sockets

2011-07-01 Thread David kerber
On 6/30/2011 11:45 PM, Tim Judd wrote: Hi Christopher, all 'machine' was meant to indicate one of two choices, the computer that is running the tomcat server, or the computer who is the client in a client-server relationship. I don't know the intricities of webapps yet in how they run. This

Re: Access to manager webapp (JAAS exception)

2011-07-01 Thread Chema
2011/7/1 Mark Thomas ma...@apache.org: On 01/07/2011 15:22, Chema wrote: Hi: I've just installed ( unzipped ) Tomcat 7.0.14 and I'm trying to access to manager web application. What else did you change? I think nothing. There is a log when server starts that I dont understand :

Re: Access to manager webapp (JAAS exception)

2011-07-01 Thread Mark Thomas
On 01/07/2011 16:26, Chema wrote: 2011/7/1 Mark Thomas ma...@apache.org: On 01/07/2011 15:22, Chema wrote: Hi: I've just installed ( unzipped ) Tomcat 7.0.14 and I'm trying to access to manager web application. What else did you change? I think nothing. There is a log when server

Re: Tomcat 7 Embedded: Manager

2011-07-01 Thread Pid
On 01/07/2011 12:44, Dark Before Dawn wrote: Hi Pid, i guess the problem is that the manager-servlet's context is mounted at root and the ServletMapping points to /manager. server.addContext(, baseDirectory); ctx.addServletMapping(/manager/*, manager-servlet); So all relative paths will

Re: webapps and TCP/UDP listening sockets

2011-07-01 Thread Tim Judd
David, Thank you loads. :) If opportunity doesn't knock, build a door. I can is a way of life. More and Bigger is not always Better. The road to success is always uphill. From: David kerber dcker...@verizon.net To: Tomcat Users List

Re: webapps and TCP/UDP listening sockets

2011-07-01 Thread André Warnier
Tim Judd wrote: Hi Pid, all I'm disappointed the responses I've gotten seemingly to be scolding messages. I am reading up on documentation, I am reading the APIs, I am reading everything I can. Think of Citrix (in Windows environments) - code is executed on the server and displayed on your

RE: Tomcat 7 Embedded: Manager

2011-07-01 Thread Caldarale, Charles R
From: Dark Before Dawn [mailto:dark.before.d...@gmail.com] Subject: Re: Tomcat 7 Embedded: Manager i guess the problem is that the manager-servlet's context is mounted at root I think right there we have a conceptual problem, or at least a terminology one. Webapps aren't mounted in the

Re: webapps and TCP/UDP listening sockets

2011-07-01 Thread Mark Eggers
- Original Message - From: Tim Judd tjud...@yahoo.com To: Tomcat Users List users@tomcat.apache.org Cc: Sent: Friday, July 1, 2011 7:52 AM Subject: Re: webapps and TCP/UDP listening sockets Hi Pid, all I'm disappointed the responses I've gotten seemingly to be scolding

Re: Tomcat is not able to connect to IPV4 (Tomcat Version : 7.0.14)

2011-07-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rohan, On 7/1/2011 7:56 AM, Rohan Kadam wrote: We have created a service named say ABCTomcat Then we navigated to bin directory of tomcat, typed the following command - tomcat7w.exe //ES//ABCTomcat After that Iwent to Java Tab, and added

Re: webapps and TCP/UDP listening sockets

2011-07-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim, On 7/1/2011 10:52 AM, Tim Judd wrote: I understand you guys are trying to help, but I am disappointed all I'm hearing is you're doing it wrong basically. You're reading it wrong: I was asking what are you doing? not telling you that you

Re: [OT] webapps and TCP/UDP listening sockets

2011-07-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 7/1/2011 11:03 AM, David kerber wrote: I don't know anything about x11, but if it's similar to Citrix or Microsoft RDP No, it's Citrix and RDP that are like X11 :) - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32)

Re: Access to manager webapp (JAAS exception)

2011-07-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chema, On 7/1/2011 11:26 AM, Chema wrote: 2011/7/1 Mark Thomas ma...@apache.org: On 01/07/2011 15:22, Chema wrote: Hi: I've just installed ( unzipped ) Tomcat 7.0.14 and I'm trying to access to manager web application. What else did you

Re: [OT] webapps and TCP/UDP listening sockets

2011-07-01 Thread David kerber
On 7/1/2011 2:39 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 7/1/2011 11:03 AM, David kerber wrote: I don't know anything about x11, but if it's similar to Citrix or Microsoft RDP No, it's Citrix and RDP that are like X11 :) Like I said, I know

Re: Tomcat is not able to connect to IPV4 (Tomcat Version : 7.0.14)

2011-07-01 Thread Konstantin Kolinko
2011/6/30 Rohan Kadam roha...@cybage.com: Hi All, We had recently upgraded tomcat from 5.5.30 to 7.0.14. We were earlier facing problem that tomcat was not able to connect using Static IP address. The fix that we found was adding address = 0.0.0.0 in the Connector tag of server.xml in the