Xdb.jar and xmlparserv2.jar for JBossWeb/2.0.0.GA

I am using xdb.jar and xmlparserv2.jar files in JBoss 4.0.0 and it is working fine but when i deploy my code on JBossWeb/2.0.0.GA it is giving error.
"java.lang.NullPointerException
org.apache.commons.digester.Digester.getXMLReader(Digester.java:899)
org.apache.commons.digester.Digester.parse(Digester.java:1647)
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1006)
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)
org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
javax.servlet.GenericServlet.init(GenericServlet.java:212)
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:381)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:595)"
Could anyone pleaese suggest what could be the possibe reason for this error. Do we need some differant version of jar files for the JBossWeb/2.0.0.GA.
Thanks and Regards
Govind Bajoria

I had a similar problem using xmlparserv2.jar and commons-digester in the same application. It appears that xmlparserv2 sets itself as the default SaxParser but commons-digester doesn't like this (I read it looks for a Version class for the SaxParser and can't find it).
I solved this problem by explictly setting the SaxParserFactory by adding this System parameter
-Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
This works for JDK 6 but I assume if you are using an early JDK version and have xerces jar on the class path then setting the following will also work
-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl

Similar Messages

  • Can't get matching xdb6.jar, xmlparserv2.jar and ojdbc6.jar

    No matter what I try, they are always somewhat different and I'm getting exceptions with JDBC on either setSQLXML or on .getString() once I retrieved the SQLXML object and want to get the content back or I'm downright getting "oracle.xdb.XMLType cannot be cast to java.sql.SQLXML"
    How is it possible that Oracle who owns Java and OracleDB can't make a working Java driver? I just want to be able to work with XML, I didn't know this was asking much. I have OracleXE installed.

    Welcome to the forum!
    Whenever you post you need to provide ALL of the product and version information applicable to the question or issue you are asking about
    >
    No matter what I try, they are always somewhat different and I'm getting exceptions with JDBC on either setSQLXML or on .getString() once I retrieved the SQLXML object and want to get the content back or I'm downright getting "oracle.xdb.XMLType cannot be cast to java.sql.SQLXML"
    >
    Before you submit a question or issue use the 'Preview' tab so you can see it as it will display. Then read your entire submission and ask yourself:
    >
    Could I answer a question like that based ONLY on the information that was provided?
    >
    For this thread the answer would be NO!
    All you have done is complain. That is basically the equivalent of a five year old saying 'Mommy, my tummy hurts'.
    >
    No matter what I try
    >
    What did you try? You haven't posted ANY information about what you are even doing, what jars, tools or code you are doing it with or HOW you are doing it.
    >
    I'm getting exceptions with JDBC on either setSQLXML or on .getString() once I retrieved the SQLXML object
    >
    What exceptions? You haven't posted ANY exceptions or any of the code that caused those exceptions.
    Retrieved WHAT SQLXML object? Retrieved from where? What is the full name and version of the database you are using? For Oracle that would be the 4 digit version as returned by 'SELECT * FROM V$VERSION'. Oracle DB doesn't have any SQLXML objects; it has XMLTYPE columns. Is that what you are trying to access?
    >
    Can't get matching xdb6.jar, xmlparserv2.jar and ojdbc6.jar
    >
    Where did you get them from? How did you get them? How do you know that they don't match? What is the full name and version of the jars that you are using?
    Have you used this functionality before? Do you know how to use it? If you have never used it and have no expertise with it we need to know that so we can tell you how to get up to speed so you can use it successfully.
    Since you haven't provided ANY of the information needed to provide any specific suggestions all we can do is assume that you are using the last, current version of Java and all jars files and have never used the functionality. In that case you need to start at the beginning.
    Review the relevant sections of the JDBC Developer's Guide
    http://docs.oracle.com/cd/E18283_01/java.112/e16548/jdbcvers.htm#BABGHBCC
    >
    SQLXML Type
    One of the most important updates in JDBC 4.0 standard is the support for the XML data type, defined by the SQL 2003 standard. Now JDBC offers a mapping interface to support the SQL/XML database data type, that is, java.sql.SQLXML. This new JDBC interface defines Java native bindings for XML, thus making handling of any database XML data easier and more efficient.
    The oracle.jdbc.getObjectReturnsXMLType Property
    In Oracle Database 10g and earlier versions of Oracle Database 11g, Oracle JDBC drivers supported the Oracle SQL XML type (XMLType) through an Oracle proprietary extension. XML values were represented by instances of the oracle.xdb.XMLType class and the SQL XMLType values were read and set through the JDBC standard getObject, setObject, and updateObject methods.
    The JDBC standard requires the getObject method to return an instance of java.sql.SQLXML type when called on a SQL XML type column. But, the earlier versions of Oracle JDBC drivers return an instance of oracle.xdb.XMLType. This does not conform to the JDBC standard.
    The current release of Oracle JDBC drivers conform to the JDBC standard with the introduction of a new connection property, oracle.jdbc.getObjectReturnsXMLType. If you set this property to false, then the getObject method returns an instance of java.sql.SQLXML type. You can achieve this by using the following command line option while compiling your program with javac:
    -Doracle.jdbc.getObjectReturnsXMLType="false"
    If you depend on the existing Oracle proprietary support for SQL XMLType using oracle.xdb.XMLType, then you can change the value of this property back to true by using the following command line option:
    -Doracle.jdbc.getObjectReturnsXMLType="true"
    The value of the oracle.jdbc.getObjectReturnsXMLType property is a String representing a boolean value of either true or false. If the value of this property is true, then the getObject method returns oracle.xdb.XMLType instances, when called for a SQL XMLType column. This is the deafault value of the oracle.jdbc.getObjectReturnsXMLType property. If the value of this property is false, then the getObject method returns java.sql.SQLXML instances. This is the standard JDBC-compliant mode.
    Note:
    The oracle.jdbc.getObjectReturnsXMLType property affects only the result of the getObject method. All other methods conform to the JDBC 4.0 standard regardless of the value of the property.
    >
    The exception that you are getting
    >
    oracle.xdb.XMLType cannot be cast to java.sql.SQLXML
    >
    is telling that the XMLType is NOT an SQLXML type so you can't use it as one. That doc section above should tell explain that those are two DIFFERENT types. You use one or the other depending on which version of the functionality you want to use. You can use the older 'non-JDBC' standard or the new 'JDBC' standard. But you can't mix the two.
    Review that entire chapter of the doc and see if that helps.
    If not then you need to provide ALL relevant information if you need more help:
    1. Java version
    2. DB name and version
    3. JAR file names and versions
    4. Java code that demonstrates the problem
    5. EXACT copies of any and all exceptions and errors that occur
    6. A description, in English, of what you are trying to do and how you are trying to do it.
    When you post use \ on the line before and on the line after any code to preserve formattting. See the FAQ for other formatting guidelines. Use the 'Preview' tab to see what your post will look like before you submit it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Old versions of aqapi.jar and xsu12.jar in 10.2 for Windows

    I found out that oc4j in 10.2 for Windows contains old versions (1.2) of aqapi.jar and xsu12.jar in oracle_home\oc4j\rdbms\jlib. It was not a problem but when I tried to implement an AQ servlet that interact with a typed XMLType queue I got the java exception during dequeuing:
    java.sql.SQLException: XMLTypeFactory can only work with OPAQUE
    at oracle.xdb.XMLTypeFactory.create(XMLTypeFactory.java:75)
    at oracle.jdbc.driver.Accessor.getORAData(Accessor.java:1387)
    at oracle.jdbc.driver.OracleCallableStatement.getORAData(OracleCallableStatement.java:1487)
    at oracle.AQ.AQOracleQueue.dequeue(AQOracleQueue.java:1681)
    at oracle.AQ.AQOracleQueue.dequeue(AQOracleQueue.java:1294)
    at oracle.AQ.xml.AQxmlProcessor.dequeueAdtMessages(AQxmlProcessor.java:2564)
    at oracle.AQ.xml.AQxmlProcessor.dequeueOperation(AQxmlProcessor.java:1988)
    at oracle.AQ.xml.AQxmlProcessor.performAQoperations(AQxmlProcessor.java:678)
    at oracle.AQ.xml.AQxmlProcessor.processMessage(AQxmlProcessor.java:381)
    at oracle.AQ.xml.AQxmlServlet.doPost(AQxmlServlet.java:238)
    The solution is to replace the old versions of these files with new or somehow to remove references to these jars from classpath.

    I've been able to find someone willing to do some testing that I can't do without installing old versions of Reader on my computer.  The surprising (to me) result is that the Submit button causes the problem.  By simply removing the Submit button, Reader 10 is now able to print page 1.  The Submit button was set up to do a "mailto".  I don't know whether other destinations also cause the problem of the page not printing with old versions of Reader.

  • [svn:fx-trunk] 10055: localized classpath fix for mxmlc.jar,compc. jar and asdoc.jar - add mxmlc_ lang .jar to the path.

    Revision: 10055
    Author:   [email protected]
    Date:     2009-09-08 09:41:10 -0700 (Tue, 08 Sep 2009)
    Log Message:
    localized classpath fix for mxmlc.jar,compc.jar and asdoc.jar - add mxmlc_.jar to the path.  Without these localized errors and warnings aren't generated.
    QE notes: ensure the errors and warnings are generated properly
    Doc notes: no
    Bugs: sdk-22806
    Reviewer:
    Tests run: checkintests:pass
    Is noteworthy for integration: no
    Ticket Links:
        http://bugs.adobe.com/jira/browse/sdk-22806
    Modified Paths:
        flex/sdk/trunk/modules/compiler/build.xml

    So do you know how I can get JavaStudio to add
    library classes and JAR''s into the packaged dist
    file?I was wrong in my previous post. Sorry.
    It's impossible to specify additional classpath with '-jar' option.
    http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/java.html#options
    �-jar
    When you use this option, the JAR file is the source of all user classes, and other user class path settings are ignored. �
    So the only solution is to add libs into jar file and declare them in manifest.
    One possible way of how to do it in JSE8 is:
    1. Put all necessary lib jars to some place under src folder.
    2. Add those jars into Compile-time libraries list (Project properties -> Libraries) for correct compilation
    3. Switch to 'Files' JSE8 tab, open manifest.mf file (it's in projects root) and add your lib jars to it.
    Syntax is:
    Class-Path: relative URLs
    That's it.

  • Where to download wlst.jar and python.jar for weblogic 10

    where to download wlst.jar and python.jar for weblogic 10 ? I am unable to find the links ..most of the prevoius ones point to dev2dev which are no longer valid

    Hi,
    I have written the below python script to list the user ,that was created in realms->myrealms->users.
    It's not working it.
    Kindly help to in this python script.
    from weblogic.management.security.authentication import UserReaderMBean
    from weblogic.management.security.authentication import GroupReaderMBean
    file_loc='MbeanValues.properties'
    file=java.io.File(file_loc)
    if file.exists():
         loadProperties(file_loc)
    connect(dwlusr,dwlspwd,dwlsurl)
    domain_name = cmo.getName()
    print 'UserName='+dwlusr
    print 'URL='+dwlsurl
    print 'DomainName='+ domain_name
    print 'welcome'
    print 'Checking if isMember of a group'realm=cmo.getSecurityConfiguration().getDefaultRealm()
    atns = realm.getAuthenticationProviders()
    for i in atns:
    if isinstance(i,UserReaderMBean):
    userReader = i cursor = i.listUsers("*",0)
    print 'Users in realm '+realm.getName()+' are: '
    while userReader.haveCurrent(cursor):
    print userReader.getCurrentName(cursor)
    userReader.advance(cursor)
    userReader.close(cursor)for i in atns:
    if isinstance(i,GroupReaderMBean):
    groupReader = i
    cursor = i.listGroups("*",0)
    print 'Groups in realm are: '
    while groupReader.haveCurrent(cursor):
    print groupReader.getCurrentName(cursor)
    groupReader.advance(cursor)
    groupReader.close(cursor)
    disconnect()

  • Got exception with p13n_app.jar and p13n_system.jar into classpath for 9.2

    Hi, Portal guru:
    I installed wls9.2&portal9.2, and put p13n_app.jar and p13n_system.jar into classpath from startWeblogic.cmd.
    then looks portalApp can not be loaded due to the following exception:
    java.lang.Error: Clonable is not clonable: java.lang.CloneNotSupportedException: com.bea.p13n.expression.operator.c
    omparative.Equals: 4138928
    com.bea.content.expression.PropertyRef: 4138900
    java.lang.String
    cm_nodeName
    java.lang.String
    CmxControlUniqueKeysFolder
    : com.bea.content.expression.PropertyRef
    at com.bea.content.expression.Search.clone(Search.java:568)
    at com.bea.content.manager.internal.SearchOpsImpl.createSearchForRepo(SearchOpsImpl.java:376)
    at com.bea.content.manager.internal.SearchOpsImpl.searchRepository(SearchOpsImpl.java:203)
    at com.bea.content.manager.internal.SearchOpsImpl.search(SearchOpsImpl.java:159)
    any know what is the problem?
    Thanks in advance.

    I don't think it's supported to have app-scoped class in the system
    classpath. I'm surprised your 814 app worked that way.
    It might be that changes in 9.2 have caused some of the classes the
    system classloader is hitting to now try to load other classes that are
    only available in an application classloader, which the system
    classloader cannot access.
    http://e-docs.bea.com/wls/docs90/programming/classloading.html has
    information about the classloader hierarchy in WLS/WLP.
    One way to have a system-classloader class access an
    appliation-classloader is via the
    Thread.currentThread().getContextClassLoader(), and then either use
    reflection or have the class implement an interface available in the
    system classloader. This allows code at the system classpath level to
    access implementation classes loaded up as part of an application,
    rather than relying upon the built-in classloading which can't see
    classes in children classloaders. However, this would entail having a
    system classpath jar and an application jar, which is why WLP has
    p13n_system.jar and p13n_app.jar.
    Greg

  • Webutil.jar and jacob.jar in same archive ?

    Hi,
    When a user connects for the first time to a webutil configured Forms application, 2 popups show up and ask to accept the X509 certificate (because webutil.jar and jacob.jar are signed).
    Our customer wants to know if it's possible to show only one popup (to reduce enduser hassle).
    How can we do it ?
    Is it possible to package webutil and jacob in the same single archive, sign this archive and so have only one popup ?? Any other ideas ?
    Regards

    It's not impossible to find a solution, but then you are miles away from any support from the oracle hotline.
    Don't do that
    Gerd
    PS: Are your users inhouse. Is it possible, that you deploy the jar's via a Software Management System? That may help in this case

  • Where do I put the Jakarta files standard.jar and jstl.jar when developing with JSF 2.0 in OEPE using web logic server

    hi everybody, I am wondering what should i do with the standard.jar and jstl.jar files when using we logic. I tried putting both files into
    the directory c:\oracle\middleware\oracle_home\user_projects\domains\base_domain\bin.  I don't know if this is correct.  Thanks in
    in advance for the help.

    Anyways I found this link on www.oracle.com website by the same author of the book I am reading Deepak Vohra - Templating with JSF 2.0 Facelets.
    although here he is using Weblogic 11g although I don't think it makes a difference.  have a look at the Setting up the Environment section
    where he says to download the jstl.jar and standard.jar files.
    http://www.oracle.com/technetwork/articles/java/facelets-454361.html

  • Weblogic.jws.Policies.class is missing in weblogic.jar and wlfullclient.jar

    Hi,
    I am trying to upgrade Weblogic from 9.1 to 10.3.2 or 10.3.3
    In Weblogic 9.1, our application used weblogic.jar in our classpath.
    After we installed Weblogic 10.3.3, the new weblogic.jar can be found in: <WLS_HOME>\wlserver_10.3\server\lib
    However, some class files are missing and we realized we need to manually generate wlfullclient.jar and use this jar file instead.
    Reference: http://download.oracle.com/docs/cd/E12840_01/wls/docs103/client/jarbuilder.html
    The problem is that in Weblogic 10.3.3, the following class files are missing inside weblogic.jar and wlfullclient.jar
    - import weblogic.jws.Policies
    - import weblogic.jws.Policy
    Hence, our application is getting an "The import weblogic.jws.Policies cannot be resolved" error in our code.
    I look inside both weblogic.jar and wlfullclient.jar, weblogic.jws.Policies and weblogic.jws.Policy cannot be found.
    This is not an issue in Weblogic 10.3.2. These two classes can be found in wlfullclient.jar
    Any idea where I can find these class files for Weblogic 10.3.3 or something we are doing is incorrectly?
    Thanks
    Toan

    Hi,
    This missing classes can be found inside the JAR : *"E:\bea10_3_3\wlserver_10.3\server\lib\wseeclient.jar"* As well as inside *"E:\bea10_3_3\wlserver_10.3\server\lib\wls-api.jar"*
    Thanks
    Jay SenSharma
    http://weblogic-wonders.com/weblogic/webservices/ (WebLogic Wonders Are Here)

  • LDAP Console: why are ds52.jar and ds522.jar needed?

    I updated Sun DS from 5.2 to 5.2 patchlevel 2, the server on Solaris and the LDAP Console on Windows a while ago.
    If I start the LDAP Console all is well.
    If I open the "Server Group" tree node, it wants to download admserv52.jar and ds52.jar
    which fails.
    There are admserv522.jar and ds522.jar (and others with 522 in their file name in the java/jars directory.
    If I copy admserv52.jar and ds52.jar by hand the LDAP Console is able to open the nodes under Server Group,
    but I guess they use the 5.2 and not the 5.22 Versions.
    As an experiment I removed all 5.2 Versions and renamed the 5.22 Versions to 5.2. Result: The LDAP Console does work and it only needs the 5.22 jars.
    Info on Main Console says Server Console 5.2
    Build 2004.007.1414
    Info an Directory Server Windows says Server 5.2
    Build 2003.143.0020(I use the german localized versions but I guess the problem is not relate to that fact)
    Question: How do I configure my setup to use only the new 5.22 Versions in the Console?
    Where did my update go wrong? Or do I really need the 5.2 and 5.22 Versions in /java/Jars?
    Thanks,
    Frerk Meyer

    By try and error I found out that even when I upgraded my
    Sun ONE Directory Server 5.2 to patch level 2, the configuration
    in the administration directory was not changed to the new
    version. So one couldn't connect with the new console
    version 5.2pl2 but used and needed the old one effectively.
    To use the 5.2 pl 2 console there need to be the following
    files in the client directory:
    <root of sun ldap console>/java/jars/
    ds522.jar (main console application)
    ds522_en.jar (english language resources)
    ds522_de.jar (german language resources, in my case, optional)
    ds522.icon (icon used in the console)
    and for the administration console:
    admserv522.jar
    admserv522_en.jar
    admserv522_de.jar
    admserv522.icon
    The old file with the '52' in their name may stay where they
    are to connect to unpatched 5.2 Servers and 5.2pl2 Servers
    without updated configuration.
    The configuration is under:
    cn=ResourceEditorExtension, ou=4.0, ou=Admin, ou=Global Preferences, ou=zentrale.edekanet.de, o=NetscapeRoot
    Search for the attribute 'nsclassname' in all subentries where there
    is a substring '@ds52.jar' and change it to '@ds522.jar'.
    With newer versions of the Sun Directory Server there are
    even jar files with names like 'ds523.jar'. Proceed like above.
    After the next start of the console you are using the new 5.2pl2
    Versions with all bugfixes and enhancements. To verify you may
    move the '52' files away, start and connect. If the directory server
    is configured the right way it won't try to download the '52' files
    to your local computer.
    Frerk

  • Activation.jar and mail.jar version ????

    I have deployed a web service in Weblogic v7.0 which accepts DataHandler as one
    of its paramters ( for attachments).
    When I invoke from a soap client (weblogic v8.0) it works fine. For using with
    soap client (weblogic v7.0) its
    gives a serializer exception.
    What version of activation.jar and mail.jar should I use for sending attachment
    from weblogic 7.0 client.
    Regards
    Kumar Raj

    Hi Kumar,
    Could you post the exception traceback and clarify the configuration
    (v7.x client to v7.x server fails, but v8.1 client to v7.x server works
    OK?)
    You may also want to take a look at the docs on creating portable stubs
    [1] associated with creating the client jar.
    Thanks,
    Bruce
    [1]
    http://edocs.bea.com/wls/docs81/webserv/client.html#1076586
    Kumar Raj wrote:
    >
    I have deployed a web service in Weblogic v7.0 which accepts DataHandler as one
    of its paramters ( for attachments).
    When I invoke from a soap client (weblogic v8.0) it works fine. For using with
    soap client (weblogic v7.0) its
    gives a serializer exception.
    What version of activation.jar and mail.jar should I use for sending attachment
    from weblogic 7.0 client.
    Regards
    Kumar Raj

  • Where can i download the util.jar and base.jar File?

    Hi all,
    in some SAP-Notes are describe where i can download these Files.
    For Example:
    http://service.sap.com/netweaver
    SAP NetWeaver
    -> SAP Netweaver in Detail
        -> Application Platform
           -> DB and OS abstraction
              -> Platforms
                 -> Platform specific information
                    -> Microsoft      
    x SQL Server
    ZIP-File: "JDBC Driver for MS SQL Server"
    But there are no ZIP-File !!!
    Can anyone tell me where i can find the base.jar and util.jar File?

    Hi Christian,
    when using a vendor's JDBC drivers, you must go to the vendor to get them. For Microsoft here is a good place to start: http://www.microsoft.com/sql/downloads/
    These JDBC files should also be included with you SQL Server CDs...
    Hope this helps!
    Cheers,
    Jeff

  • Classes12.jar and nls_charset12.jar Version

    I am running a java application that talks to 9.2.0.1 Oracle database. I am using classes12.jar,ocrs12.jar and nls_charset12.jar and neither of the jars have a manifest file with a verson number. The classes in the classes12.jar and ocrs12.jar were compiled on 5/17/2001 and the classes in nls_charset12.jar were compiled on 7/13/2000. I need to know what version these jars are, is there any way for you to tell me based on the compilation dates. I tried looking on Oracle download sites for the 9.2.0.1 jdbc jars and they all had classes that were compiled on different dates.
    thank you very much

    You can find out the version of the JDBC driver you're using by creating a DatabaseMetaData object and querying it. The snippet below should work:
        DatabaseMetaData meta = conn.getMetaData();
        // gets driver info:
        System.out.println("\n=============\nDatabase Product Name is ... " +
                           meta.getDatabaseProductName());
        System.out.println("\nDatabase Product Version is " +
                           meta.getDatabaseProductVersion());
        System.out.println("\n=============\nJDBC Driver Name is ........ " +
                           meta.getDriverName());
        System.out.println("\nJDBC Driver Version is ..... " +
                           meta.getDriverVersion());
        System.out.println("\nJDBC Driver Major Version is " +
                           meta.getDriverMajorVersion());
        System.out.println("\nJDBC Driver Minor Version is " +
                           meta.getDriverMinorVersion());
        System.out.println("\n=============");I know of no way, however, to get this information based on the compilation dates of the files.
    Justin
    Distributed Database Consulting, Inc.
    www.ddbcinc.com/askDDBC

  • Can't find jcert.jar, jnet.jar, and jsse.jar

    I am trying to implement SSL in Tomcat (1.4.18 I think). I have already installed j2sdk1.4.1_01 which is supposed to contain thise files, but I can't find them.
    Does anybody know why this might be happening?

    If you are using j2sdk1.4.1, only jsse.jar exist the rest of it does not. Check the jre folder in your java_home folder and you will see jsse.jar. Copy the jsse.jar and paste it into java_home/jre/lib/ext. after that you can continue with your SSL configuration. I tried it and works fine even without the jnet.jar and jcert.jar. I had the same problem as you when I was configuring SSL on my resin webserver. the documentation for installing jsse may only be applicable to java version jdk1.3 and below.

  • Difference j2ee.jar and javaee.jar

    Hi, it is not clear for me why exist 2 files j2ee.jar and javaee.jar. I have look manifest file for j2ee.jar and found that only contains path to javaee.jar. But
    If I add as library only j2ee.jar to my project - doesn't found e.g. import javax.mail.Folder.
    Problem will be resolved if I add only javaee.jar. But why we need j2ee.jar?

    j2ee.jar has the interface definitions for Java EE v1.4 specification whereas javaee.jar has the interface definitions for Java EE v1.5 (the name has been simplified to Java EE v5). So when you are developing an application that uses JEE v1.4 then you will need j2ee.jar on your classpath when compiling (do not need to package it in the module when deploying). And when you are developing an application that uses JEE v5 then you will need javaee.jar on your classpath when compiling (do not need to package it in the module when deploying).
    The next two questions that might come to your mind are:
    1. How do you know which JEE version you are using for development?
    The j2ee.jar and javaee.jar files are just API deifinitions (interfaces, and abstract classes) for the corresponding Java EE versions (i.e. 1.4 and 5 respectively). These APIs were designed by SUN and specify a contract between a Java EE container and the applications that will be deployed on the container. The implementation of this contract is provided by the various application server vendors. For example, Glassfish v2ur2 implements BOTH versions, however it requires you to specify, in the deployment descriptions, the JEE version which is to be used for the application that you are deploying.
    So in short the version of JEE you are using is specified in the deployment descriptor for the application.
    2. Why do we need these jars only during compilation and do not need to add it to the war (or jar) when deploying our module to the app server?
    The reason is that it will already be available in the app server that you are deploying you application to. This seems quite obvious as if i provide implementation of an interface, i will need to give you the interface as well as you will actually be using my implementation via the interface and not by directly calling my implementation classes. If you directly call my implementation classes then it will beat the whole purpose of defining a standard interface that everyone can use.
    I hope that clears out a few things.
    Regards,
    Jawad.

Maybe you are looking for