Re: ServletRedirector context
Pedro, Thanks for the suggestion. That will help a lot with some of the other issues I'm having. It turns out that the problem was with my server.xml. I shouldn't really say it's "my" server.xml because someone else wrote it, hence the problem, but I should have caught it much earlier. They set the context docBase to a full path instead of a relative path, so it wasn't using the temp directory created by the cactus task. The context.xml suggestion will be very helpful because most of my coworkers use Windows and I use Linux, so everything is in different places. Thanks again for your help! --David Pedro Nevado wrote: David, I do not use server.xml for my datasource connection: you can define it in a context.xml file (ROOT.xml, p.e); so you do not need to change your server.xml, or work with an ad-hoc server.xml, either. The URL I use for see test results in my browser is something like: http://localhost:8080/mycontext/ServletTestRunner?suite=com.myclassactiontes t. In case you may find it useful, this is my ant script: At least one test failed after making report! -Mensaje original- De: David Turley [mailto:[EMAIL PROTECTED] Enviado el: martes, 16 de agosto de 2005 16:33 Para: Cactus Users List Asunto: Re: ServletRedirector context Update: In the cactus ant task, I was specifying a server.xml file instead of using the default. I did this because if I don't, I get the following complaint: [cactus] java.lang.RuntimeException: Exception looking up data source: Name jdbc is not bound in this Context But then the test redirectors initialize correctly and everything. It's as if I have a choice between my jdbc connection and the test redirectors working. What do I need to do to get both to work? By the way, where is the "default" server.xml located? The server.xml I specify is in TOMCAT_HOME/conf/... At first I thought that would be the default, but apparently not. Once again, any help on this would be appreciated. The lack of help thusfar has been discouraging, but I understand that you all have your own lives and your own projects and don't give a rats behind about my project ;-). Thanks, David David Turley wrote: Correction: "I have tried to browse to that location and I get 404'd. If I browse to http://localhost:8081/app/ServletRedirector?Cactus_Service=RUN_TEST, however, I get a blank page. " I meant when I browse to http://localhost:8081/ServletRedirector?Cactus_Service=RUN_TEST, which lacks the /app, which is the context my application runs under. David Turley wrote: More information about the problem: When trying to run the ant cactus task with ant debug mode on, after the Tomcat starts up, I get the following repeatedly until it times out. [cactus] Checking if server is up ... [cactus] Failed to connect to [http://localhost:8081/app/ServletRedirector?Cactus_Service=RUN_TEST] (Connection refused) Then I get the timeout message: Failed to start the container after more than [18] ms. Trying to connect to the [http://localhost:8081/app/ServletRedirector?Cactus_Service=RUN_TEST] test URL yielded a [-1] error code. Please run in debug mode for more details about the error. I have tried to browse to that location and I get 404'd. If I browse to http://localhost:8081/app/ServletRedirector?Cactus_Service=RUN_TEST, however, I get a blank page. I turned on cactus logging but didn't see anything new about the error. Anyone have any clues for me? Do you need more information to help me? Let me know. Thanks, David Turley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --
RE: ServletRedirector context
David, I do not use server.xml for my datasource connection: you can define it in a context.xml file (ROOT.xml, p.e); so you do not need to change your server.xml, or work with an ad-hoc server.xml, either. The URL I use for see test results in my browser is something like: http://localhost:8080/mycontext/ServletTestRunner?suite=com.myclassactiontes t. In case you may find it useful, this is my ant script: At least one test failed after making report! -Mensaje original- De: David Turley [mailto:[EMAIL PROTECTED] Enviado el: martes, 16 de agosto de 2005 16:33 Para: Cactus Users List Asunto: Re: ServletRedirector context Update: In the cactus ant task, I was specifying a server.xml file instead of using the default. I did this because if I don't, I get the following complaint: [cactus] java.lang.RuntimeException: Exception looking up data source: Name jdbc is not bound in this Context But then the test redirectors initialize correctly and everything. It's as if I have a choice between my jdbc connection and the test redirectors working. What do I need to do to get both to work? By the way, where is the "default" server.xml located? The server.xml I specify is in TOMCAT_HOME/conf/... At first I thought that would be the default, but apparently not. Once again, any help on this would be appreciated. The lack of help thusfar has been discouraging, but I understand that you all have your own lives and your own projects and don't give a rats behind about my project ;-). Thanks, David David Turley wrote: > Correction: > "I have tried to browse to that location and I get 404'd. If I browse > to > http://localhost:8081/app/ServletRedirector?Cactus_Service=RUN_TEST, > however, I get a blank page. " I meant when I browse to > http://localhost:8081/ServletRedirector?Cactus_Service=RUN_TEST, which > lacks the /app, which is the context my application runs under. > > David Turley wrote: > >> More information about the problem: >> >> When trying to run the ant cactus task with ant debug mode on, after >> the Tomcat starts up, I get the following repeatedly until it times out. >> >> [cactus] Checking if server is up ... >> [cactus] Failed to connect to >> [http://localhost:8081/app/ServletRedirector?Cactus_Service=RUN_TEST] >> (Connection refused) >> >> Then I get the timeout message: >> Failed to start the container after more than [18] ms. Trying to >> connect to the >> [http://localhost:8081/app/ServletRedirector?Cactus_Service=RUN_TEST] >> test URL yielded a [-1] error code. Please run in debug mode for more >> details about the error. >> >> I have tried to browse to that location and I get 404'd. If I browse >> to >> http://localhost:8081/app/ServletRedirector?Cactus_Service=RUN_TEST, >> however, I get a blank page. >> >> I turned on cactus logging but didn't see anything new about the error. >> >> Anyone have any clues for me? Do you need more information to help >> me? Let me know. >> >> Thanks, >> David Turley >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ServletRedirector context
Update: In the cactus ant task, I was specifying a server.xml file instead of using the default. I did this because if I don't, I get the following complaint: [cactus] java.lang.RuntimeException: Exception looking up data source: Name jdbc is not bound in this Context But then the test redirectors initialize correctly and everything. It's as if I have a choice between my jdbc connection and the test redirectors working. What do I need to do to get both to work? By the way, where is the "default" server.xml located? The server.xml I specify is in TOMCAT_HOME/conf/... At first I thought that would be the default, but apparently not. Once again, any help on this would be appreciated. The lack of help thusfar has been discouraging, but I understand that you all have your own lives and your own projects and don't give a rats behind about my project ;-). Thanks, David David Turley wrote: Correction: "I have tried to browse to that location and I get 404'd. If I browse to http://localhost:8081/app/ServletRedirector?Cactus_Service=RUN_TEST, however, I get a blank page. " I meant when I browse to http://localhost:8081/ServletRedirector?Cactus_Service=RUN_TEST, which lacks the /app, which is the context my application runs under. David Turley wrote: More information about the problem: When trying to run the ant cactus task with ant debug mode on, after the Tomcat starts up, I get the following repeatedly until it times out. [cactus] Checking if server is up ... [cactus] Failed to connect to [http://localhost:8081/app/ServletRedirector?Cactus_Service=RUN_TEST] (Connection refused) Then I get the timeout message: Failed to start the container after more than [18] ms. Trying to connect to the [http://localhost:8081/app/ServletRedirector?Cactus_Service=RUN_TEST] test URL yielded a [-1] error code. Please run in debug mode for more details about the error. I have tried to browse to that location and I get 404'd. If I browse to http://localhost:8081/app/ServletRedirector?Cactus_Service=RUN_TEST, however, I get a blank page. I turned on cactus logging but didn't see anything new about the error. Anyone have any clues for me? Do you need more information to help me? Let me know. Thanks, David Turley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ServletRedirector context
Correction: "I have tried to browse to that location and I get 404'd. If I browse to http://localhost:8081/app/ServletRedirector?Cactus_Service=RUN_TEST, however, I get a blank page. " I meant when I browse to http://localhost:8081/ServletRedirector?Cactus_Service=RUN_TEST, which lacks the /app, which is the context my application runs under. David Turley wrote: More information about the problem: When trying to run the ant cactus task with ant debug mode on, after the Tomcat starts up, I get the following repeatedly until it times out. [cactus] Checking if server is up ... [cactus] Failed to connect to [http://localhost:8081/app/ServletRedirector?Cactus_Service=RUN_TEST] (Connection refused) Then I get the timeout message: Failed to start the container after more than [18] ms. Trying to connect to the [http://localhost:8081/app/ServletRedirector?Cactus_Service=RUN_TEST] test URL yielded a [-1] error code. Please run in debug mode for more details about the error. I have tried to browse to that location and I get 404'd. If I browse to http://localhost:8081/app/ServletRedirector?Cactus_Service=RUN_TEST, however, I get a blank page. I turned on cactus logging but didn't see anything new about the error. Anyone have any clues for me? Do you need more information to help me? Let me know. Thanks, David Turley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ServletRedirector context
More information about the problem: When trying to run the ant cactus task with ant debug mode on, after the Tomcat starts up, I get the following repeatedly until it times out. [cactus] Checking if server is up ... [cactus] Failed to connect to [http://localhost:8081/app/ServletRedirector?Cactus_Service=RUN_TEST] (Connection refused) Then I get the timeout message: Failed to start the container after more than [18] ms. Trying to connect to the [http://localhost:8081/app/ServletRedirector?Cactus_Service=RUN_TEST] test URL yielded a [-1] error code. Please run in debug mode for more details about the error. I have tried to browse to that location and I get 404'd. If I browse to http://localhost:8081/app/ServletRedirector?Cactus_Service=RUN_TEST, however, I get a blank page. I turned on cactus logging but didn't see anything new about the error. Anyone have any clues for me? Do you need more information to help me? Let me know. Thanks, David Turley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]