how to start an appli automatically while server startup
hai, everbody, i am struggled in this. please help me out. i am having one context in my webapps, i need this context starts run automatically,,while tomcat server starts. how to customize this. -- View this message in context: http://www.nabble.com/how-to-start-an-appli-automatically-while-server-startup-tf3582829.html#a10011509 Sent from the Tomcat - User mailing list archive at Nabble.com.
will 5.5 war run on 6.x tomcat
Hi List! As i've read, the folder structure of tomcat 6.x has changed slighlty. Does that have any impact on formerly deployed web-applications (deployed for 5.5), respectively: is an application deployed for the 5.5 release fully compatible to tomcat 6.x? Thx, Ingo This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
Connectivity issues
Hi All, What can the following exception mean? Apr 16, 2007 10:59:51 AM org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler processConnection INFO: IOException reading request, ignored When the users try to login it just kinda hangs... Can this have something to do with the database connection pool? thanks Leon van der Merwe FinSource FinSource (Pty) Ltd 22 Leeuwen Street, Cape Town, 8001 PO Box 3149, Cape Town, 8000 Tel: +27 (0)21 480 8600 Direct Line: +27 (0)21 480 8710 Fax: +27 (0)21 480 8700 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] www.finsourcegroup.com http://www.finsourcegroup.com/ A Maitland group company BVI Cape Town Dublin Durban Geneva Isle of Man Johannesburg London Luxembourg Monaco Paris ** This e-mail is confidential and may also be privileged. If you are not the intended recipient, please delete from your system and notify the sender now; you may not use, disclose, distribute or copy it. Anyone who communicates with us by e-mail is taken to accept the risks in so doing. E-mails are subject to data corruption, delay, interception and unauthorised amendment. Nothing in the message is capable of or intended to create any legally binding obligation and it is not intended to provide legal advice. ** # This e-mail message has been scanned for Viruses and Content and cleared by FinSource Infrastructure Services' MailMarshal #
Re: how to start an appli automatically while server startup
Use load-on-startup parameter under servlet context? On 4/16/07, sureshrgsl [EMAIL PROTECTED] wrote: hai, everbody, i am struggled in this. please help me out. i am having one context in my webapps, i need this context starts run automatically,,while tomcat server starts. how to customize this. -- View this message in context: http://www.nabble.com/how-to-start-an-appli-automatically-while-server-startup-tf3582829.html#a10011509 Sent from the Tomcat - User mailing list archive at Nabble.com.
Re: Problems with clientAuth
do you want to excannge conf.xml files? I'll happily try yours on my computer I've had success running both OpenSSL JavaKeystore. I'm running OpenSSL now, because it is supposedly considerably faster. I'm not quite sure how to check though. One question though. I have the SSLCACerticateFile property set. Awesome. It works. Anything coming from that CA is okay, everything else isn't. How do I do this on a per Client basis? Thanks Martin Luis Villa wrote: Hello all ! Someone can throw a little light in this problem? I am not able to solve it, and I've tried anything I've found searching in google :S Thank all! 2007/4/2, Luis Villa [EMAIL PROTECTED]: Ok, now I'm getting mad :S IExplorer keeps saying the page can't be found (it doesn't ask for the certificate), and Firefox throws a -12271 error (I don't know if that is close enought to the error you said, Antoine. Anyway, nothing has changed since the last 12229 error (I left the computer off in the weekend because it's in my workplace). Martin, the behavior of Tomcat in your case (I think) is correct. You put clientAuth=true, so you are forcing the client to send the certificate to allow connection. You should install a certificate in IExplorer and Firefox. Thank you, Antoine and Martin :) 2007/4/2, Mirou, Antoine [EMAIL PROTECTED]: The problem appears when changing clientAuth to true. Then, when using iexplorer the browser simply can't find the page (or this is what it says), and when using firefox it warns about the certificate, but after accepting the certification it says that 'localhost has received an unexpected or incorrect message. Error code: -12229'. I've been googling for two days and I can't find a clue about what is failing nor what means this error code. I guess it's a -12227 error, and not 12229. This error appears when Firefox doesn't have any client certificate to give to the server. You should install a client certificate issued by the same CA on your browser. Regards, Antoine Afin de preserver l'environnement, merci de n'imprimer ce courriel qu'en cas de necessite. Please consider the environment before printing this mail. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Con-Sense-GmbH __ _Martin Cavanagh_ Tel.: +49541 800 83 0 Fax: +49541 800 83 99 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Con-Sense GmbH Neuer Graben 25 49074 Osnabrück www.con-sense-group.com http://www.con-sense-group.com Geschäftsführer Eckhard Schulz Amtsgericht Hildesheim HRB 3341 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: manager and host manager not available problem
From: Johnny Kewl [mailto:[EMAIL PROTECTED] Subject: Re: manager and host manager not available problem So does this mean under tomcat/server/ its just going to be classes and lib, no more webapps? There is no server directory in 6.0 - take a look at: http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html Also look at the conf/catalina.properties file in the 6.0 distribution. 1) Is there some documentation that talks about the 'design' decisions that one can read... like this for example? and is there a 'template' document that talks about the planned next versions goodies. Not that I'm aware of, other than the release notes and the change history; these topics are discussed on the Tomcat development mailing list. 2) For a user that is say on a very stable version now... whats the safest bet for moving to the next version? Testing it with your apps in your environment. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Andre Doeking ist außer Haus.
Ich werde ab 09.04.2007 nicht im Büro sein. Ich kehre zurück am 29.05.2007. Ich werde Ihre Nachricht alsbald möglich beantworten. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to get a Listener running
On 4/16/07, Mike Peremsky [EMAIL PROTECTED] wrote: From the control panel. If I go to the system properties and look at the environment variables I have the following: (I do not have a JRE_HOME defined) CATALINA_HOME=c:\apache-tomcat JAVA_HOME=c:\jdk1.5.0 Path=C:\jdk1.5.0\bin;%ANT_HOME%\bin The above looks correct, but the PATH could still be improved so change the above PATH to PATH=%JAVA_HOME%/bin;%ANT_HOME%/bin;%CATALINA_HOME%/bin There is a CLASSPATH variable set as: .;C:\Program Files\Java\jre1.5.0_11\lib\ext\QTJava.zip Temporarily unset the CLASSPATH (system environment variable). My jdk is installed to c:\jdk1.5.0 and my tomcat is installed at c:\apache-tomcat as is stated in the environment variables. This is fine. I did a fresh install of Tomcat 5.5.23 (I had not had it installed previously). Everything was working fins until I tried to create a listener. My code is deployed to c:\apache-tomcat\webapps\fs with all class files in WEB-INF\classes. Each listener you write must also be defined in the deployment descriptor \WEB-INF\web.xml , for example: listener listener-classany.package.SingletonLoader/listener-class /listener listener listener-classany.package.ApplicationWatch/listener-class /listener and so on... I also have 1 jar file that I have utility classes in :\apache-tomcat\common\lib\mvpUtils.jar. If the listener is in the catalina.jar file, Actually the listener doesn't need to be in catalina.jar at all , it can be anywhere under your project's /WEB-INF/classes/ folder also. The reason why the code in the LifecycleListener isn't being called is because an event that is supposed to be captured by the LifecycleListener didn't occur . According to the definition http://tomcat.apache.org/tomcat-5.0-doc/catalina/docs/api/org/apache/catalina/LifecycleListener.html Interface defining a listener for significant events (including component start and component stop generated by a component that implements the Lifecycle interface. I tried implementing the ServletContextListener, and it was able to capture the Tomcat start and shutdown events. May be you could try one of the sub-interfaces such as: http://tomcat.apache.org/tomcat-5.0-doc/catalina/docs/api/org/apache/catalina/mbeans/ServerLifecycleListener.html and the jar file is in the c:\apache-tomcat\server\lib\ directory. Which, as you say, should already include any jars in that directory, how could it fail finding the class? It is not failing in finding the class (the NoClassDefinitionFound error can be solved normally by unsetting the system classpath), as long as the class is under the project's WEB-INF/classes folder , it will find the class. The real question here is why didn't capture a particular event that you expect it to capture. What event are you expecting the LifecycleListener to capture? -Rashmi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Connectivity issues
that looks more like a connection with the Coyote connection handler. -Original Message- From: Leon van der Merwe [mailto:[EMAIL PROTECTED] Sent: Monday, April 16, 2007 4:45 AM To: users@tomcat.apache.org Subject: Connectivity issues Hi All, What can the following exception mean? Apr 16, 2007 10:59:51 AM org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler processConnection INFO: IOException reading request, ignored When the users try to login it just kinda hangs... Can this have something to do with the database connection pool? thanks Leon van der Merwe FinSource FinSource (Pty) Ltd 22 Leeuwen Street, Cape Town, 8001 PO Box 3149, Cape Town, 8000 Tel: +27 (0)21 480 8600 Direct Line: +27 (0)21 480 8710 Fax: +27 (0)21 480 8700 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] www.finsourcegroup.com http://www.finsourcegroup.com/ A Maitland group company BVI Cape Town Dublin Durban Geneva Isle of Man Johannesburg London Luxembourg Monaco Paris ** This e-mail is confidential and may also be privileged. If you are not the intended recipient, please delete from your system and notify the sender now; you may not use, disclose, distribute or copy it. Anyone who communicates with us by e-mail is taken to accept the risks in so doing. E-mails are subject to data corruption, delay, interception and unauthorised amendment. Nothing in the message is capable of or intended to create any legally binding obligation and it is not intended to provide legal advice. ** # This e-mail message has been scanned for Viruses and Content and cleared by FinSource Infrastructure Services' MailMarshal # - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: will 5.5 war run on 6.x tomcat
On 4/16/07, Bischofs, Ingo [EMAIL PROTECTED] wrote: As i've read, the folder structure of tomcat 6.x has changed slighlty. I've upgraded from 5.5.12 to 6.0.10, yes the folder structure has changed and it looks a lot simpler and cleaner - all Tomcat apps (Manager, Host Manager etc) that I use continue to work as usual. A few HTML links to documents are broken, but the documents are actually there and can be easily located under /webapps/docs or even on Tomcat's site. Does that have any impact on formerly deployed web-applications (deployed for 5.5), respectively: is an application deployed for the 5.5 release fully compatible to tomcat 6.x? Tomcat 6.x implements Servlet 2.5/JSP 2.1 but Tomcat 5.5.x implements Servlet 2.4/JSP 2.0 spec according to the chart shown here: http://tomcat.apache.org/whichversion.html A few things have changed in the Servlet 2.5 spec, Are are using EL (Expression Language) in your application's JSP files? Then is your project's web.xml has Servlet 2.4 schema URIs in the web-app node? If it does, then those URIs need to change to Servlet 2.5 schema URIs. Other than that, I think the release notes should cover any additional changes that were implemented. Thx, Ingo -Rashmi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: will 5.5 war run on 6.x tomcat
On 4/16/07, Rashmi Rubdi [EMAIL PROTECTED] wrote: Tomcat 6.x implements Servlet 2.5/JSP 2.1 but Tomcat 5.5.x implements Servlet 2.4/JSP 2.0 spec according to the chart shown here: http://tomcat.apache.org/whichversion.html Tomcat 6 *adds* support for 2.5, which doesn't mean that it doesn't still support /previous/ versions of the Servlet Spec... Are are using EL (Expression Language) in your application's JSP files? Then is your project's web.xml has Servlet 2.4 schema URIs in the web-app node? If it does, then those URIs need to change to Servlet 2.5 schema URIs. My unchanged 2.4 apps all run fine on 6.0.x. FWIW, -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Connectivity issues
Good Morning Barry Apparently this happens during the destroy() method for Http11Connector and is essentially informational ..previous posting available at http://mail-archives.apache.org/mod_mbox/tomcat-dev/200205.mbox/[EMAIL PROTECTED] Assuming your tc client can ping/tracert thru to Tomcat Server and TC server can ping/tracert to TC client Did you ping the [EMAIL PROTECTED] group? HTH, Martin-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Propes, Barry L [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Monday, April 16, 2007 10:28 AM Subject: RE: Connectivity issues that looks more like a connection with the Coyote connection handler. -Original Message- From: Leon van der Merwe [mailto:[EMAIL PROTECTED] Sent: Monday, April 16, 2007 4:45 AM To: users@tomcat.apache.org Subject: Connectivity issues Hi All, What can the following exception mean? Apr 16, 2007 10:59:51 AM org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler processConnection INFO: IOException reading request, ignored When the users try to login it just kinda hangs... Can this have something to do with the database connection pool? thanks Leon van der Merwe FinSource FinSource (Pty) Ltd 22 Leeuwen Street, Cape Town, 8001 PO Box 3149, Cape Town, 8000 Tel: +27 (0)21 480 8600 Direct Line: +27 (0)21 480 8710 Fax: +27 (0)21 480 8700 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] www.finsourcegroup.com http://www.finsourcegroup.com/ A Maitland group company BVI Cape Town Dublin Durban Geneva Isle of Man Johannesburg London Luxembourg Monaco Paris ** This e-mail is confidential and may also be privileged. If you are not the intended recipient, please delete from your system and notify the sender now; you may not use, disclose, distribute or copy it. Anyone who communicates with us by e-mail is taken to accept the risks in so doing. E-mails are subject to data corruption, delay, interception and unauthorised amendment. Nothing in the message is capable of or intended to create any legally binding obligation and it is not intended to provide legal advice. ** # This e-mail message has been scanned for Viruses and Content and cleared by FinSource Infrastructure Services' MailMarshal # - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
recognise tomcat finished starting up
Hi, We're trying to automate our acceptance tests and performing a remote install first. However, we have no way to know when Tomcat has finished starting so the tests can run. Has anyone any suggestions on the best way to do this? We're using maven and JUnit. cheers, David - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: recognise tomcat finished starting up
David- If you're trying to emulate java class functionality in a tomcat environment I would suggest looking at David Weiss TomcatAwareTestCase com.dawidweiss.junittomcat.TomcatAwareTestCase http://www.cs.put.poznan.pl/dweiss/xml/projects/junit-tomcat/index.xml?lang=en Anyone else? Martin-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Monday, April 16, 2007 11:00 AM Subject: recognise tomcat finished starting up Hi, We're trying to automate our acceptance tests and performing a remote install first. However, we have no way to know when Tomcat has finished starting so the tests can run. Has anyone any suggestions on the best way to do this? We're using maven and JUnit. cheers, David - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: recognise tomcat finished starting up
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] We're using Spring and therefore have quite a long startup time - checking if the service is started doesn't help therefore. So I'm looking for a way to detect if tomcat's startup has finished... Being the lazy guy I am, I'd set up a trivial page that returns Ready once the app is ready, and Starting before that. Then poll it. But I suspect there are tidier ways of finding out! - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getResourceAsStream returning blank (NOT NULL)
Tim Lucia wrote: -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Saturday, April 14, 2007 2:51 PM To: Tomcat Users List Subject: Re: getResourceAsStream returning blank (NOT NULL) Tim, Tim Lucia wrote: From: Johnny Kewl [mailto:[EMAIL PROTECTED] InputStream in = getClass().getResourceAsStream(sPackageNameWithSlashes); If the class name is com.myCo.data You put it in like this /com/myCo/data Also because this stuff looks for a class loader I dont think it will work in a STATIC class. Use a normal class Static classes are loaded by a classloader. You can't say getClass(), however. Instead you would say MyClass.class.xxx()... Why not? The method isn't static, so there does exist a this on which getClass() could be called. If you have an instance, then of course you have a this and of course you can call getClass(). If you haven't got an instance, you can't call getClass(). I.e., public Foo { } Foo.getClass() -- illegal. Foo.class.getResourceAsStream() -- legal Presumably the poster above meant singleton (private default constructor) rather than Static, as classes aren't static. In this case, you cannot instantiate an instance and so you can't have a this pointer. Tim -chris That is correct, Singleton - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: recognise tomcat finished starting up
On 4/16/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: So I'm looking for a way to detect if tomcat's startup has finished... Seems like a chicken-and-egg problem -- Tomcat's ready when it'll respond to your test :-) Why don't you just incorporate a loop[sleep]-on-fail in the first test? FWIW, -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: recognise tomcat finished starting up
On 4/16/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: So I'm looking for a way to detect if tomcat's startup has finished... You didn't mention the version of Tomcat you're using. According to the Servlet 2.4 spec : The servlet context has javax.servlet.ServletContextListener just been created and is available to service its first request. You could implement ServletContextListener on any class, then register the listener in your project's web.xml cheers, David -Rashmi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: recognise tomcat finished starting up
Thanks for the responses...I'll try the listener creating some kind of file I can check for the existence of - this is complicated by trying to do it remotely... A loop-on-fail in the first test would work...as long as my first test never breaks ;-) cheers, David Hassan Schroeder hassan.schroeder To @gmail.com Tomcat Users List users@tomcat.apache.org 04/16/2007 12:27 cc PM Subject Re: recognise tomcat finished Please respond to starting up Tomcat Users List [EMAIL PROTECTED] che.org On 4/16/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: So I'm looking for a way to detect if tomcat's startup has finished... Seems like a chicken-and-egg problem -- Tomcat's ready when it'll respond to your test :-) Why don't you just incorporate a loop[sleep]-on-fail in the first test? FWIW, -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: recognise tomcat finished starting up
Hi Martin, Thanks for the link... I'm actually running the tests against a remote installed tomcat, by poking it over http akin to HTTPUnit. However, I'm working on automating the remote install and uninstall too. I have it working, but am trying to figure out how to tell whether the install has finished and tomcat is ready, before I kick off the tests. We're using Spring and therefore have quite a long startup time - checking if the service is started doesn't help therefore. So I'm looking for a way to detect if tomcat's startup has finished... cheers, David Martin Gainty [EMAIL PROTECTED] com To Tomcat Users List 04/16/2007 11:29 users@tomcat.apache.org AM cc Subject Please respond to Re: recognise tomcat finished Tomcat Users starting up List [EMAIL PROTECTED] che.org David- If you're trying to emulate java class functionality in a tomcat environment I would suggest looking at David Weiss TomcatAwareTestCase com.dawidweiss.junittomcat.TomcatAwareTestCase http://www.cs.put.poznan.pl/dweiss/xml/projects/junit-tomcat/index.xml?lang=en Anyone else? Martin-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Monday, April 16, 2007 11:00 AM Subject: recognise tomcat finished starting up Hi, We're trying to automate our acceptance tests and performing a remote install first. However, we have no way to know when Tomcat has finished starting so the tests can run. Has anyone any suggestions on the best way to do this? We're using maven and JUnit. cheers, David - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: recognise tomcat finished starting up
Good Morning David- If your spring webapplication is taking a long time to startup I would suggest looking at setting up Spring's config attribute as lazy-init=true When spring's lazy-init=true your BeanFactory will initialise the bean when requested (instead of initialising at startup of your webapp) http://www.memestorm.com/blog/lazy-bean-instantiation-in-spring-20/ HTH, Martin-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Cc: Tomcat Users List users@tomcat.apache.org Sent: Monday, April 16, 2007 12:08 PM Subject: Re: recognise tomcat finished starting up Hi Martin, Thanks for the link... I'm actually running the tests against a remote installed tomcat, by poking it over http akin to HTTPUnit. However, I'm working on automating the remote install and uninstall too. I have it working, but am trying to figure out how to tell whether the install has finished and tomcat is ready, before I kick off the tests. We're using Spring and therefore have quite a long startup time - checking if the service is started doesn't help therefore. So I'm looking for a way to detect if tomcat's startup has finished... cheers, David Martin Gainty [EMAIL PROTECTED] com To Tomcat Users List 04/16/2007 11:29 users@tomcat.apache.org AM cc Subject Please respond to Re: recognise tomcat finished Tomcat Users starting up List [EMAIL PROTECTED] che.org David- If you're trying to emulate java class functionality in a tomcat environment I would suggest looking at David Weiss TomcatAwareTestCase com.dawidweiss.junittomcat.TomcatAwareTestCase http://www.cs.put.poznan.pl/dweiss/xml/projects/junit-tomcat/index.xml?lang=en Anyone else? Martin-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Monday, April 16, 2007 11:00 AM Subject: recognise tomcat finished starting up Hi, We're trying to automate our acceptance tests and performing a remote install first. However, we have no way to know when Tomcat has finished starting so the tests can run. Has anyone any suggestions on the best way to do this? We're using maven and JUnit. cheers, David - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
help - ssl on tomcat
Hi all, I just joined the list so please excuse if there are numerous postings about this topic. I did search the archives and have googled quite a bit but cannot figure out why SSL is not working on Tomcat. I have Tomcat 5.5 loaded on Linux Redhat. I followed these directions explicitly: http://tomcat.apache.org/tomcat-5.0-doc/ssl-howto.html The only configuration change I have is that I'm running Tomcat on :80 and SSL on :443. I've updated my server.xml with these changes. When I tried to navigate to https://myserver:443, I get a 404 and my logs say that there's been a broken pipe socket exception: Apr 16, 2007 11:26:09 AM org.apache.catalina.core.StandardHostValve status WARNING: Exception Processing ErrorPage[errorCode=404, location=/error/404.jsp] ClientAbortException: java.net.SocketException: Broken pipe at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:327) at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:293) at org.apache.catalina.connector.Response.flushBuffer(Response.java:537) at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:286) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:619) Caused by: java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:746) at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:433) at org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:304) at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:991) at org.apache.coyote.Response.action(Response.java:182) at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:322) Can anyone point me to any documentation about what this means? Thank you! susan - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help - ssl on tomcat
On 4/16/07, Susan Teague Rector [EMAIL PROTECTED] wrote: I have Tomcat 5.5 loaded on Linux Redhat. I followed these directions explicitly: http://tomcat.apache.org/tomcat-5.0-doc/ssl-howto.html Uh, you should use the documentation for the version that you're actually running, eh? :-) http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html When I tried to navigate to https://myserver:443 And you should only need to use 'https://myserver/' -- the port will default to the proper one. In any case, you should look in your logs at the startup messages; if there's a problem with the SSL connector, it should show up there before you even try to access it. HTH, -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help - ssl on tomcat
Hi Hassan Whoops - I was using 5.5 - just didn't give you the right URL! :) Thanks for the tip - I will look at the SSL connector in the logs thank you! susan Hassan Schroeder wrote: On 4/16/07, Susan Teague Rector [EMAIL PROTECTED] wrote: I have Tomcat 5.5 loaded on Linux Redhat. I followed these directions explicitly: http://tomcat.apache.org/tomcat-5.0-doc/ssl-howto.html Uh, you should use the documentation for the version that you're actually running, eh? :-) http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html When I tried to navigate to https://myserver:443 And you should only need to use 'https://myserver/' -- the port will default to the proper one. In any case, you should look in your logs at the startup messages; if there's a problem with the SSL connector, it should show up there before you even try to access it. HTH, - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
running tomcat on a particular network interface and a particular port
Hello everyone, I have a machine on which I want to run both apache (2.2) and tomcat (5.5) simultaneously and independently, both at port 443. To be more precise, say I have a machine with the two IP names foo.org and bar.org Then I want to run apache at foo.org:443, and tomcat at bar.org:443. I believe this will work if apache and tomcat are configured to only listen respectively at the network interfaces foo.org:443 and bar.org:443. I have already set up apache to listen only to foo.org:443, and I want to set up tomcat to listen only to bar.org:443. I'm using the official Debian etch packages for apache and tomcat. I'm happy to get pointers to offical documentation, though I would be even happier to get precise instructions how to do this. :-) The most important piece of information I am looking for is confirmation that setting up tomcat to listen at a particular network interface and a particular port is indeed possible. Thanks in advance. Faheem. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getResourceAsStream returning blank (NOT NULL)
Christopher Schultz wrote: Tim, Tim Lucia wrote: If you have an instance, then of course you have a this and of course you can call getClass(). If you haven't got an instance, you can't call getClass(). I.e., public Foo { } Foo.getClass() -- illegal. This is never legal, unless you implement your own static Foo.getClass method, which doesn't make too much sense. The use of a singleton or any other idiom is irrelevant. Foo.class.getResourceAsStream() -- legal Presumably the poster above meant singleton (private default constructor) rather than Static, as classes aren't static. In this case, you cannot instantiate an instance and so you can't have a this pointer. If the constructor is private, there's still a this pointer available. I think this is an academic argument anyway, since the OP was complaining that their InputStream was blank (whatever that means) instead of NULL, which is what one would expect if the file wasn't being loaded properly. It's clear that compiling isn't the problem... runtime behavior is what is not working. -chris Just for the record, you are correct it was a runtime issue, HOWEVER, the issue was related to my use of the getResourceAsStream returning null, causing the path to be empty. The document Tim, sent was perfect and lead me to produce the proper process. Thomas - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: running tomcat on a particular network interface and a particular port
Set this up declaring a different virtual host based on supplied namevirtualhost to repoint to different locations http://httpd.apache.org/docs/1.3/mod/core.html#namevirtualhost M-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Faheem Mitha [EMAIL PROTECTED] To: users@tomcat.apache.org Cc: Thomas B Kepler [EMAIL PROTECTED] Sent: Monday, April 16, 2007 3:22 PM Subject: running tomcat on a particular network interface and a particular port Hello everyone, I have a machine on which I want to run both apache (2.2) and tomcat (5.5) simultaneously and independently, both at port 443. To be more precise, say I have a machine with the two IP names foo.org and bar.org Then I want to run apache at foo.org:443, and tomcat at bar.org:443. I believe this will work if apache and tomcat are configured to only listen respectively at the network interfaces foo.org:443 and bar.org:443. I have already set up apache to listen only to foo.org:443, and I want to set up tomcat to listen only to bar.org:443. I'm using the official Debian etch packages for apache and tomcat. I'm happy to get pointers to offical documentation, though I would be even happier to get precise instructions how to do this. :-) The most important piece of information I am looking for is confirmation that setting up tomcat to listen at a particular network interface and a particular port is indeed possible. Thanks in advance. Faheem. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: running tomcat on a particular network interface and a particular port
If you add the address attribute to your tomcat connectors in server.xml, tomcat will bind specifically to those interfaces. See http://tomcat.apache.org/tomcat-5.5-doc/config/http.html for documentation on this. --David Faheem Mitha wrote: Hello everyone, I have a machine on which I want to run both apache (2.2) and tomcat (5.5) simultaneously and independently, both at port 443. To be more precise, say I have a machine with the two IP names foo.org and bar.org Then I want to run apache at foo.org:443, and tomcat at bar.org:443. I believe this will work if apache and tomcat are configured to only listen respectively at the network interfaces foo.org:443 and bar.org:443. I have already set up apache to listen only to foo.org:443, and I want to set up tomcat to listen only to bar.org:443. I'm using the official Debian etch packages for apache and tomcat. I'm happy to get pointers to offical documentation, though I would be even happier to get precise instructions how to do this. :-) The most important piece of information I am looking for is confirmation that setting up tomcat to listen at a particular network interface and a particular port is indeed possible. Thanks in advance. Faheem. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: running tomcat on a particular network interface and a particular port
Faheem Mitha wrote: I have a machine on which I want to run both apache (2.2) and tomcat (5.5) simultaneously and independently, both at port 443. To be more precise, say I have a machine with the two IP names foo.org and bar.org Your machine propably has two IP addresses. How many names you've registered in DNS for these addresses is irrelevant for this question. Then I want to run apache at foo.org:443, and tomcat at bar.org:443. I believe this will work if apache and tomcat are configured to only listen respectively at the network interfaces foo.org:443 and bar.org:443. I have already set up apache to listen only to foo.org:443, and I want to set up tomcat to listen only to bar.org:443. I'm using the official Debian etch packages for apache and tomcat. I'm happy to get pointers to offical documentation, though I would be even happier to get precise instructions how to do this. :-) The most important piece of information I am looking for is confirmation that setting up tomcat to listen at a particular network interface and a particular port is indeed possible. Yes, this can be done. Set the address attribute of the Connector(s) you use to the address of the interface Tomcat shall bind to: http://tomcat.apache.org/tomcat-5.5-doc/config/http.html#Standard%20Implementation http://tomcat.apache.org/tomcat-5.5-doc/config/ajp.html#Standard%20Implementation Regards mks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: recognise tomcat finished starting up
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Re: recognise tomcat finished starting up So I'm looking for a way to detect if tomcat's startup has finished... If you have remote access to Tomcat's logs directory, you could monitor the catalina.log file for the INFO: Server startup in xxx ms message. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Quick Question for TomCat Gurus
There is many chance that the java binary is in fact a link to the real binary. If you want to change the java binary for all the distribution you can change this link. If not, as explained before, you only have to export the JAVA_HOME to the right binary. I suggest you to create setenv.sh file in the bin directory. You may need to add more variables (JAVA_OPTS, ...). Regards, Lionel Propes, Barry L [GCG-NAOT] a écrit : change up your catalina.bat or.sh file to point to the JDK 1.6 version set JAVA_HOME=C:\j2sdk1.4.0 I'm using an older version here. This is from my catalina.bat file although not sure if TC 4.1 will work well with that JDK or not. -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, March 15, 2007 10:59 AM To: Tomcat Users List Subject: Re: Quick Question for TomCat Gurus Somewhere in the execution path you still have java 1.4.2. Check your PATH environment variable -- the first folder that contains java.exe will be the one that returns. As to what jdk tomcat 4.1 is running with, check the manager webapp (http://localhost:8080/manager/html) and adjust the start/stop scripts if necessary. The exception cited below has to do with a jsp not finding a bean instance with the name managerMenu in the page context, request, session or servlet context. I'm guessing it's supposed to be run after some other servlet or filter code that adds this to one of the mentioned scopes. --David Bruno Vilardo wrote: Hello All, Tomcat 4.1 Suse Linux Enterprise Server Java 1.6.0 Is there any issue using Tomcat 4.1 with Java 1.6.0? Our System Admin has installed the Java 1.6.0 but when running the java -version it shows a different java version as below: $java -version java version 1.4.2_13 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_13-b06) Java HotSpot(TM) Client VM (build 1.4.2_13-b06, mixed mode) I also found some messages in the localhost.log as below: more localhost_log.2007-03-15.txt 2007-03-15 11:18:42 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception javax.servlet.ServletException: Cannot find bean managerMenu in any scope at org.apache.jasper.runtime.PageContextImpl.handlePageException( PageContextImpl.java:495) at org.apache.jsp.displaymenudetail_jsp._jspService (displaymenudetail_jsp.java:126) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java :92) at javax.servlet.http.HttpServlet.service(HttpServlet.java:809) at org.apache.jasper.servlet.JspServletWrapper.service( JspServletWrapper.java:162) at org.apache.jasper.servlet.JspServlet.serviceJspFile( JspServlet.java:240) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187) at javax.servlet.http.HttpServlet.service(HttpServlet.java:809) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.j ava:200) Does anybody know what this could be? Thanks a lot in advance!!! Best Regards, Bruno - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using a DataSource to access DB2.
I do not see any way to add the auth resource from the admin page, so I edited the server.xml to add it. The only change was the message Caused by: java.sql.SQLException: No suitable driver instead of the Null pointer exception. I tried changing the server.xml back and I still get the No suitable driver, so I suspect some timing issue here. There are two ResourceParams. Below the one for UserDatabase is one for jdbc/TestDB. I am just about convinced that I will not be able to use a DataSource with DB2. Can anyone convince me otherwise? -Original Message- From: Rashmi Rubdi [mailto:[EMAIL PROTECTED] Sent: Monday, April 16, 2007 11:42 AM To: Tomcat Users List Subject: Re: Using a DataSource to access DB2. Thanks for providing adequate relevant details. I compare parts of your configuration to http://tomcat.apache.org/tomcat-5.0-doc/config/globalresources.html In the above link it says: Resource auth=container This attribute is required if the web application will use a resource-ref element in the web application deployment descriptor, but is optional if the application uses a resource-env-ref instead. Since you have defined resource-ref in your web.xml the auth attribute is required, but you haven't specified it in this: Resource name=jdbc/TestDB type=javax.sql.DataSource/ tag. Also the ResourceParams tag looks incorrect, it should be: ResourceParams name=jdbc/TestDB but you have it as: ResourceParams name=UserDatabase The above are some of the mis configurations I've identified so far, there could be more. -Rashmi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using a DataSource to access DB2.
On 4/16/07, Fargusson.Alan [EMAIL PROTECTED] wrote: I do not see any way to add the auth resource from the admin page, so I edited the server.xml to add it. The only change was the message Caused by: java.sql.SQLException: No suitable driver instead of the Null pointer exception. I tried changing the server.xml back and I still get the No suitable driver, so I suspect some timing issue here. There are two ResourceParams. Below the one for UserDatabase is one for jdbc/TestDB. You are right, sorry I got corss-eyed looking at the XML and didn't notice the 2nd ReourceParams I am just about convinced that I will not be able to use a DataSource with DB2. Can anyone convince me otherwise? Unless it's documented somewhere that connection pooling is not possible with DB2 I think it should still work. In one of your earlier posts you had mentioned that you weren't able to connect to MySQL or Oracle either with Conneciton Pooling --- did you try those? I think once you have it working for one database it's simply a matter of switching the JDBC JAR file and the connection string. -Rashmi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: running tomcat on a particular network interface and a particular port
On Mon, 16 Apr 2007, David Smith wrote: If you add the address attribute to your tomcat connectors in server.xml, tomcat will bind specifically to those interfaces. See http://tomcat.apache.org/tomcat-5.5-doc/config/http.html for documentation on this. --David Hi, Thanks to David and others for the tomcat configuration information. I have earlier heard references made to the tomcat connector. Just to be clear, is this a separate piece of sofware or part of tomcat? Furthermore, is this something to be used for connecting to other pieces of software like apache? I'm looking to configure tomcat to run in standalone mode, and not connect it to apache at all. Does this seem reasonable? Oh, and just to be clear, this machine has two network cards and two ip addresses corresponding to the two ip names. Faheem. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: running tomcat on a particular network interface and a particular port
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Faheem, Faheem Mitha wrote: I have earlier heard references made to the tomcat connector. Just to be clear, is this a separate piece of software or part of tomcat? All connectors all come bundled with Tomcat. It looks like the HTTP connector is being discussed, here, which is part of Tomcat as well. Furthermore, is this something to be used for connecting to other pieces of software like apache? Some connectors (such as the ajp13 ones) require another piece of software to be installed somewhere else such as a web server. If you've heard of mod_jk, that's a package that needs to be installed into a web server in order to communicate with the (ajp13) connector in Tomcat. Though mod_jk is separate, the connector that talks to it is still included with Tomcat. I'm looking to configure tomcat to run in standalone mode, and not connect it to Apache [httpd] at all. Then you will want to use either the HTTP or HTTPS connector (or both). You can ignore all the ajp13 stuff above... I was just mentioning it to give you some perspective. Does this seem reasonable? Absolutely. In fact, most of the voices on this list will tell you that adding Apache httpd into the mix doesn't add any value. Perhaps it's true for them, but Apache httpd definitely helps me with my production deployments. Oh, and just to be clear, this machine has two network cards and two ip addresses corresponding to the two ip names. Hence the need to bind to a specific NIC ;) - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGI+NT9CaO5/Lv0PARAgyYAJ9fpev+JFAR0wC+aa/qcSGX1OLJxACfZJDR NF8POxTUbvejwuk2OQWOcVw= =2qXF -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using a DataSource to access DB2.
I used the MySQL and Oracle examples to create a server.xml file. I don't actually have Oracle. I could probably try to get MySQL configured, but I don't know if it worth the effort. -Original Message- From: Rashmi Rubdi [mailto:[EMAIL PROTECTED] Sent: Monday, April 16, 2007 1:34 PM To: Tomcat Users List Subject: Re: Using a DataSource to access DB2. On 4/16/07, Fargusson.Alan [EMAIL PROTECTED] wrote: I do not see any way to add the auth resource from the admin page, so I edited the server.xml to add it. The only change was the message Caused by: java.sql.SQLException: No suitable driver instead of the Null pointer exception. I tried changing the server.xml back and I still get the No suitable driver, so I suspect some timing issue here. There are two ResourceParams. Below the one for UserDatabase is one for jdbc/TestDB. You are right, sorry I got corss-eyed looking at the XML and didn't notice the 2nd ReourceParams I am just about convinced that I will not be able to use a DataSource with DB2. Can anyone convince me otherwise? Unless it's documented somewhere that connection pooling is not possible with DB2 I think it should still work. In one of your earlier posts you had mentioned that you weren't able to connect to MySQL or Oracle either with Conneciton Pooling --- did you try those? I think once you have it working for one database it's simply a matter of switching the JDBC JAR file and the connection string. -Rashmi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 6.0.9 connection stopped working and will not resume
Hi, I was editing a JSP page. I saved the file, and refreshed the web page at http://localhost:port/myapp/page.jsp. Apparently, this caused Tomcat to shut down for some reason. I had this problem before, but I don't remember how I solved it. Anyway when I had the problem previously I was able to call startup.sh on the server to start it up again and tinker with my jsp page. However, when I call startup.sh now, it seems to go fine, but I'm getting a connection refused error in my browser. I can call shutdown.sh fine as well after I call startup.sh, which is puzzling to me. Is there anything I can look at to help determine the source of this problem? What could have gone wrong? Thanks, Dan - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sending smtp mail failure
That's a timeout error. I was able to send an email thru smtp.google.com using Outlook Express, with no timeout error, so it looks like there's something wrong with either your email settings or your connection to gmail.com (firewall or something). Google has a troubleshooter program to diagnose POP SMTP setup problems: http://mail.google.com/support/bin/answer.py?answer=44769 -- Len On 4/16/07, Mighty Tornado [EMAIL PROTECTED] wrote: I heeded your advice and tried setting up Outlook Express for gmail server. This is the message that I got: The connection to the server has failed. Account: 'smtp.google.com', Server: 'smtp.google.com', Protocol: SMTP, Port: 25, Secure(SSL): No, Socket Error: 10060, Error Number: 0x800CCC0E On 4/15/07, Johnny Kewl [EMAIL PROTECTED] wrote: Here is a little framework that u can play with MimeMessage msg = new MimeMessage(session); msg.setFrom(new InternetAddress(from)); msg.addRecipient(Message.RecipientType.TO, new InternetAddress(to)); msg.setSubject(subject); msg.setSentDate(new Date()); // ADD TEXT MimeBodyPart mbp1 = new MimeBodyPart(); mbp1.setText(sMessage); //ADD ATTACHEMENT MimeBodyPart mbp2 = new MimeBodyPart(); if (sFilename.length() 0){ mbp2.setFileName(sFilename); mbp2.setText(sAttachment, us-ascii); } // JOIN THEM Multipart mp = new MimeMultipart(); mp.addBodyPart(mbp1); if (sFilename.length() 0) mp.addBodyPart(mbp2); // ADD and SEND msg.setContent(mp); Transport.send(msg); Have fun - Original Message - From: Mighty Tornado [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, April 15, 2007 2:32 AM Subject: Re: sending smtp mail failure Thanks for responding, there something wrong with my code? This is my code: import java.util.*; import java.io.*; import javax.mail.*; import javax.mail.internet.*; import javax.activation.*; public class TimeTravelMailer { public void sendMessage() { String to = [EMAIL PROTECTED]; String from = [EMAIL PROTECTED]; String host = smtp.google.com; String message = This is a test; Properties props = new Properties(); props.put(mail.smtp.host, host); Session session = Session.getInstance(props); try { Transport bus = session.getTransport(smtp); bus.connect(host, [EMAIL PROTECTED], [EMAIL PROTECTED] ); Message msg = new MimeMessage(session); msg.setFrom(new InternetAddress(from)); InternetAddress[] address = {new InternetAddress(to)}; msg.setRecipients(Message.RecipientType.TO, address); msg.setRecipients(Message.RecipientType.CC, InternetAddress.parse(to, true)); msg.setRecipients(Message.RecipientType.BCC, InternetAddress.parse(to, false)); msg.setSubject(Test E-Mail through Java); msg.setSentDate(new Date()); msg.setText(message); msg.saveChanges(); bus.sendMessage(msg, address); bus.close(); } catch(Exception ex) { ex.printStackTrace(); } } } On 4/7/07, Johnny Kewl [EMAIL PROTECTED] wrote: Easiest way is to setup a normal email program and see what the error messages are. If the machine doesnt have core mailing engines installed, it will probably tell you. If you on windows, try Outlook express, detailed messages will probably point you in right direction. Code should look something like this public boolean prepareConnection(String smtpHost){ this.smtpHost = smtpHost; fSessionInited = true; try{ java.util.Properties properties = System.getProperties(); properties.put(mail.smtp.host, smtpHost); session = Session.getInstance(properties,null); } catch(Exception e) { fSessionInited = false; } return fSessionInited; } - Original Message - From: Mighty Tornado [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Friday, April 06, 2007 7:30 AM Subject: sending smtp mail failure Hi, I set up a small web app and the servlet is supposed to send an email using JavaMail. But I am getting exceptions - Connection Timed out every time. I am using Gmail as an smtp server to bounce emails off. How can I avoid the Connection Timed out exception? Could it be because of my firewall? If so, which process should I permission? Thank you, MT - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
Re: Ajax xmlhttprequest
Hi Richard, As said earlier the only way to parse php files out of Apache Tomcat is something like: http://localhost:8080/myfile.jsp (Apache Tomcat 5.5.x) calling http://localhost/anyfile.php (Apache 1.3.xx with php/MySQL built-in) This means 2 servers running on the same machine. This way you will be able to run: http://www.yoursite_1.com:8080/ myfile.jsp (inside the jsp script - Apache Tomcat 5.5.20 JSP -) calling http://www.yoursite_2.com/anyfile.php (- Apache 2.2.32 HTTP - running php5 with MySQL databases) (sorry for derby). It is possible from this server to bounce-back (and forth) - with the appropriate javascript codes - to applets running on server_1. From now on it is the only way to do it - in my opinion -. Ajax don't do that. If not please let us know. On 17 avr. 07, at 01:10, Richard Dunne wrote: Learn something new everyday. OK developers, something to maybe look forward to in the future perhaps? - Original Message From: Hassan Schroeder [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, April 17, 2007 12:00:57 AM Subject: Re: Ajax xmlhttprequest On 4/16/07, Richard Dunne [EMAIL PROTECTED] wrote: I can query the database with a php script on its own. ...one of my webpages is trying to execute the same php script via an Ajax xmlhttprequest, Is there any particular/obvious reason why the request is breaking down in tomcat? Uh, because Tomcat has no facility for parsing/interpreting PHP? :-) Caveat: unless you've ported over the old PHP4 servlet that no longer comes with the PHP 5 source, in which case we'd need a wee bit more info... :-) -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Applet Help
If you are going to make several test with your applet you better off to turn off caching of all xxx.class and/or xxx.jar files in your JVM preferences ( Java 1.x.x Plugin Settings preferences). Once all is OK, turn it back to on. No need to switch your server on/off/on etc... Your server is just serving. On 17 avr. 07, at 02:27, jub jub jedi wrote: I have made a simple website on Tomcat. I have an applet on it, and when I loaded it for the very first time, it turned out like I expected it to. I have made a modification that should be VERY obvious, but when I reload the page, it shows the applet just like when it was first compiled. How do I get it to show the new version of the applet? I have tried restarting the web server, too. -- View this message in context: http://www.nabble.com/Applet-Help- tf3588156.html#a10027383 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: running tomcat on a particular network interface and a particular port
Hi, I can now get tomcat to run an ssl connector at port 8443 (Debian default), but doesn't work if I try to run it at 443. The log says: Apr 17, 2007 12:31:19 AM org.apache.catalina.startup.Catalina start SEVERE: Catalina.start: LifecycleException: service.getName(): Catalina; Protocol handler start failed: java.net.BindExc eption: Permission denied:443 at org.apache.catalina.connector.Connector.start(Connector.java:1096) at org.apache.catalina.core.StandardService.start(StandardService.java:459) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) My server.xml config now says !-- Define a SSL HTTP/1.1 Connector on port 443 -- Connector address=core.dulci.org port=443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS / Any idea what I am missing? I don't think the problem is that apache is blocking 443, because when I turn off apache, I get the same error. In any case, I have configured apache to listen only at the florence.dulci.org:443 interface. Is there an easy way to discover what is listening on a particular port on a particular IP address? Thanks.Faheem. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Administration
hi Hi iam unable to get the tomcat administration page. It is giving the message like Tomcat's administration web application is no longer installed by default. Download and install the admin package to use it. where to get the tomcat admin package, and how to install that admin into the tomcat directory. please help me friends... Thanks regards Venkata Naveen -- View this message in context: http://www.nabble.com/Tomcat-Administration-tf3588935.html#a10029555 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]