Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7092DDC18 for ; Wed, 8 Aug 2012 14:42:05 +0000 (UTC) Received: (qmail 19389 invoked by uid 500); 8 Aug 2012 14:42:01 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 19279 invoked by uid 500); 8 Aug 2012 14:42:01 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 19268 invoked by uid 99); 8 Aug 2012 14:42:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Aug 2012 14:42:01 +0000 X-ASF-Spam-Status: No, hits=0.3 required=5.0 tests=FREEMAIL_REPLY,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of knst.kolinko@gmail.com designates 209.85.212.45 as permitted sender) Received: from [209.85.212.45] (HELO mail-vb0-f45.google.com) (209.85.212.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Aug 2012 14:41:55 +0000 Received: by vbip1 with SMTP id p1so1049613vbi.18 for ; Wed, 08 Aug 2012 07:41:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=3Nzc+m1LXEshx5w7vKPlf6AJN0HxRzHMtNhuR2uGuqI=; b=hCZRgWbTmGW97LPwun0rvyY/jURUCzquy4s7ZoFfnYaGDhIP9bn05zryZciBagmBmu HrKYgAaOPrb4ZxQadkZTMzKq9058qFKIdOzT5UVYqt3Sub6CVj+mlCLrP6cNcREWBCmJ 1HJeS9ur7BYZ7oQdH2Hnfda4+ieTN5ook+ZFq3J3uH3q/gHZs+MHX7ODJwuBcGsIl1lV GUKIZHvbNOG3XoW1h7IrxeCqZd+gUJKLcXjraNJfFut4qphcA2qTg2cvreHOefnBR/ax lWWDx59kb0QsO4kvnCys38MEW7gRPl6yuczT9ydZNyCGk3G2iKYnN56E6Tw4jBAVysRA fzJw== MIME-Version: 1.0 Received: by 10.220.214.205 with SMTP id hb13mr14128390vcb.28.1344436894383; Wed, 08 Aug 2012 07:41:34 -0700 (PDT) Received: by 10.58.190.135 with HTTP; Wed, 8 Aug 2012 07:41:34 -0700 (PDT) In-Reply-To: <50226738.9000506@verizon.net> References: <50226738.9000506@verizon.net> Date: Wed, 8 Aug 2012 18:41:34 +0400 Message-ID: Subject: Re: Problem with tomcat 7 and java ld_library_path under centos 6 using IANYWHERE JDBC DRIVER From: Konstantin Kolinko To: Tomcat Users List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org 2012/8/8 David kerber : > I use SQLA12, though on windows rather than Linux, and I think you have the > wrong value for your driver clause. I think you need > "ianywhere.ml.jdbcodbc.IDriver", rather than the file name. > > The driver file should usually be in your WEB-INF/lib directory. > > I'd also suggest using the sybase newsgroups rather than tomcat for this. > 1. A native library (.so/.dll) cannot be in WEB-INF/lib, because it can be loaded int JVM only once, and web applications can be restarted, undeployed etc. 2. Call System.getProperty("java.library.path"); and print its value. > > On 8/8/2012 9:06 AM, CHRISTOS STAVRINOU wrote: >> >> Problem with tomcat 7 and java ld_library_path under centos 6 using >> IANYWHERE JDBC DRIVER >> >> At what path I must copy the file dbjodbc12.so? What is the correct >> configuration? >> >> How I can configure the java.library.path under under centos 6 and >> tomcat 7 in order to fix the problem? >> >> Please help me. If you have any answers please email me to >> stavrinc@gmail.com >> >> Thanks in advance >> >> The connection string is as follows: >> >> "jdbc:ianywhere:driver=libdbodbc12.so;ENG=host;DBN=database" >> But when running the program, I get the following exception (with the >> relevant stack trace) - >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> dbjodbc12 in java.library.path >> at >> java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682) >> at java.lang.Runtime.loadLibrary0(Runtime.java:823) >> at java.lang.System.loadLibrary(System.java:1030) >> at >> ianywhere.ml.jdbcodbc.IDriver.try_load(IDriver.java:247) >> at >> ianywhere.ml.jdbcodbc.IDriver.(IDriver.java:216) >> at java.lang.Class.forName0(Native Method) >> at java.lang.Class.forName(Class.java:169) >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >> For additional commands, e-mail: users-help@tomcat.apache.org >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org