Unable to load/parse portlets config SAX2 driver

Hi All
I try no test our software with several AS (Resin, HPAS, etc.) With OC4J we have $subj error. This is my steps:
1 Unzip oc4j_extended.zip
2 Add web-module to default application.
in application.xml:
<web-module id="Axiom" path="/opt/gorod/axiom" />
in http-web-site.xml:
<web-app application="default" name="Axiom" root="/axiom" />
3 Start it
4 Try to connect http://mysite.com:8888/axiom
And watch my log:
2/12/02 11:44 AM: ERROR: unable to load/parse portlets config SAX2 driver class org.apache.xerces.parsers.SAXParser not found: SAX2 driver class org.apache.xerces.parsers.SAXParser not found
2/12/02 11:44 AM: org.jdom.JDOMException: SAX2 driver class org.apache.xerces.parsers.SAXParser not found: SAX2 driver class org.apache.xerces.parsers.SAXParser not found
2/12/02 11:44 AM: at org.jdom.input.SAXBuilder.build(SAXBuilder.java:320)
2/12/02 11:44 AM: at org.jdom.input.SAXBuilder.build(SAXBuilder.java:408)
2/12/02 11:44 AM: at ru.gorod.xpml.PortletsConfig.load(PortletsConfig.java:819)
2/12/02 11:44 AM: at ru.gorod.xpml.PageProcessorServlet.reloadConfig(PageProcessorServlet.java:733)
2/12/02 11:44 AM: at ru.gorod.xpml.PageProcessorServlet.__bgReloadConfig(PageProcessorServlet.java:702)
2/12/02 11:44 AM: at ru.gorod.xpml.BGConfigReloadingThread.run(BGConfigReloadingThread.java:16)
2/12/02 11:44 AM: Root cause: 2/12/02 11:44 AM: java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
2/12/02 11:44 AM: at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:118)
2/12/02 11:44 AM: at org.jdom.input.SAXBuilder.build(SAXBuilder.java:237)
2/12/02 11:44 AM: at org.jdom.input.SAXBuilder.build(SAXBuilder.java:408)
2/12/02 11:44 AM: at ru.gorod.xpml.PortletsConfig.load(PortletsConfig.java:819)
2/12/02 11:44 AM: at ru.gorod.xpml.PageProcessorServlet.reloadConfig(PageProcessorServlet.java:733)
2/12/02 11:44 AM: at ru.gorod.xpml.PageProcessorServlet.__bgReloadConfig(PageProcessorServlet.java:702)
2/12/02 11:44 AM: at ru.gorod.xpml.BGConfigReloadingThread.run(BGConfigReloadingThread.java:16)
Why? File xerces.jar Placed with application (in /opt/gorod/axiom/WEB-INF/lib) and have all permissions.
Also I try to start java with -Xbootclasspath/a: option but it has equal result.
PS Sorry for my english :-\

mv xerces.jar $J2EE_HOME
cd $J2EE_HOME
java -Xbootclasspath/a:xerces.jar\;jaxp.jar -jar oc4j.jar &
No changes :-(
But with
java -Xbootclasspath/a:xerces.jar:jaxp.jar -jar oc4j.jar &
VM not starts and shows error:
2/13/02 9:33 AM: javax.xml.parsers.FactoryConfigurationError: oracle/xml/jaxp/JXDocumentBuilderFactory
2/13/02 9:33 AM: at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:154)
2/13/02 9:33 AM: at com.evermind.xml.JavaxXMLUtils.getJavaxDocument(JavaxXMLUtils.java:23)
2/13/02 9:33 AM: at com.evermind.xml.XMLUtils.getDocument(XMLUtils.java:157)
2/13/02 9:33 AM: at com.evermind.xml.XMLConfig.init(XMLConfig.java:131)
2/13/02 9:33 AM: at com.evermind.xml.XMLConfig.init(XMLConfig.java:88)
2/13/02 9:33 AM: at com.evermind.server.XMLApplicationServerConfig.init(XMLApplicationServerConfig.java:1298)
2/13/02 9:33 AM: at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:43)
2/13/02 9:33 AM: at java.lang.Thread.run(Thread.java:484)
2/13/02 9:33 AM: at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:47)

Similar Messages

  • Torrentflux 2.4 (ADONewConnection: Unable to load database driver)

    I'm trying to setup Torrentflux 2.4 on my server.
    I used the torrentflux PKGBUILD vom AUR: http://aur.archlinux.org/packages.php?ID=1664
    I set up Apache/MySQL/PHP following the guide. PHP test script is working fine:
    <?php phpinfo(); ?>
    I setup a symbolic link from /srv/http to my /opt/torrentflux
    ls /srv/http/
    insgesamt 4
    -r--r--r-- 1 root root 20 6. Mär 21:23 test.php
    lrwxrwxrwx 1 root root 17 6. Mär 21:07 torrentflux -> /opt/torrentflux/
    When I try to open /torrentflux/login.php in my webbrowser it says
    ADONewConnection: Unable to load database driver ''
    I left the default in torrentflux' config.php:
    $cfg["db_type"] = "mysql"; // mysql, postgres7, postgres8 view adodb/drivers/
    ls /opt/torrentflux/adodb/drivers/
    insgesamt 532
    -r--r--r-- 1 root daemon 20476 6. Mär 20:44 adodb-mysql.inc.php
    -r--r--r-- 1 root daemon 25340 6. Mär 20:44 adodb-mysqli.inc.php
    -r--r--r-- 1 root daemon 3220 6. Mär 20:44 adodb-mysqlt.inc.php
    I'm pretty new to the whole LAMP stuff, so can please any1 tell me what's going wrong?

    Ok, some questions:
    1. Did you enable mysql in php.ini?
    http://wiki.archlinux.org/index.php/LAMP#MySQL
    2. Did you read / follow the torrentflux installation guide included with the installation?
    (if not, check here: http://www.torrentflux.com/)
    3. I have not worked with the package from AUR, the package form the official site (again, http://www.torrentflux.com/) works well for me. Did you try this?

  • Unable to load my sql driver

    So frustrated to see my servlet cant connect to mysql database, anyone pls help me?
    i put mysql-connector-java-2.0.14-bin.jar in
    C:\Apache\Tomcat 4.0\common\lib
    C:\Apache\Tomcat 4.0\webapps\ROOT\WEB-INF\lib
    D:\j2sdk1.4.0_03\jre\lib\ext
    here the exception:
    javax.servlet.ServletException: Unable to load driver
         at FormHandlerServlet.init(FormHandlerServlet.java:27)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:918)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
         at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:400)
         at org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:216)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:536)
    here is my servlet:
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    import java.sql.*;
    import java.sql.Date;
    public class FormHandlerServlet extends HttpServlet{
    private static final String driver="com.mysql.jdbc.driver";
    private static final String dbURL= "jdbc:mysql://localhost/aos";
    private static final String login= "aos";
    private static final String password= "aos";
    private ServletContext context;
    private Connection conn= null;
    private Statement stmt= null;
    public void init(ServletConfig config) throws ServletException{
         super.init(config);
         context= config.getServletContext();
         try{
         Class.forName(driver);
         conn= DriverManager.getConnection(dbURL, login, password);
         stmt= conn.createStatement();
         catch(ClassNotFoundException e){
         System.err.println("Unable to load driver");
         throw new ServletException("Unable to load driver");
         catch(SQLException e){
         System.err.println("Unable to connect to database");
         throw new ServletException("Unable to connect to database");
    public void service(HttpServletRequest req,
              HttpServletResponse res)
         throws ServletException, IOException{
         Vector errors= new Vector();
         Calendar startCalendarDate = Calendar.getInstance(TimeZone.getDefault());
         java.util.Date startUtilDate = new java.util.Date();
         long startLongDate = startCalendarDate.getTime().getTime();
         java.sql.Date startSqlDate = new java.sql.Date(startLongDate);
         String userID= req.getParameter("userID");
         String password1= req.getParameter("password1");
         String password2= req.getParameter("password2");
         String name= req.getParameter("name");
         String ic= req.getParameter("ic");
         String status= req.getParameter("status");
         String gender= req.getParameter("gender");
         String department= req.getParameter("department");
         String email= req.getParameter("email");
         String phone=req.getParameter("phone");
         if(!isRequiredData(userID, password1, password2, status))
         errors.add("Sila isikan semua data yang diperlukan dimana *.");
         else{
         try{
         if(isExistedUser(userID))
    errors.add("No Matriks/Pekerja anda sudah wujud, Sila cuba lagi.");
         catch(SQLException e){}
         if(!isSamePassword(password1,password2))
         errors.add("Sila isikan password1 dan password2 yang sama.");
         if(!isValidPassword(password1,password2))
         errors.add("Sila isikan password anda dalam 8-12 perkataan.");
         if(!isValidEmail(email))
         errors.add("Sila pastikan " +"@"+" dalam e-mel anda.");
         if(!isValidPhone(phone))
         errors.add("Sila pastikan "+ "-"+" tidak dalam nombor telefon anda.");
         if(!isValidUserID(userID))
         errors.add("Nombor Matriks/Pekerja anda tidak mengandungi 6 perkataan.");
         String next;
         String password= password1;
         String insert= "insert into user values('"+userID+"', '"+password+"','"+
         name+"', '"+ic+"', '"+status+"', '"+gender+"','"+
         department+"', '"+email+"', '"+phone+"', '"+startSqlDate+"')";
         if (errors.size() ==0){
         //data is ok, insert data to database, dispatch to wherever
         try{
              int x= stmt.executeUpdate(insert);
         catch(SQLException e){}
         next= "/aos/thanks.jsp";
         else{
         //data has errors, try again
         String[] errorArray= (String[])errors.toArray(new String[0]);
         req.setAttribute("errors", errorArray);
         next= "/aos/RegisterForm.jsp";
         RequestDispatcher rd;
         rd= context.getRequestDispatcher(next);
         rd.forward(req, res);
    public boolean isSamePassword(String password1,String password2){
         //check for both password is same
         return(password1.equals(password2));
    public boolean isValidPassword(String password1,String password2){
         //check for both password is under 8-12 char
         return(password1.length()>=8 && password1.length()<=12 &&
         password2.length()>=8 && password2.length()<=12);
    public boolean isValidPhone(String phone){
         //check for no dashes
         return(phone.indexOf("-")==-1);
    public boolean isValidEmail(String email){
         //check an "@" somewhere after 1st char
         return(email.indexOf("@")>0);
    public boolean isValidUserID(String userID){
         //check for userID is 6 char
         return(userID.length()==6);
    public boolean isRequiredData(String userID,
    String password1, String password2, String status){
    //check for required data is filled
         return(userID.length()!=0 && password1.length()!=0 &&
         password2.length()!=0 && status.length()!=0);
    public boolean isExistedUser(String userID) throws SQLException{
    String sql= "select * from user where id= '"+userID+"'";
    ResultSet rs= stmt.executeQuery(sql);
         if(rs.next())
    return true;
         else
         return false;
         

    is the driver name correct?
    private static final String driver="com.mysql.jdbc.driver";
    I usually have another string, but I might use a different mysql driver. Try opening your mysql driver with winzip and see if the class is there and at the defined directory place

  • Error in parsing: SAX2 driver class com.sun.xml.parser not found

    Hi I have this exception
    Error in parsing: SAX2 driver class com.sun.xml.parser not found
    when I try to run the examples from the book xml and java
    I have added the following jar files to the class path that i have download form java.sun.com
    xml.jar
    xalan.jar
    jaxp.jar
    crimson.jar
    Please can anyone tell me what is missing or wrong..the code must be right since written by oreilly... please have u any ideA
    XMLReaderFactory.createXMLReader(
    // "org.apache.xerces.parsers.SAXParser");
                        "com.sun.xml.parser");//
    I HAVE ONLY CHANGED THIS LINE FROM THE apache parser..to com.sun.xml.parser
    THIS IS THE ALL CODE
    import java.io.IOException;
    import org.xml.sax.Attributes;
    import org.xml.sax.ContentHandler;
    import org.xml.sax.ErrorHandler;
    import org.xml.sax.Locator;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import org.xml.sax.XMLReader;
    import org.xml.sax.helpers.XMLReaderFactory;
    import org.xml.sax.*;
    * <b><code>SAXParserDemo</code></b> will take an XML file and parse it using SAX,
    * displaying the callbacks in the parsing lifecycle.
    * @author Brett McLaughlin
    * @version 1.0
    public class SAXParserDemo {
    * <p>
    * This parses the file, using registered SAX handlers, and output
    * the events in the parsing process cycle.
    * </p>
    * @param uri <code>String</code> URI of file to parse.
    public void performDemo(String uri) {
    System.out.println("Parsing XML File: " + uri + "\n\n");
    // Get instances of our handlers
    ContentHandler contentHandler = new MyContentHandler();
    ErrorHandler errorHandler = new MyErrorHandler();
    try {
    // Instantiate a parser
    XMLReader parser =
    XMLReaderFactory.createXMLReader(
    // "org.apache.xerces.parsers.SAXParser");
                        "com.sun.xml.parser");// I HAVE ONLY CHANGED THIS LINE FROM THE apache parser..
    // Register the content handler
    parser.setContentHandler(contentHandler);
    // Register the error handler
    parser.setErrorHandler(errorHandler);
    // Parse the document
    parser.parse(uri);
    } catch (IOException e) {
    System.out.println("Error reading URI: " + e.getMessage());
    } catch (SAXException e) {
    System.out.println("Error in parsing: " + e.getMessage());
    * <p>
    * This provides a command line entry point for this demo.
    * </p>
    public static void main(String[] args) {
    // if (args.length != 1) {
    // System.out.println("Usage: java SAXParserDemo [XML URI]");
    // System.exit(0);
    //String uri = args[0];
    SAXParserDemo parserDemo = new SAXParserDemo();
    parserDemo.performDemo("content.xml");
    * <b><code>MyContentHandler</code></b> implements the SAX
    * <code>ContentHandler</code> interface and defines callback
    * behavior for the SAX callbacks associated with an XML
    * document's content.
    class MyContentHandler implements ContentHandler {
    /** Hold onto the locator for location information */
    private Locator locator;
    * <p>
    * Provide reference to <code>Locator</code> which provides
    * information about where in a document callbacks occur.
    * </p>
    * @param locator <code>Locator</code> object tied to callback
    * process
    public void setDocumentLocator(Locator locator) {
    System.out.println(" * setDocumentLocator() called");
    // We save this for later use if desired.
    this.locator = locator;
    * <p>
    * This indicates the start of a Document parse - this precedes
    * all callbacks in all SAX Handlers with the sole exception
    * of <code>{@link #setDocumentLocator}</code>.
    * </p>
    * @throws <code>SAXException</code> when things go wrong
    public void startDocument() throws SAXException {
    System.out.println("Parsing begins...");
    * <p>
    * This indicates the end of a Document parse - this occurs after
    * all callbacks in all SAX Handlers.</code>.
    * </p>
    * @throws <code>SAXException</code> when things go wrong
    public void endDocument() throws SAXException {
    System.out.println("...Parsing ends.");
    * <p>
    * This will indicate that a processing instruction (other than
    * the XML declaration) has been encountered.
    * </p>
    * @param target <code>String</code> target of PI
    * @param data <code>String</code containing all data sent to the PI.
    * This typically looks like one or more attribute value
    * pairs.
    * @throws <code>SAXException</code> when things go wrong
    public void processingInstruction(String target, String data)
    throws SAXException {
    System.out.println("PI: Target:" + target + " and Data:" + data);
    * <p>
    * This will indicate the beginning of an XML Namespace prefix
    * mapping. Although this typically occur within the root element
    * of an XML document, it can occur at any point within the
    * document. Note that a prefix mapping on an element triggers
    * this callback <i>before</i> the callback for the actual element
    * itself (<code>{@link #startElement}</code>) occurs.
    * </p>
    * @param prefix <code>String</code> prefix used for the namespace
    * being reported
    * @param uri <code>String</code> URI for the namespace
    * being reported
    * @throws <code>SAXException</code> when things go wrong
    public void startPrefixMapping(String prefix, String uri) {
    System.out.println("Mapping starts for prefix " + prefix +
    " mapped to URI " + uri);
    * <p>
    * This indicates the end of a prefix mapping, when the namespace
    * reported in a <code>{@link #startPrefixMapping}</code> callback
    * is no longer available.
    * </p>
    * @param prefix <code>String</code> of namespace being reported
    * @throws <code>SAXException</code> when things go wrong
    public void endPrefixMapping(String prefix) {
    System.out.println("Mapping ends for prefix " + prefix);
    * <p>
    * This reports the occurrence of an actual element. It will include
    * the element's attributes, with the exception of XML vocabulary
    * specific attributes, such as
    * <code>xmlns:[namespace prefix]</code> and
    * <code>xsi:schemaLocation</code>.
    * </p>
    * @param namespaceURI <code>String</code> namespace URI this element
    * is associated with, or an empty
    * <code>String</code>
    * @param localName <code>String</code> name of element (with no
    * namespace prefix, if one is present)
    * @param rawName <code>String</code> XML 1.0 version of element name:
    * [namespace prefix]:[localName]
    * @param atts <code>Attributes</code> list for this element
    * @throws <code>SAXException</code> when things go wrong
    public void startElement(String namespaceURI, String localName,
    String rawName, Attributes atts)
    throws SAXException {
    System.out.print("startElement: " + localName);
    if (!namespaceURI.equals("")) {
    System.out.println(" in namespace " + namespaceURI +
    " (" + rawName + ")");
    } else {
    System.out.println(" has no associated namespace");
    for (int i=0; i<atts.getLength(); i++)
    System.out.println(" Attribute: " + atts.getLocalName(i) +
    "=" + atts.getValue(i));
    * <p>
    * Indicates the end of an element
    * (<code></[element name]></code>) is reached. Note that
    * the parser does not distinguish between empty
    * elements and non-empty elements, so this will occur uniformly.
    * </p>
    * @param namespaceURI <code>String</code> URI of namespace this
    * element is associated with
    * @param localName <code>String</code> name of element without prefix
    * @param rawName <code>String</code> name of element in XML 1.0 form
    * @throws <code>SAXException</code> when things go wrong
    public void endElement(String namespaceURI, String localName,
    String rawName)
    throws SAXException {
    System.out.println("endElement: " + localName + "\n");
    * <p>
    * This will report character data (within an element).
    * </p>
    * @param ch <code>char[]</code> character array with character data
    * @param start <code>int</code> index in array where data starts.
    * @param end <code>int</code> index in array where data ends.
    * @throws <code>SAXException</code> when things go wrong
    public void characters(char[] ch, int start, int end)
    throws SAXException {
    String s = new String(ch, start, end);
    System.out.println("characters: " + s);
    * <p>
    * This will report whitespace that can be ignored in the
    * originating document. This is typically only invoked when
    * validation is ocurring in the parsing process.
    * </p>
    * @param ch <code>char[]</code> character array with character data
    * @param start <code>int</code> index in array where data starts.
    * @param end <code>int</code> index in array where data ends.
    * @throws <code>SAXException</code> when things go wrong
    public void ignorableWhitespace(char[] ch, int start, int end)
    throws SAXException {
    String s = new String(ch, start, end);
    System.out.println("ignorableWhitespace: [" + s + "]");
    * <p>
    * This will report an entity that is skipped by the parser. This
    * should only occur for non-validating parsers, and then is still
    * implementation-dependent behavior.
    * </p>
    * @param name <code>String</code> name of entity being skipped
    * @throws <code>SAXException</code> when things go wrong
    public void skippedEntity(String name) throws SAXException {
    System.out.println("Skipping entity " + name);
    * <b><code>MyErrorHandler</code></b> implements the SAX
    * <code>ErrorHandler</code> interface and defines callback
    * behavior for the SAX callbacks associated with an XML
    * document's errors.
    class MyErrorHandler implements ErrorHandler {
    * <p>
    * This will report a warning that has occurred; this indicates
    * that while no XML rules were "broken", something appears
    * to be incorrect or missing.
    * </p>
    * @param exception <code>SAXParseException</code> that occurred.
    * @throws <code>SAXException</code> when things go wrong
    public void warning(SAXParseException exception)
    throws SAXException {
    System.out.println("**Parsing Warning**\n" +
    " Line: " +
    exception.getLineNumber() + "\n" +
    " URI: " +
    exception.getSystemId() + "\n" +
    " Message: " +
    exception.getMessage());
    throw new SAXException("Warning encountered");
    * <p>
    * This will report an error that has occurred; this indicates
    * that a rule was broken, typically in validation, but that
    * parsing can reasonably continue.
    * </p>
    * @param exception <code>SAXParseException</code> that occurred.
    * @throws <code>SAXException</code> when things go wrong
    public void error(SAXParseException exception)
    throws SAXException {
    System.out.println("**Parsing Error**\n" +
    " Line: " +
    exception.getLineNumber() + "\n" +
    " URI: " +
    exception.getSystemId() + "\n" +
    " Message: " +
    exception.getMessage());
    throw new SAXException("Error encountered");
    * <p>
    * This will report a fatal error that has occurred; this indicates
    * that a rule has been broken that makes continued parsing either
    * impossible or an almost certain waste of time.
    * </p>
    * @param exception <code>SAXParseException</code> that occurred.
    * @throws <code>SAXException</code> when things go wrong
    public void fatalError(SAXParseException exception)
    throws SAXException {
    System.out.println("**Parsing Fatal Error**\n" +
    " Line: " +
    exception.getLineNumber() + "\n" +
    " URI: " +
    exception.getSystemId() + "\n" +
    " Message: " +
    exception.getMessage());
    throw new SAXException("Fatal Error encountered");

    I have seen this error when I'm executing inside one of the (j2ee sun reference implementation) server containers (either web or ejb). I believe its caused by "something" having previously loaded the "sax 1 driver class". In my case, I think the container or server is loading the sax parser from a jar that contains a sax 1 version. If you can, ensure that nothing is loading the sax 1 parser from another jar on your system. Verify that you are loading the sax parser from a jar containing the latest version so that you get the sax 2 compliant parser. Good luck!

  • Unable to load mySql Driver in Java class invoked using bpelx:exec

    Hi ,
    I am trying to connect to mysql database in my java class.when i run this class in Jdeveloper it loads the driver without any problem.I can chk the log in the Jdev messages area.Now I am invoking this class from the BPEL process through <bpelx activity.But when i run my BPEL process it throws runtime exception "classNotFoundException:unable to load com.mysql.jdbc.Driver".I have set the project properties ->libraries to the class path of the mysql jar file as well.
    Now if i try to connect with the Oracle driver then it is working fine.
    I know this is a classpath issue.Can anyone tell me if there are some other settings to make it work fine.
    the java code :
    System.out.println("in getConnection method");
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    System.out.println("loaded Driver :");
    String url="jdbc:mysql://ntlv014:3306/wx";
    _jdbcConnection = DriverManager.getConnection(url,"development","ber1nger");
    System.out.println("Got Connection :"+_jdbcConnection.isClosed());                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    I think you have 2 options..
    either put the jar for the mysql in the classpath on the server...or try something like this :
    http://forum.java.sun.com/thread.jspa?forumID=17&threadID=633158
    try to put the jar of the mysql into the suitecase of the bpel.
    never seen this coming around...so..it's just a wild guess.
    ORABPEL-11622 Could not create/access the TopLink Session
    spendem got the same situation...the puts the libraries in the applib-dir
    Message was edited by:
    Eric Elzinga (IT-Eye)

  • Unable to load Driver Class

    Hi There:
    When I try to connect to the Oracle 8i via this applet , I get the following run time error.
    Any help will be appreciated.
    I am using j2sdkee1.3.1, jdk1.3.1_02 and Oracle8.
    I also need your suggestion please. I have inserted some BLOB data in the Oracle table. I will need to display the BLOB data to the end users. I plan to convert this BLOB data into string format so that my applet can display the same. Further the string will have to be edited by the end users. I will then convert this modified string back to byte array so that I can insert the same as BLOB.
    Please let me know applet or the servlet? Which is better option.
    Users are reluctant to use any kind of WebServer because it will introduce the additional layer of complexity.
    Any help will be greatly appreciated.
    Thanks in advance.
    C:\>AppletViewer JdbcApplet.html
    Unable to load Driver Class
    java.lang.ClassNotFoundException: java.io.FileNotFoundException: C:\oracle\jdbc\
    driver\OracleDriver.class (The system cannot find the path specified)
    The following code snippet fails because it is unable to find the suitable driver.
    if (conn == null)
         //make a connection to the db
         try {     
              // conn = DriverManager.getConnection ("jdbc:oracle:thin:@"+"localhost:1521:sys", "system", "manager");
              // conn = DriverManager.getConnection ("jdbc:oracle:thin:system/manager@(description=(address_list= (address=(pro tocol=tcp)(host=localhost)(port=1521)))(source_route=yes)(connect_data=(sid=sys)))" );
              Class.forName("oracle.jdbc.driver.OracleDriver");
              String conurl="jdbc:oracle:thin:@localhost:1521:sys";
              Connection con=DriverManager.getConnection(conurl,"system","manager");
         } catch ( Exception e ) {
              System.out.println ("Unable to load Driver Class");
              e.printStackTrace (System.out);
              // add send email notification about this fact
              return false;
    } // End of if Statement from conn...

    Hi,
    maybe I'm too late but try the following :
    It seems that Your IDE doesn't check the path to Your classesxxx.zip file.
    Or Your classesxxx.zip file is corrupt.
    We had this error after downloading the classes12.zip for Oracle versions
    higher 8.1.6.
    The original size of this file is 1.888kB.
    Remember Windows FTP is downloading in ascii mode per default.
    Or Your classpath isn't correct
    ( the Exception souns like this )
    Regards

  • Unable to Load USB Driver in LV for Total Phase's Aardvark I2C adaptor

    I have tried to instal Total Phase's Aardvark I2C USB driver for LabVIEW on two computers and two versions of LV (8.5 and 7.1) without success. The Windows driver seems to be working fine as their command center gui terminal-esque program works without a hitch, but the LV DLL doesn't seem to work.
    Attached is the very simple vi to find connected Aardvark USB devices (aa_find_devices). It always returns the same error code, 8002, which resolves to:
    AA_UNABLE_TO_LOAD_DRIVER
    -2
    unable to load USB driver
    From their documentation: http://www.totalphase.com/docs/aardvark_datasheet/​sect005/#s5.9
    This looks like perhaps the LabVIEW DL, "aardvark.dll" maybe having a versioning issue. So my question is this: Using LabVIEW, how does one debug dll dependencies and resolve issues like this? Do I need the source code for the lib?
     Cheers,
    Joe Gorse
    Solved!
    Go to Solution.
    Attachments:
    find_devices.vi ‏11 KB

    Dear Joe,
    Let me start off by apologizing for the inconvenience you
    have gone through.  I am an engineer at Total Phase.  We are
    working on fixing this issue for our next release of the
    Aardvark LabVIEW Driver.  This forum post was only brought
    to our attention today.  In the future, you can also let
    Total Phase know about these kinds of issues by emailing
    [email protected]  We are very responsive through
    email or phone.
    The problem you are experiencing has to do with versioning
    issues between our DLL and USB driver.  Specifically, DLLs
    before v5.xx must use the older version of our USB driver.
    By replacing the DLL from our latest version of Control
    Center, you have effectively upgraded the DLL that the
    LabVIEW driver is using and made it compatible with v2.xx of
    the USB driver.
    The most likely reason that smercurio_fc did not see a
    difference between the DLL in Aardvark Control Center and
    the LabVIEW driver is because he is using an older version
    of Control Center and correspondingly an older version of
    the USB driver.
    The reason that we have not packaged the LabVIEW driver with
    latest DLL is due to the fact that a few functions have
    changed their function prototypes (for example aa_open_ext
    and aa_spi_write), and the VIs have not yet been updated
    accordingly.  Although updating the DLL solved your USB
    driver issue, it introduced this new issue.  If you try to
    use these certain VIs, LabVIEW will error out.
    We are currently working on updating the LabVIEW drivers to
    work cohesively with the new DLL and USB driver, and this
    should be available soon.  If you need immediate
    availability to the functions with new prototypes you will
    have to change it manually.  The other recommended option is
    to simply revert back to the DLL that is packaged with our
    LabVIEW driver and downgrade the USB driver back to v1.xx.
    I will make sure to post again once the update is released,
    and I once again apologize for the inconvenience.
    Best regards,
    Etai

  • Urgent... unable to load JDBC driver

    i have developed a servlet which will establish connection to mySQL.. but it couldn't load the JDBC driver even i placed
    [ mysql-connector-java-2.0.14-bin.zip ] in [ C:\j2sdk1.4.2_05\jre\lib\ext\ ]
    in fact.. it work fine b4 i format my notebook.. anyone can help me??
    pls note that i using APACHE TOMCAT and mySQL 3.23
    pls help.. very urgent one
    the following is my servlet code.....
    import java.io.*;
    import java.text.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    public class LoginServlet extends HttpServlet {
    static final String dbURL = "jdbc:mysql://localhost" ;
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException {
    Connection conn = null;
    String nextJSP = null;
    try {
    Class.forName("org.gjt.mm.mysql.Driver");
    catch (ClassNotFoundException e) {
    throw new ServletException("Unable to load JDBC driver");
    }

    i already add new variable in environment variables
    variable name = CLASSPATH
    variable value = C:\j2sdk1.4.2_05\jre\lib\ext\mysql-connector-java-2.0.14-bin.jar;
    but the same output is come up.. still unable to load my JDBC driver in TOMCAT... y?

  • Unable to load HP printer driver-Error message!

    Hi,
    Just wondering if anyone can be of any assistance.
    I recently purchased a HP Photosmart 2575 all-in-one printer and installed the necessary software, which said it was successfully installed. However, whenever I boot up the G3 I keep getting the following message 'Unable to load the printer drive, open the applications Get Info dialog and increase the preferred memory size. If this does not help try quitting all other applications or reinstalling the printer software.'
    After clicking ok on this message about four times the message goes and I am able to print fine. Just wondering why this is happening. I have increased the memory allocation and also turnt on the virtual memory to see if this makes any difference, but all to no avail. I have also uninstalled and then reinstalled the software to see if this makes a difference, but that didn't help either.
    Any help would be greatly appreciated.
    Thanks in advance
    PS: The printer is connected via ethernet on my router to enable me to print from another machine

    Use Techtool Lite or Trash*Desktop (TD may delete Finder comments )to rebuild your desktop w/extensions off. Does a better job than manually & you avoid all the finger gymnatics. You just have to hold down the shift key to shut off extensions.
    Restart to turn the extensions back on again.
    If you want to rebuild manually, see KB article http://docs.info.apple.com/article.html?artnum=10182 Rebuilding Desktop File and Icon Recovery.

  • Unable to load LabVIEW RT from drive

    Trying to boot RT on PXI-8187 controller with original setup, what ever RT boot selection is used either hardware switch or BIOS RT boot option, the terminal will show the following:
    Unable to load LabVIEW RT from drive!
    Booting safe mode from ROM...
    mount: Mounting /dev/Ma1 on /home/ftp/c failed: Invalid argument
    Entering safe mode.
    IP address is: 0.0.0.0
    Of course after that you can't do any thing to configure the RT target from the MAX on the host computer.
    Please Help.

    Hi,
    I used the recovery CD to change the file system to NTFS, it took a while and it installed windows XP from scratch differently from FirstWare that ghosts it (I think). And it didn't install any NI stuff what so ever.
    At the end I got the same result as with using the remote system format disk option.
    i.e. The RT controller boots in safe mode displaying the previous message without the mount error but this time I can configure the IP address.
    Still I can't install software to it, I get the list of features to install, I select them and press next, then I get a dialog saying:
    Cannot process install because other dependencies are required:
    LabVIEW RT 1.0.1
    LabVIEW RT 6.0.1
    LabVIEW RT 6.1.0
    LabVIEW RT 7.0.0
    LabVIEW RT 7.1
    Is this a host or RT Controller issue now?
    What's next? Thanks for the help

  • Exception in thread "main" related to CLASSPATH and unable to load driver??

    Hi,
    I am a JAVA beginner, I have met some problems cannot solve, can somebody help?
    My OS is Windows2000
    Java SDK in C:\j2sdk-1_4_2_04 and Java JRE in C:\Program Files\Java\j2re1.4.2_04 [Installation: j2sdk-1_4_2_04-windows-i586-p.exe]
    MySQL in C:\mysql [Installation: mysql-4.0.18-win.zip]
    MyODBC in C:\Download\MYODBC [Installation: MyODBC-3.51.06.exe]
    MyJDBC in C:\mysql-connector-java-3.0.11-stable [Installation: mysql-connector-java-3.0.11-stable.zip]
    Enviornment Variables Settings
    PATH = C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\j2sdk1.4.2_04\bin;C:\mysql\bin
    JAVA_HOME = C:\j2sdk1.4.2_04
    (CASE ONE) - While I didn't set a new Enviornment Variable for CLASSPATH
    HelloWorld.class can work properly and LoadDriver.class cannot work due to Unable to load Driver (As below)
    C:\JavaTry>javac HelloWorld.java
    C:\JavaTry>java HelloWorld
    Hello World!
    C:\JavaTry>javac LoadDriver.java
    C:\JavaTry>java LoadDriver
    Unable to load driver.
    java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at LoadDriver.main(LoadDriver.java:7)
    (CASE TWO) - While I set a new Enviornment Variable for CLASSPATH (No matter which settings as below)
    CLASSPATH = C:\mysql-connector-java-3.0.11-stable\mysql-connector-java-3.0.11-stable-bin.jar
    CLASSPATH = C:\mysql-connector-java-3.0.11-stable
    CLASSPATH = C:\mysql-connector-java-3.0.11-stable\com;C:\mysql-connector-java-3.0.11-stable\org
    Both the HelloWorld.class and LoadDriver cannot work properly due to Exception in thread "main" java.lang.NoClassDefFoundError (As below)
    C:\JavaTry>javac HelloWorld.java
    C:\JavaTry>java HelloWorld
    Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld
    C:\JavaTry>javac LoadDriver.java
    C:\JavaTry>java LoadDriver
    Exception in thread "main" java.lang.NoClassDefFoundError: LoadDriver
    Below are the JAVA scripts which I used
    -> HelloWorld.java
    public class HelloWorld {
    public static void main(String[] args) {
    System.out.println("Hello World!");
    -> LoadDriver.java
    import java.sql.*;
    public class LoadDriver {
    public static void main(String[] Args) {
    try {
    Class.forName("org.gjt.mm.mysql.Driver").newInstance();
    /* Class.forName("com.mysql.jdbc.Driver").newInstance(); <- either one try the same */
    } catch (Exception E) {
    System.err.println("Unable to load driver.");
    E.printStackTrace();
    Moreover, I saw some information only standalone application need to set CLASSPATH, right??

    My problem "unable to load driver" have solved.
    I set the CLASSPATH = C:\mysql-connector-java-3.0.11-stable\mysql-connector-java-3.0.11-stable-bin.jar
    and try
    java -cp ".";%CLASSPATH% LoadDriver
    Thanks masnare again :> and who provided the link http://www.kevinboone.com/classpath.html in the forums others similar topics, actually I forgot which topic and who, so... :P no matter whom thanks very much :)

  • Hi! I lost all the programs on my mac book's hard-drive. I reinstalled Mac os x snow Leopard Disc, the computer, now works well.But, I am unable to load my address book and transfer some pictures for a CD (I used to have) back to the Mac Book. Can you hel

    I am trying to reinstall my programs (which I lost when my hard-drive crashed) on my Mac Book.
    The unit works well, having used my mac os x Leopard Cd.
    I am however, unable to load my Address Book (from a stick) and some pictures from a Cd which used to work previously on the unit.
    Can you help?

    I am trying to reinstall my programs (which I lost when my hard-drive crashed) on my Mac Book.
    The unit works well, having used my mac os x Leopard Cd.
    I am however, unable to load my Address Book (from a stick) and some pictures from a Cd which used to work previously on the unit.
    Can you help?

  • Help Please ....  Unable to load Driver Class

    Hi There:
    When I try to connect to the Oracle 8i via this applet , I get the following run time error.
    Any help will be appreciated.
    I am using j2sdkee1.3.1, jdk1.3.1_02 and Oracle8.
    I also need your suggestion please. I have inserted some BLOB data in the Oracle table. I will need to display the BLOB data to the end users. I plan to convert this BLOB data into string format so that my applet can display the same. Further the string will have to be edited by the end users. I will then convert this modified string back to byte array so that I can insert the same as BLOB.
    Please let me know applet or the servlet? Which is better option.
    Users are reluctant to use any kind of WebServer because it will introduce the additional layer of complexity.
    Any help will be greatly appreciated.
    Thanks in advance.
    C:\>AppletViewer JdbcApplet.html
    Unable to load Driver Class
    java.lang.ClassNotFoundException: java.io.FileNotFoundException: C:\oracle\jdbc\
    driver\OracleDriver.class (The system cannot find the path specified)
    The following code snippet fails because it is unable to find the suitable driver.
    if (conn == null)
         //make a connection to the db
         try {     
              // conn = DriverManager.getConnection ("jdbc:oracle:thin:@"+"localhost:1521:sys", "system", "manager");
              // conn = DriverManager.getConnection ("jdbc:oracle:thin:system/manager@(description=(address_list= (address=(pro tocol=tcp)(host=localhost)(port=1521)))(source_route=yes)(connect_data=(sid=sys)))" );
              Class.forName("oracle.jdbc.driver.OracleDriver");
              String conurl="jdbc:oracle:thin:@localhost:1521:sys";
              Connection con=DriverManager.getConnection(conurl,"system","manager");
         } catch ( Exception e ) {
              System.out.println ("Unable to load Driver Class");
              e.printStackTrace (System.out);
              // add send email notification about this fact
              return false;
    } // End of if Statement from conn...

    Hi,
    maybe I'm too late but try the following :
    It seems that Your IDE doesn't check the path to Your classesxxx.zip file.
    Or Your classesxxx.zip file is corrupt.
    We had this error after downloading the classes12.zip for Oracle versions
    higher 8.1.6.
    The original size of this file is 1.888kB.
    Remember Windows FTP is downloading in ascii mode per default.
    Or Your classpath isn't correct
    ( the Exception souns like this )
    Regards

  • Unable to load time source driver sntp

    Hi ,
    I added sntp client script in ni-rt.ini file. but i am getting the following error. Do i have to install something. if sowhat is the driver needs to be installed.
    "unable to load time source driver"
    thank you,
    Ranjith

    Hi,
    I need to sync RT PXI chassis time with remotely located unix PC which is running NTP server.
    Any help would be appriciated.
    Ranjith

  • Applet, Connector/J, unable to load driver

    I have written an Applet that is using the Connector/J com.mysql.jdbc.Driver to connect. When I compile and run the Applet with VisualCaf� and the AppletViewer, it is able to load the driver, access the database, exectue queries, etc. The problem occurs when I upload my files to the webspace.
    My Applet loads, but when it tries to load the driver, these are the exceptions that I catch:
    "Error loading class: com.mysql.jdbc.Driver
    java.lang.NoClassDefFoundError
    Failed to initialize driver: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver"
    Here is the code having the problem:
    import java.sql.*;
    public DatabaseConnection()
    // First, we initialize the driver.
    try
    //System.out.println("Initializing Driver...");
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    //Class.forName("org.gjt.mm.mysql.Driver").newInstance();
    //System.out.println("Driver initialized.");
    catch (Exception e)
    System.out.println("Failed to initialize driver: " + e);
    On my webspace, I have included the mysql-connector-java-3.0.8-stable-bin.jar file in the same directory as my main class file. In the HTML code, I use the ARCHIVE tag and give it that .jar file. I have even un-jarred the file, retaining the original directory structure and placed those in the same directory. The .jar file seems to download when I go to the page and load the Applet.
    Is there something I'm missing that lets the Applet load the Driver? The Driver i'm using is a Type 4 Driver, which should be useable by an Applet.
    Any help would be very much appreciated - I've struggled with this for a long time, now.

    For anyone else out there using the Connector/J driver to make an Applet connect to a mySQL database, read on.
    The mysql-connector-java-3.0.8-stable-bin.jar does not work with Applets. At least, it would not work for me after trying many different things. So, I downloaded an earlier version: mysql-connector-java-2.0.14-bin.jar and everything worked fine (!!!).
    I hope this helps someone else with the same problem!! If the number of forums with very similar postings that i've run across is any indication, there are a lot of people having this problem!

Maybe you are looking for