From users-return-190847-apmail-tomcat-users-archive=tomcat.apache.org@tomcat.apache.org Mon Feb 02 03:43:45 2009 Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 31004 invoked from network); 2 Feb 2009 03:43:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Feb 2009 03:43:45 -0000 Received: (qmail 28026 invoked by uid 500); 2 Feb 2009 03:43:32 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 27994 invoked by uid 500); 2 Feb 2009 03:43:32 -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 27983 invoked by uid 99); 2 Feb 2009 03:43:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Feb 2009 19:43:32 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mgainty@hotmail.com designates 65.55.111.110 as permitted sender) Received: from [65.55.111.110] (HELO blu0-omc2-s35.blu0.hotmail.com) (65.55.111.110) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Feb 2009 03:43:20 +0000 Received: from BLU142-W21 ([65.55.111.72]) by blu0-omc2-s35.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Sun, 1 Feb 2009 19:42:59 -0800 Message-ID: Content-Type: multipart/alternative; boundary="_df9ee958-837e-46de-93b5-432b0cd1868f_" X-Originating-IP: [151.204.240.36] From: Martin Gainty To: Tomcat Users List Subject: RE: UnsatisfiedLinkError in Windows Service (tomcat6w/5w.exe) Date: Sun, 1 Feb 2009 22:42:59 -0500 Importance: Normal In-Reply-To: <20090202015134.GC2160@wladimir> References: <20090121005516.GC676@wladimir> <0AAE5AB84B013E45A7B61CB66943C17215A864AAA7@USEA-EXCH7.na.uis.unisys.com> <20090122002753.GD1572@wladimir> <427155180901212051r7bf89965ia6f11b7250309428@mail.gmail.com> <20090123004922.GA328@wladimir> <0AAE5AB84B013E45A7B61CB66943C17215A86E40F3@USEA-EXCH7.na.uis.unisys.com> <20090128233541.GB2032@wladimir> <0AAE5AB84B013E45A7B61CB66943C17215B5DCFF1D@USEA-EXCH7.na.uis.unisys.com> <20090202015134.GC2160@wladimir> MIME-Version: 1.0 X-OriginalArrivalTime: 02 Feb 2009 03:42:59.0465 (UTC) FILETIME=[57A79790:01C984E8] X-Virus-Checked: Checked by ClamAV on apache.org --_df9ee958-837e-46de-93b5-432b0cd1868f_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable saw this in the 2.2.69 readme.txt did you use cscript to config the environ= ment? 1.2 Configuring The Source -------------------------- The configuration script accepts numerous options. Some of these affect features which will be available in the compiled software=2C others affect the way the software is built and installed. To see a full list of options supported by the configuration script=2C run cscript configure.js help ? Martin=20 ______________________________________________=20 Disclaimer and confidentiality note=20 Everything in this e-mail and any attachments relates to the official busin= ess of Sender. This transmission is of a confidential nature and Sender doe= s not endorse distribution to any party other than intended recipient. Send= er does not necessarily endorse content contained within this transmission.= =20 > Date: Mon=2C 2 Feb 2009 02:51:34 +0100 > From: milu71@gmx.de > To: users@tomcat.apache.org > Subject: Re: UnsatisfiedLinkError in Windows Service (tomcat6w/5w.exe) >=20 > Caldarale=2C Charles R schrieb am 29.01.2009 um 22:45:40 (-0600): > > > From: Michael Ludwig [mailto:milu71@gmx.de] > > > Subject: Re: UnsatisfiedLinkError in Windows Service (tomcat6w/5w.exe= ) > > > > > > -Djava.library.path=3DC:\Server=3BC:\src\BerkeleyDbXml\dbxml-2.4.1 > > > 6\bin\debug=3B... > >=20 > > Is *src* really the right place to find the DLLs? >=20 > Hi Charles. Yes=2C it is. I created C:\src to put source code there. > I compiled that souce code=2C and the DLLs go to the bin\debug > subdirectory. >=20 > > I realize it's long=2C but can you post the full string? >=20 > Trying to reproduce this error=2C I noticed to my surprise that it > wouldn't occur. >=20 > It turns out that the error only occurs for some of the DLLs. >=20 > libdb_java46d.dll # can be in java.library.path or PATH > libdbxml_java24d.dll # ditto >=20 > libdb46d.dll # must reside in a PATH directory > libdbxml24d.dll # ditto >=20 > xerces-c_2_8D.dll # ditto > xqilla21d.dll # ditto >=20 > The Java bridge DLLs (or whatever they're called) can be moved to a > directory only contained in java.library.path=2C but not in PATH. The > other libraries must be in a PATH directory in order to be loaded. >=20 > > > So I guess there is something wrong with Tomcat here. >=20 > So I now guess I was wrong here=2C and of course you were right. Sorry fo= r > blaming Tomcat. The problem seems to be with how the libdb(xml)_java > libraries load other libraries. So this is probably related to BDB and > the Windows API=2C or the build - but not to Tomcat. >=20 > > I can't see how=2C unless there's something really odd going on with th= e > > classloader hierarchy. Can you post the full stack trace of the > > UnsatisfiedLinkError? I wonder if there's a custom classloader that's > > getting in the way=2C since I don't have any problems with Tomcat's set > > of classloaders accessing native libraries specified by the > > java.library.path setting. >=20 > Here's a stack trace=2C in case you still think it is relevant. The error > message mentions the *_java library=2C but I think this is only because > that library has a dependency on the libdb46=2C and that one isn't found= =2C > which the error message does not reveal. >=20 > Michael Ludwig >=20 > 22.01.2009 23:14:12 org.apache.catalina.core.StandardContext listenerStar= t > SCHWERWIEGEND: Exception sending context initialized event to listener in= stance of class milu.dbxml.DbXmlInitExit > java.lang.UnsatisfiedLinkError: no libdb_java46 in java.library.path > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1709) > at java.lang.Runtime.loadLibrary0(Runtime.java:823) > at java.lang.System.loadLibrary(System.java:1030) > at com.sleepycat.db.internal.db_javaJNI.(db_javaJNI.java:38) > at com.sleepycat.db.internal.DbEnv.(DbEnv.java:264) > at com.sleepycat.db.EnvironmentConfig.createEnvironment(EnvironmentConf= ig.java:1023) > at com.sleepycat.db.EnvironmentConfig.openEnvironment(EnvironmentConfig= .java:976) > at com.sleepycat.db.Environment.(Environment.java:29) > at milu.dbxml.DbXmlInitExit.contextInitialized(DbXmlInitExit.java:34) > at org.apache.catalina.core.StandardContext.listenerStart(StandardConte= xt.java:3843) > at org.apache.catalina.core.StandardContext.start(StandardContext.java:= 4342) > at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBas= e.java:791) > at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:7= 71) > at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525= ) > at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.ja= va:926) > at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.= java:889) > at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:49= 2) > at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149) > at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.jav= a:311) > at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecyc= leSupport.java:117) > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053= ) > at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045= ) > at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:44= 3) > at org.apache.catalina.core.StandardService.start(StandardService.java:= 516) > at org.apache.catalina.core.StandardServer.start(StandardServer.java:71= 0) > at org.apache.catalina.startup.Catalina.start(Catalina.java:578) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl= .java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce= ssorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe=2C e-mail: users-unsubscribe@tomcat.apache.org > For additional commands=2C e-mail: users-help@tomcat.apache.org >=20 _________________________________________________________________ Windows Live=99 Hotmail=AE=85more than just e-mail.=20 http://windowslive.com/howitworks?ocid=3DTXT_TAGLM_WL_t2_hm_justgotbetter_h= owitworks_012009= --_df9ee958-837e-46de-93b5-432b0cd1868f_--