Duke's Bookstore Example - Pointbase console

Hi,
I'm trying to set up the Duke's Bookstore Examples and I'm having a problem starting the pointbase console because I don't know the password. I can't recall every being asked for a password on installation, other than my AppServer password.
All help apprectiated.
Thanks.

Try using pbpublic/pbpublic as the user/pass.
thanks.

Similar Messages

  • Duke's Bookstore Example (yet again)

    Folks'es,
    i'm currently ploughing my way through the j2ee tutorial 1.4. now that i come to the interesting parts (JSP et al) i'm stuck with getting the bookstore example to work.
    i've done everything to compile and packge the bookstore.jar, i've created and populated the database, and created the data source in the server, all without problems.
    but then it says under the heading "Specifying a Web Application's Resource Reference", that i should use deploytool and "1.Select the WAR (created in Chapters 11 through 22).". but i have no war file for the bookstore example! (i have some war's for the other examples and that's all.)
    what am i missing? were did i go wrong?
    any help is greatly appreciated.
    thomas

    well, i found it by just reading on (several 100s of pages).
    you actually need to do all this much later (pg 443 ff).
    thomas

  • Problems with Duke's Bookstore Examples (Chapter 3 of the J2EE 1.4 Tut)

    Hi
    Please help me, I am going through the J2EE tutorial (I have the Sun App Server 8 installed on a Win XP Service Pack 2 machine) but am running into problems.
    I'm having a problem with the
    1. asant build and
    2. asant create-db_common
    commands.
    1. asant build
    ===========
    When trying to use the command asant build I get the following problems:
    D:\P.Files Ext\MJ Ext\J2EE 1.4 Tutorial EXT\j2eetutorial14\examples\web\bookstore>asant build
    Buildfile: build.xml
    D:\P.Files%20Ext\MJ%20Ext\J2EE%201.4%20Tutorial%20EXT\j2eetutorial14\examples\common\targets.xml could not be found
    D:\P.Files%20Ext\MJ%20Ext\J2EE%201.4%20Tutorial%20EXT\j2eetutorial14\examples\web\common\targets.xml could not be found
    init:
    prepare:
    build:
    [javac] Compiling 11 source files to D:\P.Files Ext\MJ Ext\J2EE 1.4 Tutorial EXT\j2eetutorial14\examples\web\booksto
    re\build
    BUILD FAILED
    file:D:/P.Files%20Ext/MJ%20Ext/J2EE%201.4%20Tutorial%20EXT/j2eetutorial14/examples/web/bookstore/build.xml:54: D:\lib not found.
    Total time: 8 seconds
    I then created an empty folder = D:\lib
    It then seemed to work?? but still could not find targets.xml as below
    D:\P.Files Ext\MJ Ext\J2EE 1.4 Tutorial EXT\j2eetutorial14\examples\web\bookstore>asant build
    Buildfile: build.xml
    D:\P.Files%20Ext\MJ%20Ext\J2EE%201.4%20Tutorial%20EXT\j2eetutorial14\examples\common\targets.xml could not be found
    D:\P.Files%20Ext\MJ%20Ext\J2EE%201.4%20Tutorial%20EXT\j2eetutorial14\examples\web\common\targets.xml could not be found
    init:
    prepare:
    build:
    [javac] Compiling 11 source files to D:\P.Files Ext\MJ Ext\J2EE 1.4 Tutorial EXT\j2eetutorial14\examples\web\bookstore\build
    BUILD SUCCESSFUL
    Total time: 18 seconds
    D:\P.Files Ext\MJ Ext\J2EE 1.4 Tutorial EXT\j2eetutorial14\examples\web\bookstore>
    2. asant create-db_common
    ======================
    When trying to use the command asant create-db_common I get the following problems (I had to create an empty folder - D:\pointbase\lib to get this far)
    D:\P.Files Ext\MJ Ext\J2EE 1.4 Tutorial EXT\j2eetutorial14\examples\web\bookstore>asant create-db_common
    Buildfile: build.xml
    D:\P.Files%20Ext\MJ%20Ext\J2EE%201.4%20Tutorial%20EXT\j2eetutorial14\examples\common\targets.xml could not be found
    D:\P.Files%20Ext\MJ%20Ext\J2EE%201.4%20Tutorial%20EXT\j2eetutorial14\examples\web\common\targets.xml could not be found
    init:
    create-db_common:
    [java] java.lang.NoClassDefFoundError: com/pointbase/tools/toolsCommander
    [java] Exception in thread "main"
    [java] Java Result: 1
    BUILD SUCCESSFUL
    Total time: 8 seconds
    D:\P.Files Ext\MJ Ext\J2EE 1.4 Tutorial EXT\j2eetutorial14\examples\web\bookstore>
    Now I know that creating empty folders is not the solution so if anyone has any ideas as to what is wrong PLEASE tell me. I think there is something I need to add to a configuration file or something. I have re-installed the App Server but I still get the same problems. Thanks for your time!!

    Hi
    I have the same problem with the hello2 example, in the tutorial... You didnt??
    anyway maybe you are not setting the j2ee.home.
    somebody named " Jennifer " give me this advise ( i told you this to recognice that i was helped before)
    " Hello,
    You are probably not setting j2ee.home correctly. Please go to the following page and read section Building The Examples. Pay special attention to the Note in that section.
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/About.html
    thanks,
    Jennifer "
    good luck, see ya

  • Problem deploying Duke's Bookstore JavaEE5 example

    Hello everyone,
    I am having problems deploying the Duke's Bookstore example. I am trying to follow the tutorial.
    I have already updated the information concerning AS_ADMIN_PASSWORD on the file "build.properties". It took me some times... by the way i am new in J2EE tecnology and i am trying to get the example working so i can see the example running.
    Right now i am able to run ant to build the example so i get the .war file and the other files in the "build" and "dist" directory.
    I am stock in the operation concerning the database. I get to the same error weather i try "ant deploy" or "ant create-tables"... this is the message that i get:
    C:\javaeetutorial5\examples\web\bookstore1>ant deploy
    Buildfile: build.xml
    check:
    tools:
    -pre-deploy:
    -pre-init:
    init:
    check:
    tools:
    start-db:
    [exec] Database already started on host localhost, port 1527.
    [exec] Command start-database executed successfully.
    delete-tables:
    [sql] Executing file: C:\javaeetutorial5\examples\web\bookstore1\${db.delete.src}
    BUILD FAILED
    C:\javaeetutorial5\examples\web\bookstore1\build.xml:25: The following error occurred while executing this line:
    C:\javaeetutorial5\examples\bp-project\database-ant.xml:48: java.io.FileNotFoundException: C:\javaeetutorial5\examples\web\boo
    kstore1\${db.delete.src} (El sistema no puede hallar el archivo especificado)
    Total time: 7 seconds
    By the way, i am spanish thats why the error message its in spanish! :)
    Its saids something about a missing file, a file that it can not be found. I dont know which one is the missing file... so i dont know what to do.
    I have looked both "build.xml" and "database-ant.xml" to see if i see something, but as i told you i am need in J2EE and this is getting very difficult.
    It seems very easy in the tutorial, but in practice you have to do other things to make it works. I dont know why this information it is not in the tutorial.
    I really hope that somebody can help me...
    Thx in advances

    Hello everyone,
    I am having problems deploying the Duke's Bookstore
    example. I am trying to follow the tutorial.
    I have already updated the information concerning
    AS_ADMIN_PASSWORD on the file "build.properties". It
    took me some times... by the way i am new in J2EE
    tecnology and i am trying to get the example working
    so i can see the example running....
    C:\javaeetutorial5\examples\web\bookstore1>ant
    deploy
    Buildfile: build.xml
    check:
    tools:
    -pre-deploy:
    -pre-init:
    init:
    check:
    tools:
    start-db:
    [exec] Database already started on host
    localhost, port 1527.
    [exec] Command start-database executed
    successfully.
    delete-tables:
    [sql] Executing file:
    C:\javaeetutorial5\examples\web\bookstore1\${db.delete
    .src}
    BUILD FAILED
    C:\javaeetutorial5\examples\web\bookstore1\build.xml:2
    5: The following error occurred while executing this
    line:
    C:\javaeetutorial5\examples\bp-project\database-ant.xm
    l:48: java.io.FileNotFoundException:
    C:\javaeetutorial5\examples\web\boo
    kstore1\${db.delete.src} (El sistema no puede hallar
    el archivo especificado)
    Total time: 7 seconds
    By the way, i am spanish thats why the error message
    its in spanish! :)
    Its saids something about a missing file, a file that
    it can not be found. I dont know which one is the
    missing file... so i dont know what to do.
    I have looked both "build.xml" and "database-ant.xml"
    to see if i see something, but as i told you i am
    need in J2EE and this is getting very difficult.The property db.delete.src is set in:
    .../javaeetutorial5/examples/bp-project/javadb.properties
    Check to make sure that this file exists. It should. You don't have to create it or edit it, as it is shipped with the correct properties for the tutorial.
    Also, have you followed the instructions on setting javaee.home in your build.properties, as described here:
    http://java.sun.com/javaee/5/docs/tutorial/doc/About.html#wp87965
    -ian

  • Problems with database access in Servlet Apllication (Duke's Bookstore)

    Hi! My name is Elena Veretilo! I am so newbie in JavaEE. So I really need you help and advice!!!
    I started to learn JavaEE with "The JavaEE5 tutorial for Sun Java Application Server 9.1" (http://java.sun.com/javaee/5/docs/tutorial/doc/) and this tutorial recommended the next examples: http://java.sun.com/javaee/5/docs/tutorial/information/download.html. I try to work in NetBeans 6.0 and NetBeans 6.5.
    First problem - I couldn't add Sun Java Application Server 9.1 to NetBeans' server list - it just doesn't see the installed Sun Java Application Server 9.1.
    Second problem - I couldn't run Duke's Bookstore example (from tutorial examples) - something wrong with working (maybe creating or accessing) database. The Database Server started, GlassFish Server also started, so I don't know where the problem could be.
    There is exception:
    Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.8 (Build 060830)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: org.apache.derby.client.am.SqlException: Table/View 'WEB_BOOKSTORE_BOOKS' does not exist.Error Code: -1
    Call:SELECT BOOKID, FIRSTNAME, SURNAME, ONSALE, INVENTORY, CALENDAR_YEAR, TITLE, PRICE, DESCRIPTION FROM WEB_BOOKSTORE_BOOKS WHERE (BOOKID = ?)
    bind => [203]
    Query:ReadObjectQuery(com.sun.bookstore.database.Book)
    If anybody had learned this tutorial and examples or just know what I need to do, please help me!!!!! If it's possible, tell me step by step, what I need to do!
    And one more question - do I really need Sun Java Application Server 9.1 to work with or GlassFish includes Sun Java Application Server 9.1?????

    [http://forums.sun.com/thread.jspa?threadID=5350426]
    Crossposting without notification is very rude. Please stick to one topic.

  • Duke's Bookstore - bugs in tutorial

    Hello Friends,
    I've installed the latest J2EE 1.4 tutorial, and tried to compile Duke's Bookstore example.
    I got many errors - references to classes that don't exist.
    For example, database.BookDetails - the class is not in database package. The only class there is BookDBAO.java... etc.
    Sure Sun should do simple testing before releasing the tutorial for public download???
    I ran standard "asant build" task... Other examples build with no errors.

    The suggestion to add bookstore.jar was a response to the compilation errors.
    If you can't create the connection to the database, it's probably because you haven't created the JDBC resource in the Application Server or you haven't mapped the jdbc/BookDB resource reference in the WAR to the JDBC resource in the Application Server.
    If you still have a problem, there may be an error in the JDBC resource reference. I have seen the error "BookDB not found" if the JDBC resource reference has a trailing space. If you look in J2EE_HOME/domains/domain1/config/domain.xml you should have a JDBC resource defined as follows:
    <jdbc-resource enabled="true" jndi-name="jdbc/BookDB" object-type="user" pool-name="PointBasePool"/>
    If there is an extra space after BookDB as shown below , the resource name won't be resolved correctly:
    <jdbc-resource enabled="true" jndi-name="jdbc/BookDB " object-type="user" pool-name="PointBasePool"/>
    You can either edit domain.xml and restart the server, or recreate the JDBC resource.

  • Problem populating the Pointbase DB (WSDP bookstore example)

    Hi,
    I'm trying to access a PointBase DB from a WebService, as suggested by Sun's tutorial on this topic (http://java.sun.com/webservices/docs/1.0/tutorial/doc/WebApp13.html#69868).
    I have verified that the PB installation works fine on it's own (through the sample code in SampleDatabaseApplication.java), and also that the Tomcat servlet engine provided in the WSDP (WebService Developer Pack) is running OK.
    But when I try to populate the DB (as described on the link above: ant create-book-db), nothing much happens (3 rows: "Buildfile: build.xml", "init:" & "create-book-db" are shown, and then it hangs).
    I tried to get around this by manually executing the 'books.sql' statements in the PB console, and that works without problem. But when I try to deploy the bookstore example from the WSDP, ant hangs in the same way as mentioned above. The following is written to the (jwsdp_)log:
    "Couldn't create bookstore database bean: Couldn't open connection to database: DbcpDataSourceFactory: driverClassName is required"
    I checked all setting many times over (the driverClassName is specified in server.xml, so I can't pinpoint what's causing the log entry) and they all seem OK. Please help!
    Cheers
    /Daniel

    Have you copied the PB client JAR to JWSDP_HOME/common/lib and restarted Tomcat?

  • Bookstore example in Servlets chap..trouble going thro the following steps

    hi
    i successfully connected to the Pointbase database and was able to view the table created.
    Now this is with reference to Chapter 11 on Servlet technology. I went through the following steps and i am stuck in Step 9, after which i do not understand the correlation between what is said in Step 10 and what is there while using the deploy tool..
    The following are the steps which i have copied and pasted from the J2Ee tutorial Chap 11 - Section on "Example Servlets"
    Add the filters filters.HitCounterFilter and filters.OrderFilter (described in Filtering Requests and Responses).
    1)Select the Filter Mapping tab.
    2)Click Edit Filter List.
    3)Click Add Filter.
    4)Select filters.HitCounterFilter from the Filter Class column. deploytool will automatically enter HitCounterFilter in the Display Name column.
    5)Click Add.
    6)Select filters.OrderFilter from the Filter Class column. deploytool will automatically enter OrderFilter in the Display Name column.
    7)Click OK.
    8)Click Add.
    9)Select HitCounterFilter from the Filter Name column.
    10)Select Servlet from the Target Type column.
    11)Select BookStoreServlet from the Target column.
    12)Repeat for OrderFilter. The target type is Servlet and the target is ReceiptServlet.
    Step 10 is what baffles me. I cannot see a Target Type column in the dialog box.Perhaps I am not being very careful in following the steps.
    can anybody help me out with step 10 and above
    Please help me out
    thanks in advance

    i was a bit confused about the following:
    when trying to running the bookstore1 application the
    tutorial says one has got to go back and "Perform all
    the operations described in Accessing Databases from
    Web Applications"This instruction is telling you to do the operation as described in Chapter 3. So, you run create-db_common in the bookstore directory because the database tables are shared by all the bookstore applications.
    >
    this takes me to Chapter 3, where we have the section
    "Accessing Databases from Web Applications".
    Now the steps there are as follows:
    1) Populating the example database:
    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.
    and so on..
    now with regard to Bookstore1 do i have to do the
    following ( i mean is that is implied by the
    tutorial)?
    In a terminal window, go to
    <INSTALL>/j2eetutorial14/examples/web/bookstore1/
    ( instead of bookstore i substituted bookstore1)
    is that right or am i wrong?
    No, you only run create-db_common in the bookstore directory. The X-ref is there in case you didn't create the tables while working through Chapter 3.

  • Cannot deploy the Bookstore Example for Java EE tutorials

    I also have the same issue as another user on a different thread, and I did check my build.properties and it appears accurate. However I am still getting the exception when I try to run the 'ant create-tables' or 'ant deploy' :
    Buildfile: build.xml
    -pre-init:
    init:
    check:
    tools:
    start-db:
    [exec] Database already started on host localhost, port 1527.
    [exec] Command start-database executed successfully.
    delete-tables:
    [sql] Executing file: C:\tutorial\javaeetutorial\examples\web\bookstore1\${db.delete.src}
    BUILD FAILED
    C:\tutorial\javaeetutorial5\examples\bp-project\database-ant.xml:48:java.io.FileNotFoundException: C:\tutorial\javaeetutorial\examples\web\bookstore1\${db.delete.src} (The system cannot find the file specified)
    Total time: 7 seconds
    The Build.Properties file in my [install]/examples/bp-projects/ directory is a follows
    javaee.home=C:/Sun/AppServer
    javaee.tutorial.home = c:/tutorial/javaeetutorial5
    javaee.server.name=localhost
    javaee.server.port=10000
    javaee.adminserver.port=4848
    javaee.server.username=admin
    javaee.server.passwordfile=c:/tutorial/javaeetutorial5/password.txt
    appserver.instance=server
    I was able to compile the first Hello tutorial with Ant, so I am assuming that means the above build.properties file should be correct (or else that deployment would have failed too, right?). I also created the JDBC connection in the System Admin Console before trying this, as per the tutorial text.
    Since I'm new to the environment, I'm not sure where else to look for the problem.

    Ok, I did an 'ant deploy' at the books directory. It seems to be going well and then just hung for minutes at the following line...
    check:
    tools:
    -pre-deploy:
    -pre-init:
    init:
    check:
    tools:
    start-db:
    [exec] Database started in Network Server mode on host localhost and port 1
    527.
    [exec] --------- Derby Network Server Information --------
    [exec] Version: CSS10011/10.1.1.0 Build: 208786 DRDA Product Id: CSS10011
    [exec] -- listing properties --
    [exec] derby.drda.maxThreads=0
    [exec] derby.drda.keepAlive=true
    [exec] derby.drda.minThreads=0
    [exec] derby.drda.portNumber=1527
    [exec] derby.drda.logConnections=false
    [exec] derby.drda.timeSlice=0
    [exec] derby.drda.startNetworkServer=false
    [exec] derby.drda.host=localhost
    [exec] derby.drda.traceAll=false
    [exec] ------------------ Java Information ------------------
    [exec] Java Version: 1.5.0_06
    [exec] Java Vendor: Sun Microsystems Inc.
    [exec] Java home: C:\Sun\AppServer\jdk\jre
    [exec] Java classpath: C:\Sun\AppServer\lib\appserv-rt.jar;C:\Sun\AppServe
    r\lib\admin-cli.jar;C:\Sun\AppServer\javadb\lib\derby.jar;C:\Sun\AppServer\javad
    b\lib\derbytools.jar;C:\Sun\AppServer\javadb\lib\derbynet.jar;C:\Sun\AppServer\j
    avadb\lib\derbyclient.jar
    [exec] OS name: Windows XP
    [exec] OS architecture: x86
    [exec] OS version: 5.1
    [exec] Java user name: Russell Longo
    [exec] Java user home: C:\Documents and Settings\Russell Longo
    [exec] Java user dir: C:\Sun\AppServer
    [exec] java.specification.name: Java Platform API Specification
    [exec] java.specification.version: 1.5
    [exec] --------- Derby Information --------
    [exec] JRE - JDBC: J2SE 5.0 - JDBC 3.0
    [exec] [C:\Sun\AppServer\javadb\lib\derby.jar] 10.1.1.0 - (208786)
    [exec] [C:\Sun\AppServer\javadb\lib\derbytools.jar] 10.1.1.0 - (208786)
    [exec] [C:\Sun\AppServer\javadb\lib\derbynet.jar] 10.1.1.0 - (208786)
    [exec] [C:\Sun\AppServer\javadb\lib\derbyclient.jar] 10.1.1.0 - (208786)
    [exec] ------------------------------------------------------
    [exec] ----------------- Locale Information -----------------
    [exec] ------------------------------------------------------
    [exec] Starting database in the background. Log redirected to C:/Sun/AppSe
    rver/javadb\derby.log.
    [exec] Command start-database executed successfully.
    I hit a Ctrl-C and it asked if I wanted to end the batch. I replied 'n' but it dropped out to the command line.
    So I tried the ant deploy again and got the following...
    check:
    tools:
    -pre-deploy:
    -pre-init:
    init:
    check:
    tools:
    start-db:
    [exec] Database already started on host localhost, port 1527.
    [exec] Command start-database executed successfully.
    delete-tables:
    [sql] Executing file: C:\tutorial\javaeetutorial5\examples\web\books\${db.
    delete.src}
    BUILD FAILED
    C:\tutorial\javaeetutorial5\examples\web\books\build.xml:51: The following error
    occurred while executing this line:
    C:\tutorial\javaeetutorial5\examples\bp-project\database-ant.xml:48: java.io.Fil
    eNotFoundException: C:\tutorial\javaeetutorial5\examples\web\books\${db.delete.s
    rc} (The system cannot find the file specified)
    I finally went to the bookstore directory to see if I could deploy that application. Ant deploy gave the following:
    check:
    tools:
    -pre-deploy:
    -pre-init:
    init:
    check:
    tools:
    start-db:
    [exec] Database already started on host localhost, port 1527.
    [exec] Command start-database executed successfully.
    delete-tables:
    [sql] Executing file: C:\tutorial\javaeetutorial5\examples\web\books\${db.
    delete.src}
    BUILD FAILED
    C:\tutorial\javaeetutorial5\examples\web\books\build.xml:51: The following error
    occurred while executing this line:
    C:\tutorial\javaeetutorial5\examples\bp-project\database-ant.xml:48: java.io.Fil
    eNotFoundException: C:\tutorial\javaeetutorial5\examples\web\books\${db.delete.s
    rc} (The system cannot find the file specified)
    Last, I went to bookstore1 just to try the ant deploy again, see if things were cleared up, and maybe the errors above wouldn't affect it. When I tried deploying I got the following...
    check:
    tools:
    -pre-deploy:
    -pre-init:
    init:
    check:
    tools:
    start-db:
    [exec] Database already started on host localhost, port 1527.
    [exec] Command start-database executed successfully.
    delete-tables:
    [sql] Executing file: C:\tutorial\javaeetutorial5\examples\web\books\${db.
    delete.src}
    BUILD FAILED
    C:\tutorial\javaeetutorial5\examples\web\books\build.xml:51: The following error
    occurred while executing this line:
    C:\tutorial\javaeetutorial5\examples\bp-project\database-ant.xml:48: java.io.Fil
    eNotFoundException: C:\tutorial\javaeetutorial5\examples\web\books\${db.delete.s
    rc} (The system cannot find the file specified)
    I'm clearly not 'getting' a handle on this environment.

  • Listeners.ContextListener causeing error when deploying Duke's Bookstore

    Hi,
    I am getting this ...
    [#|2004-02-06T14:25:39.666-0800|SEVERE|j2ee-appserver1.4|javax.enterprise.system.container.web|_ThreadID=12;|Exception sending context initialized event to listener instance of class listeners.ContextListener
    java.lang.NoClassDefFoundError: exception/OrderException
    at listeners.ContextListener.contextInitialized(Unknown Source)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3674)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4123)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:868)
    at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:166)
    at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:188)
    ... in my server.log when i try to deploy bookstrore1 from the J2EE 1.4 Tutorial. I guess I messed up adding the listeners.ContextListener? The PointBase database server is running and has all its tables and data. The steps for adding the Event Listener seem pretty fool proof. What could I have done wrong?
    Thanks

    I sent a email to the feedback for the J2ee Tutorial ([email protected]) And got the answer to this problem:
    >
    You have to add bookstore.jar to the bookstore1 WAR in deploytool.
    Stephanie

  • Duke's Bookstore

    I have deployed the war file for bookstore6 provided by tutorial.i can see the map on the screen by typing http://localhost:1091/bookstore6. But, when i click on a link from map it gives me error
    javax.servlet.ServletException
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:261)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         sun.reflect.GeneratedMethodAccessor94.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:324)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:205)
         java.security.AccessController.doPrivileged(Native Method)
         java.security.AccessController.doPrivileged(Native Method)
         org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:717)
         org.apache.jasper.runtime.PageContextImpl.access$1000(PageContextImpl.java:114)
         org.apache.jasper.runtime.PageContextImpl$11.run(PageContextImpl.java:674)
         java.security.AccessController.doPrivileged(Native Method)
    ......more
    I don't understand what this error is all about.
    I think when any app try to talk to database this error comes and if so how to solve so that at least example given byu sun i can run.
    I would appreciate for ur +ve reply.
    Thanx.

    Hi
    You probably did not set up the database resources as described in step 4 of the packaging and deploying instructions on this page:
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSFPage2.html#wp122076
    Briefly, you need to create a JDBC data source, start the PointBase server, and populate the database.
    Jennifer

  • Appserver 9 bookstore example

    I have verified the database tables are there by using the IJ tool.
    I have made the DerbyPool connection pool
    In jdbs resources it shows the jdbc/BookDB enabled true description derby data source
    I go into the bookstore1 dir and buiild with no errorrs. I copy the bookstore1.war file into the autodeploy directory.
    I go to console and when I try and launch (using launch button) I get a dir listing
    if I redeploy with verifcation on I get the following:
    Deploying application in domain failed; Some verifier tests failed for the given application. Aborting deployment. Please verify your application using the verifier separately for more details Some verifier tests failed for the given application. Aborting deployment. Please verify your application using the verifier separately for more details
    any help appreciated

    I am replying to myself here:
    after looking at the verifier errors log it appears I am getting an error about missing exception classes, I have examined the bookstore1.war and the "missing" classes are in the bookstore.jar in the lib directory.
    The web.xml in bookstore1\web\web-inf
    has this entry
    <error-page>
    <exception-type>exception.BookNotFoundException</exception-type>
    <location>/errorpage.html</location>
    </error-page>
    here is the error from verifier log:
    RESULTS FOR WEB-RELATED TESTS
         FAILED TESTS :
         Test Name : tests.web.ExceptionType
         Test Assertion : exception-type element contains a fully qualified class name of a Java exception type. Please refer to Java Servlet 2.5 Specification Section #SRV.13.3 for further information.
         Test Description : For [ C:\Sun\AppServer\domains\domain1\applications\j2ee-modules\bookstore1 ]
    Error: exception-type element [ exception.BooksNotFoundException ] does not contain a fully qualified class name of a Java exception type within Web application [ C:\Sun\AppServer\domains\domain1\applications\j2ee-modules\bookstore1 ].
    For [ C:\Sun\AppServer\domains\domain1\applications\j2ee-modules\bookstore1 ]
    Error: exception-type element [ exception.BookNotFoundException ] does not contain a fully qualified class name of a Java exception type within Web application [ C:\Sun\AppServer\domains\domain1\applications\j2ee-modules\bookstore1 ].
         Test Name : tests.web.WebArchiveClassesLoadable
         Test Assertion : All classes in this Web Archive are loadable excluding classes used in JSPs. The test AllJSPsMustBeCompilable takes care of reporting non portable errors in JSP classes. Please refer to JavaEE 5 Specification Section #8.1.2 for further information.
         Test Description : For [ C:\Sun\AppServer\domains\domain1\applications\j2ee-modules\bookstore1 ]
    Failed to find following classes:
         exception.BooksNotFoundException,
         exception.BookNotFoundException
    Please either bundle the above mentioned classes in the application or use optional packaging support for them.
    END OF STATIC VERIFICATION RESULTS
    again any help is appreciated

  • O No: not that bookstore example again!

    I've been reading through the forum to find an answer for my problem but using the suggested solutions doesn't seem to work. I have deployed, redeployed, created, destroyed and re-created, all to no avail. I consistently get a message telling me that "Servlet BookStoreServlet is not available". My locale and language shouldn't be a problem. I tried the database tricks suggested by one earlier user but it didn't work for me.
    The latest log reads:
    [#|2004-04-12T20:19:58.338+0200|INFO|sun-appserver-pe8.0|javax.enterprise.system.tools.admin|_ThreadID=13;|ADM1041:Sent the event to instance:[ResourceDeployEvent -- redeploy jdbc/jdbc/BookDB]|#]
    [#|2004-04-12T20:19:58.378+0200|INFO|sun-appserver-pe8.0|javax.enterprise.system.core|_ThreadID=13;|CORE5008: Resource Redeployed: [jdbc:jdbc/BookDB].|#]
    [#|2004-04-12T20:20:19.338+0200|INFO|sun-appserver-pe8.0|javax.enterprise.system.container.web|_ThreadID=14;|StandardWrapperValve[BookStoreServlet]: Servlet BookStoreServlet is currently unavailable|#]
    But I can see it's there. And I have followed the instructions carefully more than once!
    Does anyone have another suggestion? My web.xml file has the correct url "/bookstore" .
    Thanks.

    Does anyone have another suggestion? My web.xml file
    has the correct url "/bookstore" .The correct URL to access this sample is noted in the docs listed here:
    <install_dir>/samples/webapps/bookstore/docs/index.html#14931
    Also, if you've changed anything in the source code, including deployment descriptors, have you rebuilt the application to pick up these changes? Note, you shouldn't have to change anything, you should be able to use the pre built bookstore1.war file.

  • Building the bookstore example in the JEE tutorial

    Hi:
    I am going through the SUN JEE tutorial with Netbeans 6.1 Beta
    I am trying to define the DB connectivity.
    After defining the JDBC resource as jdcb/BookDB with the Derby Pool in the glassfish app server
    I run the bookstore1 project. This is supposed to populate the tables and run the application
    I get the following error:
    Null component com.sun.appserv:type=JspMonitor,name=jsp,WebModule=//server/bookstore1,J2EEApplication=null,J2EEServer=server
    WEB0123: WebModule [bookstore1] failed to deploy and has been disabled
    java.lang.RuntimeException: java.lang.RuntimeException: Persistence unit named [book] is configured as JTA, yet only non-jta-data-source name is supplied in persistence.xml.
    this is the persistence.xml supplied with the application:
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
    <persistence-unit name="book" transaction-type="JTA">
    <non-jta-data-source>jdbc/BookDB </non-jta-data-source>
    </persistence-unit>
    </persistence>Is there anything else that am I supposed to do?
    Thanks for your time

    Thanks for your reply:
    I am new to persistence API and JEE
    Could you please show me how to define this JTA data source?

  • Please please help error trying to install JWSDP example using ant

    Hello,
    I'm very new to Java programming and desperately need some help. I'm trying to run the Duke's bookstore example in the web services tutorial. When I build it using the Ant tool it says "build successful", however when I come to install it it gives the following error:
    BUILD FAILED
    file:C:/jwsdp-1.2/jwsdp-1_2-tutorial/jwstutorial12/examples/common/targets.xml:1
    5: java.io.IOException: Server returned HTTP response code: 401 for URL: http://
    localhost:8080/manager/install?path=%2Fbookstore1&war=file%3A%2Fjwstutorial12%2F
    examples%2Fweb%2Fbookstore1%2Fbuild
    Any help would be gratefully received.
    Thanks

    From:
    ftp://ftp.isi.edu/in-notes/rfc2616.txt
    10.4.2 401 Unauthorized
    The request requires user authentication. The response MUST include a
    WWW-Authenticate header field (section 14.47) containing a challenge
    applicable to the requested resource. The client MAY repeat the
    request with a suitable Authorization header field (section 14.8). If
    the request already included Authorization credentials, then the 401
    response indicates that authorization has been refused for those
    credentials. If the 401 response contains the same challenge as the
    prior response, and the user agent has already attempted
    authentication at least once, then the user SHOULD be presented the
    entity that was given in the response, since that entity might
    include relevant diagnostic information. HTTP access authentication
    is explained in "HTTP Authentication: Basic and Digest Access
    Authentication" [43].
    Sounds like you need to check a username/password somewhere in the targets.xml file? Hope this helps. Cheers, Neil

Maybe you are looking for

  • "Windows encountered an unexpected error" while configuring devices

    I've run into an interesting issue after upgrading from SP1 to R2. Two of my images are failing while Windows configures devices at 72%. The models are Lenovo x131 and x140 which were previously working before the upgrade. All other images are workin

  • Final Cut Express 3.5

    Hi, Just getting back into converting some more old video tapes using my Dazzle Hollywood DV Bridge.. I upgraded from FCE 2.0 to 3.5 and I noticed the dwindling list of qualified devices (DV Converters).. FCE 2 worked fine for me but now I notice the

  • How can I change the size of the FINDER bar so that I can make it easier to read on the 27 inch monitor.

    How can I change the size of the FINDER toolbar so that its eaier to read i.e. make the text bigger. How can you move the orientaion of the left side menus so that they sit above a document when using word. If you have a single document open you tend

  • Disk Utility Freeze when using New Image

    Has anybody experienced the following?: my system: Brand new Mac Pro 8-core 2.66GHz 24GB RAM Snow Leopard 10.6.3 freshly installed Apple SuperDrive DVD I am in the process to install a lot of software and I like to make Disk Image of the software DVD

  • Midi Parameters not working with FCP X Effects

    Hi... I am creating a FCP X Effect in Motion 5. In motion I am assigning a Midi Parameter to the Level Input Black Slider. In Motion it works perfectly and the while turning my midi controller the Levels Input Black follows along, nicely. Then I appl