Taglib: class not found in jar-file

I've got the following problem:
I whant to deploy a taglib to tomcat 5.0.25.
If I point to the jsp which uses the taglib I got the following error:
org.apache.jasper.JasperException: Unable to read TLD "META-INF/taglib.tld" from JAR file "file:/C:/Programme/Apache Software Foundation/Tomcat 5.0/webapps/taglibtest/WEB-INF/lib/gsa_prod3_db_taglib.jar": org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: ch.gsa.prodass3.taglib.TagAddAttributeTEI
If I copy the taglib.tld out of the jar-file into WEB-INF and do the mapping in web.xml, I get this error:
org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: ch.gsa.prodass3.taglib.TagAddAttributeTEI
root cause
java.lang.ClassNotFoundException: ch.gsa.prodass3.taglib.TagAddAttributeTEI
It seems like none of the files in the jar-file could be loaded.
Has anybody an idea?
Help would be very appreceated!
Greetings, Jonas

1 - double check the class is in the jar file, in that path, and is spelt correctly
2 - restart Tomcat
3 - check the contents of the tld file - particularly the extra-info tag and class name for it.

Similar Messages

  • Problem deploying connector: META-INF/ejb-jar.xml not found in jar file

              Has anyone seen this problem:
              I built Sun's Blackbox implementation and packaged
              it identical to the BlackBoxNoTx.rar included with
              Weblogic's 'jconnector' sample (even using the same
              ra.xml and weblogic-ra.xml). When I try to deploy
              it, the server reports:
              java.io.FileNotFoundException:
              META-INF/ejb-jar.xml not found in jar file
              I have no idea why the server thinks my connector
              is an EJB. If I deploy the BlackBoxNoTx.rar included
              with the sample, everything works without a hitch.
              The only variable that I'm changing in my BlackBoxNoTx.rar
              is that I build the Blackbox classes myself--otherwise,
              the RAR packagings are identical. Any assistance is
              greatly appreciated since I'm banging my head against
              a wall...
              Thanks,
              -jason
              

              I was finally able to resolve this one. On the odd chance that someone else encounters
              the same problem, here's what went wrong:
              My RAR file had two directories: 'META-INF' and 'meta-inf'. The first was created
              by the jar tool and contained the manifest.mf file. The second I created manually
              and it contained my ra.xml and weblogic-ra.xml. When I examined the RAR using
              any tools or I extracted the contents, it looked like it only contained one directory:
              META-INF (because NT is case-insensitive).
              "Jason L" <[email protected]> wrote:
              >
              >Has anyone seen this problem:
              >
              >I built Sun's Blackbox implementation and packaged
              >it identical to the BlackBoxNoTx.rar included with
              >Weblogic's 'jconnector' sample (even using the same
              >ra.xml and weblogic-ra.xml). When I try to deploy
              >it, the server reports:
              >
              >java.io.FileNotFoundException:
              >META-INF/ejb-jar.xml not found in jar file
              >
              >I have no idea why the server thinks my connector
              >is an EJB. If I deploy the BlackBoxNoTx.rar included
              >with the sample, everything works without a hitch.
              >The only variable that I'm changing in my BlackBoxNoTx.rar
              >is that I build the Blackbox classes myself--otherwise,
              >the RAR packagings are identical. Any assistance is
              >greatly appreciated since I'm banging my head against
              >a wall...
              >
              >Thanks,
              >
              >-jason
              

  • Struts class not found for war file

    Hello,
    I am tring to deploy my struts web application in weblogic 8.1. I have all the
    library files in web-inf\lib directory. It gave me the error that class not found
    for some class in struts library. The console also told me the classpath. But
    I can use javap to find the class using the same classpath. Could any one point
    me some direction what I am doing wrong here.
    Thanks.
    Here is the error message:
    java.lang.NoClassDefFoundError: org/apache/commons/beanutils/Converter.>
    <Nov 13, 2003 11:05:29 AM EST> <Error> <HTTP> <BEA-101216> <Servlet: "action"
    fa
    iled to preload on startup in Web application: "voppocWebApp".
    javax.servlet.ServletException: [HTTP:101250][ServletContext(id=9921725,name=vop
    pocWebApp,context-path=/voppocWebApp)]: Servlet class org.apache.struts.action.A
    ctionServlet for servlet action could not be loaded because a class on which it
    depends was not found in the classpath C:\bea\weblogic81\server\bin\myserver\upl
    oad\voppocWebApp.war;C:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extrac
    t\myserver_voppocWebApp_voppocWebApp\jarfiles\WEB-INF\lib\activation30425.jar;C:
    \bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_voppocWebApp
    _voppocWebApp\jarfiles\WEB-INF\lib\commons-beanutils30426.jar;C:\bea\weblogic81\
    server\bin\.\myserver\.wlnotdelete\extract\myserver_voppocWebApp_voppocWebApp\ja
    rfiles\WEB-INF\lib\commons-collections30427.jar;C:\bea\weblogic81\server\bin\.\m
    yserver\.wlnotdelete\extract\myserver_voppocWebApp_voppocWebApp\jarfiles\WEB-INF
    \lib\commons-digester30428.jar;C:\bea\weblogic81\server\bin\.\myserver\.wlnotdel
    ete\extract\myserver_voppocWebApp_voppocWebApp\jarfiles\WEB-INF\lib\commons-file
    upload30429.jar;C:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\mys
    erver_voppocWebApp_voppocWebApp\jarfiles\WEB-INF\lib\commons-lang30430.jar;C:\be
    a\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_voppocWebApp_vo
    ppocWebApp\jarfiles\WEB-INF\lib\commons-logging30431.jar;C:\bea\weblogic81\serve
    r\bin\.\myserver\.wlnotdelete\extract\myserver_voppocWebApp_voppocWebApp\jarfile
    s\WEB-INF\lib\commons-validator30432.jar;C:\bea\weblogic81\server\bin\.\myserver
    \.wlnotdelete\extract\myserver_voppocWebApp_voppocWebApp\jarfiles\WEB-INF\lib\ja
    karta-oro30433.jar;C:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\
    myserver_voppocWebApp_voppocWebApp\jarfiles\WEB-INF\lib\jdbc2_0-stdext30434.jar;
    C:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_voppocWebA
    pp_voppocWebApp\jarfiles\WEB-INF\lib\mailapi30435.jar;C:\bea\weblogic81\server\b
    in\.\myserver\.wlnotdelete\extract\myserver_voppocWebApp_voppocWebApp\jarfiles\W
    EB-INF\lib\struts30436.jar;C:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\
    extract\myserver_voppocWebApp_voppocWebApp\jarfiles\_wl_cls_gen.jar.
    java.lang.NoClassDefFoundError: org/apache/commons/beanutils/Converter.
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
    mpl.java:800)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
    ervletContext.java:3236)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
    ServletContext.java:3181)

    Hello Mark,
    Your suggested solution (putting an empty commons-logging.properties into
    web-inf/classes or in a jar in web-inf/lib)
    does not make any change at all. It still complains about not being able to
    preload the servlet and still
    gives exceptions upong calling upon LogFactory.
    What I have been able to do is put the three classes from
    com.bea.wlw.netui.util.logging into a separate jar
    and add that to web-inf/lib.
    However I am sometimes getting funny exceptions upon undeploy
    (NoClassDefFoundError for org.apache.commons.collection.FastHashMap$KeySet).
    Regards,
    Robert Varga
    "Mark Griffith" <[email protected]> wrote in message
    news:[email protected]...
    From a FAQ on netui:
    1. Why do I get a ServletException while trying to deploy a struts web
    application on a Workshop/Integration/Portal domain?
    In the "<WL-HOME>/server/lib/knex.jar" file there is a properties file
    called "commons-logging.properties" which configures the
    com.bea.wlw.netui.util.logging.StrutsLogFactory class for Struts loggingas
    below:
    org.apache.commons.logging.LogFactory=com.bea.wlw.netui.util.logging.StrutsL
    ogFactory
    This class file is not available for a Struts web application that was not
    built using Workshop, the reason being the containing NetUI jar files are
    not present in the web application's WEB-INF/lib folder. This leads to a
    ServletException while deploying the web application. The solution is toadd
    a blank file (or a JAR containing the file) namedcommons-logging.properties
    to the server CLASSPATH, or to the WEB-INF/lib folder of the concerned web
    application. This issue will be fixed in Service Pack 2.
    cheers
    mbg
    "Robert Varga" <[email protected]> wrote in message
    news:[email protected]...
    Hi Rob,
    I also have a similar error with deploying a Struts web application into
    a
    8.1 Basic Workshop Domain created
    by 8.1 Platform.
    I get a ClassNotFoundException for 'com.wlw...StrutsLogFactory', whenStruts
    tries to load any Jakarta class
    from commons-beanutils or Struts which has logging.
    This happens because commons-logging picks up some property whichinstructs
    it to load that class, which is
    naturally not included in most web applications, since it is
    workshop-specific. This property definition, I think,
    is in <bea>\weblogic81\server\knex.jar, called
    commons-logging.properties,
    containing the following line:
    org.apache.commons.logging.LogFactory=com.bea.wlw.netui.util.logging.StrutsL
    ogFactory
    How can I override this in my webapp in a property file, so that when a
    Struts or Beanutils class calls
    LogFactory.getLog(org.apache.....<classname>.class), it would not try touse
    the property file and the
    class defined in knex.jar.
    Thanks in advance,
    Robert Varga
    "Rob Woollen" <[email protected]> wrote in message
    news:[email protected]...
    Actually it complained about a NoClassDefFoundError. Generally this
    is
    caused by something in a parent classloader that is found but then
    depends on something only loadable in a child classloader.
    eg.
    You have something in your $CLASSPATH that references something in the
    WEB-INF/lib. This will NoClassDefFoundError.
    So, as I recommended, remove everything you've added to the$CLASSPATH,
    add the jars to WEB-INF/lib. If you're still having problems, show me
    your $CLASSPATH, the contents of WEB-INF/lib, and the error message
    /stack trace.
    -- Rob
    yuruo chen wrote:
    Hello, Rob,
    I did put the common-beanutils and other jar files in the
    web-inf/lib
    directory.
    And from the weblogic console, I do see the jar file get included in
    the
    classpath.
    (those generated file name have some number attached at the end.)
    As
    I
    mentioned
    before, I can use javap find the class using this weblogic generatedclasspath.
    But weblogic complained that the class is not found.
    Rob Woollen <[email protected]> wrote:
    Remove anything you've added to the server's classpath.
    Add the required jar files to WEB-INF/lib
    -- Rob
    yuruo chen wrote:
    Hello,
    I am tring to deploy my struts web application in weblogic 8.1. I
    have
    all the
    library files in web-inf\lib directory. It gave me the error that
    class
    not found
    for some class in struts library. The console also told me the
    classpath.
    But
    I can use javap to find the class using the same classpath. Could
    any
    >>>>>
    one point
    me some direction what I am doing wrong here.
    Thanks.
    Here is the error message:
    java.lang.NoClassDefFoundError:
    org/apache/commons/beanutils/Converter.>
    <Nov 13, 2003 11:05:29 AM EST> <Error> <HTTP> <BEA-101216>
    <Servlet:
    >>>>>
    "action"
    fa
    iled to preload on startup in Web application: "voppocWebApp".
    javax.servlet.ServletException:
    [HTTP:101250][ServletContext(id=9921725,name=vop
    pocWebApp,context-path=/voppocWebApp)]: Servlet classorg.apache.struts.action.A
    ctionServlet for servlet action could not be loaded because a classon which it
    depends was not found in the classpath
    C:\bea\weblogic81\server\bin\myserver\upl
    >
    oad\voppocWebApp.war;C:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extrac
    >
    t\myserver_voppocWebApp_voppocWebApp\jarfiles\WEB-INF\lib\activation30425.jar;C:
    >
    \bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_voppocWebApp
    >
    _voppocWebApp\jarfiles\WEB-INF\lib\commons-beanutils30426.jar;C:\bea\weblogic81\
    >
    server\bin\.\myserver\.wlnotdelete\extract\myserver_voppocWebApp_voppocWebApp\ja
    >
    rfiles\WEB-INF\lib\commons-collections30427.jar;C:\bea\weblogic81\server\bin\.\m
    >
    yserver\.wlnotdelete\extract\myserver_voppocWebApp_voppocWebApp\jarfiles\WEB-INF
    >
    \lib\commons-digester30428.jar;C:\bea\weblogic81\server\bin\.\myserver\.wlnotdel
    >
    ete\extract\myserver_voppocWebApp_voppocWebApp\jarfiles\WEB-INF\lib\commons-file
    >
    upload30429.jar;C:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\mys
    >
    erver_voppocWebApp_voppocWebApp\jarfiles\WEB-INF\lib\commons-lang30430.jar;C:\be
    >
    a\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_voppocWebApp_vo
    >
    ppocWebApp\jarfiles\WEB-INF\lib\commons-logging30431.jar;C:\bea\weblogic81\serve
    >
    r\bin\.\myserver\.wlnotdelete\extract\myserver_voppocWebApp_voppocWebApp\jarfile
    >
    s\WEB-INF\lib\commons-validator30432.jar;C:\bea\weblogic81\server\bin\.\myserver
    >
    \.wlnotdelete\extract\myserver_voppocWebApp_voppocWebApp\jarfiles\WEB-INF\lib\ja
    >
    karta-oro30433.jar;C:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\
    >
    myserver_voppocWebApp_voppocWebApp\jarfiles\WEB-INF\lib\jdbc2_0-stdext30434.jar;
    >
    C:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_voppocWebA
    >
    pp_voppocWebApp\jarfiles\WEB-INF\lib\mailapi30435.jar;C:\bea\weblogic81\server\b
    >
    in\.\myserver\.wlnotdelete\extract\myserver_voppocWebApp_voppocWebApp\jarfiles\W
    >
    EB-INF\lib\struts30436.jar;C:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\
    extract\myserver_voppocWebApp_voppocWebApp\jarfiles\_wl_cls_gen.jar.
    java.lang.NoClassDefFoundError:
    org/apache/commons/beanutils/Converter.
    atweblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
    mpl.java:800)
    atweblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
    ervletContext.java:3236)
    atweblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
    ServletContext.java:3181)

  • Class not found in jar

    I have a servlet that is using request.forward() to invoke a class in a jar file.
    This class is in the class path, as below. However, when that class runs, it cannot find other classes in that same jar file.
    In my resin.conf file I have:
    <web-app id='/test' app-dir='d:/apps/test'>
         <classpath id='d:/apps/otherApp/WEB-INF/lib/otherApp.jar'/>
    </web-app>
    The jar file is in the web-inf/lib folder.
    Running under Resin.
    What do I need to do such that the invoked class will find it's fellow classes that are in the same jar file?

    I don't see why
    you would need to add that jar to the conf file.My web-app cannot otherwise find the target class. It is part of a different 'web-app'.
    how did you create the jar?I didn't. This is a third party app. I cannot disturb the jar.
    Due to the third party app, there are legacy issues that I am having to work around.
    So my situation is like this.
    c:/apps/app1
    c:/apps/app2
    c:/apps/app3
    So, another servlet will contact app1. Depending on the 'POST'ed data, app1 will invoke either app2 or app3.
    All code for app2 is in jars in WEB-INF/lib.

  • Classes not found for jars listed in manifest

    I have an applet whose main jar has a number of dependent jars listed in the manifest. All the jars are signed.
    The applet works fine when downloaded from an HTTP server.
    Previous to 1.6.14 it would also run from a local directory.
    As of Java 1.6.15 and 1.6.16, the classes in the dependent jars are no longer loadable from the local directory. ClassDefNotFound is the reported on the java console. Obviously the class is present, as the application is running fine in JVMs 1.6.14 and previous.
    I see that 1.6.16 includes changes for the security baseline, but I cannot find anything that suggests changes are needed to support dependent jars. None of the dependent jars request a specific version of JRE.
    Anybody know what is going on?

    Is this the error? ...Yes, sorry, the exception is NoClassDefFoundError
    If you provide a Short, Self Contained, Correct Example someone may be able to diagnosis the problem, as opposeed to guessing. A link to the real live application can be found at: http://download.equitrac.com/38834/InstallGUI.html. (This original application does not meet the definition of short ... but demonstrates the problem well.)
    When run as an applet off this site, it works fine.
    If you click on the download button, it will place a copy on your local harddrive. To execute it locally double click on your local copy of InstallGUI.html.
    When running it locally with Java 1.6.15 and 1.6.16 it will give you a class def not found exception without doing any thing.
    When running locally with Java 1.6.14, it will not experience any trouble.
    This applet needs permissions to open sockets and store data on the harddrive.
    Probably due to the presence of class files that once existed outside of the jars, but are now not thereClose ... the application is made up of a main jar (our product) and a number of third party jars. The manifest for the main jar properly references the other jars, and works in all JVMs before 1.6.15. As of 1.6.15, none of the classes from the referenced jars can be opened.
    I found that I can work around the problem by placing all classes into a single jar ... which may infringe on licensing requirements for some of the third party jars we use.
    Dave

  • Class not found in applet using 2 jar files

    I have an applet which has been working for years as a stand alone or connecting directly to a derby database on my home server. I have just changed it to connect to MySQL on my ISP server via AJAX and PHP.
    I am now getting a class not found error in my browser, probably because I'm stuffing up the class path.
    The HTML I am using to call the applet is:
    <applet code="AMJApp.class"
    codebase="http://www.interactived.com/JMTalpha"
    archive="AMJ014.jar,plugin.jar"
    width="500"height="500"
    MAYSCRIPT style="border-width:0;"
    name="jsap" id="jsap"></applet>The AMJ014.jar contains the applet and supporting class files.
    The error message is strange to me because it refers to a class I noticed on another web page but which has nothing to do with my applet. Anyway, the message in full is:
    load: class NervousText.class not found.
    java.lang.ClassNotFoundException: NervousText.class
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.ClassNotFoundException: NervousText.class
    java.lang.UnsupportedClassVersionError: AMJApp : Unsupported major.minor version 51.0
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClassCond(Unknown Source)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.defineClassHelper(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.access$100(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.UnsupportedClassVersionError: AMJApp : Unsupported major.minor version 51.0

    Thanks again.
    The page code is:
    <html>
    <head>
      <title>Applet to JavaScript to PHP</title>
    </head>
    <body>
    <script type="text/javascript">
    function updateWebPage(myArg)
    document.getElementById("txt1").innerHTML=myArg;
    if (myArg=="")
      document.getElementById("cbxItem").innerHTML="";
      return;
    if (window.XMLHttpRequest)
      {// code for IE7+, Firefox, Chrome, Opera, Safari
      xmlhttp=new XMLHttpRequest();
    else
      {// code for IE6, IE5
      xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    xmlhttp.onreadystatechange=function()
      if (xmlhttp.readyState==4 && xmlhttp.status==200)
        document.getElementById("cbxItem").innerHTML=xmlhttp.responseText;
    xmlhttp.open("GET","putitem.php?id="+myArg,true);
    xmlhttp.send();
    </script>
    <form>
    <table border=1 align='center' cellpadding=0 cellspacing=0 >
    <tr><td style='text-align:center; background-color:#C0C0C0'>Compiled Java Applet</td></tr>
    <tr><td><applet code="AMJApp.class" codebase="http://www.interactived.com/JMTalpha" archive="AMJ014.jar" width="500"height="500" MAYSCRIPT style="border-width:0;" name="jsap" id="jsap"></applet> </td></tr>
    <tr><td style='text-align:center; background-color:#C0C0C0'>HTML Textbox filled by JavaScript</td></tr>
    <tr><td><textarea style='width:500px; height:50px' name='txt1' id='txt1'>Query goes here</textarea></td></tr>
    <tr><td style='text-align:center; background-color:#C0C0C0'>HTML diagnostic messages rendered by PHP script</td></tr>
    <tr><td><div id="cbxItem">PHP info will populate this space</div></td></tr>
    </table>
    </form>
    </body>
    </html>The URL of the problem page is:
    http://www.interactived.com/JMTalpha/AMJTest.htm
    The code in the page is based on the following test page, which works:
    http://www.interactived.com/test5Applet.htm
    And the Applet, before I made any changes can be seen at this address:
    http://www.interactived.com/jartest0906.htm
    Thanks again for you interest.
    Edited by: 886473 on 21-Sep-2011 00:47

  • Class not found error while executing jar file

    I have written a java code in which i am connecting to database....when i run the class file using......java class_filename it works........
    but when i run the jar file using .......java -jar jar_name ...yi gives me the error as 'Class not found'......
    can anybody help me please......
    Thanks and Regards,
    Siddhesh

    that class is part of jar file.....in classpath i have included zip files for jdbc ...to get databse connection.....and the jar being executed ................still it gives the error ClassDefnotfound which i think is due to database connection problem.....the exception is raised while.....
    Class.ForName("Driver_name").newInstance();/ This driver is present in zip files that i have added in classpath....
    above statement doesn,t giv error while i execute the class file............but exception while executing jar file only..
    Thnaks and regards,
    siddhesh

  • Access of MySQlL Driver class by eclipse but not from Outside Jar file

    Dear All,
    I have done a standalone application having access with MySQl database.
    I could access it when i execute it from eclipse. But when i export it into Jar file and running I get MySQL Driver class not found exception.
    Give me a better solution for this issue.

    CLASSPATH, CLASSPATH, CLASSPATH.
    You have defined the Eclipses Project Library Path to include the MySQL jar, but ar not including it on the classpath when executing the jar.
    Either modify the MANIFEST.mf file in the jar to include a reference to the MySQL driver jarfile or call java in the following manner
    java -cp /full/path/to/MySQL/Driver/jarfile.jar -jar yourJarFile.jarObviously, if this is on Windows and you are executing through a double click, the first option is the best option.

  • Class not found in web-inf/classes folder of war file within ear file

    Hi all,
              I am using Weblogic 8.1 sp4. I have a war file within an ear file. I am trying to deploy the war file with a few classes within its web-inf/classes folder, however when the classes are in that folder I consistently get a class not found exception when trying to instantiate them. If I package the classes in a jar file and then put that jar file within the web-inf/lib folder of the war, the classes are also not found.
              If I put these two classes in the app-inf/classes folder of the ear file, everything works as expected and the classes are found.
              Any ideas of why this is happening. This seems to be a very simple thing that should work, but appears to not be working at all.
              thanks in advance for any suggestions or ideas.

    Hi,
              This is a known limitation/issue with WL. There is also no way around this.
              Regards,
              LG

  • Main-class not found error while clicking on the jar

    I have a created a jar �FinARM.jar� for my swing application using eclipse.
    Clicking on this jar, it is giving the problem main-class not found.
    It contains the MANIFEST.MF file, with entry Main-Class: FinAlignTest for the main class.
    FinAlignTest is my main class.
    I have a similar jar created with a small swing application (Single file) clicking on it can open the swing application.
    It is also attached above.

    Hi ,
    My Apllication runs with out any warnings or errors. But when i create a jar file using eclipse it is giving this problem.
    When i double click on the jar file i am getting this problem. MANIFEST.MF entry contains the main method entry.
    I have created another jar (Which contains a simple java file, swing application) from eclipse export option.
    It works fine on click.
    But jar FinARM.jar contains 5 files (Swing app), which even fetch some data from the database.
    My jar is placein the same machine where it can fetch data from DB
    Can u plese tell me whats the problem.
    -regards
    Anu

  • Class not found: C:\Orcl\OracleXSU\lib\xmlparser.jar;

    Hi,
    I am testing out the XML functionality within Oracle 8i. I
    downloaded XML SQL Utilities, modified the .bat files and run
    it. The env.bat file ran fine, however, the oraclexmlsql.bat
    file keeps giving me the message error:
    "C:\ORCL\OracleXSU\lib>loadjava -resolve -verbose -
    user "system/manager" xmlparse
    r.jar
    Class not found: C:\Orcl\OracleXSU\lib\xmlparser.jar;"
    I added the xmlparser.jar in the classpath already.
    I am running Oracle 8i, JDK 1.1.8 on NT 4.0 Server Machine. I
    would appreciate any help I can get on this.
    null

    Hi Minh,
    It could be because of case-sensitvity. Looks like your
    directory is C:\ORCL\OracleXSU\lib whereas the error message
    indicates C:\Orcl\... Please check that. (i.e. set the path to
    C:\ORCL\ in the bat file and execute the bat file).
    Also please check the xmlparser.jar file is indeed present in
    the directory shown in the error message.
    Also in the command line window in which you are running the XML
    SQL, please verify the CLASSPATH settings by printing out the
    CLASSPATH. e.g. set %CLASSPATH%.
    Thx
    Murali
    Minh Pham (guest) wrote:
    : Hi,
    : I am testing out the XML functionality within Oracle 8i. I
    : downloaded XML SQL Utilities, modified the .bat files and run
    : it. The env.bat file ran fine, however, the oraclexmlsql.bat
    : file keeps giving me the message error:
    : "C:\ORCL\OracleXSU\lib>loadjava -resolve -verbose -
    : user "system/manager" xmlparse
    : r.jar
    : Class not found: C:\Orcl\OracleXSU\lib\xmlparser.jar;"
    : I added the xmlparser.jar in the classpath already.
    : I am running Oracle 8i, JDK 1.1.8 on NT 4.0 Server Machine. I
    : would appreciate any help I can get on this.
    null

  • Error: initialization error: file java\lang\Object.class not found

    when the error listed my classpath's its not the same list that is in my Windows XP environment variable list?
    I am on 9.0.3
    I am assuming I have to set some varible to my new jdk\bin directory. I reinstalled it. I have set it to use jdk 1.4 using the ojvm tool a while back.

    Please help!!
    I did change the jdev.conf file setting:
    SetJavaHome /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home
    and I still get this error:
    initiallization erro: file java/lang/Object.class not found in classpath
    I am usgin Oracle JDeveloper 10g 10.1.2 on a Mac OS X Tiger
    Could someone please help?
    thanks a bunch!!!

  • Error in compiling: file javax\servlet\jsp\PageContext.class not found

    Hi,
    i'm getting an error when I'm trying to compile an java file. The error is as follows:
    cannot access javax.servlet.jsp.PageContext
    file javax\servlet\jsp\PageContext.class not found
    Isn't the javax package included in jdk? I've installed jdk 1.3.1_03 and j2re1.4.0_02. Shouldn't this PageContext.class be automatically loaded when i've installed jdk?
    I'm getting desperated! I've tried almost everything: i've changed the classpath, moved the directory of the java file I'm trying to compile over and over but i'm getting no success!
    Any help is very welcome!
    Thankx,
    Nuno.

    hmmm... i had a look and it seems that what you are trying to "import" is actually in a package... instead of import try:
    package javax.servlet.jsp;you may need to go download this "package" and complile it in the directory you are working in.
    my advice: try the above statement (which does compile for me), if it doesn't work, you will need to find the source code for this package and compile it just like you do any other source code.
    hope this helps.

  • Object.class not found for JDeveloper For 11.5.102CU (Patch 4573517)

    Hi,
    we've just upgraded to 11.5.10 CU2 and I have downloaded new jdeveloper (4573517). On tryinmg to rebuild Tutorial.jpr I get compilation error "Initialization error. File java\lang\Object.class not found on classpath". JDEV_USER_HOME is set correctly to C:\OAJDEV11510\jdevhome\jdev and appears to be picked up in classpath settings below.
    Full compilation error below:
    Error: initialization error: file java\lang\Object.class not found on classpath C:\OAJDEV11510\jdevhome\jdevbin\jdk\jre\lib\rt.jar;C:\OAJDEV11510\jdevhome\jdevbin\jdk\jre\lib\i18n.jar;C:\OAJDEV11510\jdevhome\jdevbin\jdk\jre\lib\sunrsasign.jar;C:\OAJDEV11510\jdevhome\jdevbin\jdk\jre\lib\jsse.jar;C:\OAJDEV11510\jdevhome\jdevbin\jdk\jre\lib\jce.jar;C:\OAJDEV11510\jdevhome\jdevbin\jdk\jre\lib\charsets.jar;C:\OAJDEV11510\jdevhome\jdev\myclasses;C:\OAJDEV11510\jdevhome\jdev\myhtml\WEB-INF\lib\datatags.jar;C:\OAJDEV11510\jdevbin\jdev\lib\jdev-rt.jar;C:\OAJDEV11510\jdevbin\jdbc\lib\classes12.jar;C:\OAJDEV11510\jdevbin\jdbc\lib\nls_charset12.jar;C:\OAJDEV11510\jdevbin\jlib\jdev-cm.jar;C:\OAJDEV11510\jdevbin\BC4J\lib\bc4jmt.jar;C:\OAJDEV11510\jdevbin\BC4J\lib\collections.jar;C:\OAJDEV11510\jdevbin\BC4J\lib\bc4jct.jar;C:\OAJDEV11510\jdevbin\jdev\appslibrt\xmlparserv2.jar;C:\OAJDEV11510\jdevbin\j2ee\home\lib\jndi.jar;C:\OAJDEV11510\jdevbin\BC4J\lib\bc4jctejb.jar;C:\OAJDEV11510\jdevbin\j2ee\home\lib\ejb.jar;C:\OAJDEV11510\jdevbin\BC4J\lib\bc4jmtejb.jar;C:\OAJDEV11510\jdevbin\BC4J\lib\bc4jhtml.jar;C:\OAJDEV11510\jdevbin\BC4J\lib\datatags.jar;C:\OAJDEV11510\jdevbin\BC4J\lib\bc4juixtags.jar;C:\OAJDEV11510\jdevbin\BC4J\lib\bc4j_jclient_common.jar;C:\OAJDEV11510\jdevbin\BC4J\jlib\bc4jctvb.jar;C:\OAJDEV11510\jdevbin\vbroker4\lib\vbjorb.jar;C:\OAJDEV11510\jdevbin\j2ee\home\lib\ojsp.jar;C:\OAJDEV11510\jdevbin\j2ee\home\jsp\lib\taglib\ojsputil.jar;C:\OAJDEV11510\jdevbin\j2ee\home\oc4j.jar;C:\OAJDEV11510\jdevbin\j2ee\home\lib\servlet.jar;C:\OAJDEV11510\jdevbin\jdev\lib\ojc.jar;C:\OAJDEV11510\jdevbin\jakarta-commons-el\jsp-el-api.jar;C:\OAJDEV11510\jdevbin\jakarta-commons-el\commons-el.jar;C:\OAJDEV11510\jdevbin\jakarta-commons-el\oracle-el.jar;C:\OAJDEV11510\jdevbin\jdev\appslibrt\regexp.jar;C:\OAJDEV11510\jdevbin\jdev\appslibrt\share.jar;C:\OAJDEV11510\jdevbin\jdev\appslibrt\sax2.jar;C:\OAJDEV11510\jdevbin\jdev\appslibrt\uix2.jar;C:\OAJDEV11510\jdevbin\mds\lib\mdsrt.jar;C:\OAJDEV11510\jdevbin\jdev\lib\mdsdt.jar;C:\OAJDEV11510\jdevbin\jdev\appslibrt\oamdsdt.jar;C:\OAJDEV11510\jdevbin\jdev\appslibrt\fwkjbo.zip;C:\OAJDEV11510\jdevbin\jdev\appslibrt\fwk.zip;C:\OAJDEV11510\jdevbin\jdev\appslibrt\wf.zip;C:\OAJDEV11510\jdevbin\jdev\appslibrt\ak.zip;C:\OAJDEV11510\jdevbin\jdev\appslibrt\flex.jar;C:\OAJDEV11510\jdevbin\jdev\appslibrt\aolj.jar;C:\OAJDEV11510\jdevbin\jdev\appslibrt\collections.zip;C:\OAJDEV11510\jdevbin\jdev\appslibrt\appsSSO.zip;C:\OAJDEV11510\jdevbin\jdev\appslibrt\concurrent.zip;C:\OAJDEV11510\jdevbin\jdev\appslibrt\oamMaintMode.zip;C:\OAJDEV11510\jdevbin\jdev\appslibrt\wsp.zip;C:\OAJDEV11510\jdevbin\jdev\appslibrt\fwkCabo.zip;C:\OAJDEV11510\jdevbin\jdev\appslibrt\diagnostics.jar;C:\OAJDEV11510\jdevbin\bibeans\lib\biamlocal.jar;C:\OAJDEV11510\jdevbin\bibeans\lib\bipres.jar;C:\OAJDEV11510\jdevbin\bibeans\lib\bicmn.jar;C:\OAJDEV11510\jdevbin\bibeans\lib\bidatasvr.jar;C:\OAJDEV11510\jdevbin\bibeans\lib\bidataclt.jar;C:\OAJDEV11510\jdevbin\bibeans\lib\bidatacmn.jar;C:\OAJDEV11510\jdevbin\bibeans\lib\biext.jar;C:\OAJDEV11510\jdevbin\bibeans\lib\bicmn-nls.zip;C:\OAJDEV11510\jdevbin\bibeans\lib\bipres-nls.zip;C:\OAJDEV11510\jdevbin\bibeans\lib\bidata-nls.zip;C:\OAJDEV11510\jdevbin\bibeans\lib\olap_api_92.jar;C:\OAJDEV11510\jdevbin\BC4J\lib\bc4jdomorcl.jar;C:\OAJDEV11510\jdevbin\BC4J\jlib\bc4jdatum.jar;C:\OAJDEV11510\jdevbin\jdev\appslibrt\rosettaRt.zip;C:\OAJDEV11510\jdevbin\jdev\appslibrt\cacheFwk.zip;C:\OAJDEV11510\jdevbin\jdev\appslibrt\jttComn.zip;C:\OAJDEV11510\jdevbin\jdev\appslibrt\iasjoc.zip;C:\OAJDEV11510\jdevbin\jdev\appslibrt\pat.zip;C:\OAJDEV11510\jdevbin\jdev\appslibrt\portalFlexComps.jar;C:\OAJDEV11510\jdevbin\jdev\appslibrt\svc.zip;C:\OAJDEV11510\jdevbin\BC4J\jlib\bc4jtester.jar;C:\OAJDEV11510\jdevbin\lib\xmlparserv2.jar;C:\OAJDEV11510\jdevbin\jlib\help4-nls.jar;C:\OAJDEV11510\jdevbin\jlib\help4.jar;C:\OAJDEV11510\jdevbin\jlib\share.jar;C:\OAJDEV11510\jdevbin\jlib\jewt4-nls.jar;C:\OAJDEV11510\jdevbin\jlib\jewt4.jar;C:\OAJDEV11510\jdevbin\jlib\oracle_ice5.jar

    RT.JAR Files as mentioned in the Error log is not in the Directory ( you can verify)
    Usually rt.jar is in
    jdevbin\jdk\jre\lib.. Check the JDEV_USER_HOME variable and also the Libraries under Project Setting of JDEV , when you click on any specific lib it show you a path in the class path section..verify the same.
    Thanks,
    Sunit

  • "Java Class not found in classpath" Error in DESIGNER

    Hello All,
    I'm trying to connect in Designer using a JDBC connection to MS SQL Server 2008.  As per the instructions, I updated my jdbc.sbo file with the path to the existing two JAR files.  However, I still get the following error when I try and connect in Designer:  "Java Class not found in classpath : C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\dataAccess\connectionServer\jdbc\Drivers\sqlsrv".  Of course, this error includes the drive path with the location to my JAR files.  Any help in resolving this nagging issue is very GREATLY appreciated.  Also, if anyone needs it I can post a copy of the jdbc.sbo file to this thread.
    Thank you,
    Pankaj

    Stratos,
    Your suggestion didn't help.  I tried to connect after restarting my machine and I still get the error.  And, I've also tried adding a connection to MS SQL Server 2005 using this JDBC driver, and that didn't help either.  Any other suggestions?  Would it help to see my "jdbc.sbo" file?  Thanks again for your and everyone else's help, and I look forward to your reply.
    Regards,
    Pankaj

Maybe you are looking for

  • Nexus 7010 fabric extender timing out

    Hello - We have a Nexus 7010 and we are testing out using the fabric extenders for a need.  We have a demo 2224 unit and have it connected to our M132XP-12 10G blade in the 7K but the FEX won't come online.  I would have figured a possible software i

  • Developer 6i Patch Info - missing links

    Developer 6i Patch Info - missing links The following links from within the metalink patch info section are missing, any help locating a list of bugs fixed for Forms and Reports, would much appreciated. "Oracle Forms Developer Release 6i Patch 14: Bu

  • How to open an image in which i can scroll down

    Hello Things may have changed, but I can't figure out how to do this : I got an MSO (1:0% / 2:100%) and i want a button to open the sate 2 which is a big full screen image (1024*2000) okay i can have it opened, and closed etc. but can't find out how

  • Drawbacks to the new CS6 Color Picker?

    What do people think about the new color picker in Fireworks CS6? I like the new larger swatches and default palette: a revised "Color Cubes" layout that includes non-web-safe colors and a selection of warm and cool greys/neutrals. I also like the op

  • Forms runtime processes and prestart settings

    Hi I have an App Server 10.1.2.2.0 and this is running on Windows 2003 64-bit. In my formsweb.cfg file I have the following settings: prestartRuntimes=True prestartTimeout=0 prestartInit=5 prestartMin=5 When I start Forms services I was expecting 5 r