No ocijdbc8 in java.library.path (with Servlet under Tomcat)

Hello,
my problem is the following: I must use the OCI-Driver of the
Oracle-Client 8.1.7 because I use special PL/SQL-functions.
I get the error message:
java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
when I try to start my servlet within netscape. Before this I'm
starting the tomcat servlet engine and make the following
path known to tomcat:
java.library.path=/usr/lib:/lib:/share/ams/oracle/ora817-SunOS-5.7/lib:/share/ams/oracle/ora817-SunOS-5.7/jdbc/lib:/share/ams/oracle/ora817-SunOS-5.7/lib64
In this line are the necessary paths to find the libocijdbc8.so
library.
Why does the servlet still have problems to find the driver?
In addition, I set my java.library.path within the servlet itself.
Do you know where is the crux of the matter?
Thank you,
Christian Schmidbauer

I'm not sure if this will help, but check to make sure your LD_LIBRARY_PATH environment variable is set (before starting Tomcat). I think this tells the Oracle classes where to find the .so files.

Similar Messages

  • No ocijdbc8 in java.library.path (with Netscape under Tomcat)

    Hello,
    my problem is the following: I must use the OCI-Driver of the Oracle-Client 8.1.7 because I use special PL/SQL-functions.
    I get the error message:
    java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
    when I try to start my servlet within netscape. Before this I'm starting the tomcat servlet engine and make the following path known to tomcat:
    java.library.path=/usr/lib:/lib:/share/ams/oracle/ora817-SunOS-5.7/lib:/share/ams/oracle/ora817-SunOS-5.7/jdbc/lib:/share/ams/oracle/ora817-SunOS-5.7/lib64
    In this line are the necessary paths to find the libocijdbc8.so library.
    Why does the servlet still have problems to find the driver? In addition, I set my java.library.path within the servlet itself.
    Do you know where is the crux of the matter?
    Thank you,
    Christian Schmidbauer

    Hello:
    libocijdbc9.so exists in the LD_LIBRARY_PATH. Tried
    linking/copying classes12.zip from $TOMCAT_HOME/common/lib to $TOMCAT_HOME/webapps/APP_NAME/WEB-INF/lib causes the error:
    java.lang.UnsatisfiedLinkError: /usr/apps/oracle/product/9.2.0/lib/libocijdbc9.so: ld.so.1: /usr/j2se/bin/java: fatal: /usr/apps/oracle/product/9.2.0/lib/libocijdbc9.so: wrong ELF class: ELFCLASS64
    when the CATALINA_OPTS has -d32 and
    -Djava.library.path=$ORACLE_HOME/lib(tried giving them as JAVA_OPTS in catalina.sh as well)
    Thanks!

  • Another "no ocijdbc8 in java.library.path"

    Hello Guys,
    Well, I got the problem described in my subject.
    I found in forum history many answers about this. I have tried some actions to correct that problem, but they didn't work out. (I renamed the file classes12.zip to classes12.jar... to classes.jar... I have put in the PATH variable the right path to the ocijdbc8.dll file.... anyway..)
    I'm using Win2k, Tomcat 4.1.12 and Oracle 8.1.7 running in Pentium III with 256MB and 30GB (HD). I have already installed the Oracle Client in my machine. I don't know more what to do...
    ====================================================
    The error:
    org.apache.jasper.JasperException: no ocijdbc8 in java.library.path
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
    ====================================================
    Anybody know about this or got a similar problem?
    Best Regards
    Diogo Montanaro Pedroso
    [email protected]

    http://forum.java.sun.com/thread.jsp?thread=87301&forum=48&message=224718

  • UnsatisfiedLinkError: no ocijdbc8 in java.library.path

    In case any of you have gotten this error (I've seen a lot of posts in reference to it) and are using Windows Apache Jserv..... make sure to update your jserv.properties's wrapper.path property with the path to your OCIJDBC8.DLL.
    Here is the error log from my mod_jserv.log file:
    [26/07/2000 00:08:12:433] (ERROR) ajp12: Servlet Error: java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path: no ocijdbc8 in java.library.path
    so if you've got similar problems and already have ocijdbc8.dll in your WINDOWS path.. remember that JSERV requires it in ITS OWN PATH property.
    Just trying to be helpfull :^)
    Moran Ben-David
    [email protected]

    are you able to run jdbc programs from javac?

  • Java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path

    hi,
    i am trying to connect to an oracle 8.1.7 database from my application running on tomcat 4.0.3 / jdk1.4 /windows nt.
    using the thin jdbc-driver (classes12.zip) everything works fine.
    when i try using the oci8-driver, i get an error-message saying:
    java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
    i have the oracle-client installed on my machine.
    the ocijdbc8.dll can be found in D:\server\oracla81\bin
    the environment-variables PATH, CLASSPATH, LD_LIBRARY_PATH (i'm not sure if this has any meaning on nt) all point to this directory.
    i start tomcat using the following option: -Djava.library.path="D:\server\oracla81\bin"
    my application can see this variable:
    System.out.println("java.library.path: "+System.getProperty("java.library.path"));
    prints out the correct value.
    then i try to load the library by myself:
    try {
    System.loadLibrary("ocijdbc8");
    System.out.println("Successfully Loaded");
    } catch(Exception e) {
    System.out.println("LD_LIBRARY_PATH is not properly set");
    e.printStackTrace();
    everything works fine! the library is loaded!
    finally i try to connect to the database and the application throws the mentioned exception:
    lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1410)
         at java.lang.Runtime.loadLibrary0(Runtime.java:772)
         at java.lang.System.loadLibrary(System.java:832)
         at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:228)
         at oracle.jdbc.driver.OracleConnection.(OracleConnection.java:249)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:365)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
    any help would be appreciated.
    thanx in advance,
    frank.
    [email protected]

    It is probably JDK 1.4 that causes the problem. I was able to get strange errors with that version of the JDK with code that worked fine using 1.31.

  • NO OCIJDBC8 in java.library.path (JDEV3.0)

    HI,
    I am using Jdev3.0.
    I am trying to use the OCI-8 in the Connection Manager. In the manager, I selected Oracle JDBC OCI-8 from the Driver dropping the box. When I clicked the Test Button, I got the "no ocijdbc8 in java.library.path" message. Where should I do next? Help Please.
    (I have set up the Classpath=c:\ora815\jdbc\lib\classes11.zip... in the NT4.0)
    Many Thanks.
    Alan
    null

    JDBC OCI drivers require the following to work properly in JDEV :
    1) A matching Oracle client install
    By this i mean, using jdbc 817 drivers with an rdbms 817 client install for that o/s platform(currently JDEV runs on and is supported on win nt 4 sp 6a and win 2000)
    2) A compatible JDK Version
    a) JDK 1.2.x is recommended and supported
    b) JDK 1.3.x can be used but is not officially certified or supported.
    Note on JDK 1.3.x usage :
    b.1) Don't deploy ANY jdk 1.3 based code to the Oracle jvm found in IAS 8i or 9i or RDBMS 8.1.5, 8.1.6, or 8.1.7.
    Also the status for the new IAS 1022 "OC4J" component is to be determined -- you need to review the IAS 9i 1022 product doc for this issue.
    b.2) Any "issues" using jdk 1.3 must be reproduced by the customer in jdk 1.2 before a bug can be filed.
    3) Jdeveloper must be setup properly per the instructions in the online help within Jdeveloper.
    In Jdev 3.2.3 the topic is called
    "Connection Requirements for OCI and Type 2 JDBC Drivers"
    You can find this topic(or a similar topic) in your Jdev version by entering the JDEV "on line help" documentation via HELP--> HELP TOPICS --> "SEARCH" Tab and use "jdbc oci" (no quote marks) as the search argument.
    I hope this helps ...
    don

  • I got this message "no ocijdbc8 in java.library.path", what should i do???

    i use personal oracle 8.0.5, jdeveloper 3, win98. When i make connection with JDBC Driver (Oracle JDBC OCI-8), local DB with network Protocol (BEQ), when i click Test Connection button i got this message "no ocijdbc8 in java.library.path", what should i do with this ???
    please tell me because i'm new with this.
    thank's

    In jdbc library, you have this file. Try to put it in JDeveloper bin folder, or in system\bin folder.

  • No ocijdbc8 in java.library.path

    Hello,
    I have my database on Oracle 8i on one machine.
    My java codes using JDBC is on other machine.
    I wanted to fetch datas from Oracle 8i.
    I tried a simple code and it gaved me the
    following exception...
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1370)
    at java.lang.Runtime.loadLibrary0(Runtime.java:773)
    at java.lang.System.loadLibrary(System.java:835)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java)
    at java.sql.DriverManager.getConnection(DriverManager.java:515)
    at java.sql.DriverManager.getConnection(DriverManager.java:174)
    at Employee.main(Employee.java:32)
    Please give some solution.
    Thanking You.
    Mehul

    I'm trying to do this too under Tomcat (in fact I just posted my own thread)
    The problem is apparently a matter of getting the right library path. Normally I'd expect to add the necessary library (which is probably $ORACLE_HOME/lib) in a LD_LIBRARY_PATH environment variable.
    Tomcat doesn't appear to respect this variable, but you can change java.library.path with
    -Djava.library.path= .. path ..
    on the java command.
    I haven't got it right yet, however. Setting -Djava.library.path=$ORACLE_HOME/lib got me arround the first error, but I then got another library module not found.
    The thin driver works fine, but I do want to move to the more efficient oci8.

  • OCIJDBC8 not found in java.library.path

    I am using JDK1.2.2 and OS Windows ME and Database Oracle 8.1.7
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:228)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:249)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:365)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at DBConnection.<init>(DBConnection.java:19)
    at DBConnection.main(DBConnection.java:11)
    Following are the path set
    COMSPEC=C:\WINDOWS\COMMAND.COM
    PATH=C:\WINDOWS\SYSTEM;C:\WINDOWS;C:\WINDOWS\COMMAND; D:\Blazix;E:\ORAWIN95\BIN;
    C:\jdk1.3\bin;c:\jsdk2.0\bin;d:\javawebserver2.0\bin;c:\jaxp-1.1;
    PROMPT=$p$g
    xxxxxxxxxxxxxxxxxxxxx
    TMP=C:\WINDOWS\TEMP
    CLASSPATH=.;C:\jdk1.3\jre\lib\rt.jar;c:\jsdk2.0\lib\jsdk.jar;c:\jdk1.3\lib\tools
    .jar;d:\Blazix\Blazix.jar;c:\jaxp-1.1\crimson.jar;c:\jaxp-1.1\xalan.jar;c:\jaxp-
    1.1\jaxp.jar;e:\orawin95\jdbc\lib\classes12.zip;e:\orawin95\jdbc\lib\nls_charset
    12.zip;d:\Blazix\ejbtut\PropsEjb.jar
    JAVA_HOME=c:\jdk1.3
    LD_LIBRARY_PATH=E:\ORAWIN95\JDBC\LIB;
    winbootdir=C:\WINDOWS
    windir=C:\WINDOWS
    BLASTER=A220 I5 D1
    CMDLINE=java DBConnection
    null

    ocijdbc8.dll is included with the oracle oci jdbc 8 driver. If you get the thin driver instead, the dll is not included.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Vijay Hegde ([email protected]):
    I am using JDK1.2.2 and OS Windows ME and Database Oracle 8.1.7
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:228)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:249)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:365)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at DBConnection.<init>(DBConnection.java:19)
    at DBConnection.main(DBConnection.java:11)
    Following are the path set
    COMSPEC=C:\WINDOWS\COMMAND.COM
    PATH=C:\WINDOWS\SYSTEM;C:\WINDOWS;C:\WINDOWS\COMMAND; D:\Blazix;E:\ORAWIN95\BIN;
    C:\jdk1.3\bin;c:\jsdk2.0\bin;d:\javawebserver2.0\bin;c:\jaxp-1.1;
    PROMPT=$p$g
    xxxxxxxxxxxxxxxxxxxxx
    TMP=C:\WINDOWS\TEMP
    CLASSPATH=.;C:\jdk1.3\jre\lib\rt.jar;c:\jsdk2.0\lib\jsdk.jar;c:\jdk1.3\lib\tools
    .jar;d:\Blazix\Blazix.jar;c:\jaxp-1.1\crimson.jar;c:\jaxp-1.1\xalan.jar;c:\jaxp-
    1.1\jaxp.jar;e:\orawin95\jdbc\lib\classes12.zip;e:\orawin95\jdbc\lib\nls_charset
    12.zip;d:\Blazix\ejbtut\PropsEjb.jar
    JAVA_HOME=c:\jdk1.3
    LD_LIBRARY_PATH=E:\ORAWIN95\JDBC\LIB;
    winbootdir=C:\WINDOWS
    windir=C:\WINDOWS
    BLASTER=A220 I5 D1
    CMDLINE=java DBConnection
    <HR></BLOCKQUOTE>
    null

  • Java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path

    Hello
    i am getting this unsatisfied error whenever i use servlet & in my servlet i am using JDBC for connecting to Oracle.
    i need to know the solution for this please do let me know . Also do i need to know the JDBC re-alm set-up in Tomcat server.
    java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path
    at java.lang.Runtime.loadLibrary(Runtime.java)
    at java.lang.System.loadLibrary(System.java)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java)
    at oracle.jdbc.driver.OracleConnection.(OracleConnection.java)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java)
    at java.sql.DriverManager.getConnection(DriverManager.java:83)
    at java.sql.DriverManager.getConnection(DriverManager.java:126)
    at sdsi.sdsi.doGet(sdsi.java:29)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
    at org.apache.tomcat.core.Handler.service(Handler.java:287)
    at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
    at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
    at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
    at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
    at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
    at java.lang.Thread.run(Thread.java)

    Make sure the oracle library ($ORACLE_HOME/lib) is included in the LD_LIBRARY_PATH.
    Or, you can use JDBC thin driver instead of OCI driver.

  • Javax.servlet.ServletException: no cbljvm_sun in java.library.path

    Hi All,
    The servlet exception I am getting is in Tomcat, I have also been using JRUN and get similiar errors. I have read through as many of the problems on the java site that I can find and they all seem to be saying it is to do with the CLASSPATH.
    I am calling COBOL from Java so I need this .jar file
    Classpath=CLASSPATH=c:\MF\NetExpress\Base\BIN\mfcobol.jar;.;
    Path=
    c:\jdk;
    c:MERANT\NetExpress\Base\BIN;
    c:\MERANT\NetExpress\DialogSystem\BIN;
    C:\JDK\jre\bin\classic;
    C:\Program Files\Common Files\MERANT\ODBC;
    C:\Program Files\Microsoft SQL Server\80\Tools\BINN;
    C:\WINNT\system32;
    C:\WINNT;
    JAVA_HOME=C:\JDK;
    TOMCAT_HOME=C:\tomcat\jakarta-tomcat-4.0\bin;
    J2EE_HOME=C:\J2SDKEE1.3
    COBJVM=SUN
    COBDIR=C:\MERANT\NetExpress\Base\Bin;
    The jsp file in question is at the bottom.
    A Servlet Exception Has Occurred
    Exception Report:
    javax.servlet.ServletException: no cbljvm_sun in java.library.path
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown Source)
         at org.apache.jsp.cal1$jsp._jspService(cal1$jsp.java:107)
         at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown Source)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
         at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
         at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
         at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.connector.http.HttpProcessor.process(Unknown Source)
         at org.apache.catalina.connector.http.HttpProcessor.run(Unknown Source)
         at java.lang.Thread.run(Thread.java:484)
    Root Cause:
    java.lang.UnsatisfiedLinkError: no cbljvm_sun in java.library.path
         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)
         at java.lang.Runtime.loadLibrary0(Runtime.java:749)
         at java.lang.System.loadLibrary(System.java:820)
         at mfcobol.runtime.(runtime.java:784)
         at java.lang.Class.newInstance0(Native Method)
         at java.lang.Class.newInstance(Class.java:237)
         at java.beans.Beans.instantiate(Beans.java:207)
         at java.beans.Beans.instantiate(Beans.java:51)
         at org.apache.jsp.cal1$jsp._jspService(cal1$jsp.java:73)
         at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown Source)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
         at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
         at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
         at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.connector.http.HttpProcessor.process(Unknown Source)
         at org.apache.catalina.connector.http.HttpProcessor.run(Unknown Source)
         at java.lang.Thread.run(Thread.java:484)
    Can anybody give me a clue as to what this is ?
    Source
    =====
    <HTML>
    <HEAD>
    <TITLE>     JSP and Cobol Beans Demo </TITLE>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1253">
    </HEAD>
    <BODY BGCOLOR="white">
    <%@ page language="java" import="cj2Bean.*" %>
    <jsp:useBean id="myBean" scope="session" class="cj2Bean" />
    <img src="mflogo.jpg">
    <h3>Cobol / Java Server Pages demo application.</h3>
    <i>
    <% String aCode = request.getParameter("efCode"); %>
    Author code : <%= aCode %><br>
    Author surname :<b>
    <% myBean.connectToDB(); %>
    <% String aName = "";
    aName = myBean.fetchAuthor(aCode); %>
    <%= aName %>
    <% myBean.disconnectFromDB(); %>
    </i></b>
    </BODY>
    </HTML>

    Hi suzigriffiths,
    I suppose that you should append the classpath to the existing classpath. Currently you are setting the classpath using
    Classpath=CLASSPATH=c:\MF\NetExpress\Base\BIN\mfcobol.jar;.;
    This way any earlier classpath is overridden.
    Try using
    CLASSPATH=%CLASSPATH%;c:\MF\NetExpress\Base\BIN\mfcobol.jar;.;
    Hope this helps

  • Problems with java.library.path

    Hi.
    I'm having trouble with the java.library.path setting. Ok, this is the scenario:
    My app is inside a JAR. What I need is to load a native library, and for user convenience I'm putting some common locations manually in java.library.path. Like this:
              // append custom path for the native libraries
              String libraryPath = System.getProperty("java.library.path");
              String sep = System.getProperty("path.separator");
              libraryPath = "." + sep + "libs" + sep + "native" + sep + libraryPath;
              System.setProperty("java.library.path", libraryPath);
              System.out.println(libraryPath);Pretty easy, right? (This is the first thing in my main method). Ok, so I've put the native libraries in the same dir than my JAR. I just do 'java -jar myjar.jar' and my app spits this:
    .:libs:native:/usr/java/jdk1.5.0_06/jre/lib/i386/client:/usr/java/jdk1.5.0_06/jre/lib/i386:/usr/java/jdk1.5.0_06/jre/../lib/i386so my hack is working but... voila! I get UnsatisfiedLinkError.
    What is really annoying and has me out of my mind is the fact that if I run my app as:
    java -Djava.library.path=. -jar myapp.jarit works! If I do this my app prints:
    .:libs:native:.and everything works as expected. What the ff$�(�&$ is going on here??
    Please, help me I'm desperate.
    Thanks

    this one drove me batty for a while too.
    once the library path is set, that's it, playing with it has no effect.
    my solution involved a new instance the VM, something along the lines of:
    String[] C = new String[] { "bash", "-c", "java -Djava.library.path="+libraryPath };
    Runtime rt = Runtime.getRuntime();
    Process proc = rt.exec( C );
    int eVal = proc.waitFor();
    System.exit( eVal );
    or cmd/command in C[0], /c in C[1] for a M$ system.
    the err and out streams are available using proc.getErrorStream() and proc.getInputStream() as well.

  • Error with System.loadLibrary(...) with java.library.path set

    I'm trying to get my feet wet with JavaMonkeyEngine using netbeans (on Windows XP SP3, Java 1.6).
    When I try to run a simple example program, I'm getting
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl.dll in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1709)
    My runtime arguments include: -Djava.library.path="../../../../../projectSupport/jME2/lib/lib/lwjgl/native/windows/:etc
    I'm pretty sure that the path is correct, because I tried the following code:
    String [] dirs = System.getProperties().getProperty("java.library.path").split(":");
    for(int i = 0; i < dirs.length; i++ ){
    String path = dirs[i] + java.io.File.separatorChar + "lwjgl.dll";
    if( (new java.io.File(path)).exists()) {
    System.out.println("found in dir " + dirs);
    path = (new java.io.File(path)).getAbsolutePath();
    System.load(path);
    System.out.println("was able to load library manually");
    and the System.load method was reached and didn't throw an exception.
    However, the below call does throw an exception.
    System.loadLibrary("lwjgl.dll");
    Presumably, I shouldn't need to put the dlls into my Path (otherwise whats the purpose of the -D argument).
    I would appreciate some brilliant illuminating thought about now, something like "you forgot the magical snafu parameter" or such.
    Thanks in advance.
    Eric.

    My runtime arguments include:
    -Djava.library.path="../../../../../projectSupport/jME2/lib/lib/lwjgl/native/windows/:{code}So, you're on a Windows OS, and looking for a Windows DLL?
    I'm pretty sure that the path is correct, because I tried the following code:
    {code}String [] dirs = System.getProperties().getProperty("java.library.path").split(":");{code}So, you're specifying a path using the UNIX separator ':', instead of the Windows one ';'?
    Your test code has the knowledge to parse a LINUX-like path, but the Windows VM doesn't have this knowledge (I admit the misleading part is that the VM generally accepts '/' as a file separator (instead of the Windows-standard '\' one), but doesn't recognize the ':' separator). Try using ';' to separate multiple pathes in your command line:
    {code}-Djava.library.path="../../../../../projectSupport/jME2/lib/lib/lwjgl/native/windows/;<noticeTheSeparators>;...    J.
    Edited by: jduprez on Jan 12, 2010 1:39 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Starting JVM from C++ via JNI with specified java.library.path switch...

    Please how i can pass java.library.path switch to JVM during JVM creating in C++...????

    Check out this tutorial: http://java.sun.com/j2se/1.4.2/docs/guide/jni/jni-12.html
    Do a search for the word 'Djava.library.path'
    fitz

  • No ocijdbc9 in java.library.path

    I am running an app against Oracle 8.17 with an OCI connection using ocijdbc8.dll. The web server is Tomcat 3.2.3. The app has no problem connecting to the database.
    If I run against Tomcat 4 I get the error
    java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)
    at java.lang.Runtime.loadLibrary0(Runtime.java:749)
    at java.lang.System.loadLibrary(System.java:820)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:294)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:307)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:442)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:321)
    at java.sql.DriverManager.getConnection(DriverManager.java:517)
    I do not have Oracle 9i installed so don't know why it is trying to use ocijdbc9.
    When I switch back to Tomcat 3 there is no problem.
    The Classpath has the Classes12.zip for Oracle 8.1.7
    Can anybody shed any light on this??

    What is the platform this product is running on? Is LD_LIBRARY_PATH (through wrapper.env) or java.library.path set in jserv.properties?

Maybe you are looking for

  • Your thoughts.. lack of functionality Apple Universal Dock Remote Control

    Most of us that toy around with the a/v out capabilities of the Touch are aware that standard remote control functionality is not currently available with the Apple Universal Dock remote. I can understand how mapping the multi-touch functionality to

  • Changes in Routing

    Dear Experts,         I am having one issue, my client want to change routings.   Previous routings contains 'X' work center, now for some materials i want to change this X to Y, X to Z, and X to A, and routing data is very huge, also i am not able t

  • No sound or wifi widget

    my z2 with lollipop has lost widgets of sound, gps, wifi, etc so I don't have direct access o direct button on screen to silence my z2 or turn on/off my wifi those buttons are essentials!!!!!

  • My Apple laptop crashed and is beeping 3 times every 3 or so seconds, what do I do?

    So I was just on the computer & it randomply made a screatching noise & crashed. It started to beep and had been beeping for the past 20 minuets. What do I do? If I take it to the apple store, can I get a new laptop free?

  • How to configure P6Spy Driver with websphere 5.1 version

    Hi I would like to configure User-defined JDBC Provider in Websphere Application Server V5.1 . I would like to configure P6Spy Driver , and i was trying to use P6ConnectionPoolDataSource . I also added property "enable2Phase" to true / false etc , I