Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 6849 invoked from network); 7 Jun 2004 03:33:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 7 Jun 2004 03:33:31 -0000 Received: (qmail 13137 invoked by uid 500); 7 Jun 2004 03:33:08 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 12854 invoked by uid 500); 7 Jun 2004 03:33:06 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 12838 invoked by uid 99); 7 Jun 2004 03:33:06 -0000 Received: from [203.59.3.37] (HELO mail.iinet.net.au) (203.59.3.37) by apache.org (qpsmtpd/0.27.1) with SMTP; Sun, 06 Jun 2004 20:33:05 -0700 Received: (qmail 5854 invoked from network); 7 Jun 2004 03:32:53 -0000 Received: from unknown (HELO TIM) (203.59.216.49) by mail.iinet.net.au with SMTP; 7 Jun 2004 03:32:51 -0000 Message-ID: <002401c44c40$21230e60$0a00000a@TIM> From: "Tim de Boer" To: Subject: Problems with InitialContext and threads Date: Mon, 7 Jun 2004 11:32:58 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0021_01C44C83.2F24E3B0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0021_01C44C83.2F24E3B0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi All I have a problem with my Tomcat 4.1.24 installation which I'm hoping = someone may have an answer for. I have a little quartz scheduler running = in Tomcat which I start with a servlet (previously started with a = listener but switched to servlet in the hope it might fix things - both = ways produced the same error). When I start Tomcat up in my development mode which has the = configuration shown below all works fine. When I start up in production = mode however there seems to be problems with *some* Quartz scheduler = threads picking up the initialContext??? I have a little utility for printing out the name tree and the output = varies between quartz threads?? Here is an example of the output =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D DEBUG[DefaultQuartzScheduler_Worker-4] HibernateUtils:79 - Beginning = transaction ERROR[DefaultQuartzScheduler_Worker-2] TomcatUtils:46 - = javax.naming.NameNotFoundException: Name java: is not bound in this = Context DEBUG[DefaultQuartzScheduler_Worker-6] TomcatUtils:42 - = >>>>>>>>>>>>>>>>>>>>>>>> PRINTING NAME TREE >>>>>>>>>>>>>>>>>>>>>>>> FINISHED PRINTING NAME TREE DEBUG[DefaultQuartzScheduler_Worker-7] HibernateUtils:79 - Beginning = transaction DEBUG[DefaultQuartzScheduler_Worker-2] HibernateUtils:79 - Beginning = transaction DEBUG[DefaultQuartzScheduler_Worker-8] HibernateUtils:79 - Beginning = transaction DEBUG[DefaultQuartzScheduler_Worker-5] HibernateUtils:79 - Beginning = transaction ERROR[DefaultQuartzScheduler_Worker-9] TomcatUtils:40 - = javax.naming.NameNotFoundException: Name java: is not bound in this = Context DEBUG[DefaultQuartzScheduler_Worker-9] HibernateUtils:79 - Beginning = transaction Sending Mail! Sending Mail! Sending Mail! Sending Mail! DEBUG[DefaultQuartzScheduler_Worker-1] TomcatUtils:48 - = >>>>>>>>>>>>>>>>>>>>>>>> PRINTING NAME TREE >>>>>>>>>>>>>>>>>>>>>>>> FINISHED PRINTING NAME TREE DEBUG[DefaultQuartzScheduler_Worker-6] HibernateUtils:79 - Beginning = transaction Sending Mail! DEBUG[DefaultQuartzScheduler_Worker-0] TomcatUtils:42 - = >>>>>>>>>>>>>>>>>>>>>>>> PRINTING NAME TREE >>>>>>>>>>>>>>>>>>>>>>>> FINISHED PRINTING NAME TREE Sending Mail! Sending Mail! DEBUG[DefaultQuartzScheduler_Worker-2] TomcatUtils:42 - = >>>>>>>>>>>>>>>>>>>>>>>> PRINTING NAME TREE -comp --UserTransaction Couldn't traverse any part of name java:/comp/\UserTransaction: Name is = not bound to a Context --env ---jdbc ----ln Couldn't traverse any part of name java:/comp//env//jdbc/\ln: Name is = not bound to a Context --Resources ---WEB-INF ----classes (..and so on) Here is my production config... =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D factory = org.apache.commons.dbcp.BasicDataSourceFactory url jdbc:hsqldb:hsql://localhost driverClassName org.hsqldb.jdbcDriver username sa password maxWait 3000 maxIdle 100 maxActive 10 =20 Here is my development config... =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Tim factory = org.apache.commons.dbcp.BasicDataSourceFactory url jdbc:hsqldb:hsql://localhost driverClassName org.hsqldb.jdbcDriver username sa password maxWait 3000 maxIdle 100 maxActive 10 =20 =20 =20 =20 ------=_NextPart_000_0021_01C44C83.2F24E3B0--