Problem with asant create-db_common

Dear All,
I'm trying the bookstore example from J2EE Tutorial. I face some problem when I try to populate the database. According to the book (J2EE Tutorial, 2nd Edition, page 101), I need to start PointBase. Then I run asant create-db_common. After I run asant create-db_common, I got the following error message
BUILD FAILED
file: D:/Javaj2sdk/j2eetutorial14/examples/common/targets.xml:20: C:\Sun\AppServer\pointbasedb.driver=com.pointbase.jdbc.jdbcUniversalDriver\lib not found.
May I know what's wrong. Can you please help me? Thank you very much.
Regards,
Sui

A variable can't be named "C:\Sun\AppServer\pointbasedb.driver".
-- markus.

Similar Messages

  • Problems executing 'asant create-db_common'

    Trying to populate the Pointbase database. I get
    Buildfile: build.xml
    init:
    create-db_common:
    [java] gij: unrecognized option -- '-ms16m'
    [java] Try 'gij --help' for more information
    [java] Java Result: 1
    BUILD SUCCESSFUL
    I looked at the help for gij and it lists the option as --ms=NUMBER
    I set the arg to just -ms16 and it fails. (tried a few variations as well)
    Thanks for any help
    James

    I appears you are using GNU's gij/gcj, which we have not tested with the Tutorial. Our build scripts are designed to work with Sun's JDK. Install J2SE version 1.4.2 and then run the asant tasks.
    -Ian Evans

  • Error when trying to create tables using "asant create-db_common"

    Hi,
    I'm attempting to run asant create-db_common to use a .sql file to create a table in Pointbase. However I keep getting this error:
    Buildfile: build.xml
    init:
    create-db_common:
         [java] java.lang.NoClassDefFoundError: com/pointbase/tools/toolsCommander
         [java] Exception in thread "main"
    BUILD SUCCESSFUL
    Total time: 1 secondWhich means I need to include the classpath, I presume! But I don't know what file to add it to or where to begin.
    Can anyone help?
    Thanks.

    Still haven't solved this problem.
    Can anyone guide me at all?
    Many thanks.

  • Can't run "asant create-db_common" for the bookstore tutorials.

    the instruction on :
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/WebApp13.html
    said:
    " In a terminal window, go to <INSTALL>/j2eetutorial14/examples/web/bookstore/.
    Run asant create-db_common. This task runs a PointBase commander tool command to read the file books.sql and execute the SQL commands contained in the file. The table named books is created for the user pbpublic in the sun-appserv-samples PointBase database."
    but when I tried it, I can't seem to find the anyfile with create-db_common in it?????
    Thanks for the hlep in advance.
    SongPerk Sem

    Dear sbodoff,
    Thank you for the prompt reply.
    I tried it again and got the following.
    C:\Sun\j2eetutorial14\examples\web\bookstore>asant create-db_common
    Buildfile: build.xml
    init:
    create-db_common:
    BUILD FAILED
    file:C:/Sun/j2eetutorial14/examples/common/targets.xml:20: C:\pointbase\lib not found.
    Total time: 0 seconds
    when I run ant before, it kept telling me "c:\lib not found" and I finally create an empty c:\lib directory and ant works fine. Now I have "C:\pointbase\lib not found", am I missing some environmental variables????
    I am running windows xp and this is a snap shot of the environmental variables.
    C:\Sun\j2eetutorial14\examples\web\bookstore>set
    ALLUSERSPROFILE=C:\Documents and Settings\All Users
    ANT_HOME=C:\Sun\apache-ant-1.6.0
    APPDATA=C:\Documents and Settings\songperk\Application Data
    CLASSPATH="C\QTJava.zip";C:\Sun\apache-ant-1.6.0\lib;C:\Sun\apache-ant-1.6.0\lib\ant.jar;C:\Sun\j2sdk1.4.2_03\lib;C:\Sun\AppServer\lib;C:\Sun\AppServer\pointbase\lib
    CommonProgramFiles=C:\Program Files\Common Files
    COMPUTERNAME=CHEETAH
    ComSpec=C:\WINDOWS\system32\cmd.exe
    HOMEDRIVE=C:
    HOMEPATH=\Documents and Settings\songperk
    J2EE_HOME=C:\Sun\AppServer
    JAVA_HOME=C:\Sun\j2sdk1.4.2_03
    LOGONSERVER=\\CHEETAH
    NUMBER_OF_PROCESSORS=1
    Sorry for all the trouble. Is there a place where I can get an update on how to run and install the tutorial?
    Sincerely,
    SongPerk Sem

  • Authorization problem with VF01 "Create Billing Documents"

    Dear All,
    We face following problem with VF01 "Create Billing Documents".
    Transaction: VF01
    User: Joe
    Authorization of Joe:
         VKORG Sales Organization: A, B (authorization object V_VBRK_VKO)
         FKART Billing Type: 1, 2 (authorization object V_VBRK_FKA)
    The objective for Joe:
       Joe is qualified to create bills in
          sales org A only for billing type 1 and in
          sales org B only for billing type 2.
       Joe should not be able to create bills for
          sales org A with billing type 2 and in
          sales org B with billing type 1.
    How can we solve this problem?
    We already searched for userexits without any success.
    Any help or ideas are very appreciated.
    Regards
    Markus Wilhelm
    Project Manager ERP

    Dear,
    There are standard authority-checks based on Sales organization (authorisation object V_VBRK_VKO) and/or Billing type (V_VBRK_FKA).
    An option would be to create a new billing type, define specific authorisations and use the new billing type for these documents.
    The bad thing is that you would also need a special (new) sales order type, because the billing document type is unique per sales order.
    So maybe it is easier to have a different sales organization.
    Another option would be to create a new authorization object and check it in the billing documents.
    If you wish, you could modify program LV60A005 & LV60A006.
    Then you might check various user/customer exits.
    Some functions to check: EXIT_SAPLV60A_001/002,
    EXIT_SAPLV60B_001 - 008, EXIT_SAPLV60B_010 - 011.
    Regards,
    R.Brahmankar

  • Problem with implicitly created Oracle pipes

    Hi, I am having a problem with implicitly created Oracle pipes. I am not sure if this is the correct forum for this topic, but I could not see one which suited better..
    I am using Oracle pipes as a commiunication mechanism between processes (some are written in PL/SQL and other in PRO*C).
    The general problem I have is that if a timeout occurs during the communication process, I end up with 1 or perhaps 2 implicitly created pipes.
    The biggest problem for me is that I am unable to determine if a create is implicitly created (via dbms_pipe.send_message or receive_message). This causes problems, since these implicitly created pipes are left behind and not deleted. I'll show you the basic flow of the processes and you shall see my problem.
    server: create request pipe "req_pipe"
    server: listen for request on requests pipe.
    client: create two pipes for comms with server.
    client: send request and the names of the newly created pipes to the server.
    server: read request and pipename from request pipe (from this point all comms between the client and server are now done over the 2 pipes the client created).
    server: send ack message to client to ensure they are still there (since requests can be queued in the request pipe and clients could have timed out before the request is received)
    client: send "i'm still here" ack back to the server.
    server: process request and send result back to client.
    client: send ack back to server to let server know we have received the response.
    server: send ack back to client to show that work is now committed.
    OK thats the general event flow. I use the rule, that pipes created by a process are removed by a process. So the client always removes the pipes it created in all situations. But since this can happen at any point we can get in the situation:
    client: timeout occurs, delete pipes.
    server: send message to client (creates an implicit pipe) and therefor works (no errors raised)
    server: do a read for response from previous message. (implicitly creates pipe) (will fail).
    Now we have two implicitly created pipes! These pipes will exist until the database instance is shutdown, and in a poorly performing environment, we could get thousands of these pipes lying around... not a good situation.
    How can I either stop pipes being implicilty created, or how do I detect if a pipe was implicitly created.
    I have tried a couple of things, like using v$db_pipes to check if a pipe exists before doing send/reveive calls but this is FAR to slow to do a select on that view.
    We have also looked at keeping a record of pipes created by the client then have some process (perhaps the server) clean up these pipes after some time frame. This is a workable solution but is not favourable since it adds extra overhead having to check these pipes often, and created an extra level of complexity which is not required..
    Any suggestions will be greatly appreciated.
    Feel free to email me with any suggestions on my email provided below, or just post a reply to this formum..
    Many thanks,
    Karl Bridger
    [email protected]

    I solved the problem by changing the SOAP massage format from Document/Wrapped to Document/Literal

  • Problem with ASP "Create form wizard" or "Update form wizard" and "Upload file"

    Until now it used version 3,7 and dinamyc had never had problems with "Create form wizard" or "Update form wizard" and "Upload file" but now when I create the form and shipment a file leaves an error to me:
    Error:
    Error al borrar directorio. Error de seguridad.
    Developer Details:
    Error al borrar directorio. Error de seguridad. El directorio 'E:\web\eds\maqueta\' esta fuera del directorio base 'E:\web\eds\maqueta\fotosactivi2\'. (FOLDER_DEL_SECURITY_ERROR)
    tNG Execution Trace - VIEW
    * tNG_insert.executeTransaction
    o STARTER.Trigger_Default_Starter
    o tNG_insert.doTransaction
    + BEFORE.Trigger_Default_FormValidation
    + tNG_insert.prepareSQL
    + tNG_insert.executeTransaction - execute sql
    + tNG_insert.postExecuteSql
    + AFTER.Trigger_FileUpload*
    + ERROR.Trigger_Default_Insert_RollBack
    * tNG_insert.getRecordset
    * tNG_insert.getFakeRsArr
    * tNG_insert.getLocalRecordset
    * tNG_insert.getFakeRecordset
    * tNG_insert.getFakeRecordset

    Hello,
    Please see this thread http://www.adobeforums.com/cgi-bin/webx/.3bc3c678/2
    for the same problem.
    Regards,
    Razvan RACASANU

  • Problems with DVD created in iDVD

    I have a project I put together using Final Cut Express and Logic Pro. I created the DVD project using iDVD, and am having problems with the disks that I burn - they hang part-way through on various devices (after multiple burns).
    I then saved the image to an .IMG file and tried to burn it on 2 different computers using different media (DVD+R and DVD-R) and at different burn speeds through Disk Manager. The disk burns ok, but fails validation with the message "Unable to burn ... (Verification of the burn failed.)"
    When I mount the image on my local hard drive and play it through DVD Player, I experience no problems. This is really, really strange.
    Brian

    Nope. Can't do it that way. Much better to do a fresh install to each mac......or Unless you made a bootable clone of your existing HD with CCC or SuperDuper on a like mac system. Did you do this?
    In other words, to clone an existing HD you'd have to format the ext. HD to mac os extended and then move the ext. HD to a similar mac from which you would boot you mac from like this:
    Click Here
    Hope this helps but if not just comer on back.

  • Programming Web Item. Problem with URL creating

    Hi,
    I am trying to programm a own Web Item.
    I derived from the class CL_RSR_WWW_ITEM_VIEW.
    Everything is worken fine. I just have a problem with
    the creation of links.
    In the WAD there is the very nice way of using SAP BW URLs
    like:
    <SAP_BW_URL cmd="PROCESS_HELP_WINDOW"
    help_service="ZPRINTING"
    item="TABLE_1"
    suppress_repetition_texts=""
    P_PREVIEW_MODE=" ">
    Is the a method or something similar to do the same with abap?
    Greetings
    Mike

    I found  out mayself!
    You just have to use the object CL_RSR_PARAMETER.
    There you can add parameters.
    Then use the method get_url of the object CL_RSR_WWW_PAGE to make a URL string out of it.
    Mike

  • Problems with opening/creating projects

    Hi all, this is my first post so Welcome
    I have a problem with Photoshop CS4 Extendet. After installing it under Windows 7 when I'm trying to start a new project or open a graphic in Photoshop the only thing which happens is a gray window of project without any graphic, without possibility to work on it etc. I know that graphic is loaded but I can't work on it. When I'm trying to move/large window, it crashes. Here you can see what I see when I load any graphic: http://img231.imageshack.us/img231/6120/61404388.jpg - you can see that photograph is loaded in layers menu section but in window it doesn't appear.
    I have used this Photoshop under Windows 7, even same computer some time ago, but with different hard disc. And then it worked properly without any problems. I don't know why now after installing it I have such problems. What can I do?  Is it a metter of drivers for graphic cards ot something like that? I'm useing the latest drivers for graphic card and all drivers for Windows and it's components are the newest one.
    Here is ma computer specification:
    Processor Intel Core i7  920 2.67GHz, 6GB ram, two graphic cards NVIDIA GeForce GTX 285, motherboard Asus P6T Intel X58 Windows 7 Home edition 64 bit.
    What should I do now?

    As is so often suggested here, check the nVidia web site for updated video drivers for your card.  Chances are very good they have already fixed this problem.
    -Noel

  • Problem with form created in Accrobat 9 opening in Reader 9 (Works in Reader 8.1.2)

    I created a form using Acrobat 9 and Adobe LifeCycle Designer ES 8.2. It works great on my PC running Adobe 8.1.2. It also works correctly when accessed on a flash drive. Additionally, it opens correctly on my wife's PC running Reader 8.1.2 regardless of how it was transferred. (Worked via flash, network copy/paste to desktop, and as an email attachment).
    The problem is, on my laptop, and work computers running Adobe Reader 9.0, attempting to open the file generated the following error window to appear, once you click "OK" on the error, the form fields are no longer accessible. The error is as follows:
    "This document enabled extended features in Adobe Reader. The document has been changed since it was created and use of extended features is no longer available. Please contact the author for the original version of this document."
    I re-opened the form in LifeCycle and optimized it for Adobe Reader 9.0 and higher; but the error persists. The only difference it makes is now when the form is opened on the Reader 8.1.2 machines, it generates first a window for downloading Reader 9.0, and then a compatability warning. Clicking cancel on the download and ignoring the warning results in a form that is still usable and that can be saved. On the Reader 9.0 machines, even after optimized for 9.0 and higher, the above error still persists.
    Any help would be greatly appreciated!
    Thanks in advance :)

    No, you are wrong (Gene & Mike). First, the forms, at least my forms, have NOT been edited since being created in designer. They were created and saved directly to flash. Second, this issue has been posted on the acrobat forum as well as the life cycle designer forum and both thread were ended with adobe expert posts saying it was an adobe reader issue and to post here.
    I have experimented more with this issue and it seems to be a 'trusted identity' issue within reader, but I have not wholely figured it out yet. My forms work on Reader, 7, 8, and 9. They work on all versions of 7 and 8 regardless of what the form was optimized for (my forms were optimized for 9 and higher). The only trouble is on 9.0. I have found that when updating on client machines, reader gives a prompt (sometimes) that says reader has found a set of trusted identities from a previous version, would you like to use these identies or create a new set of identities. If you choose to keep the existing trusted identies set, the form works, even when upgraded to reader 9.0
    Not trying to be argumentative (Mike and Gene) but the 'experts' bail on this issue by telling people it's a reader problem and to post here.

  • Problem with Database creating on Oracle 8.1.5 for Linux

    I found some error when I use dbassist to create database. (
    copy from CD method ) Error dialogue show "CD ROM not detected
    ". I use both '/cdrom' and '/mnt/cdrom' as cd-rom mount point ,
    if this's not correct mount-point. Where should I mount my CD-
    ROM ?
    null

    David Tamburin (guest) wrote:
    : Does anyone have a successful installation of Oracle 8.1.5
    : running on Red Hat 6.0? I have tried to install it but, I
    can't
    : get the installer to run. I get java errors when I run,
    : runInstaller. I have installed jre1.1.6. Any help would be
    : appreciated.
    We have gotten it running on two RH6 machines. Took a little
    extra work.
    Briefly...
    * Make sure you use the latest JRE, and try using the one
    with native threads (if not you will have to hand edit the
    netasst script and remove the -native flag)
    * For some reason some of the libs that get installed are
    zero length. Find the thread on this forum where someone posted
    some sample code to recreate these. If I remember right its the
    libjni library. It is a very short easy compile.
    * Make sure you got lots of RAM (128 min) and double that in
    swap
    * Watch for binaries that get installed without the execute
    bit set. For instance I think tnslsnr is one of them, as well as
    SQLPlus. I can't remember exactly, but that's one other problem
    to watch out for.
    So far things here are working. I even tried a little java in a
    stored procedure. My latest issue is trying to get the PROC
    samples to compile.
    -Scott
    null

  • Problem with forms created in Adobe 9 not saving in reader X

    We have been using fill in forms I created in Adobe 9 pro and suddenly people were complaining they cannot save the form with their information.  I have discovered that all of those people have acrobat reader X.  I looked for solution and found that original form needs to be saved with "extend features in Adobe reader".  when I did this it seems to have corrected problem.  Does anyone know another way to accomplish without redoing the form? There are many forms and they  have been widely distributed and would be difficult to redistribute. They worked fine with Acrobat reader 9.

    In order for a modified form to be saved with any recent version of Adobe Reader, the document has to Reader-enabled, which is done in Acrobat 9 by selecting "Advanced > Extend Feature in Adobe Reader". So if the forms worked with Reader 9, they must have had the rights applied through this process or by LiveCycle Reader Extensions. It would be interesting to see a form that is fillable/saveable with Reader 9 that doesn't work with Reader 10.

  • Problem with setting Created, Modified, Author, Editor on file i Site Collection from Client SDK

    Hello,
    I have a piece of code that is used for converting files from a shared file area to SharePoint for customers that move to SharePoint and Dynamics CRM. The relation to Dynamics CRM calls for using custom code an not existing conversion tools.
    The code I wrote works fine if the file sent to a regular site in SharePoint, but if I try to use the same code for files in the Site Collection. If I use the address for the site collection in the constructor for the ClientContext, and the relative URL
    from that for the file, both the upload and the setting of the attributes fails (I do make sure the file is there before trying to set the attributes).
    After some experimentation I am able to upload the file, by creating the client context with the main site URL, and adding the site collection path elements ("/sites/crm") to the path for the file, but using the same the setting of the attributes
    fails.
    I have tried some other variant where the site collection elements are in the path for both the ClientContext and the file path. Then the upload fails, the file retrival (GetFileByServerRelativeUrl) works, but the retrival of the attributes then fails.
    The code below illustrates the variations.
    Can someone please explain what I am doing wrong, or is this a bug in the SDK?
    Regards
    Anders
    using System;
    using System.IO;
    using System.Security;
    using Microsoft.SharePoint.Client;
    using File = System.IO.File;
    using SP = Microsoft.SharePoint.Client;
    namespace TestSharePointDocumentAttributes
        class DocumentAttributeTester
            public void Execute(string[] args)
                string userId = args[0];
                string password = args[1];
                string filePath = @"C:\work\TestCV1.docx";
                string siteUrl;
                string documentPath;
                string clientContextUrl;
                string serverRelativeUrl;
                DateTime createdDate = new DateTime(2013, 2, 1, 11, 20, 45);
                DateTime modifiedDate = new DateTime(2013, 3, 1, 11, 40, 45);
                string fileName = Path.GetFileName(filePath);
                SecureString securePassword = new SecureString();
                foreach (char c in password.ToCharArray())
                    securePassword.AppendChar(c);
                // Pass 1, no site collection
                Console.WriteLine("Pass 1");
                clientContextUrl = "https://losangas.sharepoint.com";
                serverRelativeUrl = "/crmn_candidate/TestSPAttributes" + '/' + fileName;
                upload(clientContextUrl, serverRelativeUrl, userId, securePassword, filePath);
                setVariables(clientContextUrl, serverRelativeUrl, userId, securePassword, createdDate, modifiedDate);
                Console.WriteLine();
                // Pass 2, site collection, parameters as expected, both upload and set attributes fails (even if file exists)
                Console.WriteLine("Pass 2");
                clientContextUrl = "https://losangas.sharepoint.com/sites/crm";
                serverRelativeUrl = "/kontakter/N/Test1" + '/' + fileName;
                upload(clientContextUrl, serverRelativeUrl, userId, securePassword, filePath);
                setVariables(clientContextUrl, serverRelativeUrl, userId, securePassword, createdDate, modifiedDate);
                Console.WriteLine();
                // Pass 3, site collection, parameters adjusted. Upload works and set attributes fails.
                Console.WriteLine("Pass 3");
                clientContextUrl = "https://losangas.sharepoint.com";
                serverRelativeUrl = "/sites/crm/kontakter/N/Test1" + '/' + fileName;
                upload(clientContextUrl, serverRelativeUrl, userId, securePassword, filePath);
                setVariables(clientContextUrl, serverRelativeUrl, userId, securePassword, createdDate, modifiedDate);
                Console.WriteLine();
                // Pass 4, site collection, parameters adjusted. Upload works fails, but GetFileByServerRelativeUrl succeds and load items fails
                Console.WriteLine("Pass 4");
                clientContextUrl = "https://losangas.sharepoint.com";
                serverRelativeUrl = "/sites/crm/kontakter/N/Test1" + '/' + fileName;
                upload(clientContextUrl, serverRelativeUrl, userId, securePassword, filePath);
                setVariables(clientContextUrl, serverRelativeUrl, userId, securePassword, createdDate, modifiedDate);
                Console.WriteLine();
            private void upload(string clientContextUrl, string serverRelativeUrl, string userId, SecureString securePassword, string filePath)
                try
                    byte[] fileContents = File.ReadAllBytes(filePath);
                    string fileName = Path.GetFileName(filePath);
                    ClientContext clientContext = new ClientContext(clientContextUrl);
                    clientContext.Credentials = new SharePointOnlineCredentials(userId, securePassword);
                    SP.File.SaveBinaryDirect(clientContext, serverRelativeUrl, new MemoryStream(fileContents), true);
                    Console.WriteLine("Upload successful.");
                catch (Exception ex)
                    Console.WriteLine(string.Format("Upload error: {0}", ex.Message));
            private void setVariables(string clientContextUrl, string serverRelativeUrl, string userId, SecureString securePassword, DateTime createdDate, DateTime modifiedDate)
                try
                    ClientContext clientContext = new ClientContext(clientContextUrl);
                    clientContext.Credentials = new SharePointOnlineCredentials(userId, securePassword);
                    Microsoft.SharePoint.Client.File uploadedFile = clientContext.Web.GetFileByServerRelativeUrl(serverRelativeUrl);
                    clientContext.ExecuteQuery();
                    ListItem listItem = uploadedFile.ListItemAllFields;
                    List list = listItem.ParentList;
                    clientContext.Load(uploadedFile.ListItemAllFields);
                    clientContext.ExecuteQuery();
                    FieldUserValue author = FieldUserValue.FromUser("Elisabeth Skaane");
                    FieldUserValue editor = FieldUserValue.FromUser("Elisabeth Skaane");
                    listItem["Created"] = createdDate.ToString("MM.dd.yyyy HH:mm:ss"); // i.e. "6/5/2012 10:19" 
                    listItem["Modified"] = modifiedDate.ToString("MM.dd.yyyy HH:mm:ss"); // i.e. "6/5/2012 10:19" 
                    listItem["Author"] = author;
                    listItem["Editor"] = editor;
                    listItem.Update();
                    clientContext.ExecuteQuery();
                    Console.WriteLine("Set attributes successful.");
                catch (Exception ex)
                    Console.WriteLine(string.Format("Set attributes error: {0}", ex.Message));

    Hello,
    Thanks for your effort, but you are not addressing the problem.
    As I tried to explain, setting the date works fine in the case where there is no site collection involved. There is no reason to believe that this will be different when in a site collection. Also the logon works fine in borth cases. The FieldUserValue.FromUser
    can take either an email, or a prefered name. I tested both.
    Anders

  • Problem with Photoshop created Menus

    One of the great features of Encore is that you can bring in HD content and create both a Blu-ray and a DVD from the same project. Unfortunatley this doesn't always work.
    I create most of my menus in photoshop and use text or round circles for navigation. If I create a menu that is sized for blu-ray (1440x1080) and then burn a standard widescreen DVD, the buttons or text sub-picture will be cut off. This problem exists in CS4 and is still there in CS5. I would often create HD sized DVD menus even for my DVDs in case the client would later want Blu-ray. For the longest time, I couldn't figure out why my circle buttons would be cut off. You really don't see the issue until the DVD is burned and it's played back in a DVD player. Once I re-sized the menu to standard def wide screen, everything comes out ok but I would like to be able to just create one size menu and use it for both DVD and Blu-ray. Anyone know a work-around?
    Thanks
    Chris

    Chris,
    The Scaling algorithms in PS are very powerful and offer so very much control. Those in PrPro are merely OK, as it is not an image editing program. Encore is even less an image editing program, so does not even have those Scaling algorithms, that PrPro does.
    All one has to do is Edit in Photoshop, Scale (choosing the best algorithm) and Save - done.
    Until Adobe decides to marry Encore with PS, I doubt that we'll see things in one place, but that Edit in Photoshop is so very easy.
    Good luck,
    Hunt

Maybe you are looking for