Place of driverAdapter.jar

hi,
am trying to remotly deploy an application using a solaris server (am using windows).
I use mysql database in my application so i need to configure the datasource on the remote server.
i placed DriverAdapter.jar and mySQL connector .jar under the /lib directory but things cant get to run as i get an sql error that the driverAdapter is not in the class path
Any idea where could the problem be ??
Thanks in advance.

For AppServer to access the database drivers,
driver files need to be placed in domains/<domain-name>/lib/ext
restart the appserver, driver will get recognized.
Thanks,
-Jagadish

Similar Messages

  • Where to Place java library(.jar) in your application

    Hi,
    I am using ColdFusion - 9 in my application. Also, I am using some third party java library. I put my library in  "\ColdFusion9\lib\" but now my library version is changed. So I need to update those files by replacing the old files.
    My Question Is: Can we place the java .jar files in some location inside my application directory. So that I don't have to do any changes with the ColdFusion library directory for using those libraries.
    Thanks

    CF10 brings in custom paths for this sort of thing:
    http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSe61e35da8d318518-106e125d1353e804 331-7ffe.html
    But this is no help to you.  However there's a third-party solution which'll work on CF9:
    http://javaloader.riaforge.org/
    I've never used it, but I've heard good reports from people who have.
    Adam

  • Forms 10g and Java 6 - Howto place the oracle .jars?

    Hi,
    I would like to compile a sample Forms Java Bean with standalone Java ( not with the JDeveloper IDE )
    and the source starts with a lot of import oracle classes in jars.
    My java install is like this:
    JAVA_HOME=C:\Program Files\Java\jdk1.6.0_11
    Could you indicate where I should place the Oracle jar files in order to have javac to recognize them?
    Many thanks in advance

    Hi again,
    I'm not advanced enough on these topics to clarify.
    Things have changed in the meantime here.
    At the moment we are looking into using 'web_show_document' with an html page containing javascript.
    There is a discussion on the 'talk2gerd.blogspot' that indicates what to set in formsweb.cfg and forms.conf in order to use javascript.
    Still getting a browser written as a Javabean to consult entreprise documents from a Forms client would be a nice bonus.
    Many thanks for your help.

  • Where to place 3rd party jars for use with SSPI

    I have a question regarding the SSPI. Our custom sspi uses some third party jars
    for things such as persistence and caching. Our problem is that the sspi jar
    file that is placed in the mbeantypes directory relies on some of these jars,
    therefore they must be available at startup. However since we will be installing
    the sspi on several different Weblogic 8 servers I do not want to modify each
    startup script to explicitly include each jar in the classpath.
    Is there a place or a best practice that we can use to allow the sspi find these
    libraries? Note: we tried the JAVA_HOME/jre/lib/ext directory which does not
    seem to work.

    You will need to have them in the classpath
    Tony
    "tobin" <[email protected]> wrote in message
    news:40882da6$[email protected]..
    >
    I have a question regarding the SSPI. Our custom sspi uses some thirdparty jars
    for things such as persistence and caching. Our problem is that the sspijar
    file that is placed in the mbeantypes directory relies on some of thesejars,
    therefore they must be available at startup. However since we will beinstalling
    the sspi on several different Weblogic 8 servers I do not want to modifyeach
    startup script to explicitly include each jar in the classpath.
    Is there a place or a best practice that we can use to allow the sspi findthese
    libraries? Note: we tried the JAVA_HOME/jre/lib/ext directory which doesnot
    seem to work.

  • Placement of Log4j.jar

    We are planning to use Log4j, and finds it necessary to use logging both in web and ejb layer.
    The 'obvious' solution is to put log4j.jar in j2ee/home/lib, whitch should make it available to all.
    Unfortunately,
    Oracle is using log4j in their Enterpise Manager web site, which we use for deployment to Oracle iAS 902.
    EM is relying on an older version of Log4j, so the placement in j2ee/home/lib might make EM stop functioning, since EM includes this location (default OC4J home) in its classpath.
    Supplied log4j in WEB-INF/lib of the web-application, and put an entry in orion-application like:
    <library path="../../applications/dealerapp/dealerweb/WEB-INF/lib/log4j-1.2.6.jar" />
    (log4j initialized by a servlet at startup)
    This seems to work, but is there other solutions?
    regards, Trond R.

    Hi Curt - your point is a good one. The Servlet 2.3 spec has tightened up the classloading order a little (and 2.4 tightens it further), so at least we're on the path to a well defined model for class loading in Web applications.
    Just for completeness, the <web-app-class-loader> tag is documented in the Servlet Developer's Guide.
    http://download-west.oracle.com/docs/cd/A97688_08/generic.903/a97680/deploy.htm#1010258
    <web-app-class-loader ... >
    Use this element for class loading instructions.
    Attributes:
    search-local-classes-first: Set this to "true" to search and load WAR file classes before system classes. The default is "false".
    include-war-manifest-class-path: Set this to "false" to not include the class path specified in the WAR file manifest Class-Path attribute when searching and loading classes from the WAR file (regardless of the search-local-classes-first setting). The default is "true".
    -steve-

  • Extract a jar  from one place and put extracted files in another place

    Hi,
    I need to extract a jar file from one location ie source and to keep the extracted in another place ie destination directory.Is there any command in jar or can any one give java codings to perform this.
    Thanks in advance
    Vindo

    Do you mean....
    cd directory/to/place/extracted/files
    jar xf full/path/to/yourjarfile.jar

  • JWS requests jar files at the wrong place

    Hi all,
    I created JWS project with netbeans, and by deafult, NB places all required jar files in the "lib" folder. NB also created jnlp file with correct paths to required files. It looks like this
    <update check="always" policy="always"/>
    <resources>
         <jar download="eager" href="main.jar" main="true"/>
         <jar download="eager" href="lib/required.jar" main="false"/>
    </resources> Now, when app is started, required.jar is correctly located at lib folder and application works, but from that moment on, JWS makes hundreds of request for "${codebase}/required.jar" (obviously wrong place) and gets 404 responses. It keeps making these requests as long as app is running and this slows down application significantly.
    My temp workaround was to move required.jar to codebase root and problem is gone, but i still find it weird. I guess this may explain some complaints about slow JWS.
    Is this a bug? Am I doing something wrong? Is there anything I can check?
    Thanks!

    dario wrote:
    ..Is there anything I can check?The JNLP file, using JaNeLA. Even the three lines shown appear to include mistakes (probably because Ntebeans wrote it).

  • How to run class files in a jar independently.

    Hello all
    I have a java file which use an API.jar file which is an API file of some other application of mine.This file form a sought of client for that application.Now i want to run this file from command line which is giving NoClassDefFoundError exception.This exception is because of the dependency over API.jar.I dont want to pack this single file into a jar and then run that jar since it only makes a simple task complicated and makes a simple class look like a big application.Can anybody tell me the solution to it?
    Regards,
    Mansi

    MansiSachar wrote:
    I am working on WindowsXP and the command u just sent is again giving the same exception.The exception is :
    Exception in thread "main" java.lang.NoClassDefFoundError: ûcp
    Caused by: java.lang.ClassNotFoundException: ûcp
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    I think the problem can also be the placement of the dependant jars.do i need to keep them in "bin" folder?I am assuming that in the error message, it says "-cp" not "ûcp" Can you confirm that you entered the command as posted? Because it looks like java.exe sees the -cp as the class to execute instead of the classpath option.
    Try using -classpath instead of -cp. What version of java are you using? (java -version should give you the version).
    If the jars are in the current directory, the placement of the jar files is correct.

  • ClassNotFound in case of class from jar in lib folder

    Hello,
    I get an application that I have to deploy on Weblogic AS. It is big ear with couple of wars inside. Let's say it is bigApp.ear.
    It is deployed and state is Active. When go to browser and try to run an application I get an error. In logs I found ClassNotFoundException. The error is related to a class, let's say: com.some.package.Abc - I have this class in a jar file, let's say someFile.jar and it is in a folder WLS_FOLDER\samples\domains\wl_server\lib where:
    - WLS_FOLDER is my WLS installation folder
    - wl_server - name of my domain where I deploy an application.
    I wrote a small application (simple form), let's say simpleApp.war. The application uses the class com.some.package.Abc, but the class is not put into the war (WEB-INF/lib) of my small aplication (I use Maven and dependency to someFile.jar has scope provided, so simpleApp.war does not contain it). The result is that simpleApp works fine and there is no error in logs. It creates an instance of com.some.package.Abc and correctly display toString() of the instance of the class in a browser. So this means that application simpleApp is able to see and use classes that are inside jars in WLS_FOLDER\samples\domains\wl_server\lib folder.
    So my guess is that there is something in bigApp.ear but I don't know where to search. I read about class loaders hierarchy in Weblogic and Class Loader Filtering. But I have looked inside every weblogic.xml in bigApp.ear and wars that are inside and there is no filter on "com.some.package" or "com.some" or "com" only different packages.
    Is there any other mechanism in Weblogic that could block the visibility of classes from jars from lib folder of domain to the applications that are deployed in that domain??
    Regards

    Hi,
    Place that something.jar file under Domain_Home / lib folder and restart the server it will included with in the classpath and your app will able to pick the class without any issue.
    Regards,
    Kal

  • Including External JARs for Java Application in OC4J

    Hi Experts,
    Here is my requirement.
    I have developed my Java application using Tomcat Server & Eclipse. In my application I have used some External JARs & imported the classes in my JSP.
    Now that I'm using OC4J Server instead of Tomcat I'v no clue as to where I have copy these External JARs for my application to work.
    I have installed OBIEE-Client which includes OC4J server. The path where I have placed my application is as below
    *"C:\OracleBI\oc4j_bi\j2ee\home\default-web-app"*
    If I run my application the server does not import the classes in the JSP which we include using Import statement using JSP tags (*ex* - <%@ page import = "org.apache.commons.fileupload.*"%>).
    This is the location which I found, where I need to put my Java-J2EE application. This OC4J_BI comes with OBIEE.
    Kindly help me out on where to place these External JARs exact location in OC4J.
    Also let me know if I have to alter any configuration/xml file (if so pls specify the file name & its location).
    Thanks in advance,
    Venky

    You can either include the external libraries in the application, by placing them into WEB-INF/lib, or you can import them into the server as "shared libraries", normally you'd use the "enterprise manager" application to do this. Having loaded a shared library you then add it to the classpath when you're deploying the application.

  • How to access images in a jar file

    Hello,
    I am currently developping a swing application that uses icons (gif files) and I have zipped all my classes and images in a single .jar file.
    When I try to access those files it doesn't work ... it seems that I am not using the right way ...
    Could anyone explain me how to achieve this ?
    thanks in advance

    I get the Images from jar file to set ImageIcon for my components like this:
    ImagesLocator.getImage("imageName.gif");
    anu
    //ImagesLocator.java
    import java.net.URL;
    import java.awt.*;
    import javax.swing.*;
    * Load images from correct place (directory or JAR file) into GUI.
    public class ImagesLocator
         * Load image from correct place (directory or JAR file).
         * @param imageName name of image to be loaded (with no path)
         * @return loaded image
         public static ImageIcon getImage(String imageName)
              ClassLoader cl = ImagesLocator.class.getClassLoader();
              ImageIcon i = new ImageIcon(cl.getResource(imageName));
              return i;

  • Why using big JARs when single components could be distributed

    We are facing a problem with our Java application distribution, since the software house sends us large JARs (around 10Mb) which must be deploy to our branches at around 64Kbauds, taking at least an hour for each one. When we look at the changes, only a few 100Kb where changed (only 10 or 20 Java routines) from one version to the other of the applications.
    Is there any way to avoid this Java JARs and send and deploy only the changes. I know that certain distribution products let you take notice of this differences and package only the delta, but I don't have the knowledge to make our software provider to make him change their mind on the issue. Does anybody know the answer?
    Thanks in advance.

    BEA uses a trick which appears to work for packaging updated class files. If the classes signature (methods, parameters etc) are the same, you can take the new class files which have changed and package them in a new jar file. Then place the new jar on the classpath when starting the application, but make sure it appears before the original applications jar.
    For example say I have app.jar, and normally start it with
    java - classpath ./app.jar my.MainClass.
    If I update the myClass.class file, I would package the class in a jar called new.jar and start the app with
    java -classpath ./new.jar:./app.jar my.MainClass.
    When Javas classloader searches for a class to load, if there are two, it always takes the first one it finds.

  • Where do I put db.jar when using in a servlet?

    servlet container library level, or servlet library? I am guessing that because db.jar uses JNI code, reloading would be a problem, so it should reside at the servlet container library level, but it would be nice to know for sure.

    Hi Garey,
    Because using the Java API in Berkeley DB (BDB) implies making JNI calls, you should place the "db.jar" JAR file under your servlet container library directory (e.g. for Tomcat this should be "common/lib").
    All servlet engines use separate classloaders for each web application. You need to ensure that the native BDB library is loaded by the servlet engine's common classloader.
    If you place the "db.jar" file under your web app's WEB-INF/lib directory you will get errors like "UnsatisfiedLinkError: Native library <path_to_BDB_lib>\libdbNN.dll already loaded in another classloader" when reloading your servlet.
    Of course, the directory where the native library resides, should be included the PATH or LD_LIBRARY_PATH (java.library.path) environment variables.
    Regards,
    Andrei

  • How to include third party .jar files into my jar file

    Hi,
    how do i include a open source third party jar file into an executable jar?
    i have a class called BlogBox.java and it uses org.apache.commons.net.ftp.FTPClient, i want to create an executable file, where do i put the .jar file containing FTPClient aka Apache Commons Net?
    currently i'm getting the following error from when executing my BlogBox.jar
    C:\MyJava\BlogBox>java -jar BlogBox.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/net/ftp/FTPClient
    at blogbox.BlogBox.<init>(BlogBox.java:27)
    at blogbox.BlogBox.main(BlogBox.java:103)
    Any suggestions? i have searched google and this forum but could not find the solution to my problem, thanks
    [edited msg] do i need to add the classpath at execution or something of the apache commons net library?
    Message was edited by:
    gekkokid

    When you use an executable jar the normal class path
    is ignored, but you can put a classpath inside the
    jar. The usual trick is to place the library jar
    files in a directory inside the application directory
    and direct the manifest file to it. The manifest file
    live in the jar inside the META-INF directory and
    it's called manifest.mf
    The two heavilly used entries are Main-class: and
    Class-path: lines. Class-path just has a
    comma-separated list of library paths.
    The jar utility has a special option to load it up.Thanks :) I created a "/lib" directory, placed in the packages in there and redirected the Class-Path: lib/commons-net-1.4.1.jar
    and it works,
    thank you everyone :)

  • Sharing jar files

    I have a few BPEL sharing the same jar files. I would like to deploy just a single copy on the BPEL server instead of copying all the jars inside the bpel_inf\lib folder inside each project.
    Now i have a shared lib folder and i added the jar files, and added the jars to my classpath. I am able to successfully compile my projects ,Jdev can successfully deploy to my bpel server domain.
    the project cannot load properly on the server giving
    BPEL source validation failed, the errors are: [Error ORABPEL-10902]: compilation failed [Description]: in "bpel.xml", XML parsing failed because "undefined part element. In WSDL at "file:/C:/OraBPELPM_1/integration/orabpel/domains/default/tmp/.bpel_ID-8-1-a-and-bDestroyDrugsSect25_1.0.jar/ID-8-1-a-and-bDestroyDrugsSect25.wsdl", message part element "{http://schemas.xmlsoap.org/ws/2003/03/addressing}MessageID" is not defined in any of the schemas. Please make sure the spelling of the element QName is correct and the WSDL import is complete. ". [Potential fix]: n/a. .
    Can you tell what steps should i take to make the jar files shareable across my projects in the same domain.
    thanks

    Hi,
    I have to included few JARs into my project.
    I tried to create a director BPEL-INF/lib under ApplicationName\BPELProjectNAme\bpel\ but Jdeveloper automatically removes them from here.
    can you tell me exact location where can I place project related JARs as I don;t want to share them with other projects.
    Where should I make BPEL-INF/lib so that JDeveloper and BPEL Server doesn't throws validation error.
    Thanking you.
    Regards,
    Bhavesh Thaker

Maybe you are looking for