Error in compiling Berkeley xml database sample...

hi,
I try a sample code found in "Apress- The Definitive Guide to Berkeley DB XML"
here is the code:
#include <iostream>
#include "dbxml\DbXml.hpp"
using namespace std;
using namespace DbXml;
int tmain(int argc, TCHAR* argv[])
     XmlManager myManager;
     try
          XmlContainer myContainer =
               myManager.openContainer("Customers.dbxml");
     catch (XmlException &xe)
          cout << xe.what() << endl;
     return 0;
and it gives me this errors...
Error     1     error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall DbXml::XmlManager::~XmlManager(void)" (__imp_??1XmlManager@DbXml@@QAE@XZ) referenced in function __catch$_wmain$0     BerkeleyDemo.obj     
Error     2     error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall DbXml::XmlContainer::~XmlContainer(void)" (__imp_??1XmlContainer@DbXml@@QAE@XZ) referenced in function _wmain     BerkeleyDemo.obj     
Error     3     error LNK2019: unresolved external symbol "__declspec(dllimport) public: class DbXml::XmlContainer __thiscall DbXml::XmlManager::openContainer(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?openContainer@XmlManager@DbXml@@QAE?AVXmlContainer@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function _wmain     BerkeleyDemo.obj     
Error     4     error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall DbXml::XmlManager::XmlManager(void)" (__imp_??0XmlManager@DbXml@@QAE@XZ) referenced in function _wmain     BerkeleyDemo.obj     
Error     5     fatal error LNK1120: 4 unresolved externals     
What am I doing wrong??BTW my OS is window Vista...is Vista compatible to berkeley db xml??

I added all the required path in m references path but still it give me that error
This is all that I've included in my reference
C:\Program Files\Oracle\Berkeley DB XML 2.3.10\bin
C:\Program Files\Oracle\Berkeley DB XML 2.3.10\xerces-c-src\src\xercesc
C:\Program Files\Oracle\Berkeley DB XML 2.3.10\db-4.5.20\build_windows
C:\Program Files\Oracle\Berkeley DB XML 2.3.10\include
C:\Program Files\Oracle\Berkeley DB XML 2.3.10\include\dbxml
and it gives this error...
Error     1     error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall DbXml::XmlManager::~XmlManager(void)" (__imp_??1XmlManager@DbXml@@QAE@XZ)     BerkeleyDemo.obj     
Error     2     error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall DbXml::XmlContainer::~XmlContainer(void)" (__imp_??1XmlContainer@DbXml@@QAE@XZ)     BerkeleyDemo.obj     
Error     3     error LNK2001: unresolved external symbol "__declspec(dllimport) public: class DbXml::XmlContainer __thiscall DbXml::XmlManager::openContainer(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?openContainer@XmlManager@DbXml@@QAE?AVXmlContainer@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)     BerkeleyDemo.obj     
Error     4     error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall DbXml::XmlManager::XmlManager(void)" (__imp_??0XmlManager@DbXml@@QAE@XZ)     BerkeleyDemo.obj     
Error     5     fatal error LNK1120: 4 unresolved externals     C:\Users\angel\Documents\Visual Studio 2005\Projects\BerkeleyDemo\Debug\BerkeleyDemo.exe
Message was edited by:
user582959

Similar Messages

  • Error in compiling Photoshop CC 2014 sample project

    Hi,
    I am trying to compile SDK sample project "outbound". but it is showing errors, as "Parse Issue: Unknown type name 'DialogPtr' " in DialogUtilities.h .
    DialogUtilities.h file is in "Adobe Photoshop CC 2014:photoshopsdk:pluginsdk:samplecode:common:includes".
    even if I add this path in project  settings it still shows the errors.
    how can I make this work?
    I am using Photoshop CC 2014 and Xcode version is 4.6.3 (4H1503)
    If you have any idea regarding project settings then please let me know.
    Thanks and regards,
    Priyanka.

    Are you using the CC 2014 release of the SDK?
    The DialogUtilities.h for mac do not work. They are the old Carbon API's. See the Dissolve example for an Objective-C UI.
    I would comment out the DialogUtilities.h include and other associated headers for Carbon UI. Some Carbon calls still work that are unrelated to UI.

  • Error in compiling SQL Expression

    In the [Error in SQL Expression; thread, Kurt Reinhardt wrote "Please note, a SQL Expression can only return a single, distinct value per each record in the main recordset.", I tried this where my main Record Selection's SQL query is:
    {GLF_LDG_ACC_TRANS.ldg_name} = {@&CH_LDG_GL_ACT_CURR} and
    {GLF_LDG_ACC_TRANS.period} = {@&CH_PERIOD_GL_CURR} and
    {GLF_LDG_ACC_TRANS.ACCNBRI}  "99991103" and
    {GLF_LDG_ACC_TRANS.DOC_REF1}  "{%SundryCreditors}" and
    {GLF_LDG_ACC_TRANS.DOC_TYPE} = "$APINVCE"
    My SQL Expression %SundryCreditors is:
    select doc_ref1
    from glf_ldg_acc_trans
    where ldg_name = 'APLED09'
      and period = "GLF_LDG_ACC_TRANS"."PERIOD"
      and doc_ref1 = "GLF_LDG_ACC_TRANS"."DOC_REF1"
      and accnbri like 'SUNDRY%'
    which essentially queries the same table as the main recordset using the same key fields, and returns one row only. However, when I click on the Check button in the Formula Workshop window, I get the error message "Error in compiling SQL Expression : Database Connection Error: '42000:MicrosoftODBC SQL Server DriverSQL ServerIncorrect syntax near the keyword 'select'. Database Vendor Code: 156 '".
    Do you know what is my issue?

    If you know what you're doing, you can add a full select statement into a SQL Expression... And Kurt is correct when he says that it may only return a single row of info. Don is also correct when he says that this not what SQL commands are designed for.
    Here's what's happening...
    When you link your tables in the Database Expert and drop fields onto the design surface (and optionally, add criteria to the Select Expert), CR builds out a SQL statement that can is to be sent out to the db server so that the data can be returned. You can view this SQL by going to Database > Show SQL Query...
    When you add a SQL Expression, CR inserts it into the SQL Query as another data column. This is typically done to take advantage of functions that are available in the data base but not in CR.
    A few crafty individuals, like Kurt, have figured out that you can in fact inset a full SELECT query into a SQL Expression and it will be inserted into the CR generated querie's SELECT list as a sub-query.
    Bear in mind 2 things... #1) You have to be familiar with SQL syntax, namely you have to know the proper syntax for using sub-queries in a SELECT list in your data base. #2) CR doesn't officially support is behavior and they won't offer you any help if the current functionality is removed in later versions.
    HTH,
    Jason

  • Several installation errors/problems with XFILES.5 XML DB sample

    I attempted to install the XFILES.5 XML DB sample application on our 11.2.0.2 database and encountered several errors. I ran the installation from Windows 7. A number of the errors were caused by not having XDMP and XDP_UTIL utility packages installed prior to installing XFILES. The installation instructions do not mention this.
    Once I had these packages installed, I reran the XFILES installation. The installation claimed to succeed, but when I tried to go to the URL I got a 404 error. I looked in the repository and there were a number of empty folders and there was no XFILES folder. The installation clearly had not completed successfully. I then tried to uninstall XFILES. The documentation gives no indication of how to do this so I dropped the XFILES schema and used parts of the XFILES_DBA_TASKS.sql script to clear out the XML DB repository. I reran the XFILES installation and it failed again. This time there was an "Invalid listener" error when XDB_UTILITIES.createHomeFolder() was called. This was due to the XDBPM packages being replaced previously with the XFILES versions, meaning they now had dependencies on XFILES. After some investigation, it seemed that I could just run the XFILES install again since the dependencies were installed after the failure. I did, and the installation again claimed it succeeded. It did not. When I navigated to the XFILES URL, I got a few errors that indicated that the user need to be granted the XFILES_USER or XFILES_ADMINISTRATOR role first. There were no such roles created. I found they were created in the XFILES_DBA_TASKS.sql script, but this script was never executed by the installation. I tried creating them manually and granting them to my test user. Now I get a new batch of errors:
    Module:xmlDocumentObject.xmlDocument.checkParsing
    Error Type: 4 [NOT-FOUND]
    Description: Unable to load Document
    Target URL: undefined
    Module: common.handleException
    Error Type: 3 [AJAX]
    Description: Not found
    Target URL: /sys/servlets/XFILES/RestService/XFILES.XFILES_REST_SERVICES.WRITELOGRECORD...
    Number: 404
    I am stuck and a little tired of troubleshooting Oracle's code for them. How do I fix this? Clearly the scripts and docs need vast improvements.
    Also, there appears to be an APEX version of the application included, but it never gets installed. Are there separate instructions for this?
    Edited by: user12166954 on Jul 13, 2012 9:00 AM
    Edited by: user12166954 on Jul 13, 2012 9:00 AM

    Looking at the XFILES.5.xml file and Install.vbs files of the XFILES installer, it appears that the XDBPM_SUPPORT and XFILES_DBA_TASKS actions will only be run if you enter a SYSDBA user in the "DBA User" field of the installer. However, for some reason, Oracle seems to have commented out the command that checks to ensure that the DBA user you entered is a SYSDBA user, and the "DBA User" field defaults to SYSTEM, which is not a SYSDBA user. Since I got things working I haven't tried rerunning the installer with a SYSDBA user, but maybe it will work better. The installation documentation and/or the installation scripts need to be updated to reflect the need for a SYSDBA user.
    Regarding the APEX version of XFILES, this has not installation instructions whatsoever, and there are prerequisite steps to get this to install correctly as well. I tried importing the f102.sql file into APEX and it failed on the prereq validation because an "XFILES/Apex" folder wasn't found in XML DB. I went looking for anything that creates this directory and I found that there is another XFILES_DBA_TASKS.sql script specifically for the APEX version. It is included in the f102.sql file. So I cut and paste the contents into SQL*Plus and ran it as SYS. I was then able to install the f102 application.

  • Error while compiling xdk C sample program

    hello,
    the following error happens with xdk version 9.2.0.6 and oracle 9.2.0.4 installed on linux SUSE 9.1:
    while compiling the xdk C sample program "SAXSample.c" in
    $ORACLE_HOME/xdk/demo/c/parser, I got many "undefined reference" messages.
    Here follows an excerpt of the first few lines of the error log:
    oracle@cassius:/exp/oracle/xdk/demo/c/parser> make SAXSample
    cc -o SAXSample -I ../../../../xdk/include SAXSample.c -L ../../../../lib -lxml9 -lxsd9 -lcore9 -lnls9 -lunls9 -lcore9 -lnls9 -lcore9 -lnls9 -lnsl -lm -lpthread
    ../../../../lib/libxml9.a(lpxerr.o)(.text+0x4d9): In function `LpxErrVPrintf':
    : undefined reference to `__ctype_b'
    ../../../../lib/libxml9.a(lpxm.o)(.text+0x37dd): In function `LpxmA2L':
    : undefined reference to `__ctype_b'
    ../../../../lib/libxml9.a(lpxm.o)(.text+0x38f9): In function `LpxmA2UL':
    : undefined reference to `__ctype_b'
    and so on.
    Has anybody had this problem before? What's wrong with the libraries?
    Thanks in advance.

    I don't see a specific Proc or precompiler forum around here.
    Perhaps your best bet would be at [Call interface (OCI)|http://forums.oracle.com/forums/forum.jspa?forumID=67] forum or maybe [SQL and PL/SQL|http://forums.oracle.com/forums/forum.jspa?forumID=75] since it's more of a developers' forum.

  • Error while running PL/SQL XML Parser Samples

    every time try to run the PL/SQL XML Parser Sample program i get this error no file or directory, though the file and dir exists, i have the permissions setup as in readme.txt do i need to do any chnages to init.ora,
    pls advice
    Thanks,
    SQL> exec test
    begin test; end;
    ERROR at line 1:
    ORA-20100: Error occurred while parsing: No such file or directory
    ORA-06512: at "SCOTT.XMLPARSER", line 22
    ORA-06512: at "SCOTT.XMLPARSER", line 69
    ORA-06512: at "SCOTT.TEST", line 13
    ORA-06512: at line 1

    Which examples in particular? Thanks.

  • Xml database error

    Create a table employee having (dept_id : number, employee_spec : XMLType).
    The employee_spec is a schema with
    attributes emp id, name, email, acc_no, managerEmail, dateOf Joning.
    Insert 10 tuples into employee table.Fire the following queries on XML database.
    a) Retrieve the names of employee.
    b) Retrieve the acc_no of employees.
    c) Retrieve the names,acc_no, email of employees.
    d) Update the 3rd record from the table and display the name of an employee.
    e) Delete 4 th record from the table.
    SQL> connect hr/tiger@bom4;
    Connected.
    SQL> create table employee
    2 (
    3 dept_id number(8),
    4 employee_spec sys.xmltype
    5 );
    Table created.
    SQL>
    SQL> INSERT INTO employee VALUES
    2 (
    3 100,
    4 xmltype(
    5 '<employees>
    6 <emp id="1">
    7 <name>abhijeet gole</name>
    8 <email>[email protected]</email>
    9 <acc_no>111</acc_no>
    10 <dateOfJoining>1994-11-16</dateOfJoining>
    11 </emp>
    12 </employees>'))
    13 ;
    xmltype(
    ERROR at line 4:
    ORA-00904: invalid column name
    SQL> INSERT INTO employee VALUES
    2 (
    3 100,
    4 sys.XMLTYPE( '<employees>
    5 <emp id="1">
    6 <name>abhijeet gole</name>
    7 <email>[email protected]</email>
    8 <acc_no>111</acc_no>
    9 <dateOfJoining>1994-11-16</dateOfJoining>
    10 </emp>
    11 </employees>'))
    12 ;
    sys.XMLTYPE( '<employees>
    ERROR at line 4:
    ORA-22876: this user-defined type is not allowed or it cannot be used in this
    context

    Yep, works fine on 10.2...
    SQL> ed
    Wrote file afiedt.buf
      1  create table employee
      2  (
      3  dept_id number(8),
      4  employee_spec xmltype
      5* )
    SQL> /
    Table created.
    SQL> ed
    Wrote file afiedt.buf
      1  INSERT INTO employee VALUES
      2  (
      3  100,
      4  xmltype(
      5  '<employees>
      6  <emp id="1">
      7  <name>abhijeet gole</name>
      8  <email>[email protected]</email>
      9  <acc_no>111</acc_no>
    10  <dateOfJoining>1994-11-16</dateOfJoining>
    11  </emp>
    12* </employees>'))
    SQL> /
    1 row created.
    SQL>What version of SQL*Plus are you using? Ensure that it's up to date with the database version.

  • Berkeley DB is giving me error when compiling on Mac OS X 10.10

    Hey guys,
    I'm trying to compile Berkeley DB so I can compile OpenLDAP (requires version 4.4 or up) I tried version 6 and it says it doesn't support that one, so I went down to 5 and this one is giving me this error:
    ./libtool --mode=compile cc -c -I. -I../src  -fPIC  ../src/mutex/mut_tas.c
    libtool: compile:  cc -c -I. -I../src -fPIC ../src/mutex/mut_tas.c  -fno-common -DPIC -o .libs/mut_tas.o
    In file included from ../src/mutex/mut_tas.c:11:
    In file included from ./db_int.h:1113:
    In file included from ../src/dbinc/mutex.h:15:
    In file included from ../src/dbinc/mutex_int.h:12:
    ../src/dbinc/atomic.h:179:19: error: definition of builtin function
          '__atomic_compare_exchange'
    static inline int __atomic_compare_exchange(
                      ^
    1 error generated.
    make: *** [mut_tas.lo] Error 1
    Any ideas what can cause this?
    Thanks.

    Berkeley DB release 6.0 and beyond are compatible with recent versions of gcc. BDB releases 5.* compile with the OS X gcc's commonly available at the time of those releases. If you don't already have an older version of gcc installed, it's likely that "port install gcc44" or equivalent will provide the compatible compiler gcc-mp-4.4.

  • HAL & XML error during compilation

    Hi, I'm new to this so I hope that the question is not out of place. I'm using HAL to generate XML files. Whithin HAL, I pass some info to the XML adapter which when when the XML file is created, the new info is included in the xml file. <BR><BR>I do get this error during a run however. Any ideas would be greatly appreciated.<BR><BR><BR>Compiler error: Unable to analyze the flow diagram for compilation.<BR> Flow diagram-->> Flow Diagram1<BR>Analysis error: [Error: 1001] No matching generator found for the collector: <BR> Adapter reference-->> Template.XML/BATCH_JOB_OBJECT \ Collect Elements<BR>Compiler error: Compilation succeeded but no code was generated.<BR> Flow diagram-->> Flow Diagram1<BR>Internal Vignette Business Integration Studio Error: <BR>Compile failed.<BR> 0 Warnings<BR> 1 Errors<BR>Error: Flow Diagram1 : The adapter's implementation cannot be made up to date.<BR>Build adapter process aborted due to errors.<BR> 0 Warnings<BR> 2 Errors<BR>

    Hi there,
    Thanks a lot.How do I tranfer duke dollars to u.

  • Need help with Berkeley XML DB Performance

    We need help with maximizing performance of our use of Berkeley XML DB. I am filling most of the 29 part question as listed by Oracle's BDB team.
    Berkeley DB XML Performance Questionnaire
    1. Describe the Performance area that you are measuring? What is the
    current performance? What are your performance goals you hope to
    achieve?
    We are measuring the performance while loading a document during
    web application startup. It is currently taking 10-12 seconds when
    only one user is on the system. We are trying to do some testing to
    get the load time when several users are on the system.
    We would like the load time to be 5 seconds or less.
    2. What Berkeley DB XML Version? Any optional configuration flags
    specified? Are you running with any special patches? Please specify?
    dbxml 2.4.13. No special patches.
    3. What Berkeley DB Version? Any optional configuration flags
    specified? Are you running with any special patches? Please Specify.
    bdb 4.6.21. No special patches.
    4. Processor name, speed and chipset?
    Intel Xeon CPU 5150 2.66GHz
    5. Operating System and Version?
    Red Hat Enterprise Linux Relase 4 Update 6
    6. Disk Drive Type and speed?
    Don't have that information
    7. File System Type? (such as EXT2, NTFS, Reiser)
    EXT3
    8. Physical Memory Available?
    4GB
    9. Are you using Replication (HA) with Berkeley DB XML? If so, please
    describe the network you are using, and the number of Replica’s.
    No
    10. Are you using a Remote Filesystem (NFS) ? If so, for which
    Berkeley DB XML/DB files?
    No
    11. What type of mutexes do you have configured? Did you specify
    –with-mutex=? Specify what you find inn your config.log, search
    for db_cv_mutex?
    None. Did not specify -with-mutex during bdb compilation
    12. Which API are you using (C++, Java, Perl, PHP, Python, other) ?
    Which compiler and version?
    Java 1.5
    13. If you are using an Application Server or Web Server, please
    provide the name and version?
    Oracle Appication Server 10.1.3.4.0
    14. Please provide your exact Environment Configuration Flags (include
    anything specified in you DB_CONFIG file)
    Default.
    15. Please provide your Container Configuration Flags?
    final EnvironmentConfig envConf = new EnvironmentConfig();
    envConf.setAllowCreate(true); // If the environment does not
    // exist, create it.
    envConf.setInitializeCache(true); // Turn on the shared memory
    // region.
    envConf.setInitializeLocking(true); // Turn on the locking subsystem.
    envConf.setInitializeLogging(true); // Turn on the logging subsystem.
    envConf.setTransactional(true); // Turn on the transactional
    // subsystem.
    envConf.setLockDetectMode(LockDetectMode.MINWRITE);
    envConf.setThreaded(true);
    envConf.setErrorStream(System.err);
    envConf.setCacheSize(1024*1024*64);
    envConf.setMaxLockers(2000);
    envConf.setMaxLocks(2000);
    envConf.setMaxLockObjects(2000);
    envConf.setTxnMaxActive(200);
    envConf.setTxnWriteNoSync(true);
    envConf.setMaxMutexes(40000);
    16. How many XML Containers do you have? For each one please specify:
    One.
    1. The Container Configuration Flags
              XmlContainerConfig xmlContainerConfig = new XmlContainerConfig();
              xmlContainerConfig.setTransactional(true);
    xmlContainerConfig.setIndexNodes(true);
    xmlContainerConfig.setReadUncommitted(true);
    2. How many documents?
    Everytime the user logs in, the current xml document is loaded from
    a oracle database table and put it in the Berkeley XML DB.
    The documents get deleted from XML DB when the Oracle application
    server container is stopped.
    The number of documents should start with zero initially and it
    will grow with every login.
    3. What type (node or wholedoc)?
    Node
    4. Please indicate the minimum, maximum and average size of
    documents?
    The minimum is about 2MB and the maximum could 20MB. The average
    mostly about 5MB.
    5. Are you using document data? If so please describe how?
    We are using document data only to save changes made
    to the application data in a web application. The final save goes
    to the relational database. Berkeley XML DB is just used to store
    temporary data since going to the relational database for each change
    will cause severe performance issues.
    17. Please describe the shape of one of your typical documents? Please
    do this by sending us a skeleton XML document.
    Due to the sensitive nature of the data, I can provide XML schema instead.
    18. What is the rate of document insertion/update required or
    expected? Are you doing partial node updates (via XmlModify) or
    replacing the document?
    The document is inserted during user login. Any change made to the application
    data grid or other data components gets saved in Berkeley DB. We also have
    an automatic save every two minutes. The final save from the application
    gets saved in a relational database.
    19. What is the query rate required/expected?
    Users will not be entering data rapidly. There will be lot of think time
    before the users enter/modify data in the web application. This is a pilot
    project but when we go live with this application, we will expect 25 users
    at the same time.
    20. XQuery -- supply some sample queries
    1. Please provide the Query Plan
    2. Are you using DBXML_INDEX_NODES?
    Yes.
    3. Display the indices you have defined for the specific query.
         XmlIndexSpecification spec = container.getIndexSpecification();
         // ids
         spec.addIndex("", "id", XmlIndexSpecification.PATH_NODE | XmlIndexSpecification.NODE_ATTRIBUTE | XmlIndexSpecification.KEY_EQUALITY, XmlValue.STRING);
         spec.addIndex("", "idref", XmlIndexSpecification.PATH_NODE | XmlIndexSpecification.NODE_ATTRIBUTE | XmlIndexSpecification.KEY_EQUALITY, XmlValue.STRING);
         // index to cover AttributeValue/Description
         spec.addIndex("", "Description", XmlIndexSpecification.PATH_EDGE | XmlIndexSpecification.NODE_ELEMENT | XmlIndexSpecification.KEY_SUBSTRING, XmlValue.STRING);
         // cover AttributeValue/@value
         spec.addIndex("", "value", XmlIndexSpecification.PATH_EDGE | XmlIndexSpecification.NODE_ATTRIBUTE | XmlIndexSpecification.KEY_EQUALITY, XmlValue.STRING);
         // item attribute values
         spec.addIndex("", "type", XmlIndexSpecification.PATH_EDGE | XmlIndexSpecification.NODE_ATTRIBUTE | XmlIndexSpecification.KEY_EQUALITY, XmlValue.STRING);
         // default index
         spec.addDefaultIndex(XmlIndexSpecification.PATH_NODE | XmlIndexSpecification.NODE_ELEMENT | XmlIndexSpecification.KEY_EQUALITY, XmlValue.STRING);
         spec.addDefaultIndex(XmlIndexSpecification.PATH_NODE | XmlIndexSpecification.NODE_ATTRIBUTE | XmlIndexSpecification.KEY_EQUALITY, XmlValue.STRING);
         // save the spec to the container
         XmlUpdateContext uc = xmlManager.createUpdateContext();
         container.setIndexSpecification(spec, uc);
    4. If this is a large query, please consider sending a smaller
    query (and query plan) that demonstrates the problem.
    21. Are you running with Transactions? If so please provide any
    transactions flags you specify with any API calls.
    Yes. READ_UNCOMMITED in some and READ_COMMITTED in other transactions.
    22. If your application is transactional, are your log files stored on
    the same disk as your containers/databases?
    Yes.
    23. Do you use AUTO_COMMIT?
         No.
    24. Please list any non-transactional operations performed?
    No.
    25. How many threads of control are running? How many threads in read
    only mode? How many threads are updating?
    We use Berkeley XML DB within the context of a struts web application.
    Each user logged into the web application will be running a bdb transactoin
    within the context of a struts action thread.
    26. Please include a paragraph describing the performance measurements
    you have made. Please specifically list any Berkeley DB operations
    where the performance is currently insufficient.
    We are clocking 10-12 seconds of loading a document from dbd when
    five users are on the system.
    getContainer().getDocument(documentName);
    27. What performance level do you hope to achieve?
    We would like to get less than 5 seconds when 25 users are on the system.
    28. Please send us the output of the following db_stat utility commands
    after your application has been running under "normal" load for some
    period of time:
    % db_stat -h database environment -c
    % db_stat -h database environment -l
    % db_stat -h database environment -m
    % db_stat -h database environment -r
    % db_stat -h database environment -t
    (These commands require the db_stat utility access a shared database
    environment. If your application has a private environment, please
    remove the DB_PRIVATE flag used when the environment is created, so
    you can obtain these measurements. If removing the DB_PRIVATE flag
    is not possible, let us know and we can discuss alternatives with
    you.)
    If your application has periods of "good" and "bad" performance,
    please run the above list of commands several times, during both
    good and bad periods, and additionally specify the -Z flags (so
    the output of each command isn't cumulative).
    When possible, please run basic system performance reporting tools
    during the time you are measuring the application's performance.
    For example, on UNIX systems, the vmstat and iostat utilities are
    good choices.
    Will give this information soon.
    29. Are there any other significant applications running on this
    system? Are you using Berkeley DB outside of Berkeley DB XML?
    Please describe the application?
    No to the first two questions.
    The web application is an online review of test questions. The users
    login and then review the items one by one. The relational database
    holds the data in xml. During application load, the application
    retrieves the xml and then saves it to bdb. While the user
    is making changes to the data in the application, it writes those
    changes to bdb. Finally when the user hits the SAVE button, the data
    gets saved to the relational database. We also have an automatic save
    every two minues, which saves bdb xml data and saves it to relational
    database.
    Thanks,
    Madhav
    [email protected]

    Could it be that you simply do not have set up indexes to support your query? If so, you could do some basic testing using the dbxml shell:
    milu@colinux:~/xpg > dbxml -h ~/dbenv
    Joined existing environment
    dbxml> setverbose 7 2
    dbxml> open tv.dbxml
    dbxml> listIndexes
    dbxml> query     { collection()[//@date-tip]/*[@chID = ('ard','zdf')] (: example :) }
    dbxml> queryplan { collection()[//@date-tip]/*[@chID = ('ard','zdf')] (: example :) }Verbosity will make the engine display some (rather cryptic) information on index usage. I can't remember where the output is explained; my feeling is that "V(...)" means the index is being used (which is good), but that observation may not be accurate. Note that some details in the setVerbose command could differ, as I'm using 2.4.16 while you're using 2.4.13.
    Also, take a look at the query plan. You can post it here and some people will be able to diagnose it.
    Michael Ludwig

  • Error while connecting to the database from a JSP Page

    Hi,
    I am using a simple JSP page which is based on the sample JSP pages from OTN.
    When I try to connect to my database using the following code:
    InitialContext ic = new InitialContext();
    OracleDataSource ds = (OracleDataSource)ic.lookup("jdbc/OTN9iDS");
    m_connection = ds.getConnection();
    I get the following error:
    Naming exception Error while connecting to the database : javax.naming.NameNotFoundException: jdbc/OTN9iDS not found in JDBCTest-JDBCTestProject-webapp
    Does anybody know wht this is happening?
    Any help would be appreciated
    FRank

    Hi Frank,
    Are you using standalone OC4J or 9iAS ? If you are using standalone OC4J then you need to add a proper data source entry in %OC4J_HOME%j2ee\home\config\data-sources.xml file.
    If you are using 9iAS the you can log in to the Enterprise Manager console and add the data source entry by using wizard provided by 9iAS.
    Ensure the case of the JNDI lookup string, since, it is case sensitive.
    Hope this helps.
    Abhijeet

  • Error in jbosscmp-jdbc.xml : datasource-mapping Pointbase not found

    Hi I'm having problems deploying my EJBs using the Pointbase Database.
    This is what I'm working with:
    standardjbosscmp-jdbc.xml:
    <jbosscmp-jdbc>
       <defaults>
          <datasource>java:/PointbaseDS</datasource>
          <datasource-mapping>Pointbase</datasource-mapping>pointbase-ds.xml:
    <datasources>
         <local-tx-datasource>
              <jndi-name>PointbaseDS</jndi-name>
    <connection-url>jdbc:pointbase:server://localhost:19092/sample</connection-url>
              <driver-class>com.pointbase.jdbc.jdbcUniversalDriver</driver-class>
              <user-name>jboss</user-name>
              <password>password</password>
         </local-tx-datasource>
    </datasources>jbosscmp-jdbc.xml:
    <jbosscmp-jdbc>
         <defaults>
              <datasource>java:/PointbaseDS</datasource>
              <datasource-mapping>Pointbase</datasource-mapping>
         </defaults>I keep getting the error message:
    org.jboss.deployment.DeploymentException: Error in jbosscmp-jdbc.xml : datasource-mapping Pointbase not found
    Any ideas why?
    Thanks.

    By the way I'm using JBoss server.

  • Berkeley Xml 2.4.13 works on Tomcat but not on Glassfish

    I recently upgraded my web app to using the latest version of Berkeley Xml from 2.3. The old version worked fine on both glassfish and tomcat java servers.
    When I upgraded and made the necessary modifications to my app I could not get it to work on glassfish but had no problems on tomcat.
    This error happens in the beginning of start up when I call the XmlManager constructor. I am clueless as to what it is because I can not recreate it on anything else but glassfish v2. I even created a new project and played around with some options.
    Here is part of the stack trace:
    DB errno:0
    The log message is null.
    com.sleepycat.dbxml.XmlException: Uncaught exception from C++ API, errcode = INTERNAL_ERROR
    at com.sleepycat.dbxml.dbxml_javaJNI.new_XmlManager(Native Method)
    at com.sleepycat.dbxml.XmlManager.<init>(XmlManager.java:56)
    For now I am going to just use tomcat, but I would really like to know what is going on for both peace of mind and because I like some of the features of glassfish.
    Not sure if this matters but I am deploying the web app through netbeans 6 for both glassfish and tomcat.
    Thanks in advance for any help.

    I don't think it is a library path problem. The java.library.path shows the right values. I did have it working fine on the previous version of berkeley xml. I did have a version mismatch problem but I deleted the other database. I did have problems uninstalling the old database and I had to do it manually (the uninstall was hanging). Maybe I didn't clean it up correctly. My confusion is if I didn't clean it up correctly why does it work on everything else but glassfish.
    Thanks for your help.

  • XML DATABASE INSTALLATION

    i am installing xml database on live server with following step:-
    created tablespace
    create tablespace XDB datafile '/umsdata03/umsdb/datafile/ums_data_xdb01.dbf' size 1G;
    executing script
    @?/rdbms/admin/catqm.sql xdb123 XDB UMS_AUTOALLOC_TEMP
    but the script follow with error:-
    and pls suggest how to deal with port issue of xml installation
    SQL> create tablespace XDB datafile '/umsdata03/umsdb/datafile/ums_data_xdb01.dbf' size 1G;
    Tablespace created.
    SQL> SQL>
    SQL>
    SQL>
    SQL> @?/rdbms/admin/catqm.sql xdb123 XDB UMS_AUTOALLOC_TEMP
    CREATE TABLE sys.xdb_installation_tab (
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    CREATE TABLE sys.dropped_xdb_instll_tab (
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    DROP ON DATABASE
    ERROR at line 3:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-20000: Trigger xdb_installation_trigger does not support object creation of
    type TRIGGER
    ORA-06512: at line 32
    Trigger created.
    System altered.
    System altered.
    System altered.
    System altered.
    old 23: where tablespace_name = upper('&res_tbs');
    new 23: where tablespace_name = upper('XDB');
    old 29: where tablespace_name = upper('&temp_tbs');
    new 29: where tablespace_name = upper('UMS_AUTOALLOC_TEMP');
    old 47: raise_application_error(-20001, 'Compressed tablespace &res_tbs' ||
    new 47: raise_application_error(-20001, 'Compressed tablespace XDB' ||
    old 51: '&temp_tbs cannot be used');
    new 51: 'UMS_AUTOALLOC_TEMP cannot be used');
    PL/SQL procedure successfully completed.
    old 1: create user xdb identified by &xdb_pass account lock password expire
    new 1: create user xdb identified by xdb123 account lock password expire
    old 2: default tablespace &res_tbs temporary tablespace &temp_tbs
    new 2: default tablespace XDB temporary tablespace UMS_AUTOALLOC_TEMP
    User created.
    PL/SQL procedure successfully completed.
    old 1: create user anonymous identified by values 'anonymous' default tablespace &res_tbs
    new 1: create user anonymous identified by values 'anonymous' default tablespace XDB
    create user anonymous identified by values 'anonymous' default tablespace XDB
    ERROR at line 1:
    ORA-01920: user name 'ANONYMOUS' conflicts with another user or role name
    Grant succeeded.
    User altered.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    CREATE role xdbadmin
    ERROR at line 1:
    ORA-01921: role name 'XDBADMIN' conflicts with another user or role name
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Session altered.
    Table created.
    Table created.
    Index created.
    Type created.
    Table created.
    Index created.
    Type created.
    Type created.
    Type created.
    Synonym created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Table created.
    Table created.
    Table created.
    Table created.
    Table created.
    Table created.
    Table created.
    Table created.
    Table created.
    Table created.
    Table created.
    Table created.
    Table created.
    Table created.
    Table created.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Index created.
    Index created.
    Index created.
    Table analyzed.
    Sequence created.
    Sequence created.
    Grant succeeded.
    Library created.
    Function created.
    Package created.
    No errors.
    Package body created.
    No errors.
    Procedure created.
    Function created.
    Grant succeeded.
    Grant succeeded.
    PL/SQL procedure successfully completed.
    Type created.
    Type created.
    Type created.
    Type created.
    Type created.
    Grant succeeded.
    Type created.
    Grant succeeded.
    Table created.
    Table altered.
    Table altered.
    Index created.
    Table created.
    Index created.
    Index created.
    Index created.
    Package created.
    No errors.
    Package body created.
    No errors.
    PL/SQL procedure successfully completed.
    Session altered.
    Package created.
    No errors.
    Synonym created.
    Grant succeeded.
    Package created.
    Synonym created.
    Grant succeeded.
    No errors.
    Type created.
    No errors.
    Grant succeeded.
    Package created.
    No errors.
    Synonym created.
    Grant succeeded.
    No errors.
    drop type xdb.xdbpi_im
    ERROR at line 1:
    ORA-04043: object XDBPI_IM does not exist
    drop table xdb.xdb$path_index_params
    ERROR at line 1:
    ORA-00942: table or view does not exist
    Library created.
    Table created.
    Package created.
    Grant succeeded.
    No errors.
    Type created.
    No errors.
    Type body created.
    No errors.
    Grant succeeded.
    Package created.
    Package body created.
    Package created.
    No errors.
    Grant succeeded.
    Package created.
    Synonym created.
    No errors.
    Grant succeeded.
    Library created.
    Procedure created.
    No errors.
    Grant succeeded.
    Function created.
    No errors.
    Grant succeeded.
    Warning: Package Body created with compilation errors.
    No errors.
    Grant succeeded.
    No errors.
    Trigger created.
    No errors.
    Package body created.
    Package created.
    No errors.
    Synonym created.
    Synonym created.
    Synonym created.
    Grant succeeded.
    Grant succeeded.
    No errors.
    Package created.
    No errors.
    Synonym created.
    Synonym created.
    Synonym created.
    Grant succeeded.
    Grant succeeded.
    No errors.
    Package created.
    No errors.
    Package created.
    Synonym created.
    Synonym created.
    Synonym created.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    No errors.
    Grant succeeded.
    Library created.
    Package body created.
    No errors.
    Library created.
    Warning: Package Body created with compilation errors.
    No errors.
    Synonym created.
    Grant succeeded.
    No errors.
    Library created.
    Warning: Package Body created with compilation errors.
    No errors.
    Warning: Package Body created with compilation errors.
    Synonym created.
    Grant succeeded.
    No errors.
    Grant succeeded.
    Library created.
    Function created.
    Grant succeeded.
    Synonym created.
    Procedure created.
    No errors.
    Grant succeeded.
    Grant succeeded.
    Function created.
    No errors.
    Grant succeeded.
    Function created.
    Grant succeeded.
    Grant succeeded.
    Package body created.
    No errors.
    Warning: Package Body created with compilation errors.
    No errors.
    Synonym created.
    Grant succeeded.
    No errors.
    PL/SQL procedure successfully completed.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    Commit complete.
    Index created.
    Index created.
    Index created.
    Index created.
    Index created.
    Index created.
    Index created.
    Index created.
    Package created.
    No errors.
    Grant succeeded.
    Package body created.
    Package body created.
    No errors.
    Procedure created.
    No errors.
    Procedure created.
    No errors.
    drop view xdb.xdb$resource_view
    ERROR at line 1:
    ORA-00942: table or view does not exist
    drop view xdb.xdb$rv
    ERROR at line 1:
    ORA-00942: table or view does not exist
    PL/SQL procedure successfully completed.
    drop indextype xdb.xdbhi_idxtyp force
    ERROR at line 1:
    ORA-29833: indextype does not exist
    drop operator xdb.path force
    ERROR at line 1:
    ORA-29807: specified operator does not exist
    drop operator xdb.depth force
    ERROR at line 1:
    ORA-29807: specified operator does not exist
    drop operator xdb.abspath force
    ERROR at line 1:
    ORA-29807: specified operator does not exist
    drop operator xdb.under_path force
    ERROR at line 1:
    ORA-29807: specified operator does not exist
    drop operator xdb.equals_path force
    ERROR at line 1:
    ORA-29807: specified operator does not exist
    drop package xdb.xdb_ancop
    ERROR at line 1:
    ORA-04043: object XDB_ANCOP does not exist
    drop package xdb.xdb_funcimpl
    ERROR at line 1:
    ORA-04043: object XDB_FUNCIMPL does not exist
    drop type xdb.xdbhi_im
    ERROR at line 1:
    ORA-04043: object XDBHI_IM does not exist
    drop type xdb.path_array
    ERROR at line 1:
    ORA-04043: object PATH_ARRAY does not exist
    Library created.
    Library created.
    Type created.
    Type created.
    No errors.
    Grant succeeded.
    Grant succeeded.
    Type created.
    No errors.
    Type body created.
    No errors.
    Grant succeeded.
    Package created.
    No errors.
    Grant succeeded.
    Package created.
    No errors.
    Grant succeeded.
    Type altered.
    Operator created.
    Operator created.
    Grant succeeded.
    Grant succeeded.
    Synonym created.
    Synonym created.
    Operator created.
    Operator created.
    Operator created.
    Grant succeeded.
    Synonym created.
    Grant succeeded.
    Synonym created.
    Grant succeeded.
    Synonym created.
    Indextype created.
    Grant succeeded.
    Index created.
    View created.
    No errors.
    Synonym created.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Package created.
    No errors.
    Synonym created.
    Grant succeeded.
    Trigger created.
    No errors.
    Package body created.
    No errors.
    Function created.
    No errors.
    Grant succeeded.
    Synonym created.
    Function created.
    No errors.
    Package body created.
    No errors.
    Package body created.
    No errors.
    Package body created.
    No errors.
    Package body created.
    BEGIN
    ERROR at line 1:
    ORA-04063: package body "XDB.DBMS_XDBZ0" has errors
    ORA-06508: PL/SQL: could not find program unit being called: "XDB.DBMS_XDBZ0"
    ORA-06512: at "XDB.DBMS_XDBZ", line 7
    ORA-06512: at line 2
    declare
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-04063: package body "XDB.DBMS_XDBUTIL_INT" has errors
    ORA-06512: at "XDB.XDB$PATCHUPSCHEMA", line 98
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 3
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 14
    ORA-06512: at line 143
    BEGIN
    ERROR at line 1:
    ORA-04063: package body "XDB.DBMS_XDBZ0" has errors
    ORA-06508: PL/SQL: could not find program unit being called: "XDB.DBMS_XDBZ0"
    ORA-06512: at "XDB.DBMS_XDBZ", line 14
    ORA-06512: at line 2
    DECLARE
    ERROR at line 1:
    ORA-31114: XDB configuration has been deleted or is corrupted
    ORA-06512: at "XDB.DBMS_XDB", line 73
    ORA-06512: at line 96
    declare
    ERROR at line 1:
    ORA-01403: no data found
    ORA-06512: at line 5
    Commit complete.
    call xdb.dbms_xdbz0.initXDBSecurity()
    ERROR at line 1:
    ORA-04063: package body "XDB.DBMS_XDBZ0" has errors
    BEGIN
    ERROR at line 1:
    ORA-04063: package body "XDB.DBMS_XDBZ0" has errors
    ORA-06508: PL/SQL: could not find program unit being called: "XDB.DBMS_XDBZ0"
    ORA-06512: at "XDB.DBMS_XDBZ", line 7
    ORA-06512: at line 2
    Commit complete.
    grant all on XDB.XDB$ACL to public
    ERROR at line 1:
    ORA-00942: table or view does not exist
    Commit complete.
    declare
    ERROR at line 1:
    ORA-31000: Resource 'http://xmlns.oracle.com/xdb/acl.xsd' is not an XDB schema
    document
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 3
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 14
    ORA-06512: at line 63
    declare
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    No errors.
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    No errors.
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    No errors.
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:

    Refer MOS note 243554.1 for reinstallation of XDB.

  • Error to connect  to Mysql database

    hi
    I just initial write program with jsp. I alway have problem.
    I will connect Mysql Database. I 'm download JDBC Driver and setting.
    step of using JDBC
    1. Load Driver JDBC (use method forName())
    2. Connection Database (use method method getConnection())
    3. create object statement (use methodcreateStatement())
    after run, I get this error
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 6 in the jsp file: /test.jsp
    Generated servlet error:
    [javac] Compiling 1 source file
    C:\tomcat\work\Standalone\localhost\km\test_jsp.java:67: unclosed character literal
         String sql="INSERT INTO test VALUES (",' " +name" ', ' " +surname+" ')";
    ^
    An error occurred at line: 6 in the jsp file: /test.jsp
    Generated servlet error:
    C:\tomcat\work\Standalone\localhost\km\test_jsp.java:67: unclosed character literal
         String sql="INSERT INTO test VALUES (",' " name" ', ' " surname+" ')";
    ^
    An error occurred at line: 6 in the jsp file: /test.jsp
    Generated servlet error:
    C:\tomcat\work\Standalone\localhost\km\test_jsp.java:67: unclosed character literal
         String sql="INSERT INTO test VALUES (",' " +name" ', ' " +surname+" ')";
    ^
    An error occurred at line: 6 in the jsp file: /test.jsp
    Generated servlet error:
    C:\tomcat\work\Standalone\localhost\km\test_jsp.java:67: unclosed character literal
         String sql="INSERT INTO test VALUES (",' " name" ', ' " surname+" ')";
    ^
    An error occurred at line: 6 in the jsp file: /test.jsp
    Generated servlet error:
    C:\tomcat\work\Standalone\localhost\km\test_jsp.java:67: unclosed string literal
         String sql="INSERT INTO test VALUES (",' " +name" ', ' " +surname+" ')";
    ^
    An error occurred at line: 6 in the jsp file: /test.jsp
    Generated servlet error:
    C:\tomcat\work\Standalone\localhost\km\test_jsp.java:76: '{' expected
         catch(SQLExeption e2);
    ^
    An error occurred at line: -1 in the jsp file: null
    Generated servlet error:
    C:\tomcat\work\Standalone\localhost\km\test_jsp.java:110: 'catch' without 'try'
    } catch (Throwable t) {
    ^
    C:\tomcat\work\Standalone\localhost\km\test_jsp.java:31: 'try' without 'catch' or 'finally'
    try {
    ^
    C:\tomcat\work\Standalone\localhost\km\test_jsp.java:120: '}' expected
    ^
    9 errors
         at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
         at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:248)
         at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:315)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:328)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:427)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:534)
    i don't know error mean
    can anyone explain me and send me a sample code for connect MySQL
    Thank you

    The java code in your jsp is not valid java code; the error messages are explaining why.
    For example, this statement is totally managled.
    String sql="INSERT INTO test VALUES (",' " +name" ', ' " +surname+" ')";It should be:
    String sql="INSERT INTO test VALUES (' " +name+" ', ' " +surname+" ')";If you use PreparedStatement instead of Statement, then the SQL gets much much easier to write (and PreparedStatement has other advatages as well).
    Your other compilation problem is impossible to diagnose without the JSP source code; furthermore, it has nothing to do with JDBC, you simply have broken Java code. You need to post that question in a more appropriate forum.

Maybe you are looking for

  • My iPhone 4s touch screen will not work with an active SIM card in it.

    A few months ago my touch screen stopped working suddenly on my iPhone 4s. After I removed my active SIM card from the 4s, the touch screen started working again. As soon as I put my SIM card in again, it stopped working. I finally broke down and too

  • How   to customise Personnel actions in Vesion 3.1 I

    Hello Experts, I have to  configure Personnel actions in version 3.1 but I could not find the node for the same .......Please help as it is urgent.. Thanks in advance Rajeev Chhabra

  • Transport roles and analysis authorization with user assigned

    Hi expert, I face with this problem transport roles and analysis authorization with user assigned. When I have created a transport request to move the roles and analysis authorization from development system to test system. I couldnu2019t maintain th

  • BDC for QP01

    Can any one help me ,BDC for QP01 transaction with multiple line items. Thanx in advance,I promise to reward.

  • Need to perform validations across the Regions in OAF

    Hi There are 4 regions in a seeded page. The hierarchy is like below. Region_1 ---------> Item_1 ********Region_2 ********--------> Item_2 ********Region_3 ********--------> Item_3 Region_4 ---------> Button_1 NOTE: Region_2 and Region_3 are under Re