Not working in Weblogic 10.

63 views
Skip to first unread message

Rhys Parker

unread,
Feb 17, 2013, 7:17:47 PM2/17/13
to xer...@googlegroups.com
I have deployed a web app WAR using sqlite as the DB. This works fine in Tomcat, however when attempting to use via Weblogic 10.0 the stream crashes once any connection to DB is attempted.

Is this a bug? Or is this .jar not compatible with WLS?

Stack Trace:

Stack 0: start=0x760000, end=0x784000, guards=0x765000 (ok), forbidden=0x763000
Thread Stack Trace:
    at do_lookup+156(dl-lookup.c)@0x4c13bc
    at _dl_lookup_symbol+227()@0x4c0103
    at _dl_relocate_object+3593(dl-reloc.c)@0x4c2c39
    at dl_open_worker+2248(dl-open.c)@0x95f628
    at _dl_catch_error+118()@0x4c48c6
    at _dl_open+114()@0x95ec32
    at dlopen_doit+59(dlopen.c)@0x380ffb
    at _dl_catch_error+118()@0x4c48c6
    at _dlerror_run+166(interp.c)@0x3814b6
    at dlopen@@GLIBC_2.1+52()@0x380fa4
    at pdLoadLibrary0+38()@0xe27e26
    at pdLoadLibrary+48()@0xe27a90
    at JVM_LoadLibrary+87()@0xd94717
    at <unknown>(???.c)@0x82f60c
    -- Java stack --
    at java/lang/ClassLoader$NativeLibrary.load(Ljava/lang/String;)V(Native Method)
    at java/lang/ClassLoader.loadLibrary0(ClassLoader.java:1751)
    ^-- Holding lock: java/util/Vector@0xb7d40cd0[thin lock]
    ^-- Holding lock: java/util/Vector@0xb8785e10[thin lock]
    at java/lang/ClassLoader.loadLibrary(ClassLoader.java:1647)
    at java/lang/Runtime.load0(Runtime.java:769)
    ^-- Holding lock: java/lang/Runtime@0xb8733870[thin lock]
    at java/lang/System.load(System.java:968)
    at org/xerial/db/sql/sqlite/SQLiteJDBCLoader.loadNativeLibrary(SQLiteJDBCLoader.java:190)
    ^-- Holding lock: java/lang/Class@0xb9318868[thin lock]
    at org/xerial/db/sql/sqlite/SQLiteJDBCLoader.extractAndLoadLibraryFile(SQLiteJDBCLoader.java:126)
    at org/xerial/db/sql/sqlite/SQLiteJDBCLoader.loadSQLiteNativeLibrary(SQLiteJDBCLoader.java:243)
    at org/xerial/db/sql/sqlite/SQLiteJDBCLoader.initialize(SQLiteJDBCLoader.java:58)
    at org/sqlite/NativeDB.load(NativeDB.java:36)
    at jrockit/vm/RNI.c2java(IIIII)V(Native Method)
    at jrockit/vm/Reflect.invokeMethod(Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Native Method)
    at sun/reflect/NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Native Method)
    at sun/reflect/NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun/reflect/DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java/lang/reflect/Method.invoke(Method.java:585)
    at org/sqlite/Conn.<init>(Conn.java:66)
    at org/sqlite/JDBC.connect(JDBC.java:64)
    at java/sql/DriverManager.getConnection(DriverManager.java:525)
    ^-- Holding lock: java/lang/Class@0xb8421790[recursive]
    at java/sql/DriverManager.getConnection(DriverManager.java:193)
    ^-- Holding lock: java/lang/Class@0xb8421790[thin lock]
    at jsp_servlet/__index._jspService(__index.java:105)
    at weblogic/servlet/jsp/JspBase.service(JspBase.java:34)
    at weblogic/servlet/internal/StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
    at weblogic/servlet/internal/StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
    at weblogic/servlet/internal/ServletStubImpl.execute(ServletStubImpl.java:283)
    at weblogic/servlet/internal/ServletStubImpl.onAddToMapException(ServletStubImpl.java:394)
    at weblogic/servlet/internal/ServletStubImpl.execute(ServletStubImpl.java:309)
    at weblogic/servlet/internal/ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic/servlet/internal/WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3395)
    at weblogic/security/acl/internal/AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic/security/service/SecurityManager.runAs(Lweblogic/security/acl/internal/AuthenticatedSubject;Lweblogic/security/acl/internal/AuthenticatedSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(Unknown Source)
    at weblogic/servlet/internal/WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
    at weblogic/servlet/internal/WebAppServletContext.execute(WebAppServletContext.java:2046)
    at weblogic/servlet/internal/ServletRequestImpl.run(ServletRequestImpl.java:1366)
    at weblogic/work/ExecuteThread.execute(ExecuteThread.java:200)
    at weblogic/work/ExecuteThread.run(ExecuteThread.java:172)
    at jrockit/vm/RNI.c2java(IIIII)V(Native Method)
    -- end of trace

Grace B

unread,
Feb 19, 2013, 5:57:03 PM2/19/13
to xer...@googlegroups.com
On Sunday, February 17, 2013 7:17:47 PM UTC-5, Rhys Parker wrote:
I have deployed a web app WAR using sqlite as the DB. This works fine in Tomcat, however when attempting to use via Weblogic 10.0 the stream crashes once any connection to DB is attempted.

Is this a bug? Or is this .jar not compatible with WLS?


Work-around of this problem is to put sqlite-jdbc-(version).jar file into (TOMCAT_HOME)/libdirecotry, in which multiple web applications can share the same native library file (.dll, .jnilib, .so) extracted from this sqlite-jdbc jar file.

I haven't worked with WLS, but my guess is that the jar should be put in WLS's equivalent of TOMCAT_HOME/lib directory.
Reply all
Reply to author
Forward
0 new messages