What Jar is this DB2 class located?

I'm getting a class not found exception forthe following class, when trying to do a lookup: com.ibm.db2.jdbc.ConnectionPoolDataSource
The class is NOT located in db2jcc.jar or db2java.zip.
the target app server is Websphere 5.1.
Does anyone know where I could find this class? Or am I barking up the wrong tree, and my configuration shouldn't be looking for this class????
thanks

WebSphere already knows where the conneciton pool class is and you will configure how it manages it when you register your JDBC Provider resource. Your code will recieve a connection from the pool when you resolve the JDNI name you give the resource.

Similar Messages

  • What means the " E " in class Vector and " T " in class Class?

    Hi world!
    I was searching in the java docs and in the source code of Java and found a syntaxis that I don't know what mean. This:
    public class Vector<E>
        extends AbstractList<E>
        implements List<E>, ...and this:
    public Vector(Collection<? extends E> c)this too:
    public final
        class Class<T> impleme...and that:
      public static Class<?> forName(String className) well you get the idea. If someone could give me where can I find information about the using of this.
    Tanks

    See the generics tutorial:
    http://java.sun.com/j2se/1.5/pdf/generics-tutorial.pdf

  • In what jar is: com.sun.activation.registries.MailCapFile located?

    I am attempting to implement JavaMail in an application in an OS400 environment. I simply want to send a text message (no attachements). My code works up to the point of: Transport.send(message); where I get a NoClassDefFound: com/sun/activation/registries/MailCapFile
    Here's the code:
    private void sendEmail(String recipient,String msg){
         String smtpSvr = "xxx.yyyyyyyyy.com";     
         String subject = "Log Transfer Errors";
         String from = "[email protected]";
         Properties p = System.getProperties();
         p.put("mail.smtp.host",smtpSvr);
         Session mailSession = Session.getDefaultInstance(p,null);
         Message message = new MimeMessage(mailSession);
         try {
         message.setRecipients(Message.RecipientType.TO,InternetAddress.parse(recipient));
         message.setFrom(new InternetAddress(from));
         message.setSubject(subject);
         message.setContent(msg,"text/plain");
         Transport.send(message);
         } catch (AddressException e) {
              System.out.println(""+e);
         } catch (MessagingException e) {
              System.out.println(""+e);
         } catch (Exception e) {
              System.out.println(""+e);
    I have JavaMail working fine in a servlet running in WebSphere 5.0 on the same OS400 v5r2.
    Do I need to add another jar file to my CLASSPATH?? Don't know in what jar the:
    com.sun.activation.registries.MailCapFile class is in????

    From its name I would guess that it's in "activation.jar". In fact looking in that file on my AS/400, it IS in activation.jar. You must have missed the instructions that you would need that for JavaMail to work properly. You can get it here:
    http://java.sun.com/products/javabeans/glasgow/jaf.html

  • What error is this? for BouncyCastle

    I tried to run this bouncycastle example but encounter this error? what happen to this?? can someone enlighten me? thanks.
    D:\testing>java PKCS12Example
    Exception in thread "main" java.io.IOException: exception encrypting data - java
    .security.NoSuchProviderException: JCE cannot authenticate the provider BC: java
    .lang.SecurityException: Cannot verify jar:file:/D:/testing/!/: java.security.Pr
    ivilegedActionException <<java.util.zip.ZipException: Access is denied>>
    at org.bouncycastle.jce.provider.JDKPKCS12KeyStore.wrapKey(JDKPKCS12KeyS
    tore.java:562)
    at org.bouncycastle.jce.provider.JDKPKCS12KeyStore.engineStore(JDKPKCS12
    KeyStore.java:1003)
    at java.security.KeyStore.store(KeyStore.java:576)
    at PKCS12Example.main(PKCS12Example.java:478)

    If you installed the Sun JCE in your jre/lib/ext directory (which I suggest unless you have some reason not to), you probably neglected to add both the policy files to the same directory. Unfortunately, I'm pretty sure that this is the same Exception you will see no matter what goes wrong when trying to load the classes, so frankly, it's difficult to diagnose the problem.
    Also make sure your system's date and time are set correctly.
    If you still have problems, may I suggest the BouncyCastle provider (http://www.bouncycastle.org) that most people in this forum seem to be using.

  • In which jar com.evermind.sql.DriverManagerDataSource located??

    in data-sources.xml when i changed the class from com.evermind.sql.DriverManagerDataSource to oracle.jdbc.pool.OracleDataSource i didnt get any exception in std_err log and also it didnt create any spy.log;
    when i put class="com.evermind.sql.DriverManagerDataSource " in datasources.xml i am getting this exception
    05/04/25 10:50:54 Error initializing data-source 'oraclePool': DriverManagerDataSource driver 'com.p6.engine.spy.P6SpyDriver' not found
    in which jar com.evermind.sql.DriverManagerDataSource located??
    <data-source
    class="oracle.jdbc.pool.OracleDataSource"
    name="oraclePool"
    location="oraclePool"
    xa-location="oraclePool"
    ejb-location="oraclePool"
    connection-driver="com.p6.engine.spy.P6SpyDriver"
    username="egl1005"
    password="egl"
    url="jdbc:oracle:thin:@192.168.68.44:1521:egl"
    inactivity-timeout="30"
    />
    this batch file is okay??in home/lib/p6spy.jar is there ;and in node1\lib spy.properties is located.
    set path=c:\j2sdk1.4.2_06\bin;
    set classpath=C:\OC4J_EXTENDED\j2ee\home\lib;C:\OC4J_EXTENDED\j2ee\home\node1\lib;%classpath%;
    java -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4000 -Xdebug -Xnoagent -Djava.compiler=NONE -Xmx512m -Dhttp.session.debug=true -Djdbc.connection.debug=true -Dp6.home=C:\OC4J_EXTENDED\j2ee\home\lib -Dp6trace=true -jar oc4j.jar -config node1\config\server.xml -userThreads -verbosity 10 -out node1\log\std_out.log -err node1\log\std_err.log

    Here is the instructions how to use P6SPY with OC4J 9.0.4/10.1.2
    http://radio.weblogs.com/0135826/2004/03/30.html
    -Debu

  • What jar for com.sap.aii.mapping is

    Dear
    i am testing with blow blog.
    /people/pooja.pandey/blog/2005/06/27/xslt-mapping-with-java-enhancement-for-beginners
    in this blog, java program use the following;
    import com.sap.aii.mapping.api.AbstractTrace;
    import com.sap.aii.mapping.api.StreamTransformationConstants;
    what .jar file name is?
    i could not find com.sap.aii.mapping on eclipse.
    thanks
    Denis

    Denis,
    You need the <b>aii_map_api.jar</b> file for this.
    You will get this in the following location on your XI server,
    <b>j2ee\cluster\server0\apps\sap.com\com.sap.xi.services</b>
    Upload the Jar, in your Project Build Path.
    Regards,
    Bhavesh

  • What Jars are being used

    I have a big problem with the number of jars currently being used within my application.
    Is there a way of working out what jars are needed and which are not??
    Regards
    Jai

    I am interested in this as well. I have "jpa.jar" which I removed from my Eclipse build path and no errors. But it may have interfaces/classes that are referenced from other JARs in my WAR. How do I determine if any types in jpa.jar are being currently used so I can determine if it needs to be included in the WAR build or not?
    I tried [http://depfind.sourceforge.net/|http://depfind.sourceforge.net/] but it finds which JAR the type is in. I need to find references to a class from another class and tell me which JAR that's referenced. thx.

  • How do I find what jars are being used...?

    Hi all,
    I'm wondering if any of you could help me. I am looking for a method or tool that helps to find what library jars are being used within an application to try and help me erradicate unneccesary files since I find myself in a scenario similar to below. . .
    Obviously over time an application grows and you may being in a lot of libraries to provide functionality as you go. You may then find a better way of doing something or that part of code may be redundant, so the referencing class is removed, BUT the jar isn't removed from the application at the same time.
    Several years down the line your lib directory looks like it contains nearly every jar created sits in there, and you application is now being shipped out on DVD to cope with all the libraries!
    So, is there a tool or way (except removing them to see it anything breaks!) to check what jars are actually being referenced within an application?
    Any help would be appreciated,
    Cheers,

    Start java with the -verbose option and grep the output for lines starting with "[Opened". This will give you a list of all opened jar files.
    Bear in mind, that classes are loaded lazy, that is: only when they are referenced for the first time.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Class Locator is not enabled

    I downloaded Class Locator and followed all the necessary steps for adding it to NWDS. Now if I rightclick, I can see 'Locate jar/class' option, but it is never enabled.

    Tidbits wrote:
    Would love to have every carrier offer coverage everywhere.  Verizon may be the best nationwide, but they don't cover everywhere. When I travel WiFi calling works great in places with little to no coverage no matter what carrier I was using.  I end up using my T-Mobile lines when I travel to those locations.
    I find places that don't have Verizon coverage tend to be the same areas that don't have broadband internet which renders wi-fi calling moot. Yes there are areas in my county that have poor or no service. As I aid these places do not have broadband internet either. So what good is wi-fi calling to them?
    As far as T-Mobile I'd have to drive 70 miles just to get to a 4G area and over 40 miles to even get to an area that provides T-Mobile edge. Now if I'm using wi-fi for both calling and data then what am I paying T-Mobile for?

  • What jars should i put in my classpath?

    Hello
    I have installed the pack summer 02
    What jars should i put in my classpath to avoid the error I get every time i run this test program:
    import java.net.*;
    import java.io.*;
    import org.w3c.dom.*;
    import javax.xml.parsers.*;
    import javax.xml.transform.*;
    import javax.xml.transform.stream.StreamResult;
    import javax.xml.transform.dom.DOMSource;
    public class XmlTester{
         public static void main ( String [] args ){
              try{
                   DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                   DocumentBuilder builder = factory.newDocumentBuilder();
                   Document document = builder.parse("Description.xml");
              }catch ( Exception e ){
                   System.out.println("Salto una excepcion");
              }//catch
              catch ( FactoryConfigurationError e ){
                   System.out.println(e.getMessage());
                   System.out.println(e.getException());
              }//catch
         }//main
    }//XmlTester
    ERROR:
    Provider org.apache.crimson.jaxp.DocumentBuilderFactoryImpl not found
    java.lang.ClassNotFoundException: org.apache.crimson.jaxp.DocumentBuilderFactoryImpl
    Thanks

    Whichever jars have the classes that you want to use (you should probably put all the jars that you got with this program)
    Also, try adding an import statement:
    import org.apache.crimson.jaxp.DocumentBuilderFactoryImpl;

  • Can anyone help me with this test class

    hiya im new to java im trying to make this test class but i comes up with this error
    EmployeeTestClass.java:14: cannot resolve symbol
    symbol  : constructor Employee  (java.lang.String,java.lang.String,java.lang.String)
    location: class Employee
         Employee Test = new Employee ("John", "Henry", "Monthly");
                                ^here is my whole code to the test class, please bear in mind im really new to java
    public class EmployeeTestClass
       public static void main(String[] args)
         System.out.println ("Please type the employee name:");
              String fName = EasyIn.getString();
         System.out.println ("Please type the employee secound name :");
              String sName = EasyIn.getString();
         System.out.println ("Please type the employee eReference :");
              String  eReference = EasyIn.getString();
         System.out.println ("Please type the employee annualSalary :");
              String  annualSalary = EasyIn.getString();      
         Employee Test = new Employee ("John", "Henry", "Monthly");
       Test.showDetails();
    }

    // your code:
    Employee Test = new Employee ("John", "Henry",
    "Monthly");What you need to do is put the
    variables fName, sName etc. in there instead. And you
    declared the variable annualSalary as a
    String, which should be a double.hiya i tried the above and now my code code like this
    public class EmployeeTestClass
       public static void main(String[] args)
         System.out.println ("Please type the employee name:");
              String fName = EasyIn.getString();
         System.out.println ("Please type the employee secound name :");
              String sName = EasyIn.getString();
         System.out.println ("Please type the employee eReference :");
              String  eReference = EasyIn.getString();
    System.out.println ("Please type the employee salary :");
              double  annualSalary = EasyIn.getString();
    Employee Test = new Employee ("fName", "sName", "annualSalary");
       Test.showDetails();
          }but wheni try to complie it it comes up with these error please help
    EmployeeTestClass.java:12: incompatible types
    found   : java.lang.String
    required: double
    double  annualSalary = EasyIn.getString();
                                                              ^
    EmployeeTestClass.java:15: cannot resolve symbol
    symbol  : constructor Employee  (java.lang.String,java.lang.String,java.lang.String)
    location: class Employee
    Employee Test = new Employee ("fName", "sName", "annualSalary");
                         ^
    2 errors

  • Update jar file with modified class files

    hi all,
    I'm developing a jar utility for updating a jar file with modified class files as of now i have reached a point where in i can browse files and set it to required location
    i.e i have developed a swings GUI application using JfileChooser and browse the files ..now my requirement is to update the jar files with modified class file
    GUI looks like below
    ....enter the modified class file ----> d:\c.class
    ....enter the jar file path ---> d:\a.jar
                                                          update button now i have the requirement as
    1> when i click on the update button ,my jar file (a.jar) should get updated with the latest class file (c.class)
    can u help me to achieve this requirement.???
    im stuck with this,,,if u can provide me wit the code for updating jar file with latest class file...it will really be helpful
    if u can help me with the code on click on update button it will be really helpful
    Thanks and expecting a faster response from u all java experts....

    Please find my query in bolds...i have written the partial code now,i need some help now
    hope u guys can help me out...
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.File;
    public class FileExplorer extends JDialog implements ActionListener
         JTextField txtLocation_class;
         JButton btnBrowse_class;
         JLabel label_class;
         JTextField txtLocation_jar;
         JButton btnBrowse_jar;
         JLabel label_jar;
         JButton updatebutton;
         public FileExplorer()
                   setSize(600,300);
                   //for class files
                   label_class = new JLabel("Please select Modified Class File");
                   txtLocation_class= new JTextField(20);
                   btnBrowse_class = new JButton("Browse");
                   btnBrowse_class.addActionListener(this);
                   //for jar files               
                   label_jar = new JLabel(" Please select the Jar file");
                   txtLocation_jar= new JTextField(20);
                   btnBrowse_jar = new JButton("Browse");
                   btnBrowse_jar.addActionListener(this);
                   ActionListener updateListener = new ActionListener(){
                    public void actionPerformed(ActionEvent ae){
                     if(ae.getActionCommand().equalsIgnoreCase("Update")){               
                      System.out.println("ae.getActionCommand() :: "+ae.getActionCommand());
                      System.out.println("Update Button is pressed");               
                    *//Query :how do i access FilePath and FilePath1 here which*
    *                // has been set in public void actionPerformed(ActionEvent ae)*
    *                //method below*
    *                // FilePath  ---??*
    *                // FilePath1  ---??*
    *                // how do i access the above 2 parameters*
    *                //Query :on click of update button i have to pass*
    *                //two parameters FilePath and FilePath1 to*
    *                //perform some functionality. please help me*
    *                //to achieve this..how do i access Filepath and Filepath1*
    *                //here which has been set below.*
                     } // end of if               
                   } // end of actionPerformed
                };// end of ActionListener
                  updatebutton = new JButton("Update");
                  updatebutton.addActionListener(updateListener);
                   //adding to the panel               
                   JPanel pnl = new JPanel();
                   pnl.add(label_class);
                   pnl.add(txtLocation_class);
                   pnl.add(btnBrowse_class);
                   pnl.add(label_jar);
                   pnl.add(txtLocation_jar);
                   pnl.add(btnBrowse_jar);
                  pnl.add(updatebutton);
                   getContentPane().add(pnl);                         
         public void actionPerformed(ActionEvent ae)
              Object obj=ae.getSource();
              if(obj==btnBrowse_class)
                   final JFileChooser fcstudent = new JFileChooser();
                   int rtrnval = fcstudent.showOpenDialog(this);
                   if(rtrnval==JFileChooser.APPROVE_OPTION)
                        try
                             File file=fcstudent.getSelectedFile();                         
                             String path = file.getPath();
                             System.out.println("This is Path:"+path);
                             txtLocation_class.setText(""+path);
                             String FilePath=txtLocation_class.getText();
                             System.out.println("FilePath is ::"+FilePath);                                        
                        catch(Exception ex)               
                             ex.printStackTrace();
              }else if(obj==btnBrowse_jar){
                             final JFileChooser fcstudent = new JFileChooser();
                             int rtrnval = fcstudent.showOpenDialog(this);
                             if(rtrnval==JFileChooser.APPROVE_OPTION)
                                  try
                                       File file=fcstudent.getSelectedFile();                         
                                       String path1 = file.getPath();
                                       System.out.println("This is Path:"+path1);
                                       txtLocation_jar.setText(""+path1);
                                       String FilePath1=txtLocation_jar.getText();
                                       System.out.println("FilePath is ::"+FilePath1);                                        
                                  catch(Exception ex)               
                                       ex.printStackTrace();
         public static void main(String arg[]){
                   FileExplorer Exm= new FileExplorer();
                   Exm.setVisible(true);
    }

  • Newly created jar file has no classes

    HI Gentlemen,
    When I create a jar file with the jar tool from the java source code of my new applet to deploy with the calling JDeveloper application, it does only contain the META-INF/MANIFEST.MF file, with no class files. When I list the contents of jar, only this shows up. When I extract this with jar xf ... it only contains a single line of text with a version number. Where am I wrong?
    Thanks, regards
    Miklos HERBOLY
    Edited by: mh**** on Nov 24, 2012 12:56 PM

    HI EJP,
    Thank you very much. This is my fault that the formulation targeted at "source code", whereby I meant the output of the javac tool--the class file. Nevertheless, the problem seems now to be solved as I navigated to the directory of the class file, executed the jar tool there and it generated a perfectly good output. I do not know what was wrong previously.
    Regards,
    Miklos

  • Jar files and Main-Class headers

    I think I already posted this, but I can't find it on the forum...my apologies if it's already there and I'm just blind or something.
    I have a bunch of classes in the directory C:/chess/server , and I want to make a .jar file with these classes. The class with the main method is server/ChessServer.class . From which folder should I create a jar file with these classes, and how exactly should I label the Main-Class header in the manifest file? Also, what's the purpose of the "Name:" header?
    I know the topic is posted a lot, but I've tried many different ways and I can't get this to work. I get many variations on the "NoClassDefFoundError". I know the classes themselves are fine because they work perfectly when they're not in a .jar file.
    Thanks in advance!

    I tried that, and it still doesn't work. I used the command C:\chess> jar 0cmf manifest.mf MuChess.jar server . Manifest.mf is:
    Main-Class: server.ChessServer
    Sealed: true
    When I try to run it with C:\chess> java -jar MuChess.jar , I get:
    Exception in thread "main" java.lang.NoClassDefFoundError: server/ChessServer (w
    rong name: ChessServer)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
    3)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    When I unpack the file with my excraction utility, I get get two folders: One is "server", and contains all the files it should--including ChessServer--, and the other is "META-INF" and contains the following MANIFEST.MF file:
    Manifest-Version: 1.0
    Sealed: true
    Created-By: 1.4.1_03 (Sun Microsystems Inc.)
    Main-Class: server.ChessServer
    Any ideas?

  • Error while using .jar file instead of class file.

    Hello friends,
    I created a java class which are referred and called from other jsp\xml and java files. I compiled this java class and everything is working properly. However, I do not want to use class files but want to use jar files instead. So, I created a jar file of this class file by using the command "jar -cvf jarfilename.jar".I kept the jar file in its respective folder .Also, I removed the class file from its path, just to see that the jar file will work automatically.
    Unfortunately, I am getting an error:
    java.lang.RuntimeException: Component.createComponent(...) Component class not found: <java class path>. I also tried giving the path of this jar file in the classpath. This also does not seem working.
    How to solve this problem?
    Thanks,
    Ranjith M.V
    Edited by: RanjithM.V on May 11, 2008 10:34 PM

    You probably populated the jar file incorrectly.
    A common mistake is to include the path that you had on the classpath, in the jar file.
    So a person will have a classpath like this: /foo/
    And a class in a package bar, like this:
    package bar;So that other classes would include the file like this:
    import bar.TheClass;And the class file is on the filesystem like this:
    .../foo/bar/TheClass.classThen they'll create the jar file including the foo directory, so if they list the jar's contents, they'll see the above (/foo/bar/TheClass.class). But this is wrong. It should start off so that the jar entries start with the top-level package names (like /bar/TheClass.class).
    Maybe you've done that.

Maybe you are looking for

  • Anybody knows how to bounce them off the edge of the frame ...

    I want them to change position randomly and smothly and also bounce off the edge of the frame. i will be so happy if you can help me. Here is the code: FlatWorld: import java.awt.*; import javax.swing.*; import java.util.*; * This FlatWorld contains

  • Using CSS3 fadeIn commands

    This site uses fadeInRight and fadeInLeft CSS to enliven its web design process: http://projectassistant.org/business-in-a-box/website-design-development/bizbox-process/ It would be interesting to know how other web designers are using these or simil

  • DVD/CD drive not working no matter what - pavillion dv6812nr entertainm​ent

    Hi! I'm posting this in a new thread because I can't seem to find anyone else with my specific problem. So I got my brother's hand-me-down HP pavillion entertainment notebook, and the disc drive will not open (except for a 10-second window while the

  • Buying a Nano internationally..

    I want to get an Ipod Nano from Japan since I want Japanese engraving on the back. I checked the Canada page, and when I type in Japanese characters you get boxes and weird symbols after. But the problem is that, for the billing/shipping addresses fr

  • Table type as a parameter

    Hi Experts, I got a function with following importing parameter: REFERENCE(IM_RECIPIENTS) TYPE  ISU_ADR6_TAB OPTIONAL I created a table 'zdyu_mail' with the structure wich the same as ISU_ADR6_TAB And I tried to transfer this parameter as following: