Java 使用IBMWebSphere8.5在struts2中实现quartz调度程序,获取JNDI名称未找到异常

Java 使用IBMWebSphere8.5在struts2中实现quartz调度程序,获取JNDI名称未找到异常,java,struts2,websphere,Java,Struts2,Websphere,我正在尝试使用IBMWebSphere8.5通过Struts2实现quartz。当我试图获得数据库连接时,我得到的是javax.naming.NameNotFoundException。下面列出了简短的代码和错误日志详细信息 public class InvengerScheduledJob_3250 implements Job { @Override public void execute(JobExecutionContext arg0) throws JobEx

我正在尝试使用IBMWebSphere8.5通过Struts2实现quartz。当我试图获得数据库连接时,我得到的是
javax.naming.NameNotFoundException
。下面列出了简短的代码和错误日志详细信息

public class InvengerScheduledJob_3250 implements Job {
    
    @Override
    public void execute(JobExecutionContext arg0) throws JobExecutionException {
        try {
            ApplicationContext.getInstance().getConnection();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

// Singleton class
public class ApplicationContext {

public Connection getConnection() throws Exception{

      Connection conn=null;
      if ( dbProperties == null ) { 
         throw new Exception("Connection Properties not set.."); 
      }
      
      try {
         
         Context ctx = new InitialContext(); 
         DataSource ds = getDataSource();

         // Changed to get connection without username and password
         conn=ds.getConnection();
         conn.setAutoCommit(true);  
         
         
      }
      catch(Exception e) {
         isErrorOnLoad = true;
         PersistenceUtil.releaseConn(conn);
      }
      return conn;
   }
   
   public DataSource getDataSource() throws Exception {
       Context ctx = null;
       DataSource ds = null;
       try {
           ctx = new InitialContext(); 
           ds = (DataSource)ctx.lookup("java:comp/env/jdbc/ds1");
        } catch (Exception e) {
            e.printStackTrace();
        }
         
        return ds;
    }
   
 }
错误:

[21/10/20 22:01:20:006 PDT] 00000115 SystemOut     O ***************** InvengerScheduledJob_3250 execute ****************
[21/10/20 22:01:20:010 PDT] 000000cc SystemOut     O ***************** InvengerScheduledJob_3250 execute ****************
[21/10/20 22:01:20:015 PDT] 000000ee SystemOut     O ***************** InvengerScheduledJob_3250 execute ****************
[21/10/20 22:01:20:003 PDT] 00000115 SystemErr     R javax.naming.ConfigurationException: A JNDI operation on a "java:" name cannot be completed because the server runtime is not able to associate the operation's thread with any J2EE application component.  This condition can occur when the JNDI client using the "java:" name is not executed on the thread of a server application request.  Make sure that a J2EE application does not execute JNDI operations on "java:" names within static code blocks or in threads created by that J2EE application.  Such code does not necessarily run on the thread of a server application request and therefore is not supported by JNDI operations on "java:" names. [Root exception is javax.naming.NameNotFoundException: Name comp/env/jdbc not found in context "java:".]
[21/10/20 22:01:20:004 PDT] 00000115 SystemErr     R    at com.ibm.ws.naming.java.javaURLContextImpl.throwExceptionIfDefaultJavaNS(javaURLContextImpl.java:522)
[21/10/20 22:01:20:004 PDT] 00000115 SystemErr     R    at com.ibm.ws.naming.java.javaURLContextImpl.throwConfigurationExceptionWithDefaultJavaNS(javaURLContextImpl.java:552)
[21/10/20 22:01:20:004 PDT] 00000115 SystemErr     R    at com.ibm.ws.naming.java.javaURLContextImpl.lookupExt(javaURLContextImpl.java:481)
[21/10/20 22:01:20:004 PDT] 00000115 SystemErr     R    at com.ibm.ws.naming.java.javaURLContextRoot.lookupExt(javaURLContextRoot.java:485)
[21/10/20 22:01:20:004 PDT] 00000115 SystemErr     R    at com.ibm.ws.naming.java.javaURLContextRoot.lookup(javaURLContextRoot.java:370)
[21/10/20 22:01:20:004 PDT] 00000115 SystemErr     R    at org.apache.aries.jndi.DelegateContext.lookup(DelegateContext.java:161)
[21/10/20 22:01:20:004 PDT] 00000115 SystemErr     R    at javax.naming.InitialContext.lookup(InitialContext.java:423)
[21/10/20 22:01:20:004 PDT] 00000115 SystemErr     R    at com.safecofis.agilstream.webapplication.ApplicationContext.getDataSource(ApplicationContext.java:762)
[21/10/20 22:01:20:005 PDT] 00000115 SystemErr     R    at com.safecofis.agilstream.webapplication.ApplicationContext.getConnection(ApplicationContext.java:704)
[21/10/20 22:01:20:005 PDT] 00000115 SystemErr     R    at com.assurant.invenger.scheduler.InvengerScheduledJob_3250.execute(InvengerScheduledJob_3250.java:28)
[21/10/20 22:01:20:005 PDT] 00000115 SystemErr     R    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
[21/10/20 22:01:20:005 PDT] 00000115 SystemErr     R    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
[21/10/20 22:01:20:005 PDT] 00000115 SystemErr     R Caused by: javax.naming.NameNotFoundException: Name comp/env/jdbc not found in context "java:".
[21/10/20 22:01:20:005 PDT] 00000115 SystemErr     R    at com.ibm.ws.naming.ipbase.NameSpace.getParentCtxInternal(NameSpace.java:1969)
[21/10/20 22:01:20:005 PDT] 00000115 SystemErr     R    at com.ibm.ws.naming.ipbase.NameSpace.retrieveBinding(NameSpace.java:1376)
[21/10/20 22:01:20:005 PDT] 00000115 SystemErr     R    at com.ibm.ws.naming.ipbase.NameSpace.lookupInternal(NameSpace.java:1219)
[21/10/20 22:01:20:006 PDT] 00000115 SystemErr     R    at com.ibm.ws.naming.ipbase.NameSpace.lookup(NameSpace.java:1141)
[21/10/20 22:01:20:006 PDT] 00000115 SystemErr     R    at com.ibm.ws.naming.urlbase.UrlContextImpl.lookupExt(UrlContextImpl.java:1436)
[21/10/20 22:01:20:006 PDT] 00000115 SystemErr     R    at com.ibm.ws.naming.java.javaURLContextImpl.lookupExt(javaURLContextImpl.java:477)
[21/10/20 22:01:20:006 PDT] 00000115 SystemErr     R    ... 9 more
[21/10/20 22:01:20:007 PDT] 000000cc SystemErr     R javax.naming.ConfigurationException: A JNDI operation on a "java:" name cannot be completed because the server runtime is not able to associate the operation's thread with any J2EE application component.  This condition can occur when the JNDI client using the "java:" name is not executed on the thread of a server application request.  Make sure that a J2EE application does not execute JNDI operations on "java:" names within static code blocks or in threads created by that J2EE application.  Such code does not necessarily run on the thread of a server application request and therefore is not supported by JNDI operations on "java:" names. [Root exception is javax.naming.NameNotFoundException: Name comp/env/jdbc not found in context "java:".]
[21/10/20 22:01:20:007 PDT] 000000cc SystemErr     R    at com.ibm.ws.naming.java.javaURLContextImpl.throwExceptionIfDefaultJavaNS(javaURLContextImpl.java:522)
[21/10/20 22:01:20:007 PDT] 000000cc SystemErr     R    at com.ibm.ws.naming.java.javaURLContextImpl.throwConfigurationExceptionWithDefaultJavaNS(javaURLContextImpl.java:552)
[21/10/20 22:01:20:007 PDT] 000000cc SystemErr     R    at com.ibm.ws.naming.java.javaURLContextImpl.lookupExt(javaURLContextImpl.java:481)
[21/10/20 22:01:20:007 PDT] 000000cc SystemErr     R    at com.ibm.ws.naming.java.javaURLContextRoot.lookupExt(javaURLContextRoot.java:485)
[21/10/20 22:01:20:008 PDT] 000000cc SystemErr     R    at com.ibm.ws.naming.java.javaURLContextRoot.lookup(javaURLContextRoot.java:370)
[21/10/20 22:01:20:008 PDT] 000000cc SystemErr     R    at org.apache.aries.jndi.DelegateContext.lookup(DelegateContext.java:161)
[21/10/20 22:01:20:008 PDT] 000000cc SystemErr     R    at javax.naming.InitialContext.lookup(InitialContext.java:423)
[21/10/20 22:01:20:008 PDT] 000000cc SystemErr     R    at com.safecofis.agilstream.webapplication.ApplicationContext.getDataSource(ApplicationContext.java:762)
[21/10/20 22:01:20:008 PDT] 000000cc SystemErr     R    at com.safecofis.agilstream.webapplication.ApplicationContext.getConnection(ApplicationContext.java:704)
[21/10/20 22:01:20:008 PDT] 000000cc SystemErr     R    at com.assurant.invenger.scheduler.InvengerScheduledJob_3250.execute(InvengerScheduledJob_3250.java:28)
[21/10/20 22:01:20:008 PDT] 000000cc SystemErr     R    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
[21/10/20 22:01:20:008 PDT] 000000cc SystemErr     R    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
[21/10/20 22:01:20:008 PDT] 000000cc SystemErr     R Caused by: javax.naming.NameNotFoundException: Name comp/env/jdbc not found in context "java:".
[21/10/20 22:01:20:009 PDT] 000000cc SystemErr     R    at com.ibm.ws.naming.ipbase.NameSpace.getParentCtxInternal(NameSpace.java:1969)
[21/10/20 22:01:20:009 PDT] 000000cc SystemErr     R    at com.ibm.ws.naming.ipbase.NameSpace.retrieveBinding(NameSpace.java:1376)
[21/10/20 22:01:20:009 PDT] 000000cc SystemErr     R    at com.ibm.ws.naming.ipbase.NameSpace.lookupInternal(NameSpace.java:1219)
[21/10/20 22:01:20:009 PDT] 000000cc SystemErr     R    at com.ibm.ws.naming.ipbase.NameSpace.lookup(NameSpace.java:1141)
[21/10/20 22:01:20:009 PDT] 000000cc SystemErr     R    at com.ibm.ws.naming.urlbase.UrlContextImpl.lookupExt(UrlContextImpl.java:1436)
[21/10/20 22:01:20:009 PDT] 000000cc SystemErr     R    at com.ibm.ws.naming.java.javaURLContextImpl.lookupExt(javaURLContextImpl.java:477)
[21/10/20 22:01:20:009 PDT] 000000cc SystemErr     R    ... 9 more
[21/10/20 22:01:20:012 PDT] 000000ee SystemErr     R javax.naming.ConfigurationException: A JNDI operation on a "java:" name cannot be completed because the server runtime is not able to associate the operation's thread with any J2EE application component.  This condition can occur when the JNDI client using the "java:" name is not executed on the thread of a server application request.  Make sure that a J2EE application does not execute JNDI operations on "java:" names within static code blocks or in threads created by that J2EE application.  Such code does not necessarily run on the thread of a server application request and therefore is not supported by JNDI operations on "java:" names. [Root exception is javax.naming.NameNotFoundException: Name comp/env/jdbc not found in context "java:".]
[21/10/20 22:01:20:013 PDT] 000000ee SystemErr     R    at com.ibm.ws.naming.java.javaURLContextImpl.throwExceptionIfDefaultJavaNS(javaURLContextImpl.java:522)
[21/10/20 22:01:20:013 PDT] 000000ee SystemErr     R    at com.ibm.ws.naming.java.javaURLContextImpl.throwConfigurationExceptionWithDefaultJavaNS(javaURLContextImpl.java:552)
[21/10/20 22:01:20:013 PDT] 000000ee SystemErr     R    at com.ibm.ws.naming.java.javaURLContextImpl.lookupExt(javaURLContextImpl.java:481)
[21/10/20 22:01:20:013 PDT] 000000ee SystemErr     R    at com.ibm.ws.naming.java.javaURLContextRoot.lookupExt(javaURLContextRoot.java:485)
[21/10/20 22:01:20:013 PDT] 000000ee SystemErr     R    at com.ibm.ws.naming.java.javaURLContextRoot.lookup(javaURLContextRoot.java:370)
[21/10/20 22:01:20:013 PDT] 000000ee SystemErr     R    at org.apache.aries.jndi.DelegateContext.lookup(DelegateContext.java:161)
[21/10/20 22:01:20:013 PDT] 000000ee SystemErr     R    at javax.naming.InitialContext.lookup(InitialContext.java:423)
[21/10/20 22:01:20:013 PDT] 000000ee SystemErr     R    at com.safecofis.agilstream.webapplication.ApplicationContext.getDataSource(ApplicationContext.java:762)
[21/10/20 22:01:20:014 PDT] 000000ee SystemErr     R    at com.safecofis.agilstream.webapplication.ApplicationContext.getConnection(ApplicationContext.java:704)
[21/10/20 22:01:20:014 PDT] 000000ee SystemErr     R    at com.assurant.invenger.scheduler.InvengerScheduledJob_3250.execute(InvengerScheduledJob_3250.java:28)
[21/10/20 22:01:20:014 PDT] 000000ee SystemErr     R    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
[21/10/20 22:01:20:014 PDT] 000000ee SystemErr     R    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
[21/10/20 22:01:20:014 PDT] 000000ee SystemErr     R Caused by: javax.naming.NameNotFoundException: Name comp/env/jdbc not found in context "java:".
[21/10/20 22:01:20:014 PDT] 000000ee SystemErr     R    at com.ibm.ws.naming.ipbase.NameSpace.getParentCtxInternal(NameSpace.java:1969)
[21/10/20 22:01:20:014 PDT] 000000ee SystemErr     R    at com.ibm.ws.naming.ipbase.NameSpace.retrieveBinding(NameSpace.java:1376)
[21/10/20 22:01:20:014 PDT] 000000ee SystemErr     R    at com.ibm.ws.naming.ipbase.NameSpace.lookupInternal(NameSpace.java:1219)
[21/10/20 22:01:20:014 PDT] 000000ee SystemErr     R    at com.ibm.ws.naming.ipbase.NameSpace.lookup(NameSpace.java:1141)
[21/10/20 22:01:20:015 PDT] 000000ee SystemErr     R    at com.ibm.ws.naming.urlbase.UrlContextImpl.lookupExt(UrlContextImpl.java:1436)
[21/10/20 22:01:20:015 PDT] 000000ee SystemErr     R    at com.ibm.ws.naming.java.javaURLContextImpl.lookupExt(javaURLContextImpl.java:477)
[21/10/20 22:01:20:015 PDT] 000000ee SystemErr     R    ... 9 more

您的quartz配置无效,它仍然使用内部线程而不是托管线程。看看这个。您可以将您的石英配置添加到问题中。我不确定缺少哪些配置。我已经按照给定链接中的说明进行了配置。在web.xml和ibm-web-bnd.xmi中完成配置。唯一的问题是将quartz属性保存在quartz.properties中,我已经保存在applicationResources.properties文件中。实际上,如果我在资源文件夹下创建quartz.properties文件,调度程序将无法工作。请建议
[21/10/20 22:01:20:006 PDT] 00000115 SystemOut     O ***************** InvengerScheduledJob_3250 execute ****************
[21/10/20 22:01:20:010 PDT] 000000cc SystemOut     O ***************** InvengerScheduledJob_3250 execute ****************
[21/10/20 22:01:20:015 PDT] 000000ee SystemOut     O ***************** InvengerScheduledJob_3250 execute ****************
[21/10/20 22:01:20:003 PDT] 00000115 SystemErr     R javax.naming.ConfigurationException: A JNDI operation on a "java:" name cannot be completed because the server runtime is not able to associate the operation's thread with any J2EE application component.  This condition can occur when the JNDI client using the "java:" name is not executed on the thread of a server application request.  Make sure that a J2EE application does not execute JNDI operations on "java:" names within static code blocks or in threads created by that J2EE application.  Such code does not necessarily run on the thread of a server application request and therefore is not supported by JNDI operations on "java:" names. [Root exception is javax.naming.NameNotFoundException: Name comp/env/jdbc not found in context "java:".]
[21/10/20 22:01:20:004 PDT] 00000115 SystemErr     R    at com.ibm.ws.naming.java.javaURLContextImpl.throwExceptionIfDefaultJavaNS(javaURLContextImpl.java:522)
[21/10/20 22:01:20:004 PDT] 00000115 SystemErr     R    at com.ibm.ws.naming.java.javaURLContextImpl.throwConfigurationExceptionWithDefaultJavaNS(javaURLContextImpl.java:552)
[21/10/20 22:01:20:004 PDT] 00000115 SystemErr     R    at com.ibm.ws.naming.java.javaURLContextImpl.lookupExt(javaURLContextImpl.java:481)
[21/10/20 22:01:20:004 PDT] 00000115 SystemErr     R    at com.ibm.ws.naming.java.javaURLContextRoot.lookupExt(javaURLContextRoot.java:485)
[21/10/20 22:01:20:004 PDT] 00000115 SystemErr     R    at com.ibm.ws.naming.java.javaURLContextRoot.lookup(javaURLContextRoot.java:370)
[21/10/20 22:01:20:004 PDT] 00000115 SystemErr     R    at org.apache.aries.jndi.DelegateContext.lookup(DelegateContext.java:161)
[21/10/20 22:01:20:004 PDT] 00000115 SystemErr     R    at javax.naming.InitialContext.lookup(InitialContext.java:423)
[21/10/20 22:01:20:004 PDT] 00000115 SystemErr     R    at com.safecofis.agilstream.webapplication.ApplicationContext.getDataSource(ApplicationContext.java:762)
[21/10/20 22:01:20:005 PDT] 00000115 SystemErr     R    at com.safecofis.agilstream.webapplication.ApplicationContext.getConnection(ApplicationContext.java:704)
[21/10/20 22:01:20:005 PDT] 00000115 SystemErr     R    at com.assurant.invenger.scheduler.InvengerScheduledJob_3250.execute(InvengerScheduledJob_3250.java:28)
[21/10/20 22:01:20:005 PDT] 00000115 SystemErr     R    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
[21/10/20 22:01:20:005 PDT] 00000115 SystemErr     R    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
[21/10/20 22:01:20:005 PDT] 00000115 SystemErr     R Caused by: javax.naming.NameNotFoundException: Name comp/env/jdbc not found in context "java:".
[21/10/20 22:01:20:005 PDT] 00000115 SystemErr     R    at com.ibm.ws.naming.ipbase.NameSpace.getParentCtxInternal(NameSpace.java:1969)
[21/10/20 22:01:20:005 PDT] 00000115 SystemErr     R    at com.ibm.ws.naming.ipbase.NameSpace.retrieveBinding(NameSpace.java:1376)
[21/10/20 22:01:20:005 PDT] 00000115 SystemErr     R    at com.ibm.ws.naming.ipbase.NameSpace.lookupInternal(NameSpace.java:1219)
[21/10/20 22:01:20:006 PDT] 00000115 SystemErr     R    at com.ibm.ws.naming.ipbase.NameSpace.lookup(NameSpace.java:1141)
[21/10/20 22:01:20:006 PDT] 00000115 SystemErr     R    at com.ibm.ws.naming.urlbase.UrlContextImpl.lookupExt(UrlContextImpl.java:1436)
[21/10/20 22:01:20:006 PDT] 00000115 SystemErr     R    at com.ibm.ws.naming.java.javaURLContextImpl.lookupExt(javaURLContextImpl.java:477)
[21/10/20 22:01:20:006 PDT] 00000115 SystemErr     R    ... 9 more
[21/10/20 22:01:20:007 PDT] 000000cc SystemErr     R javax.naming.ConfigurationException: A JNDI operation on a "java:" name cannot be completed because the server runtime is not able to associate the operation's thread with any J2EE application component.  This condition can occur when the JNDI client using the "java:" name is not executed on the thread of a server application request.  Make sure that a J2EE application does not execute JNDI operations on "java:" names within static code blocks or in threads created by that J2EE application.  Such code does not necessarily run on the thread of a server application request and therefore is not supported by JNDI operations on "java:" names. [Root exception is javax.naming.NameNotFoundException: Name comp/env/jdbc not found in context "java:".]
[21/10/20 22:01:20:007 PDT] 000000cc SystemErr     R    at com.ibm.ws.naming.java.javaURLContextImpl.throwExceptionIfDefaultJavaNS(javaURLContextImpl.java:522)
[21/10/20 22:01:20:007 PDT] 000000cc SystemErr     R    at com.ibm.ws.naming.java.javaURLContextImpl.throwConfigurationExceptionWithDefaultJavaNS(javaURLContextImpl.java:552)
[21/10/20 22:01:20:007 PDT] 000000cc SystemErr     R    at com.ibm.ws.naming.java.javaURLContextImpl.lookupExt(javaURLContextImpl.java:481)
[21/10/20 22:01:20:007 PDT] 000000cc SystemErr     R    at com.ibm.ws.naming.java.javaURLContextRoot.lookupExt(javaURLContextRoot.java:485)
[21/10/20 22:01:20:008 PDT] 000000cc SystemErr     R    at com.ibm.ws.naming.java.javaURLContextRoot.lookup(javaURLContextRoot.java:370)
[21/10/20 22:01:20:008 PDT] 000000cc SystemErr     R    at org.apache.aries.jndi.DelegateContext.lookup(DelegateContext.java:161)
[21/10/20 22:01:20:008 PDT] 000000cc SystemErr     R    at javax.naming.InitialContext.lookup(InitialContext.java:423)
[21/10/20 22:01:20:008 PDT] 000000cc SystemErr     R    at com.safecofis.agilstream.webapplication.ApplicationContext.getDataSource(ApplicationContext.java:762)
[21/10/20 22:01:20:008 PDT] 000000cc SystemErr     R    at com.safecofis.agilstream.webapplication.ApplicationContext.getConnection(ApplicationContext.java:704)
[21/10/20 22:01:20:008 PDT] 000000cc SystemErr     R    at com.assurant.invenger.scheduler.InvengerScheduledJob_3250.execute(InvengerScheduledJob_3250.java:28)
[21/10/20 22:01:20:008 PDT] 000000cc SystemErr     R    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
[21/10/20 22:01:20:008 PDT] 000000cc SystemErr     R    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
[21/10/20 22:01:20:008 PDT] 000000cc SystemErr     R Caused by: javax.naming.NameNotFoundException: Name comp/env/jdbc not found in context "java:".
[21/10/20 22:01:20:009 PDT] 000000cc SystemErr     R    at com.ibm.ws.naming.ipbase.NameSpace.getParentCtxInternal(NameSpace.java:1969)
[21/10/20 22:01:20:009 PDT] 000000cc SystemErr     R    at com.ibm.ws.naming.ipbase.NameSpace.retrieveBinding(NameSpace.java:1376)
[21/10/20 22:01:20:009 PDT] 000000cc SystemErr     R    at com.ibm.ws.naming.ipbase.NameSpace.lookupInternal(NameSpace.java:1219)
[21/10/20 22:01:20:009 PDT] 000000cc SystemErr     R    at com.ibm.ws.naming.ipbase.NameSpace.lookup(NameSpace.java:1141)
[21/10/20 22:01:20:009 PDT] 000000cc SystemErr     R    at com.ibm.ws.naming.urlbase.UrlContextImpl.lookupExt(UrlContextImpl.java:1436)
[21/10/20 22:01:20:009 PDT] 000000cc SystemErr     R    at com.ibm.ws.naming.java.javaURLContextImpl.lookupExt(javaURLContextImpl.java:477)
[21/10/20 22:01:20:009 PDT] 000000cc SystemErr     R    ... 9 more
[21/10/20 22:01:20:012 PDT] 000000ee SystemErr     R javax.naming.ConfigurationException: A JNDI operation on a "java:" name cannot be completed because the server runtime is not able to associate the operation's thread with any J2EE application component.  This condition can occur when the JNDI client using the "java:" name is not executed on the thread of a server application request.  Make sure that a J2EE application does not execute JNDI operations on "java:" names within static code blocks or in threads created by that J2EE application.  Such code does not necessarily run on the thread of a server application request and therefore is not supported by JNDI operations on "java:" names. [Root exception is javax.naming.NameNotFoundException: Name comp/env/jdbc not found in context "java:".]
[21/10/20 22:01:20:013 PDT] 000000ee SystemErr     R    at com.ibm.ws.naming.java.javaURLContextImpl.throwExceptionIfDefaultJavaNS(javaURLContextImpl.java:522)
[21/10/20 22:01:20:013 PDT] 000000ee SystemErr     R    at com.ibm.ws.naming.java.javaURLContextImpl.throwConfigurationExceptionWithDefaultJavaNS(javaURLContextImpl.java:552)
[21/10/20 22:01:20:013 PDT] 000000ee SystemErr     R    at com.ibm.ws.naming.java.javaURLContextImpl.lookupExt(javaURLContextImpl.java:481)
[21/10/20 22:01:20:013 PDT] 000000ee SystemErr     R    at com.ibm.ws.naming.java.javaURLContextRoot.lookupExt(javaURLContextRoot.java:485)
[21/10/20 22:01:20:013 PDT] 000000ee SystemErr     R    at com.ibm.ws.naming.java.javaURLContextRoot.lookup(javaURLContextRoot.java:370)
[21/10/20 22:01:20:013 PDT] 000000ee SystemErr     R    at org.apache.aries.jndi.DelegateContext.lookup(DelegateContext.java:161)
[21/10/20 22:01:20:013 PDT] 000000ee SystemErr     R    at javax.naming.InitialContext.lookup(InitialContext.java:423)
[21/10/20 22:01:20:013 PDT] 000000ee SystemErr     R    at com.safecofis.agilstream.webapplication.ApplicationContext.getDataSource(ApplicationContext.java:762)
[21/10/20 22:01:20:014 PDT] 000000ee SystemErr     R    at com.safecofis.agilstream.webapplication.ApplicationContext.getConnection(ApplicationContext.java:704)
[21/10/20 22:01:20:014 PDT] 000000ee SystemErr     R    at com.assurant.invenger.scheduler.InvengerScheduledJob_3250.execute(InvengerScheduledJob_3250.java:28)
[21/10/20 22:01:20:014 PDT] 000000ee SystemErr     R    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
[21/10/20 22:01:20:014 PDT] 000000ee SystemErr     R    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
[21/10/20 22:01:20:014 PDT] 000000ee SystemErr     R Caused by: javax.naming.NameNotFoundException: Name comp/env/jdbc not found in context "java:".
[21/10/20 22:01:20:014 PDT] 000000ee SystemErr     R    at com.ibm.ws.naming.ipbase.NameSpace.getParentCtxInternal(NameSpace.java:1969)
[21/10/20 22:01:20:014 PDT] 000000ee SystemErr     R    at com.ibm.ws.naming.ipbase.NameSpace.retrieveBinding(NameSpace.java:1376)
[21/10/20 22:01:20:014 PDT] 000000ee SystemErr     R    at com.ibm.ws.naming.ipbase.NameSpace.lookupInternal(NameSpace.java:1219)
[21/10/20 22:01:20:014 PDT] 000000ee SystemErr     R    at com.ibm.ws.naming.ipbase.NameSpace.lookup(NameSpace.java:1141)
[21/10/20 22:01:20:015 PDT] 000000ee SystemErr     R    at com.ibm.ws.naming.urlbase.UrlContextImpl.lookupExt(UrlContextImpl.java:1436)
[21/10/20 22:01:20:015 PDT] 000000ee SystemErr     R    at com.ibm.ws.naming.java.javaURLContextImpl.lookupExt(javaURLContextImpl.java:477)
[21/10/20 22:01:20:015 PDT] 000000ee SystemErr     R    ... 9 more