RE: javax/mail/address
agreed ..Diagnostic tools are a good ideaAlso if you determine you're using too many threads take a look at implementing ThreadPools which allows you to configure min_spare_threads, max_threads and max_spare_threads/ connector http://marc.info/?l=tomcat-userm=103598932529887w=2 HTH/Martin__Disclaimer and confidentiality noteEverything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Subject: RE: javax/mail/address Date: Fri, 23 Nov 2007 13:08:18 -0500 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Thanks for the suggestion, I'll get this running this afternoon and see what I can find. -dustin -Original Message- From: Katilie, John [mailto:[EMAIL PROTECTED] Sent: Friday, November 23, 2007 11:58 AM To: Tomcat Users List Subject: RE: javax/mail/address I know this may be a little out of context but have you tried using JCONSOLE to monitor Tomcat? It's a nice little GUI and can easily show you the threads, the stack trace and Locking conditions. I'm no expert, I just started using it in the last week or so. It's pretty easy to set up to monitor a JVM like Tomcat when JCONSOLE and TOMCAT are running on the same machine. That is how I've been using it. There is a little more to set up if JCONSOLE and TOMCAT are on different machine which I have not tried yet. Just a thought, sorry if I'm out of line. Note: JCONSOLE is part of the JVM so no additional product needs to be installed or purchased. Jfk. -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Friday, November 23, 2007 11:13 AM To: Tomcat Users List Subject: RE: javax/mail/address From: Dustin Fortin [mailto:[EMAIL PROTECTED] Subject: RE: javax/mail/addressFinalizer daemon prio=10 tid=0x08081800 nid=0x1107 in Object.wait() [0xb5592000..0xb55930a0] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on 0x15e70528 (a java.lang.ref.ReferenceQueue$Lock) The above is the normal state for the Finalizer thread, so it's not your problem. You'll see several (possibly many) threads in a WAITING condition, which usually just means they're ready to accept work from some other thread. You'll need to look at the others. Comparison with a thread dump from a normally running Tomcat instance may be of some help. - 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] - 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] _ Put your friends on the big screen with Windows Vista® + Windows Live™. http://www.microsoft.com/windows/shop/specialoffers.mspx?ocid=TXT_TAGLM_CPC_MediaCtr_bigscreen_102007
RE: javax/mail/address
Thank you for your reply. I have verified that sendmail is listening on port 25. It is listening on the loopback interface as well as eth0. I have verified proxy configurations as I am the netadmin. Tomcat is still stalling on boot. I will continue to scour the docs, but I'm not sure what to look for as I don't see any errors being thrown to logs, just a stalled tomcat startup. thanks -dustin -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Friday, November 23, 2007 10:02 AM To: Tomcat Users List Subject: RE: javax/mail/address Hi Dustin 1) verify your server is operational goto mailserver netstat -a | grep SMTPPort 2)Proxy verify with your netadmin for proxy configurations 3)read the docs as earlier suggested Martin--__Disclaimer and confidentiality noteEverything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Subject: RE: javax/mail/address Date: Fri, 23 Nov 2007 09:30:05 -0500 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Thank you for pointing me to the docs. I've read them and was able to get rid of the exceptions in the logs by putting the correct resource name jndi entries in the global context.xml config file. However, the main issue, where tomcat stalls during startup with mail.jar in the $CATALINA_HOME/lib directory is still happening. I've defined a resource name as suggested in the docs below below in the global context.xml config file that looks like this: Resource name=mail/Session auth=Container type=javax.mail.Session mail.smtp.host=localhost/ Still with no luck. I can get a thread dump as you suggested earlier in this thread, but I'm not sure how to interpret it. Any suggestions would be appreciated. thanks -dustin - 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: javax/mail/address
From: Dustin Fortin [mailto:[EMAIL PROTECTED] Subject: RE: javax/mail/address I can get a thread dump as you suggested earlier in this thread, but I'm not sure how to interpret it. The thread dump will show you where each thread is, including line numbers of the associated Java source files. One thread dump will show if the threads are stuck on locks; multiple may be needed to see if some thread is in an infinite loop. - 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: javax/mail/address
From: Dustin Fortin [mailto:[EMAIL PROTECTED] Subject: RE: javax/mail/address Finalizer daemon prio=10 tid=0x08081800 nid=0x1107 in Object.wait() [0xb5592000..0xb55930a0] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on 0x15e70528 (a java.lang.ref.ReferenceQueue$Lock) The above is the normal state for the Finalizer thread, so it's not your problem. You'll see several (possibly many) threads in a WAITING condition, which usually just means they're ready to accept work from some other thread. You'll need to look at the others. Comparison with a thread dump from a normally running Tomcat instance may be of some help. - 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: javax/mail/address
I know this may be a little out of context but have you tried using JCONSOLE to monitor Tomcat? It's a nice little GUI and can easily show you the threads, the stack trace and Locking conditions. I'm no expert, I just started using it in the last week or so. It's pretty easy to set up to monitor a JVM like Tomcat when JCONSOLE and TOMCAT are running on the same machine. That is how I've been using it. There is a little more to set up if JCONSOLE and TOMCAT are on different machine which I have not tried yet. Just a thought, sorry if I'm out of line. Note: JCONSOLE is part of the JVM so no additional product needs to be installed or purchased. Jfk. -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Friday, November 23, 2007 11:13 AM To: Tomcat Users List Subject: RE: javax/mail/address From: Dustin Fortin [mailto:[EMAIL PROTECTED] Subject: RE: javax/mail/address Finalizer daemon prio=10 tid=0x08081800 nid=0x1107 in Object.wait() [0xb5592000..0xb55930a0] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on 0x15e70528 (a java.lang.ref.ReferenceQueue$Lock) The above is the normal state for the Finalizer thread, so it's not your problem. You'll see several (possibly many) threads in a WAITING condition, which usually just means they're ready to accept work from some other thread. You'll need to look at the others. Comparison with a thread dump from a normally running Tomcat instance may be of some help. - 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] - 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: javax/mail/address
Thank you for pointing me to the docs. I've read them and was able to get rid of the exceptions in the logs by putting the correct resource name jndi entries in the global context.xml config file. However, the main issue, where tomcat stalls during startup with mail.jar in the $CATALINA_HOME/lib directory is still happening. I've defined a resource name as suggested in the docs below below in the global context.xml config file that looks like this: Resource name=mail/Session auth=Container type=javax.mail.Session mail.smtp.host=localhost/ Still with no luck. I can get a thread dump as you suggested earlier in this thread, but I'm not sure how to interpret it. Any suggestions would be appreciated. thanks -dustin -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 20, 2007 1:43 PM To: Tomcat Users List Subject: RE: javax/mail/address From: Dustin Fortin [mailto:[EMAIL PROTECTED] Subject: RE: javax/mail/address Should these database definitions be defined in the local contexts? If you want Tomcat to manage the database connections, then server.xml is appropriate. Resource name=jdbc/Admin auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/Admin There are no ResourceParams elements in Tomcat 6.0. I assumed most of the tomcat 5.0.25 params would be ok to port over, but I claim to be no expert. Bad assumption. Read the docs: http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.h tml - 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] - 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: javax/mail/address
Hi Dustin1) verify your server is operationalgoto mailserver netstat -a | grep SMTPPort2)Proxy verify with your netadmin for proxy configurations3)read the docs as earlier suggested Martin--__Disclaimer and confidentiality noteEverything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Subject: RE: javax/mail/address Date: Fri, 23 Nov 2007 09:30:05 -0500 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Thank you for pointing me to the docs. I've read them and was able to get rid of the exceptions in the logs by putting the correct resource name jndi entries in the global context.xml config file. However, the main issue, where tomcat stalls during startup with mail.jar in the $CATALINA_HOME/lib directory is still happening. I've defined a resource name as suggested in the docs below below in the global context.xml config file that looks like this: Resource name=mail/Session auth=Container type=javax.mail.Session mail.smtp.host=localhost/ Still with no luck. I can get a thread dump as you suggested earlier in this thread, but I'm not sure how to interpret it. Any suggestions would be appreciated. thanks -dustin -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 20, 2007 1:43 PM To: Tomcat Users List Subject: RE: javax/mail/address From: Dustin Fortin [mailto:[EMAIL PROTECTED] Subject: RE: javax/mail/addressShould these database definitions be defined in the local contexts? If you want Tomcat to manage the database connections, then server.xml is appropriate. Resource name=jdbc/Admin auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/Admin There are no ResourceParams elements in Tomcat 6.0. I assumed most of the tomcat 5.0.25 params would be ok to port over, but I claim to be no expert. Bad assumption. Read the docs: http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.h tml - ChuckTHIS 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] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Connect and share in new ways with Windows Live. http://www.windowslive.com/connect.html?ocid=TXT_TAGLM_Wave2_newways_112007
RE: javax/mail/address
Thank you for the explanation. So I see the locks you're talking about. For example: Finalizer daemon prio=10 tid=0x08081800 nid=0x1107 in Object.wait() [0xb5592000..0xb55930a0] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on 0x15e70528 (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116) - locked 0x15e70528 (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159) What can I do about this? thanks -dustin -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Friday, November 23, 2007 10:39 AM To: Tomcat Users List Subject: RE: javax/mail/address From: Dustin Fortin [mailto:[EMAIL PROTECTED] Subject: RE: javax/mail/address I can get a thread dump as you suggested earlier in this thread, but I'm not sure how to interpret it. The thread dump will show you where each thread is, including line numbers of the associated Java source files. One thread dump will show if the threads are stuck on locks; multiple may be needed to see if some thread is in an infinite loop. - 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] - 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: javax/mail/address
Thanks for the suggestion, I'll get this running this afternoon and see what I can find. -dustin -Original Message- From: Katilie, John [mailto:[EMAIL PROTECTED] Sent: Friday, November 23, 2007 11:58 AM To: Tomcat Users List Subject: RE: javax/mail/address I know this may be a little out of context but have you tried using JCONSOLE to monitor Tomcat? It's a nice little GUI and can easily show you the threads, the stack trace and Locking conditions. I'm no expert, I just started using it in the last week or so. It's pretty easy to set up to monitor a JVM like Tomcat when JCONSOLE and TOMCAT are running on the same machine. That is how I've been using it. There is a little more to set up if JCONSOLE and TOMCAT are on different machine which I have not tried yet. Just a thought, sorry if I'm out of line. Note: JCONSOLE is part of the JVM so no additional product needs to be installed or purchased. Jfk. -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Friday, November 23, 2007 11:13 AM To: Tomcat Users List Subject: RE: javax/mail/address From: Dustin Fortin [mailto:[EMAIL PROTECTED] Subject: RE: javax/mail/address Finalizer daemon prio=10 tid=0x08081800 nid=0x1107 in Object.wait() [0xb5592000..0xb55930a0] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on 0x15e70528 (a java.lang.ref.ReferenceQueue$Lock) The above is the normal state for the Finalizer thread, so it's not your problem. You'll see several (possibly many) threads in a WAITING condition, which usually just means they're ready to accept work from some other thread. You'll need to look at the others. Comparison with a thread dump from a normally running Tomcat instance may be of some help. - 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] - 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: javax/mail/address
Thats the frustrating part, there is no thread dump. When I tail the logs all I get is that tomcat is starting up, but it never gets further than that. It just hangs, and when I try to access the manager or any webapp I get a connection timeout. thanks -dustin -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 20, 2007 11:21 AM To: Tomcat Users List Subject: RE: javax/mail/address From: Dustin Fortin [mailto:[EMAIL PROTECTED] Subject: javax/mail/address When I have mail.jar in lib, this is as far as the tomcat startup gets. What does a thread dump show in the hang situtaion? - 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] - 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: javax/mail/address
From: Dustin Fortin [mailto:[EMAIL PROTECTED] Subject: RE: javax/mail/address Thats the frustrating part, there is no thread dump. You have to take a thread dump; there won't be one generated automatically. Use kill -3 on Linux, ctrl-break on Windows. - 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: javax/mail/address
From: Dustin Fortin [mailto:[EMAIL PROTECTED] Subject: javax/mail/address When I have mail.jar in lib, this is as far as the tomcat startup gets. What does a thread dump show in the hang situtaion? - 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: javax/mail/address
Yes, activation.jar is in the lib folder along with mail.jar. -dustin -Original Message- From: Markus Schönhaber [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 20, 2007 11:25 AM To: users@tomcat.apache.org Subject: Re: javax/mail/address Dustin Fortin wrote: When I put mail.jar into the lib folder (which many of my webapps require) tomcat never boots up. It stalls on boot with nothing being thrown to log. Just a WAG (don't know if this even remotely related): you do put activation.jar into the lib folder along with mail.jar? 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] - 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: javax/mail/address
Dustin Fortin wrote: When I put mail.jar into the lib folder (which many of my webapps require) tomcat never boots up. It stalls on boot with nothing being thrown to log. Just a WAG (don't know if this even remotely related): you do put activation.jar into the lib folder along with mail.jar? 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: javax/mail/address
% used [0x948f, 0x94fe16c0, 0x94fe1800, 0x954f) From this it looks like part of the problem is threads are waiting on object monitor? Am I interpreting this correctly? -dustin -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 20, 2007 11:30 AM To: Tomcat Users List Subject: RE: javax/mail/address From: Dustin Fortin [mailto:[EMAIL PROTECTED] Subject: RE: javax/mail/address Thats the frustrating part, there is no thread dump. You have to take a thread dump; there won't be one generated automatically. Use kill -3 on Linux, ctrl-break on Windows. - 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] - 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: javax/mail/address
[0x15e7, 0x4f99, 0x8c0f) the space 945280K, 0% used [0x15e7, 0x15e7, 0x15e70200, 0x4f99) compacting perm gen total 12288K, used 11911K [0x8c0f, 0x8ccf, 0x940f) the space 12288K, 96% used [0x8c0f, 0x8cc91ee0, 0x8cc92000, 0x8ccf) ro space 8192K, 73% used [0x940f, 0x946ce548, 0x946ce600, 0x948f) rw space 12288K, 57% used [0x948f, 0x94fe16c0, 0x94fe1800, 0x954f) From this it looks like part of the problem is threads are waiting on object monitor? Am I interpreting this correctly? -dustin -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 20, 2007 11:30 AM To: Tomcat Users List Subject: RE: javax/mail/address From: Dustin Fortin [mailto:[EMAIL PROTECTED] Subject: RE: javax/mail/address Thats the frustrating part, there is no thread dump. You have to take a thread dump; there won't be one generated automatically. Use kill -3 on Linux, ctrl-break on Windows. - 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] - 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: javax/mail/address
others may tell you like they told me, but you probably ought to get rid of that sun.jdbc.odbc.JdbcOdbcDriver if you can and use a good one. Not that that is all of the problem. -Original Message- From: Dustin Fortin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 20, 2007 10:46 AM To: Tomcat Users List Subject: RE: javax/mail/address In catalina.out this error is new: Cannot create JDBC driver of class '' for connect URL 'null' java.lang.NullPointerException at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:507) at sun.jdbc.odbc.JdbcOdbcDriver.knownURL(JdbcOdbcDriver.java:476) at sun.jdbc.odbc.JdbcOdbcDriver.acceptsURL(JdbcOdbcDriver.java:307) at java.sql.DriverManager.getDriver(DriverManager.java:253) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSo urce.java:1143) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSourc e.java:880) at com.airs.utilities.server.Entity.connect(Entity.java:547) at com.airs.utilities.server.Entity.find(Entity.java:1334) at com.airs.utilities.server.Entity.find(Entity.java:1252) at com.airs.portal.entities.Configuration.findConfiguration(Configuration.j ava:208) at com.airs.portal.entities.Configuration.findConfiguration(Configuration.j ava:175) at com.airs.portal.entities.Configuration.findConfiguration(Configuration.j ava:157) at com.airs.portal.entities.Configuration.findConfiguration(Configuration.j ava:143) at com.airs.portal.Bugman.bugReportImpl(Bugman.java:317) at com.airs.portal.Bugman.bugReport(Bugman.java:183) at com.airs.portal.Bugman.bugReport(Bugman.java:141) at com.airs.portal.entities.Configuration.entityFailure(Configuration.java: 123) at com.airs.utilities.server.Entity.failure(Entity.java:1235) at com.airs.utilities.server.Entity.find(Entity.java:1531) at com.airs.utilities.server.Entity.find(Entity.java:1376) at com.airs.portal.entities.TypeEncoding.makeSymbols(TypeEncoding.java:812) at com.airs.portal.entities.TypeRegistry.theTypeRegistry(TypeRegistry.java: 108) at com.airs.portNov 20, 2007 11:39:19 AM org.apache.catalina.core.ApplicationContext log When I did the kill -3 on the tomcat process I get this information: SocketTimeout daemon prio=10 tid=0xb4819000 nid=0x1d5e waiting on condition [0xb4d9..0xb4d90f20] java.lang.Thread.State: TIMED_WAITING (sleeping) at java.lang.Thread.sleep(Native Method) at HTTPClient.SocketTimeout.run(StreamDemultiplexor.java:919) RMI TCP Accept-0 daemon prio=10 tid=0x08285000 nid=0x1d5c runnable [0xb505a000..0xb505b020] java.lang.Thread.State: RUNNABLE at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384) - locked 0x0fe70118 (a java.net.SocksSocketImpl) at java.net.ServerSocket.implAccept(ServerSocket.java:450) at java.net.ServerSocket.accept(ServerSocket.java:421) at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTrans port.java:369) at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:341) at java.lang.Thread.run(Thread.java:619) Low Memory Detector daemon prio=10 tid=0x0808cc00 nid=0x1d5b runnable [0x..0x] java.lang.Thread.State: RUNNABLE CompilerThread0 daemon prio=10 tid=0x0808b000 nid=0x1d5a waiting on condition [0x..0xb52f0bb8] java.lang.Thread.State: RUNNABLE Signal Dispatcher daemon prio=10 tid=0x08089c00 nid=0x1d59 waiting on condition [0x..0x] java.lang.Thread.State: RUNNABLE Finalizer daemon prio=10 tid=0x08081800 nid=0x1d58 in Object.wait() [0xb5592000..0xb5592e20] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on 0x0fe70418 (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116) - locked 0x0fe70418 (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159) Reference Handler daemon prio=10 tid=0x08080800 nid=0x1d57 in Object.wait() [0xb55e3000..0xb55e3ea0] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on 0x0fe704a8 (a java.lang.ref.Reference$Lock) at java.lang.Object.wait(Object.java:485) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116) - locked 0x0fe704a8 (a java.lang.ref.Reference$Lock) main prio=10 tid=0x08058800 nid=0x1d55 runnable [0xb7fde000..0xb7fdf1f8] java.lang.Thread.State: RUNNABLE at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129
RE: javax/mail/address
Its in the server.xml. See below: --There are many more like this depending on context. Should these database definitions be defined in the local contexts? Usernames and passwords are held in the tomcat-users.xml file. Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / Resource name=jdbc/Admin auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/Admin parameternamefactory/namevalueorg.apache.tomcat.dbcp.dbcp.BasicD ataSourceFactory/value/parameter parameternameusername/namevaluexxx/value/parameter parameternamedriverClassName/namevaluecom.mysql.jdbc.Driver/val ue/parameter parameternameurl/namevaluejdbc:mysql://xxx.xxx.com/Admin/value /parameter parameternameconnectionProperties/namevalue elideSetAutoCommits=true;jdbcCompliantTruncation=false;useLocalSessionSt ate=true;alwaysSendSetIsolation=false;maintainTimeStats=false/value/p arameter parameternameremoveAbandoned/namevaluetrue/value/parameter parameternameremoveAbandonedTimeout/namevalue12600/value/para meter parameternamelogAbandoned/namevaluefalse/value/parameter parameternamemaxActive/namevalue0/value/parameter parameternameminIdle/namevalue0/value/parameter parameternamemaxIdle/namevalue50/value/parameter parameternamevalidationQuery/namevalueSELECT 1/value/parameter parameternametestOnBorrow/namevaluefalse/value/parameter parameternametestWhileIdle/namevaluefalse/value/parameter parameternametimeBetweenEvictionRunsMillis/namevalue2/value /parameter parameternamenumTestsPerEvictionRun/namevalue1/value/paramete r parameternameminEvictableIdleTimeMillis/namevalue60/value /parameter /ResourceParams The error is saying that it can't find the class and the url is null. Not sure why.is there something syntactically wrong with the above? Here is the main part of the error. Cannot create JDBC driver of class '' for connect URL 'null' All of these params came from a tomcat 5 config except I modified the factory param to reflect the new location of the BasicDataSourceFactory class. I assumed most of the tomcat 5.0.25 params would be ok to port over, but I claim to be no expert. thanks -dustin -Original Message- From: Pid [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 20, 2007 11:56 AM To: Tomcat Users List Subject: Re: javax/mail/address Post your JDBC/Datasource config(s), (sans passwords obviously). Where is it defined, in a context.xml or server.xml? p Dustin Fortin wrote: In catalina.out this error is new: Cannot create JDBC driver of class '' for connect URL 'null' java.lang.NullPointerException at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:507) at sun.jdbc.odbc.JdbcOdbcDriver.knownURL(JdbcOdbcDriver.java:476) at sun.jdbc.odbc.JdbcOdbcDriver.acceptsURL(JdbcOdbcDriver.java:307) at java.sql.DriverManager.getDriver(DriverManager.java:253) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicData So urce.java:1143) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSou rc e.java:880) at com.airs.utilities.server.Entity.connect(Entity.java:547) at com.airs.utilities.server.Entity.find(Entity.java:1334) at com.airs.utilities.server.Entity.find(Entity.java:1252) at com.airs.portal.entities.Configuration.findConfiguration(Configuration .j ava:208) at com.airs.portal.entities.Configuration.findConfiguration(Configuration .j ava:175) at com.airs.portal.entities.Configuration.findConfiguration(Configuration .j ava:157) at com.airs.portal.entities.Configuration.findConfiguration(Configuration .j ava:143) at com.airs.portal.Bugman.bugReportImpl(Bugman.java:317) at com.airs.portal.Bugman.bugReport(Bugman.java:183) at com.airs.portal.Bugman.bugReport(Bugman.java:141) at com.airs.portal.entities.Configuration.entityFailure(Configuration.java: 123) at com.airs.utilities.server.Entity.failure(Entity.java:1235) at com.airs.utilities.server.Entity.find(Entity.java:1531) at com.airs.utilities.server.Entity.find(Entity.java:1376) at com.airs.portal.entities.TypeEncoding.makeSymbols(TypeEncoding.java:812) at com.airs.portal.entities.TypeRegistry.theTypeRegistry(TypeRegistry.java: 108) at com.airs.portNov 20, 2007 11:39:19 AM org.apache.catalina.core.ApplicationContext log When I did the kill -3 on the tomcat process I get this information: SocketTimeout daemon prio=10 tid=0xb4819000 nid=0x1d5e waiting on condition [0xb4d9..0xb4d90f20] java.lang.Thread.State: TIMED_WAITING (sleeping
RE: javax/mail/address
Thank you, I'll read the docs. -dustin -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 20, 2007 1:43 PM To: Tomcat Users List Subject: RE: javax/mail/address From: Dustin Fortin [mailto:[EMAIL PROTECTED] Subject: RE: javax/mail/address Should these database definitions be defined in the local contexts? If you want Tomcat to manage the database connections, then server.xml is appropriate. Resource name=jdbc/Admin auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/Admin There are no ResourceParams elements in Tomcat 6.0. I assumed most of the tomcat 5.0.25 params would be ok to port over, but I claim to be no expert. Bad assumption. Read the docs: http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.h tml - 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] - 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: javax/mail/address
From: Dustin Fortin [mailto:[EMAIL PROTECTED] Subject: RE: javax/mail/address Should these database definitions be defined in the local contexts? If you want Tomcat to manage the database connections, then server.xml is appropriate. Resource name=jdbc/Admin auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/Admin There are no ResourceParams elements in Tomcat 6.0. I assumed most of the tomcat 5.0.25 params would be ok to port over, but I claim to be no expert. Bad assumption. Read the docs: http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.h tml - 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]